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