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