glibc/nis
Jakub Jelinek 697d37b182 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
(nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New 
variables. 
(nis_server_cache_search, nis_server_cache_add): New functions. 
(__nisfind_server): Use them.  Add dbp and flags argument, if 
call __nisbind_create. 
(__nisbind_create): Add server_used and current_ep arguments, 
only call __nis_findfastest if server_used is ~0. 
(__do_niscall2, __prepare_niscall): Adjust callers. 
(ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid, 
ckey_cache_euid, ckey_cache_lock): New variables. 
(get_ckey): New function. 
(__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to 
__pmap_getnisport.  Save __pmap_getnisport result in 
dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation 
key. 
* nis/nis_lookup.c (nis_lookup): Likewise. 
* nis/nis_table.c (nis_list): Likewise. 
* nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust 
prototypes.
	* nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
	_nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
	* nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
	_nss_nisplus_getservbyport_r): Likewise.
	* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
	_nss_nisplus_getnetbyaddr_r): Likewise.
	* nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
	* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
	_nss_nisplus_getntohost_r): Likewise.
	* nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
	_nss_nisplus_getrpcbynumber_r): Likewise.
2007-03-21  Jakub Jelinek  <jakub@redhat.com>

	* nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
	(nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
	variables.
	(nis_server_cache_search, nis_server_cache_add): New functions.
	(__nisfind_server): Use them.  Add dbp and flags argument, if
	call __nisbind_create.
	(__nisbind_create): Add server_used and current_ep arguments,
	only call __nis_findfastest if server_used is ~0.
	(__do_niscall2, __prepare_niscall): Adjust callers.
	(ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
	ckey_cache_euid, ckey_cache_lock): New variables.
	(get_ckey): New function.
	(__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
	__pmap_getnisport.  Save __pmap_getnisport result in
	dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
	key.
	* nis/nis_lookup.c (nis_lookup): Likewise.
	* nis/nis_table.c (nis_list): Likewise.
	* nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
	prototypes.

	* nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
	_nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
	* nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
	_nss_nisplus_getservbyport_r): Likewise.
	* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
	_nss_nisplus_getnetbyaddr_r): Likewise.
	* nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
	* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
	_nss_nisplus_getntohost_r): Likewise.
	* nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
	_nss_nisplus_getrpcbynumber_r): Likewise.
2007-03-21 20:24:59 +00:00
..
nss_compat * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't 2006-12-22 20:26:56 +00:00
nss_nis * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct 2007-01-14 05:26:04 +00:00
nss_nisplus * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h. 2007-03-21 20:24:59 +00:00
rpcsvc * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h. 2007-03-21 20:24:59 +00:00
Depend
libnsl.h * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer 2006-05-24 04:07:18 +00:00
Makefile * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS 2006-10-06 17:49:27 +00:00
nis_add.c Update. 2004-10-24 20:29:20 +00:00
nis_addmember.c * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying. 2006-05-25 17:16:17 +00:00
nis_call.c * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h. 2007-03-21 20:24:59 +00:00
nis_callback.c * nis/nis_callback.c (__nis_create_callback): Always call xdr_free 2006-05-25 15:52:21 +00:00
nis_checkpoint.c * libio/fmemopen.c (fmemopen): Free stream memory in case of 2006-04-07 04:29:25 +00:00
nis_clone_dir.c * libio/fmemopen.c (fmemopen): Free stream memory in case of 2006-04-07 04:29:25 +00:00
nis_clone_obj.c [BZ #284, BZ #721] 2005-02-17 01:19:55 +00:00
nis_clone_res.c * libio/fmemopen.c (fmemopen): Free stream memory in case of 2006-04-07 04:29:25 +00:00
nis_creategroup.c * io/ftw.c (open_dir_stream): Return right away if REALLOC fails. 2006-05-10 06:39:15 +00:00
nis_defaults.c * malloc/malloc.c (_int_malloc): Remove unused any_larger variable. 2006-10-11 16:29:13 +00:00
nis_destroygroup.c
nis_domain_of_r.c * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer 2006-05-24 04:07:18 +00:00
nis_domain_of.c . 2007-07-31 13:33:18 +00:00
nis_error.c * nis/nis_error.c: Remove table of strings. Use position 2006-05-11 20:29:20 +00:00
nis_error.h * nis/nis_error.c: Remove table of strings. Use position 2006-05-11 20:29:20 +00:00
nis_file.c * nis/nis_file.c: Rewrite the two pairs of functions into wrappers 2005-07-28 07:10:28 +00:00
nis_findserv.c
nis_free.c Update. 2004-10-24 20:29:20 +00:00
nis_getservlist.c * io/fts.c (fts_build): Call fts_lfree in the two error cases 2006-04-08 19:35:24 +00:00
nis_hash.c Update. 2004-09-08 15:46:42 +00:00
nis_intern.h * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer 2006-05-24 04:07:18 +00:00
nis_ismember.c * nis/nis_ping.c: Remove unnecessary conditionals before 2006-04-08 20:28:00 +00:00
nis_local_names.c * elf/ldconfig.c (main): Use rawmemchr instead of strchr. 2006-04-07 07:02:20 +00:00
nis_lookup.c * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h. 2007-03-21 20:24:59 +00:00
nis_mkdir.c
nis_modify.c Update. 2004-10-24 20:29:20 +00:00
nis_ping.c * nis/nis_ping.c: Remove unnecessary conditionals before 2006-04-08 20:28:00 +00:00
nis_print_group_entry.c . 2007-07-31 13:33:18 +00:00
nis_print.c Update. 2004-10-24 20:29:20 +00:00
nis_remove.c Update. 2004-10-24 20:29:20 +00:00
nis_removemember.c * nis/nis_removemember.c (nis_removemember): Avoid unnecessary 2006-05-25 18:31:29 +00:00
nis_rmdir.c
nis_server.c
nis_subr.c * nis/nis_subr.c (nis_getnames): Revert last change. 2006-12-05 21:28:15 +00:00
nis_table.c * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h. 2007-03-21 20:24:59 +00:00
nis_util.c Update. 2004-10-24 20:29:20 +00:00
nis_verifygroup.c
nis_xdr.c * nis/nis_xdr.c: Avoid some function calls. 2006-08-08 00:39:32 +00:00
nis_xdr.h * nis/nis_call.c (__prepare_niscall): New function. Split out 2006-05-20 19:22:30 +00:00
nisplus-parser.h * nis/nis_call.c (__prepare_niscall): New function. Split out 2006-05-20 19:22:30 +00:00
nss * nis/nss-default.c (vars): Add SETENT_BATCH_READ. 2006-04-28 21:08:22 +00:00
nss-default.c . 2007-07-31 13:33:18 +00:00
nss-nis.c * nis/Makefile (libnsl-routimes): Add nss-default. 2006-04-14 05:51:51 +00:00
nss-nis.h * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden. 2006-05-10 17:27:03 +00:00
nss-nisplus.c
nss-nisplus.h * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden. 2006-05-10 17:27:03 +00:00
Versions * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS 2006-10-06 17:49:27 +00:00
yp_xdr.c * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master. 2006-05-12 02:46:18 +00:00
ypclnt.c * nis/ypclnt.c (__xdr_ypresp_all): Minor optimization in string 2006-04-28 17:01:50 +00:00
ypupdate_xdr.c * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master. 2006-05-12 02:46:18 +00:00