* nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
[platform/upstream/glibc.git] / ChangeLog
1 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
2
3         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
4         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
5         xdr_ypdelete_args.
6
7         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
8         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9
10         * nis/nis_error.c: Remove table of strings.  Use position
11         independent mechanism.
12         * nis/nis_error.h: New file.
13
14 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
15
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"".
18
19 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
20
21         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
22         results if the call was succesful.
23
24         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
25
26         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
27         as hidden.
28
29 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
30
31         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
32
33 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
34
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]
38
39 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
40
41         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
42         calls.
43
44         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
45         [Coverity CID 229, 230]
46
47         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
48         DGETTEXT calls.
49         (hol_help): Likewise.  [Coverity CID 226, 227]
50
51         * string/argz-replace.c (__argz_replace): Unconditionally call
52         free on SRC.  [Coverity CID 225]
53
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]
57
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.
63
64         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
65         we must clear the variable before calling __nisfind_server.
66
67         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
68         nis_getnames.  [Coverity CID 223]
69
70         * locale/programs/locfile.c (locfile_read): Use alloca instead of
71         xmalloc to allocate local repertoire name.  [Coverity CID 222]
72
73         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
74         allocate memory for the input to add_bytes.  [Coverity CID 221]
75
76         * posix/wordexp.c (w_addword): Free word if realloc fails and it
77         was allocated here.  [Coverity CID 219, 220]
78
79         * posix/getconf.c (print_all): Free confstr data after printing.
80         [Coverity CID 218]
81
82         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
83         list allocation fails.  [Coverity CID 215]
84
85         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
86         [Coverity CID 213]
87
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.
92
93         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
94         end of string.
95         * stdlib/canonicalize.c (__realpath): Likewise.
96
97         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
98         pointer.  [Coverity CID 206]
99
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.
104         [Coverity CID 205]
105
106         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
107         dgettext calls. [Coverity CID 204]
108
109         * argp/argp-help.c (struct uparams): Remove valid member.  Change
110         the one user.
111         (uparam_names): Reduce size.  Avoid relative relocations.
112         Moved to read-only segment.
113         (fill_in_uparams): Update for new layout.
114
115         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
116         assumed to always be != NULL. [Coverity CID 202]
117
118         * argp/argp-help.c (hol_entry_help): Remove some dead code
119         [Coverity CID 200].
120
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.
124
125 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
126
127         * sysdeps/generic/ldsodefs.h: Remove support for non-core
128         architectures.
129
130         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
131         that unused memory passed to sendto is nevertheless initialized.
132
133         [BZ #2499]
134         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
135         possibly unaligned memory accesses.
136
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
140         NS_NOTIFY_OP.
141
142         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
143
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.
147
148         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
149
150         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
151         instead of ns_get16.
152         (res_queriesmatch): Likewise.  Minor optimization.
153
154         [BZ #2499]
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.
158
159 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
160
161         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
162         some branch prediction hints.
163
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.
172
173 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
174
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.
178
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.
182
183 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
184
185         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
186         malloc&bzero.
187
188         * sunrpc/svc_udp.c (BZERO): Remove definition.
189         (CALLOC): Define.
190         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
191
192         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
193         (des_SPtrans): Use uint32_t type.
194         (des_skb): Likewise.
195
196         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
197
198 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
199
200         [BZ #2509]
201         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
202         on 32-bit arches.
203
204 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
205
206         * locale/programs/ld-address.c (address_finish): Fix one more
207         place where the iso639 array might be accessed beyond the limits.
208
209 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
210
211         * nis/nis_table.c (nis_list): Avoid clearing res twice before
212         filling it for the first time.
213
214         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
215         Adjust all callers.
216         Free res object content before returning.
217
218         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
219
220         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
221         client->cl_auth.
222
223         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
224         cleanup for initial thread, just the free call on TVP.
225
226         * nscd/gai.c (__getline): Define.
227
228
229 See ChangeLog.16 for earlier changes.