]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Avoid unnecessary setXXent calls into the backend NSS module. If backend setXXent...
[thirdparty/glibc.git] / ChangeLog
CommitLineData
b894c2ea
RM
12006-07-30 Roland McGrath <roland@redhat.com>
2
3 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
4 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
5 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
6 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
7
8 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9 (nanosleep_not_cancel): New macro.
10 (sigsuspend_not_cancel): new macro.
11 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12 (do_sigsuspend): Define as inline.
13 (__sigsuspend): Always use do_sigsuspend.
14 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
15 * include/signal.h: Declare __sigsuspend_nocancel.
16 * sysdeps/posix/pause.c
17 [! NO_CANCELLATION] (__pause_nocancel): New function.
18
19 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
20 * include/time.h (__nanosleep_nocancel): Likewise.
21
c10d32c8
UD
222006-07-30 Ulrich Drepper <drepper@redhat.com>
23
24 * locale/programs/localedef.c (add_to_readlist): Rename local
25 variables to avoid confusion.
26
27 * locale/programs/charmap.c (charmap_read): Emit error message if
28 charmap couldn't be found or read.
29
6822f056
UD
302006-07-28 Ulrich Drepper <drepper@redhat.com>
31
d5ba53f9
UD
32 * sysdeps/unix/sysv/linux/kernel-features.h: Define
33 __ASSUME_FUTEX_LOCK_PI.
34 * include/time.h: Declare __nanosleep_nocancel.
35 * include/unistd.h: Declare __pause_nocancel.
36
6822f056
UD
37 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
38 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
39 get the __stack_chk_fail_local definition when it's needed.
40
3a975ff5
UD
412006-07-26 Ulrich Drepper <drepper@redhat.com>
42
6de1f625
UD
43 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
44 * dlfcn/bug-atexit3.c: New file.
45 * dlfcn/bug-atexit3-lib.cc: New file.
46
3a975ff5
UD
47 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
48 used when the namespace is not the base namespace.
49
a92b1166
UD
502006-07-26 Gavin Romig-Koch <gavin@redhat.com>
51
52 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
53 (__new_exitfn): Bump it in every successful call.
54 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
55 more exit handlers, call them right away.
56 * stdlib/exit.h: Declare __new_exitfn_called.
57
a08336fb
UD
582006-07-25 Ulrich Drepper <drepper@redhat.com>
59
bd3754dc
UD
60 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
61 calling registered handler.
62
a08336fb
UD
63 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
64 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
65 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
66 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
67 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
68 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
69 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
70 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
71
871b9158
UD
722006-07-10 Ulrich Drepper <drepper@redhat.com>
73
74 * elf/dl-lookup.c (dl_new_hash): New functions.
75 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
76 value here. Compute new-style hash value. Pass new hash value
77 and reference to variable with the old value to do_lookup_x.
78 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
79 old-style hash table.
80 (_dl_debug_bindings): Pass new hash value and reference to variable
81 with the old value to do_lookup_x.
82 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
83 new-style hash value and change old-style hash value parameter to
84 be a reference. Reoganize functions to determine whether
85 new-style hash table is available. Only fall back on old-style
86 table. If old-style hash value is needed, compute it here.
87 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
88 entry.
89 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
90 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
91 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
92 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
93 * Makeconfig: If linker supports --hash-style option add it to all
94 linker command lines to build DSOs.
95 * config.make.in: Define have-hash-style.
96 * configure.in: Test whether linker supports --hash-style option.
97
98 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
99 * sysdeps/generic/ldsodefs.h: Adjust prototype.
100
a1f0de82
UD
1012006-06-27 Ulrich Drepper <drepper@redhat.com>
102
361a3706
UD
103 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
104 auditing.
105
a1f0de82
UD
106 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
107 RPATH of main map twice.
108
4259230f
UD
1092006-06-22 Ulrich Drepper <drepper@redhat.com>
110
111 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
112 look further, return original strings.
113 (_nl_find_msg): Do not return found translation if the conversion
114 failed. Either signal the string is unusable or that something went
115 wrong and the original should be used.
116
1172006-06-21 Ulrich Drepper <drepper@redhat.com>
118
119 * string/_strerror.c (__strerror_r): Add __builtin_expect.
120
f9b7a98b
UD
1212006-06-14 Jakub Jelinek <jakub@redhat.com>
122
123 [BZ #2766]
124 * misc/insremque.c (insque): Handle prev == NULL.
125 * misc/Makefile (tests): Add tst-insremque.
126 * misc/tst-insremque.c: New test.
127
ac55a25b
UD
1282006-06-17 Ulrich Drepper <drepper@redhat.com>
129
130 [BZ #2792]
131 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
132 conflict with DL_DST_REQUIRED.
133
02f366b3
UD
1342006-06-16 Ulrich Drepper <drepper@redhat.com>
135
136 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
137 match what Solaris does.
138
9009e8f8
UD
1392006-06-04 Ulrich Drepper <drepper@redhat.com>
140
1b8373f4
UD
141 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
142 local_setegid instead of seteuid and setegid.
143 * sysdeps/generic/local-setxid.h: New file.
144 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
145
7231452e
UD
146 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
147
9009e8f8 148 * string/Makefile (tests): Add bug-envz1.
02f366b3 149 * string/bug-envz1.c: New file.
9009e8f8 150
33e63e79
UD
1512006-06-02 Jakub Jelinek <jakub@redhat.com>
152
153 * posix/regex_internal.c (re_string_skip_chars): If no character has
154 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
155 to the byte which couldn't be converted.
156 (re_string_reconstruct): Don't clear valid_raw_len before calling
157 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
158 tip_context using re_string_context_at.
159 * posix/Makefile: Add rules to build and run bug-regex25 test.
160 * posix/bug-regex25.c: New test.
161
fdc02996
UD
1622006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
163
164 [BZ #2703]
165 * string/envz.c (envz_strip): Correct erroneously reversed src
166 and dest parameters to memmove() invocation.
167
902c4291
UD
1682006-05-30 Jakub Jelinek <jakub@redhat.com>
169
170 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
171 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
172 to make sure the database has been already invalidated.
173 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
174 after the cache has been invalidated. Use pthread_mutex_lock rather
175 than pthread_mutex_trylock if fd != -1.
176 * nscd/connections.c (invalidate_cache): Add fd argument, write
177 response to fd if not calling prune_cache, pass fd to prune_cache.
178 (handle_request): Adjust invalidate_cache caller.
179 (nscd_run): Pass -1 as fd to prune_cache.
180
ecc68568
UD
1812006-05-30 Ulrich Drepper <drepper@redhat.com>
182
183 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
184 the correct place.
185
9636a217
UD
1862006-05-29 Ulrich Drepper <drepper@redhat.com>
187
188 * nscd/nscd.h (struct database_dyn): Add prunelock field.
189 * nscd/cache.c (prune_cache): Take prunelock before starting the
190 work. Just return in case it is already taken.
cabfcde1 191 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 192
6bcb494a
UD
1932006-05-25 Ulrich Drepper <drepper@redhat.com>
194
672d5a63 195 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 196 copying. No need to allocate new array for group members. Just
672d5a63
UD
197 move the pointers and update the size.
198
1663b44f
UD
199 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
200 Avoid memory leak in case realloc fails. Simplification for
201 better code generation.
202
203 Avoid deprecation warning because of libc_hidden_proto for
204 inet6_option_alloc.
205 * inet/inet6_option.c (option_alloc): Renamed from
206 inet6_option_alloc. Made static.
9636a217 207 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
208 (inet6_option_append): Call option_alloc.
209 * include/netinet/in.h: Remove libc_hidden_proto for
210 inet6_option_alloc.
211
6bcb494a
UD
212 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
213 for cleanup when cb!=NULL [Coverity CID 233].
214
aec6b246
UD
2152006-05-24 Ulrich Drepper <drepper@redhat.com>
216
07bfff20
UD
217 [BZ #2693]
218 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
219 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
220 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
221 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
222 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
223 and inet6_rth_getaddr.
224 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
225 array.
226 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
227 Mark inet6_option_* interfaces as deprecated.
228 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
229 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
230 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
231 inet6_rth_segments, and inet6_rth_getaddr.
232 * inet/inet6_opt.c: New file.
233 * inet/inet6_rth.c: New file.
234
235 * inet/netinet/icmp6.h: Pretty printing.
236
aec6b246
UD
237 [BZ #2683]
238 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
239
2d571cd1
UD
2402006-05-23 Ulrich Drepper <drepper@redhat.com>
241
062e719b
UD
242 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
243 doing it all here. When server does not know the answer do not
244 fail immediate, try parent first.
245
2d571cd1
UD
246 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
247 overflow test.
248
a17fa610
UD
2492006-05-20 Ulrich Drepper <drepper@redhat.com>
250
251 * nis/nis_call.c (__prepare_niscall): New function. Split out
252 from __do_niscall.
253 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
254 and exported.
255 (__follow_path): New function. Split out from nis_list.
256 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
257 _xdr_nis_result.
258 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
259 _xdr_nis_result.
260 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
261 and __follow_path.
262 * nis/Versions: Export __prepare_niscall, __create_ib_request,
263 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
264 from libnsl for version GLIBC_PRIVATE.
265 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
266 Remove entry parameter from _nss_nisplus_parse_pwent and
267 _nss_nisplus_parse_grent.
268 * nis/nss_nisplus/nisplus-parser.c: Likewise.
269 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
270 again. Rewrite getpwent handling to not use nis_first_entry and
271 nis_next_entry. Roll out own niscall handling.
272 * nis/nss_nisplus/nisplus-grp.c: Likewise.
273
274 * sunrpc/xdr_rec.c: Fix typo in comment.
275
429bb183
UD
2762006-05-19 Ulrich Drepper <drepper@redhat.com>
277
1d4f062a
UD
278 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
279 handling.
280
101cc598
UD
281 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
282 to allocate memory for my_pollfd. Better initialization of
283 cb_is_running. Use TEMP_FAILURE_RETRY.
284
f50fa10c
UD
285 * malloc/memusage.sh (memusageso): Add quotes.
286 (memusagestat): Likewise.
287 * debug/xtrace.sh (pcprofileso): Likewise.
288 (pcprofiledump): Likewise.
289 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
290 replacement.
291 * malloc/Makefile ($(objpfx)memusage): Likewise.
292
882bfe73
UD
293 * nis/nis_callback.c (__nis_create_callback): Calls to
294 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
295 asprintf call fails.
296
429bb183
UD
297 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
298 no uninitialized memory is passed to sendto.
299
f90de831
UD
3002006-05-18 Ulrich Drepper <drepper@redhat.com>
301
302 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
303 of snprintf+strdup. Handle OOM.
304 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
305 cb->serv together. Remove now obsolete free calls.
306 (__nis_destroy_callback): Remove now obsolete free call.
307
a17fa610 3082006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
309
310 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
311 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
312 and ULA respectively). Set precedence for IPv4 address to 10 as
313 defined in RFC3484 for preferring IPv6.
314 * posix/gai.conf: Update to match the new default tables.
315
758b9d7e
UD
3162006-05-18 Jakub Jelinek <jakub@redhat.com>
317
318 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
319 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
320 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
321 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
322
323 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
324 Removed.
325 (init_nss_interface): Remove initialization of these variables.
326
3272006-05-18 Ulrich Drepper <drepper@redhat.com>
328
329 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
330 nis_free_directory forward to avoid duplication.
331
388c779e
UD
3322006-05-17 Ulrich Drepper <drepper@redhat.com>
333
5f1724bf
UD
334 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
335 rec_dirsearch returning NULL.
336 (first_shoot): Handle __nis_finddirectory returning NULL.
337 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
338
388c779e
UD
339 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
340 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
341
360d5cf4
UD
3422006-05-17 Jakub Jelinek <jakub@redhat.com>
343
344 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
345 pid changed.
346
88dbff8c
UD
3472006-05-15 Ulrich Drepper <drepper@redhat.com>
348
6f8a7dff
UD
349 * include/rpc/pmap_prot.h: Mark all functions as hidden.
350
351 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
352 * nscd/nscd_getgr_r.c: Likewise.
353
354 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
355
356 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
357 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
358
359 * stdlib/longlong.h (__clz_tab): Mark as hidden.
360
361 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
362
360d5cf4 363 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
364
365 * include/rpc/auth.h: Mark xdr_des_block_internal and
366 xdr_opaque_auth_internal as hidden.
367
368 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
369 hidden.
370
360d5cf4 371 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 372
02264020
UD
373 * misc/getusershell.c (okshells): Don't use static initializers,
374 do it dynamically.
375
fd5ea238
UD
376 * stdlib/fmtmsg.c (keywords): Change type of len element to
377 uint32_t to not waste space on 64bit machines.
378
9446614c
UD
379 * locale/setlocale.c: Change _nl_category_names into a string.
380 Add new _nl_category_name_idxs. Change all users.
381 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
382 Declare _nl_category_name_idxs.
383 * locale/findlocale.c: Adjust for _nl_category_names change.
384 * locale/loadlocale.c: Likewise.
385 * locale/newlocale.c: Likewise.
386 * intl/dcigettext.c: Likewise.
387
88dbff8c
UD
388 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
389 (add_alias2): ...here. New function.
390 (__gconv_read_conf): Simplify builtin alias handling.
391 (builtin_aliases): Convert to string to avoid relocations.
392 * iconv/gconv_builtin.h: Add comment about correct formatting.
393
4442d58f
UD
3942006-05-15 Jakub Jelinek <jakub@redhat.com>
395
396 * resolv/res_debug.c (loc_ntoa): Make error const.
397
3982006-05-14 Andreas Schwab <schwab@suse.de>
399
400 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
401
4022006-05-12 Jakub Jelinek <jakub@redhat.com>
403
404 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
405 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
406 sizeof (cpu_set_t).
407
a51752b6
UD
4082006-05-11 Ulrich Drepper <drepper@redhat.com>
409
5d3fd1f6
UD
410 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
411
08cfb839
UD
412 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
413
4b481a15
UD
414 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
415 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
416
417 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
418 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
419
420 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
421 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
422 xdr_cback_data.
423
424 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
425 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
426 xdr_ypupdate_args.
427
428 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
429 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
430
431 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
432 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
433
434 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
435 * include/rpcsvc/nis_callback.h: New file.
436
437 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
438 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
439
440 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
441 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
442
443 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
444 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
445
446 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
447 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
448
b1ad49c6
UD
449 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
450 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
451 xdr_ypdelete_args.
452
cd5f7829
UD
453 * nis/nis_xdr.h: Mark all functions as hidden. Remove
454 __BEGIN_DECLS and __END_DECLS, the header is not installed.
455
a51752b6
UD
456 * nis/nis_error.c: Remove table of strings. Use position
457 independent mechanism.
458 * nis/nis_error.h: New file.
459
3d237e42
UD
4602006-05-11 Jakub Jelinek <jakub@redhat.com>
461
462 * locale/programs/ld-time.c (time_finish): If wide era name or
463 format aren't provided, set both wname and wformat to L"".
464
d6c159fe
UD
4652006-05-10 Ulrich Drepper <drepper@redhat.com>
466
0088b04e
UD
467 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
468 results if the call was succesful.
469
d6c159fe
UD
470 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
471
472 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
473 as hidden.
474
5c5acdf0
UD
4752006-05-10 Jakub Jelinek <jakub@redhat.com>
476
477 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
478
16d620db
UD
4792006-05-10 Ulrich Drepper <drepper@redhat.com>
480
481 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
482 caller makes sure this is not the case.
483 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
484
e7c8359e
UD
4852006-05-09 Ulrich Drepper <drepper@redhat.com>
486
ecf359c6
UD
487 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
488 calls.
489
400cc70a
UD
490 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
491 [Coverity CID 229, 230]
492
493 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
494 DGETTEXT calls.
495 (hol_help): Likewise. [Coverity CID 226, 227]
496
497 * string/argz-replace.c (__argz_replace): Unconditionally call
498 free on SRC. [Coverity CID 225]
499
500 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
501 the return value of __nis_default_owner and __nis_default_group,
502 it has been especially allocated. [Coverity CID 224]
503
51e59260
UD
504 * nis/nis_defaults.c (searchXYX): New functions. Used by both
505 searchgroup and searchowner. Significantly simplified.
506 (__nis_default_owner): Remove duplication. Do not locally copy the
507 string before duplicating it.
508 (__nis_default_group): Likewise.
509
510 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
511 we must clear the variable before calling __nisfind_server.
512
513 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
514 nis_getnames. [Coverity CID 223]
515
516 * locale/programs/locfile.c (locfile_read): Use alloca instead of
517 xmalloc to allocate local repertoire name. [Coverity CID 222]
518
519 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
520 allocate memory for the input to add_bytes. [Coverity CID 221]
521
e7c8359e 522 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 523 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
524
525 * posix/getconf.c (print_all): Free confstr data after printing.
526 [Coverity CID 218]
527
528 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
529 list allocation fails. [Coverity CID 215]
530
531 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
532 [Coverity CID 213]
533
534 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
535 string is NULL. [Coverity CID 212]
536 * argp/Makefile: Add rules to build and run bug-argp1.
537 * argp/bug-argp1.c: New file.
538
539 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
540 end of string.
541 * stdlib/canonicalize.c (__realpath): Likewise.
542
543 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
544 pointer. [Coverity CID 206]
545
546 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
547 in statically linked code.
548 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
549 statically built code, be prepared to have no link map.
550 [Coverity CID 205]
551
552 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
553 dgettext calls. [Coverity CID 204]
554
555 * argp/argp-help.c (struct uparams): Remove valid member. Change
556 the one user.
557 (uparam_names): Reduce size. Avoid relative relocations.
558 Moved to read-only segment.
559 (fill_in_uparams): Update for new layout.
560
561 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
562 assumed to always be != NULL. [Coverity CID 202]
563
564 * argp/argp-help.c (hol_entry_help): Remove some dead code
565 [Coverity CID 200].
566
567 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
568 away a few more unconditional yperr2nss calls.
569 (_nss_nis_getservbyname_r): Likewise.
570
acf82eaf
UD
5712006-05-06 Ulrich Drepper <drepper@redhat.com>
572
4461cf48
UD
573 * sysdeps/generic/ldsodefs.h: Remove support for non-core
574 architectures.
575
b74a8c7f
UD
576 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
577 that unused memory passed to sendto is nevertheless initialized.
578
acb98cb5
UD
579 [BZ #2499]
580 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
581 possibly unaligned memory accesses.
582
bce16467
UD
583 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
584 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
585 and __putlong respectively. Correct buffer overflow check for
586 NS_NOTIFY_OP.
587
588 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
589
8e45b1ac
UD
590 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
591 (send_dg): Rewrite error handling to be more compact and avoid
592 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
593
697e1628
UD
594 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
595
596 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
597 instead of ns_get16.
598 (res_queriesmatch): Likewise. Minor optimization.
599
acf82eaf
UD
600 [BZ #2499]
601 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
602 __libc_res_nsend might reallocate the buffer for the answer. In
603 this case we have to reload the HP pointer.
604
7bfee654
UD
6052006-05-05 Ulrich Drepper <drepper@redhat.com>
606
694b49ca
UD
607 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
608 some branch prediction hints.
609
7bfee654
UD
610 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
611 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
612 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
613 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
614 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
615 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
616 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
617 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
618
308bb2d5
UD
6192006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
620
621 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
622 by a GOT relocation to make Scrt1.o position independent.
623 * sysdeps/s390/s390-64/elf/start.S: Likewise.
624
625 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
626 six system call parameters.
627 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
628
cdb9c321
UD
6292006-05-05 Ulrich Drepper <drepper@redhat.com>
630
631 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
632 malloc&bzero.
633
634 * sunrpc/svc_udp.c (BZERO): Remove definition.
635 (CALLOC): Define.
636 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
637
638 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
639 (des_SPtrans): Use uint32_t type.
640 (des_skb): Likewise.
641
642 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
643
fff04b32
UD
6442006-05-05 Jakub Jelinek <jakub@redhat.com>
645
646 [BZ #2509]
647 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
648 on 32-bit arches.
649
6502006-05-05 Ulrich Drepper <drepper@redhat.com>
651
652 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 653 place where the iso639 array might be accessed beyond the limits.
fff04b32 654
077a30bc 6552006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 656
f2d5cf50
UD
657 * nis/nis_table.c (nis_list): Avoid clearing res twice before
658 filling it for the first time.
659
3e4370cf
UD
660 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
661 Adjust all callers.
662 Free res object content before returning.
663
5e65a53d
UD
664 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
665
48be3114
UD
666 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
667 client->cl_auth.
668
ca4fce0e
UD
669 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
670 cleanup for initial thread, just the free call on TVP.
671
077a30bc 672 * nscd/gai.c (__getline): Define.
3b7a95fb 673
5d37289a 674
3f87d901 675See ChangeLog.16 for earlier changes.