1 2006-05-11 Ulrich Drepper <drepper@redhat.com>
3 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
4 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7 * nis/nis_xdr.h: Mark all functions as hidden. Remove
8 __BEGIN_DECLS and __END_DECLS, the header is not installed.
10 * nis/nis_error.c: Remove table of strings. Use position
11 independent mechanism.
12 * nis/nis_error.h: New file.
14 2006-05-11 Jakub Jelinek <jakub@redhat.com>
16 * locale/programs/ld-time.c (time_finish): If wide era name or
17 format aren't provided, set both wname and wformat to L"".
19 2006-05-10 Ulrich Drepper <drepper@redhat.com>
21 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
22 results if the call was succesful.
24 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
26 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
29 2006-05-10 Jakub Jelinek <jakub@redhat.com>
31 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
33 2006-05-10 Ulrich Drepper <drepper@redhat.com>
35 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
36 caller makes sure this is not the case.
37 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
39 2006-05-09 Ulrich Drepper <drepper@redhat.com>
41 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
44 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
45 [Coverity CID 229, 230]
47 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
49 (hol_help): Likewise. [Coverity CID 226, 227]
51 * string/argz-replace.c (__argz_replace): Unconditionally call
52 free on SRC. [Coverity CID 225]
54 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
55 the return value of __nis_default_owner and __nis_default_group,
56 it has been especially allocated. [Coverity CID 224]
58 * nis/nis_defaults.c (searchXYX): New functions. Used by both
59 searchgroup and searchowner. Significantly simplified.
60 (__nis_default_owner): Remove duplication. Do not locally copy the
61 string before duplicating it.
62 (__nis_default_group): Likewise.
64 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
65 we must clear the variable before calling __nisfind_server.
67 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
68 nis_getnames. [Coverity CID 223]
70 * locale/programs/locfile.c (locfile_read): Use alloca instead of
71 xmalloc to allocate local repertoire name. [Coverity CID 222]
73 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
74 allocate memory for the input to add_bytes. [Coverity CID 221]
76 * posix/wordexp.c (w_addword): Free word if realloc fails and it
77 was allocated here. [Coverity CID 219, 220]
79 * posix/getconf.c (print_all): Free confstr data after printing.
82 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
83 list allocation fails. [Coverity CID 215]
85 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
88 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
89 string is NULL. [Coverity CID 212]
90 * argp/Makefile: Add rules to build and run bug-argp1.
91 * argp/bug-argp1.c: New file.
93 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
95 * stdlib/canonicalize.c (__realpath): Likewise.
97 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
98 pointer. [Coverity CID 206]
100 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
101 in statically linked code.
102 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
103 statically built code, be prepared to have no link map.
106 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
107 dgettext calls. [Coverity CID 204]
109 * argp/argp-help.c (struct uparams): Remove valid member. Change
111 (uparam_names): Reduce size. Avoid relative relocations.
112 Moved to read-only segment.
113 (fill_in_uparams): Update for new layout.
115 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
116 assumed to always be != NULL. [Coverity CID 202]
118 * argp/argp-help.c (hol_entry_help): Remove some dead code
121 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
122 away a few more unconditional yperr2nss calls.
123 (_nss_nis_getservbyname_r): Likewise.
125 2006-05-06 Ulrich Drepper <drepper@redhat.com>
127 * sysdeps/generic/ldsodefs.h: Remove support for non-core
130 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
131 that unused memory passed to sendto is nevertheless initialized.
134 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
135 possibly unaligned memory accesses.
137 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
138 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
139 and __putlong respectively. Correct buffer overflow check for
142 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
144 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
145 (send_dg): Rewrite error handling to be more compact and avoid
146 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
148 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
150 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
152 (res_queriesmatch): Likewise. Minor optimization.
155 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
156 __libc_res_nsend might reallocate the buffer for the answer. In
157 this case we have to reload the HP pointer.
159 2006-05-05 Ulrich Drepper <drepper@redhat.com>
161 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
162 some branch prediction hints.
164 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
165 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
166 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
167 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
168 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
169 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
170 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
171 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
173 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
175 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
176 by a GOT relocation to make Scrt1.o position independent.
177 * sysdeps/s390/s390-64/elf/start.S: Likewise.
179 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
180 six system call parameters.
181 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
183 2006-05-05 Ulrich Drepper <drepper@redhat.com>
185 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
188 * sunrpc/svc_udp.c (BZERO): Remove definition.
190 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
192 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
193 (des_SPtrans): Use uint32_t type.
196 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
198 2006-05-05 Jakub Jelinek <jakub@redhat.com>
201 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
204 2006-05-05 Ulrich Drepper <drepper@redhat.com>
206 * locale/programs/ld-address.c (address_finish): Fix one more
207 place where the iso639 array might be accessed beyond the limits.
209 2006-05-04 Ulrich Drepper <drepper@redhat.com>
211 * nis/nis_table.c (nis_list): Avoid clearing res twice before
212 filling it for the first time.
214 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
216 Free res object content before returning.
218 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
220 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
223 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
224 cleanup for initial thread, just the free call on TVP.
226 * nscd/gai.c (__getline): Define.
229 See ChangeLog.16 for earlier changes.