2006-07-30 Roland McGrath <roland@redhat.com>
[glibc.git] / ChangeLog
blobe603347a0b7ca5778c4dbaea3dcc172bee9f2531
1 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
3         * locale/programs/localedef.c (add_to_readlist): Rename local
4         variables to avoid confusion.
6         * locale/programs/charmap.c (charmap_read): Emit error message if
7         charmap couldn't be found or read.
9 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
11         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12         __ASSUME_FUTEX_LOCK_PI.
13         * include/time.h: Declare __nanosleep_nocancel.
14         * include/unistd.h: Declare __pause_nocancel.
16         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
17         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
18         get the __stack_chk_fail_local definition when it's needed.
20 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
22         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
23         * dlfcn/bug-atexit3.c: New file.
24         * dlfcn/bug-atexit3-lib.cc: New file.
26         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
27         used when the namespace is not the base namespace.
29 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
31         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
32         (__new_exitfn): Bump it in every successful call.
33         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
34         more exit handlers, call them right away.
35         * stdlib/exit.h: Declare __new_exitfn_called.
37 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
39         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
40         calling registered handler.
42         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
43         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
48         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
49         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
51 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
53         * elf/dl-lookup.c (dl_new_hash): New functions.
54         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
55         value here.  Compute new-style hash value.  Pass new hash value
56         and reference to variable with the old value to do_lookup_x.
57         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
58         old-style hash table.
59         (_dl_debug_bindings): Pass new hash value and reference to variable
60         with the old value to do_lookup_x.
61         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
62         new-style hash value and change old-style hash value parameter to
63         be a reference.  Reoganize functions to determine whether
64         new-style hash table is available.  Only fall back on old-style
65         table.  If old-style hash value is needed, compute it here.
66         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
67         entry.
68         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
69         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
70         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
71         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
72         * Makeconfig: If linker supports --hash-style option add it to all
73         linker command lines to build DSOs.
74         * config.make.in: Define have-hash-style.
75         * configure.in: Test whether linker supports --hash-style option.
77         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
78         * sysdeps/generic/ldsodefs.h: Adjust prototype.
80 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
82         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
83         auditing.
85         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
86         RPATH of main map twice.
88 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
90         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
91         look further, return original strings.
92         (_nl_find_msg): Do not return found translation if the conversion
93         failed.  Either signal the string is unusable or that something went
94         wrong and the original should be used.
96 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
98         * string/_strerror.c (__strerror_r): Add __builtin_expect.
100 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
102         [BZ #2766]
103         * misc/insremque.c (insque): Handle prev == NULL.
104         * misc/Makefile (tests): Add tst-insremque.
105         * misc/tst-insremque.c: New test.
107 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
109         [BZ #2792]
110         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
111         conflict with DL_DST_REQUIRED.
113 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
115         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
116         match what Solaris does.
118 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
120         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
121         local_setegid instead of seteuid and setegid.
122         * sysdeps/generic/local-setxid.h: New file.
123         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
125         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
127         * string/Makefile (tests): Add bug-envz1.
128         * string/bug-envz1.c: New file.
130 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
132         * posix/regex_internal.c (re_string_skip_chars): If no character has
133         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
134         to the byte which couldn't be converted.
135         (re_string_reconstruct): Don't clear valid_raw_len before calling
136         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
137         tip_context using re_string_context_at.
138         * posix/Makefile: Add rules to build and run bug-regex25 test.
139         * posix/bug-regex25.c: New test.
141 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
143         [BZ #2703]
144         * string/envz.c (envz_strip): Correct erroneously reversed src
145         and dest parameters to memmove() invocation.
147 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
149         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
150         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
151         to make sure the database has been already invalidated.
152         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
153         after the cache has been invalidated.  Use pthread_mutex_lock rather
154         than pthread_mutex_trylock if fd != -1.
155         * nscd/connections.c (invalidate_cache): Add fd argument, write
156         response to fd if not calling prune_cache, pass fd to prune_cache.
157         (handle_request): Adjust invalidate_cache caller.
158         (nscd_run): Pass -1 as fd to prune_cache.
160 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
162         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
163         the correct place.
165 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
167         * nscd/nscd.h (struct database_dyn): Add prunelock field.
168         * nscd/cache.c (prune_cache): Take prunelock before starting the
169         work.  Just return in case it is already taken.
170         * nscd/connections.c (dbs): Initialize .prunelock.
172 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
174         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
175         copying.  No need to allocate new array for group members.  Just
176         move the pointers and update the size.
178         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
179         Avoid memory leak in case realloc fails.  Simplification for
180         better code generation.
182         Avoid deprecation warning because of libc_hidden_proto for
183         inet6_option_alloc.
184         * inet/inet6_option.c (option_alloc): Renamed from
185         inet6_option_alloc.  Made static.
186         (inet6_option_alloc): Now a simple wrapper around option_alloc.
187         (inet6_option_append): Call option_alloc.
188         * include/netinet/in.h: Remove libc_hidden_proto for
189         inet6_option_alloc.
191         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
192         for cleanup when cb!=NULL [Coverity CID 233].
194 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
196         [BZ #2693]
197         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
198         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
199         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
200         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
201         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
202         and inet6_rth_getaddr.
203         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
204         array.
205         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
206         Mark inet6_option_* interfaces as deprecated.
207         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
208         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
209         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
210         inet6_rth_segments, and inet6_rth_getaddr.
211         * inet/inet6_opt.c: New file.
212         * inet/inet6_rth.c: New file.
214         * inet/netinet/icmp6.h: Pretty printing.
216         [BZ #2683]
217         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
219 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
221         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
222         doing it all here.  When server does not know the answer do not
223         fail immediate, try parent first.
225         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
226         overflow test.
228 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
230         * nis/nis_call.c (__prepare_niscall): New function.  Split out
231         from __do_niscall.
232         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
233         and exported.
234         (__follow_path): New function.  Split out from nis_list.
235         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
236         _xdr_nis_result.
237         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
238         _xdr_nis_result.
239         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
240         and __follow_path.
241         * nis/Versions: Export __prepare_niscall, __create_ib_request,
242         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
243         from libnsl for version GLIBC_PRIVATE.
244         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
245         Remove entry parameter from _nss_nisplus_parse_pwent and
246         _nss_nisplus_parse_grent.
247         * nis/nss_nisplus/nisplus-parser.c: Likewise.
248         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
249         again.  Rewrite getpwent handling to not use nis_first_entry and
250         nis_next_entry.  Roll out own niscall handling.
251         * nis/nss_nisplus/nisplus-grp.c: Likewise.
253         * sunrpc/xdr_rec.c: Fix typo in comment.
255 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
257         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
258         handling.
260         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
261         to allocate memory for my_pollfd.  Better initialization of
262         cb_is_running.  Use TEMP_FAILURE_RETRY.
264         * malloc/memusage.sh (memusageso): Add quotes.
265         (memusagestat): Likewise.
266         * debug/xtrace.sh (pcprofileso): Likewise.
267         (pcprofiledump): Likewise.
268         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
269         replacement.
270         * malloc/Makefile ($(objpfx)memusage): Likewise.
272         * nis/nis_callback.c (__nis_create_callback): Calls to
273         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
274         asprintf call fails.
276         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
277         no uninitialized memory is passed to sendto.
279 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
281         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
282         of snprintf+strdup.  Handle OOM.
283         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
284         cb->serv together.  Remove now obsolete free calls.
285         (__nis_destroy_callback): Remove now obsolete free call.
287 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
289         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
290         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
291         and ULA respectively). Set precedence for IPv4 address to 10 as
292         defined in RFC3484 for preferring IPv6.
293         * posix/gai.conf: Update to match the new default tables.
295 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
297         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
298         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
299         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
300         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
302         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
303         Removed.
304         (init_nss_interface): Remove initialization of these variables.
306 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
308         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
309         nis_free_directory forward to avoid duplication.
311 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
313         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
314         rec_dirsearch returning NULL.
315         (first_shoot): Handle __nis_finddirectory returning NULL.
316         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
318         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
319         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
321 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
323         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
324         pid changed.
326 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
328         * include/rpc/pmap_prot.h: Mark all functions as hidden.
330         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
331         * nscd/nscd_getgr_r.c: Likewise.
333         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
335         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
336         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
338         * stdlib/longlong.h (__clz_tab): Mark as hidden.
340         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
342         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
344         * include/rpc/auth.h: Mark xdr_des_block_internal and
345         xdr_opaque_auth_internal as hidden.
347         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
348         hidden.
350         * include/rpc/xdr.h: Mark all _internal functions as hidden.
352         * misc/getusershell.c (okshells): Don't use static initializers,
353         do it dynamically.
355         * stdlib/fmtmsg.c (keywords): Change type of len element to
356         uint32_t to not waste space on 64bit machines.
358         * locale/setlocale.c: Change _nl_category_names into a string.
359         Add new _nl_category_name_idxs.  Change all users.
360         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
361         Declare _nl_category_name_idxs.
362         * locale/findlocale.c: Adjust for _nl_category_names change.
363         * locale/loadlocale.c: Likewise.
364         * locale/newlocale.c: Likewise.
365         * intl/dcigettext.c: Likewise.
367         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
368         (add_alias2): ...here.  New function.
369         (__gconv_read_conf): Simplify builtin alias handling.
370         (builtin_aliases): Convert to string to avoid relocations.
371         * iconv/gconv_builtin.h: Add comment about correct formatting.
373 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
375         * resolv/res_debug.c (loc_ntoa): Make error const.
377 2006-05-14  Andreas Schwab  <schwab@suse.de>
379         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
381 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
383         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
384         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
385         sizeof (cpu_set_t).
387 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
389         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
391         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
393         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
394         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
396         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
397         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
399         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
400         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
401         xdr_cback_data.
403         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
404         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
405         xdr_ypupdate_args.
407         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
408         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
410         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
411         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
413         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
414         * include/rpcsvc/nis_callback.h: New file.
416         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
417         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
419         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
420         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
422         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
423         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
425         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
426         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
428         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
429         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
430         xdr_ypdelete_args.
432         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
433         __BEGIN_DECLS and __END_DECLS, the header is not installed.
435         * nis/nis_error.c: Remove table of strings.  Use position
436         independent mechanism.
437         * nis/nis_error.h: New file.
439 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
441         * locale/programs/ld-time.c (time_finish): If wide era name or
442         format aren't provided, set both wname and wformat to L"".
444 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
446         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
447         results if the call was succesful.
449         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
451         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
452         as hidden.
454 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
456         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
458 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
460         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
461         caller makes sure this is not the case.
462         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
464 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
466         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
467         calls.
469         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
470         [Coverity CID 229, 230]
472         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
473         DGETTEXT calls.
474         (hol_help): Likewise.  [Coverity CID 226, 227]
476         * string/argz-replace.c (__argz_replace): Unconditionally call
477         free on SRC.  [Coverity CID 225]
479         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
480         the return value of __nis_default_owner and __nis_default_group,
481         it has been especially allocated.  [Coverity CID 224]
483         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
484         searchgroup and searchowner.  Significantly simplified.
485         (__nis_default_owner): Remove duplication.  Do not locally copy the
486         string before duplicating it.
487         (__nis_default_group): Likewise.
489         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
490         we must clear the variable before calling __nisfind_server.
492         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
493         nis_getnames.  [Coverity CID 223]
495         * locale/programs/locfile.c (locfile_read): Use alloca instead of
496         xmalloc to allocate local repertoire name.  [Coverity CID 222]
498         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
499         allocate memory for the input to add_bytes.  [Coverity CID 221]
501         * posix/wordexp.c (w_addword): Free word if realloc fails and it
502         was allocated here.  [Coverity CID 219, 220]
504         * posix/getconf.c (print_all): Free confstr data after printing.
505         [Coverity CID 218]
507         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
508         list allocation fails.  [Coverity CID 215]
510         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
511         [Coverity CID 213]
513         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
514         string is NULL.  [Coverity CID 212]
515         * argp/Makefile: Add rules to build and run bug-argp1.
516         * argp/bug-argp1.c: New file.
518         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
519         end of string.
520         * stdlib/canonicalize.c (__realpath): Likewise.
522         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
523         pointer.  [Coverity CID 206]
525         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
526         in statically linked code.
527         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
528         statically built code, be prepared to have no link map.
529         [Coverity CID 205]
531         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
532         dgettext calls. [Coverity CID 204]
534         * argp/argp-help.c (struct uparams): Remove valid member.  Change
535         the one user.
536         (uparam_names): Reduce size.  Avoid relative relocations.
537         Moved to read-only segment.
538         (fill_in_uparams): Update for new layout.
540         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
541         assumed to always be != NULL. [Coverity CID 202]
543         * argp/argp-help.c (hol_entry_help): Remove some dead code
544         [Coverity CID 200].
546         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
547         away a few more unconditional yperr2nss calls.
548         (_nss_nis_getservbyname_r): Likewise.
550 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
552         * sysdeps/generic/ldsodefs.h: Remove support for non-core
553         architectures.
555         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
556         that unused memory passed to sendto is nevertheless initialized.
558         [BZ #2499]
559         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
560         possibly unaligned memory accesses.
562         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
563         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
564         and __putlong respectively.  Correct buffer overflow check for
565         NS_NOTIFY_OP.
567         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
569         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
570         (send_dg): Rewrite error handling to be more compact and avoid
571         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
573         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
575         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
576         instead of ns_get16.
577         (res_queriesmatch): Likewise.  Minor optimization.
579         [BZ #2499]
580         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
581         __libc_res_nsend might reallocate the buffer for the answer.  In
582         this case we have to reload the HP pointer.
584 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
586         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
587         some branch prediction hints.
589         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
590         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
591         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
592         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
594         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
595         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
596         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
598 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
600         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
601         by a GOT relocation to make Scrt1.o position independent.
602         * sysdeps/s390/s390-64/elf/start.S: Likewise.
604         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
605         six system call parameters.
606         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
608 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
610         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
611         malloc&bzero.
613         * sunrpc/svc_udp.c (BZERO): Remove definition.
614         (CALLOC): Define.
615         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
617         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
618         (des_SPtrans): Use uint32_t type.
619         (des_skb): Likewise.
621         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
623 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
625         [BZ #2509]
626         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
627         on 32-bit arches.
629 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
631         * locale/programs/ld-address.c (address_finish): Fix one more
632         place where the iso639 array might be accessed beyond the limits.
634 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
636         * nis/nis_table.c (nis_list): Avoid clearing res twice before
637         filling it for the first time.
639         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
640         Adjust all callers.
641         Free res object content before returning.
643         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
645         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
646         client->cl_auth.
648         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
649         cleanup for initial thread, just the free call on TVP.
651         * nscd/gai.c (__getline): Define.
654 See ChangeLog.16 for earlier changes.