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