3400be76ac0163a3fd0831d1ddee3410e1913e50
[platform/upstream/glibc.git] / ChangeLog
1 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
2
3         [BZ #3674]
4         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
5         correctly if removing trailing zero of hex-float.
6
7 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8
9         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10         Start searching for next comma at p rather than rest.
11         * misc/Makefile (tests): Add tst-mntent2.
12         * misc/tst-mntent2.c: New test.
13
14         * misc/getusershell.c (initshells): Check for integer overflows.
15         Make strings buffer one bigger as fgets always succeeds when second
16         argument is 1.  Don't use calloc for shells array.  Disallow
17         / as shell.
18
19 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
20
21         * malloc/memusage.c: Handle realloc with new size of zero and
22         non-NULL pointer correctly.
23         (me): Really write first record twice.
24         (struct entry): Make format bi-arch safe.
25         (dest): Write out more realloc statistics.
26         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
27
28 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
29
30         * nis/nis_subr.c (nis_getnames): Revert last change.
31
32 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
33
34         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
35         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
36         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
37         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
38         ENOTTY.
39         * io/Makefile: Add rules to build and run tst-ttyname_r test.
40         * io/tst-ttyname_r.c: New test.
41
42 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43
44         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
45
46 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
47
48         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
49         jump table entries.
50
51 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
52
53         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
54         `clone' function to ensure proper unwinding stop of gdb.
55         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
56
57 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
58
59         * nscd/nscd.init: Remove obsolete and commented-out -S option
60         handling.
61
62 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
63
64         [BZ #3514]
65         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
66
67         [BZ #3515]
68         * manual/string.texi (strtok): Remove duplicate paragraph.
69
70 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
71
72         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
73         libgcc not supporting `rflags' unwinding (register # >= 17).
74
75 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
76
77         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
78         succeeded.
79
80 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
81             Jakub Jelinek  <jakub@redhat.com>
82             Jan Kratochvil  <jan.kratochvil@redhat.com>
83
84         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
85         unwind information.
86         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
87         'restore_rt' even in the 'signal' directory.
88         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
89
90 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
91
92         [BZ #3559]
93         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
94         malloc crashed.  Don't allocate memory unnecessarily in each
95         loop.
96
97 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
98
99         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
100
101 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
102
103         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
104
105 2006-11-18  Bruno Haible  <bruno@clisp.org>
106
107         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
108         __sysconf only after having tried to call getgroups32.
109
110 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
111
112         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
113         addresses for IPv4 queries if they can be mapped.
114
115 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
116
117         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
118         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
119         (signmask): Add .size directive.
120         (othermask): Add .type directive.
121
122 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
123
124         * po/nl.po: Update from translation team.
125
126         * timezone/zdump.c: Redo fix for BZ #3137.
127
128 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
129
130         * nss/nss_files/files-alias.c (get_next_alias): Set line back
131         to first_unused after parsing :include: file.
132
133 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
134
135         * timezone/africa: Update from tzdata2006o.
136         * timezone/antarctica: Likewise.
137         * timezone/asia: Likewise.
138         * timezone/australasia: Likewise.
139         * timezone/backward: Likewise.
140         * timezone/europe: Likewise.
141         * timezone/iso3166.tab: Likewise.
142         * timezone/northamerica: Likewise.
143         * timezone/southamerica: Likewise.
144         * timezone/zone.tab: Likewise.
145
146         * time/tzfile.c (__tzfile_read): Extend to handle new file format
147         on machines with 64-bit time_t.
148
149         * timezone/checktab.awk: Update from tzcode2006o.
150         * timezone/ialloc.c: Likewise.
151         * timezone/private.h: Likewise.
152         * timezone/scheck.c: Likewise.
153         * timezone/tzfile.h: Likewise.
154         * timezone/tzselect.ksh: Likewise.
155         * timezone/zdump.c: Likewise.
156         * timezone/zic.c: Likewise.
157
158         [BZ #3483]
159         * elf/ldconfig.c (main): Call setlocale and textdomain.
160         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
161
162         [BZ #3480]
163         * manual/argp.texi: Fix typos.
164         * manual/charset.texi: Likewise.
165         * manual/errno.texi: Likewise.
166         * manual/filesys.texi: Likewise.
167         * manual/lang.texi: Likewise.
168         * manual/maint.texi: Likewise.
169         * manual/memory.texi: Likewise.
170         * manual/message.texi: Likewise.
171         * manual/resource.texi: Likewise.
172         * manual/search.texi: Likewise.
173         * manual/signal.texi: Likewise.
174         * manual/startup.texi: Likewise.
175         * manual/stdio.texi: Likewise.
176         * manual/sysinfo.texi: Likewise.
177         * manual/syslog.texi: Likewise.
178         * manual/time.texi: Likewise.
179         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
180
181         [BZ #3465]
182         * sunrpc/clnt_raw.c: Minimal message improvements.
183         * sunrpc/pm_getmaps.c: Likewise.
184         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
185         * nis/nis_print_group_entry.c: Likewise.
186         * locale/programs/repertoire.c: Likewise.
187         * locale/programs/charmap.c: Likewise.
188         * malloc/memusage.sh: Likewise.
189         * elf/dl-deps.c: Likewise.
190         * locale/programs/ld-collate.c: Likewise.
191         * libio/vswprintf.c: Likewise.
192         * malloc/memusagestat.c: Likewise.
193         * sunrpc/auth_unix.c: Likewise.
194         * sunrpc/rpc_main.c: Likewise.
195         * nscd/cache.c: Likewise.
196         * locale/programs/repertoire.c: Unify output messages.
197         * locale/programs/charmap.c: Likewise.
198         * locale/programs/ld-ctype.c: Likewise.
199         * locale/programs/ld-monetary.c: Likewise.
200         * locale/programs/ld-numeric.c: Likewise.
201         * locale/programs/ld-time.c: Likewise.
202         * elf/ldconfig.c: Likewise.
203         * nscd/selinux.c: Likewise.
204         * elf/cache.c: Likewise.
205         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
206
207         [BZ #3451]
208         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
209         change atomic.
210         (ceil): Likewise.
211
212 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
213
214         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
215         if N is one bigger than return value.
216         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
217         and l1 last arguments, if buf is defined, verify the return value
218         equals to strlen (buf) and verify no byte beyond passed length
219         is modified.
220
221 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
222
223         * po/sv.po: Update from translation team.
224
225 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
226
227         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
228         noinline attribute.
229
230 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
231
232         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
233         noinline attribute.
234
235         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
236         Use __new_sys_siglist instead of _sys_siglist_internal as
237         second macro argument.
238         (_old_sys_siglist): Use declare_symbol_alias macro instead of
239         strong_alias.
240
241 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
242
243         [BZ #3493]
244         * posix/unistd.h (sysconf): Remove const attribute.
245
246         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
247         temporary or deprecated addresses.
248         Patch by Sridhar Samudrala <sri@us.ibm.com>.
249
250         * string/Makefile (tests): Add tst-strxfrm2.
251         * string/tst-strxfrm2.c: New file.
252
253 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
254
255         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
256         rather than r->r_brk.
257
258 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
259
260         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
261         optimization even if needed > n.
262
263         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
264         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
265         return false, otherwise return true.
266         (cache_rpath): Return decompose_rpath return value.
267
268 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
269
270         * include/libc-symbols.h (declare_symbol): Rename to...
271         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
272         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
273         .size directive.
274         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
275         changes.
276         * sysdeps/gnu/siglist.c: Likewise.
277
278 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
279
280         * sysdeps/powerpc/fpu/bits/mathinline.h
281         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
282         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
283
284 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
285
286         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
287         Update handling of cache descriptor 0x49 for new models.
288         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
289         Likewise.
290
291 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
292
293         * malloc/memusage.c (dest): Reset not_me back to false after
294         printing statistics.
295
296 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
297
298         * configure.in: Work around ld --help change and avoid -z relro
299         test completely if the architecture doesn't care about security.
300
301 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
302
303         * po/sv.po: Update from translation team.
304
305 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
306
307         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
308         generate compatibility version.
309
310 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
311
312         * configure.in: Relax -z relro requirement a bit.
313
314         * po/sv.po: Update from translation team.
315
316 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
317
318         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
319         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
320         * elf/dl-close.c (_dl_close_worker): Likewise.
321         * elf/dl-open.c (_dl_open_worker): Likewise.
322         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
323
324 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
325
326         * configure.in: Require assembler support for visibility, compiler
327         support for visibility and aliases, linker support for various -z
328         options.
329         * Makeconfig: Remove conditional code which now is unnecessary.
330         * config.h.in: Likewise.
331         * config.make.in: Likewise.
332         * dlfcn/Makefile: Likewise.
333         * elf/Makefile: Likewise.
334         * elf/dl-load.c: Likewise.
335         * elf/rtld.c: Likewise.
336         * include/libc-symbols.h: Likewise.
337         * include/stdio.h: Likewise.
338         * io/Makefile: Likewise.
339         * io/fstat.c: Likewise.
340         * io/fstat64.c: Likewise.
341         * io/fstatat.c: Likewise.
342         * io/fstatat64.c: Likewise.
343         * io/lstat.c: Likewise.
344         * io/lstat64.c: Likewise.
345         * io/mknod.c: Likewise.
346         * io/mknodat.c: Likewise.
347         * io/stat.c: Likewise.
348         * io/stat64.c: Likewise.
349         * libio/stdio.c: Likewise.
350         * nscd/Makefile: Likewise.
351         * stdlib/Makefile: Likewise.
352         * stdlib/atexit.c: Likewise.
353         * sysdeps/generic/ldsodefs.h: Likewise.
354         * sysdeps/i386/dl-machine.h: Likewise.
355         * sysdeps/i386/sysdep.h: Likewise.
356         * sysdeps/i386/i686/memcmp.S: Likewise.
357         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
358         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
359         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
360
361         * Makerules: USE_TLS support is now default.
362         * tls.make.c: Likewise.
363         * csu/Versions: Likewise.
364         * csu/libc-start.c: Likewise.
365         * csu/libc-tls.c: Likewise.
366         * csu/version.c: Likewise.
367         * dlfcn/dlinfo.c: Likewise.
368         * elf/dl-addr.c: Likewise.
369         * elf/dl-cache.c: Likewise.
370         * elf/dl-close.c: Likewise.
371         * elf/dl-iteratephdr.c: Likewise.
372         * elf/dl-load.c: Likewise.
373         * elf/dl-lookup.c: Likewise.
374         * elf/dl-object.c: Likewise.
375         * elf/dl-open.c: Likewise.
376         * elf/dl-reloc.c: Likewise.
377         * elf/dl-support.c: Likewise.
378         * elf/dl-sym.c: Likewise.
379         * elf/dl-sysdep.c: Likewise.
380         * elf/dl-tls.c: Likewise.
381         * elf/ldconfig.c: Likewise.
382         * elf/rtld.c: Likewise.
383         * elf/tst-tls-dlinfo.c: Likewise.
384         * elf/tst-tls1.c: Likewise.
385         * elf/tst-tls10.h: Likewise.
386         * elf/tst-tls14.c: Likewise.
387         * elf/tst-tls2.c: Likewise.
388         * elf/tst-tls3.c: Likewise.
389         * elf/tst-tls4.c: Likewise.
390         * elf/tst-tls5.c: Likewise.
391         * elf/tst-tls6.c: Likewise.
392         * elf/tst-tls7.c: Likewise.
393         * elf/tst-tls8.c: Likewise.
394         * elf/tst-tls9.c: Likewise.
395         * elf/tst-tlsmod1.c: Likewise.
396         * elf/tst-tlsmod13.c: Likewise.
397         * elf/tst-tlsmod13a.c: Likewise.
398         * elf/tst-tlsmod14a.c: Likewise.
399         * elf/tst-tlsmod2.c: Likewise.
400         * elf/tst-tlsmod3.c: Likewise.
401         * elf/tst-tlsmod4.c: Likewise.
402         * elf/tst-tlsmod5.c: Likewise.
403         * elf/tst-tlsmod6.c: Likewise.
404         * include/errno.h: Likewise.
405         * include/link.h: Likewise.
406         * include/tls.h: Likewise.
407         * locale/global-locale.c: Likewise.
408         * locale/localeinfo.h: Likewise.
409         * malloc/arena.c: Likewise.
410         * malloc/hooks.c: Likewise.
411         * malloc/malloc.c: Likewise.
412         * resolv/Versions: Likewise.
413         * sysdeps/alpha/dl-machine.h: Likewise.
414         * sysdeps/alpha/libc-tls.c: Likewise.
415         * sysdeps/generic/ldsodefs.h: Likewise.
416         * sysdeps/generic/tls.h: Likewise.
417         * sysdeps/i386/dl-machine.h: Likewise.
418         * sysdeps/ia64/dl-machine.h: Likewise.
419         * sysdeps/ia64/libc-tls.c: Likewise.
420         * sysdeps/mach/hurd/fork.c: Likewise.
421         * sysdeps/mach/hurd/i386/tls.h: Likewise.
422         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
423         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
424         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
425         * sysdeps/s390/libc-tls.c: Likewise.
426         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
427         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
428         * sysdeps/sh/dl-machine.h: Likewise.
429         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
430         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
431         * sysdeps/x86_64/dl-machine.h: Likewise.
432
433         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
434         split out locking and parameter checking.
435         (_dl_close): Call _dl_close_worker after locking and checking.
436         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
437         _dl_close.
438         * elf/Makefile: Add rules to build and run tst-thrlock.
439         * elf/tst-thrlock.c:  New file.
440
441         [BZ #3426]
442         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
443         reality.
444
445         [BZ #3429]
446         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
447         we are sure we do not need it anymore for _dl_close.  Also move
448         the asserts inside the lock region.
449         Patch mostly by Suzuki <suzuki@in.ibm.com>.
450
451 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
452
453         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
454         argument.
455         (_dl_lookup_symbol_x): Adjust caller.
456
457         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
458         _ns_global_scope.
459         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
460
461         * elf/dl-libc.c: Revert l_scope name changes.
462         * elf/dl-load.c: Likewise.
463         * elf/dl-object.c: Likewise.
464         * elf/rtld.c: Likewise.
465         * elf/dl-close.c (_dl_close): Likewise.
466         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
467         always use __rtld_mrlock_{change,done}.  Always free old scope list
468         here if not l_scope_mem.
469         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
470         change.  Never free scope list here.  Just __rtld_mrlock_lock before
471         the lookup and __rtld_mrlock_unlock it after the lookup.
472         * elf/dl-sym.c: Likewise.
473         * include/link.h (struct r_scoperec): Remove.
474         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
475         with l_scope_mem and l_scoperec_lock with l_scope_lock.
476
477 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
478
479         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
480
481 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
482
483         * configure.in: Disable building profile libraries by default.
484
485 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
486
487         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
488         as signed longs, check for x_base + pos overflow.
489         * sunrpc/Makefile (tests): Add tst-xdrmem2.
490         * sunrpc/tst-xdrmem2.c: New test.
491
492 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
493
494         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
495         _dl_lookup_symbol_x code.
496
497 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
498
499         * elf/dl-runtime.c: Include sysdep-cancel.h.
500         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
501         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
502         instead of catomic_* macros.
503         * elf/dl-sym.c: Include sysdep-cancel.h.
504         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
505         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
506         * elf/dl-close.c: Include sysdep-cancel.h.
507         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
508         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
509         * elf/dl-open.c: Include sysdep-cancel.h.
510         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
511         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
512
513 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
514
515         [BZ #3313]
516         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
517         fastbin rather than end of fastbin array.
518
519 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
520
521         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
522         body macro.
523         * sysdeps/x86_64/bits/atomic.h
524         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
525         (catomic_decrement): Use correct body macro.
526
527 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
528
529         * include/atomic.h: Add a unique prefix to all local variables
530         in macros.
531         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
532
533 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
534
535         [BZ #3369]
536         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
537         and 7.
538
539 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
540
541         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
542
543 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
544
545         [BZ #3313]
546         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
547         determine highest fast bin to consolidate, always look into all of
548         them.
549         (do_check_malloc_state): Only require for empty bins for large
550         sizes in main arena.
551
552         * libio/stdio.h: Add more __wur attributes.
553
554         * elf/dl-minimal.c (realloc): Optimize last patch.
555
556 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
557
558         [BZ #3352]
559         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
560         and use memcpy() if it does.
561
562 2006-11-12  Andreas Jaeger  <aj@suse.de>
563
564         [BZ #2510]
565         * manual/search.texi (Hash Search Function): Clarify.
566         (Array Search Function): Clarify.
567
568 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
569
570         [BZ #2830]
571         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
572         shifting.
573         * math/atest-exp2.c (read_mpn_hex): Likewise.
574         * math/atest-sincos.c (main): Likewise.
575
576 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
577
578         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
579         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
580         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
581         version GLIBC_2.6.
582         * Versions.def: Add GLIBC_2.6 for libc.
583
584         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
585
586         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
587
588 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
589
590         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
591
592         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
593
594         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
595         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
596
597 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
598
599         * include/atomic.c: Define catomic_* operations.
600         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
601         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
602         * malloc/memusage.c: Likewise.
603         * gmon/mcount.c: Likewise.
604         * elf/dl-close.c: Likewise.
605         * elf/dl-open.c: Likewise.
606         * elf/dl-profile.c: Likewise.
607         * elf/dl-sym.c: Likewise.
608         * elf/dl-runtime.c: Likewise.
609         * elf/dl-fptr.c: Likewise.
610         * resolv/res_libc.c: Likewise.
611
612 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
613
614         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
615         components which lack them.
616
617         * nis/nis_subr.c (nis_getnames): Make sure that we always return
618         at least one entry consisting of the parameter concatenated with
619         the domain.
620
621 2006-10-10  Roland McGrath  <roland@frob.com>
622
623         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
624         * sysdeps/mach/hurd/futimes.c: Likewise.
625         * sysdeps/mach/hurd/lutimes.c: Likewise.
626
627 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
628             Jakub Jelinek  <jakub@redhat.com>
629
630         Implement reference counting of scope records.
631         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
632         from the list in objects which remain.  Always allocate new scope
633         record.
634         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
635         don't resize, allocate a new one.
636         * elf/dl-runtime.c: Update reference counters before using a scope
637         array.
638         * elf/dl-sym.c: Likewise.
639         * elf/dl-libc.c: Adjust for l_scope name change.
640         * elf/dl-load.c: Likewise.
641         * elf/dl-object.c: Likewise.
642         * elf/rtld.c: Likewise.
643         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
644         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
645         Add l_scoperec_lock.
646         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
647         * sysdeps/generic/rtld-lowlevel.h: New file.
648
649         * include/atomic.h: Rename atomic_and to atomic_and_val and
650         atomic_or to atomic_or_val.  Define new macros atomic_and and
651         atomic_or which do not return values.
652         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
653         Various cleanups.
654         * sysdeps/i386/i486/bits/atomic.h: Likewise.
655
656         * po/sv.po: Update from translation team.
657
658 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
659
660         * Versions.def: Add GLIBC_2.6 to libpthread.
661
662         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
663         (versioned_symbol): Likewise.
664         (compat_symbol): Likewise.
665
666         * po/tr.po: Update from translation team.
667
668 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
669
670         * nis/Banner: Removed.  It's been integral part forever and the
671         author info is incomplete anyway.
672         * libio/Banner: Likewise.
673
674         * nis/nis_table.c (nis_list): If __follow_path fails in the new
675         code, make sure the nis_freeresult call doesn't crash and that the
676         result is reported correctly.
677
678 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
679
680         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
681         when callback is NULL.
682
683         * nis/Versions (libnss_nisplus): Add
684         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
685         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
686         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
687         _nss_create_tablename): Rename to...
688         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
689         ... these.  No longer static.
690         (internal_setgrent): Adjust users.
691         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
692         Don't use locking around _nss_grp_create_tablename call.
693         * nis/nss_nisplus/nisplus-initgroups.c: New file.
694
695 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
696
697         * version.h (VERSION): Bump to 2.5.90 for new development tree.
698
699 2006-10-06  Andreas Jaeger  <aj@suse.de>
700
701         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
702
703 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
704
705         * po/pl.po: Update from translation team.
706
707         * nscd/nscd.c (main): Fix typo in message.
708         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
709
710 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
711
712         [BZ #3291]
713         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
714         errno.h, signal.h, unistd.h and sysdep-cancel.h.
715         (__sigprocmask): Define.
716
717 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
718
719         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
720         used.
721
722 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
723
724         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
725         in oldtotal and newtotal calculation.
726         * nscd/nscd-client.h (struct mapped_database): Add datasize
727         field.
728         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
729         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
730         increased.
731         (__nscd_cache_search): Add checks to make sure we never reference
732         data beyond the current mapping.
733
734 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
735
736         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
737         variables const to avoid compiler warnings.
738
739         * io/fts.c (fts_close): Remove redundant checks.
740         (fts_build): Likewise.
741         (fts_palloc): Likewise.
742
743         * manual/message.texi (Advanced gettext functions,
744         Using gettextized software): Fix typos.
745
746 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
747
748         * posix/glob.c (glob_in_dir): Add some comments and asserts to
749         explain why there are no leaks.
750
751 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
752
753         * libio/wmemstream.c: Include <wchar.h>.
754         * libio/bug-wmemstream1.c: Likewise.
755         * libio/tst-wmemstream1.c: Likewise.
756         * libio/tst-wmemstream2.c: Likewise.
757
758         * version.h (RELEASE): Bump to 2.5.
759         * README: Regenerated.
760
761         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
762
763         [BZ #3273]
764         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
765         found no group members.
766         Patch by Petr Baudis.
767
768 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
769
770         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
771         assert bootstrap_map.l_tls_modid is zero.
772         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
773         if USE___THREAD.
774
775 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
776
777         * libio/stdio.h: Move open_wmemstream prototype to ...
778         * wcsmbs/wchar.h: ... here.
779
780 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
781
782         [BZ #3252]
783         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
784         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
785         __{,l}chown to handle the rest.
786         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
787         fchownat syscall and __ASSUME_32BITUIDS case inline, call
788         __{,l}chown to handle the rest.
789         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
790         i386/fchownat.c.
791         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
792         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
793
794         [BZ #3253]
795         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
796         time, rather allocate increasingly bigger arrays of pointers, if
797         possible with alloca, if too large with malloc.
798
799 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
800
801         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
802
803         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
804
805 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
806
807         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
808         home addresses.
809         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
810         IFA_F_HOMEADDRESS flag for interfaces.
811         * include/ifaddrs.h (struct in6addrinfo): Define
812         in6ai_homeaddress.
813
814 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
815
816         [BZ #3225]
817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
818         PTR_DEMANGLE3): Define.
819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
820         PTR_DEMANGLE3): Likewise.
821         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
822         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
823         Likewise.
824         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
825
826 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
827
828         * po/libc.pot: Regenerated.
829         * po/be.po: Updated.
830         * po/ca.po: Likewise.
831         * po/cs.po: Likewise.
832         * po/da.po: Likewise.
833         * po/de.po: Likewise.
834         * po/el.po: Likewise.
835         * po/en_GB.po: Likewise.
836         * po/es.po: Likewise.
837         * po/fi.po: Likewise.
838         * po/fr.po: Likewise.
839         * po/gl.po: Likewise.
840         * po/hr.po: Likewise.
841         * po/hu.po: Likewise.
842         * po/ja.po: Likewise.
843         * po/ko.po: Likewise.
844         * po/nb.po: Likewise.
845         * po/nl.po: Likewise.
846         * po/pl.po: Likewise.
847         * po/pt_BR.po: Likewise.
848         * po/ru.po: Likewise.
849         * po/rw.po: Likewise.
850         * po/sk.po: Likewise.
851         * po/sv.po: Likewise.
852         * po/tr.po: Likewise.
853         * po/zh_CN.po: Likewise.
854         * po/zh_TW.po: Likewise.
855
856         [BZ #3137]
857         * iconv/iconv_prog.c (main): Fix spelling in error message.
858         * iconv/iconvconfig.c (main): Likewise.
859         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
860         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
861         * locale/programs/localedef.c (main): Likewise.
862         * locale/programs/repertoire.c (repertoire_read): Likewise.
863         * timezone/zdump.c (main): Likewise.
864         * nscd/connections.c (handle_request): Fix spelling in log message.
865         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
866
867 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
868
869         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
870         interfaces.
871
872 2006-09-20  Andreas Jaeger  <aj@suse.de>
873
874         * math/libm-test.inc (lrint_test_upward): Fix typo.
875
876 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
877
878         [BZ #2592]
879         * math/libm-test.inc (lrint_test_tonearest): New function.
880         (lrint_test_towardzero): New function.
881         (lrint_test_downward): New function.
882         (lrint_test_upward): New function.
883         (main): Run these new tests.
884         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
885         of values near to 0.
886         (two52): Use double not long double.
887         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
888         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
889         (two23): Use float not double.
890         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
891         (two23): Use float not double.
892         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
893         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
894         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
895         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
896
897 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
898
899         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
900         Cast sp to unsigned long to avoid compiler warning.
901         Use __makecontext_ret function instead of a trampoline on the stack.
902         (__makecontext_ret): New function.
903         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
904
905 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
906
907         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
908         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
909         bits.
910
911 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
912
913         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
914         sure no reference to the unloaded map's search list remains in the
915         dependency's scope.
916
917 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
918
919         * elf/Makefile: Add rules to build and run unload7 test.
920         * elf/unload7.c: New test.
921         * elf/unload7mod1.c: New file.
922         * elf/unload7mod2.c: New file.
923
924 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
925
926         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
927         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
928         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
929         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
930         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
931         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
932         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
933         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
934         PTRACE_GETEVENTMSG): Likewise.
935         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
936         values.
937
938 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
939
940         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
941         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
942         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
943         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
944
945 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
946
947         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
948         write '\0' to the fd.
949         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
950         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
951         Change regs to unsigned long pointer from unsigned int, fix fscr
952         offset.
953
954 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
955
956         * io/Makefile (CFLAGS-fstatat.c): Set.
957         (CFLAGS-fstatat64.c): Likewise.
958         (CFLAGS-mknodat.c): Likewise.
959
960         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
961         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
962         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
963         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
964
965 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
966             Steven Munroe  <sjmunroe@us.ibm.com>
967
968         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
969         names to the beginning.  Rename "cell" to "cellbe".
970         (_dl_powerpc_platforms): New.
971         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
972         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
973         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
974         (_DL_HWCAP_PLATFORM): Define to new mask.
975         (_dl_platform_string, _dl_string_platform): New functions.
976         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
977         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
978
979 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
980
981         [BZ #2526]
982         * README.libm: Fix a thinko in sqrt algorithm description.
983
984         [BZ #3143]
985         * manual/string.texi (argz_delete): Fix prototype.
986         Patch by <alpt@freaknet.org>.
987
988 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
989
990         [BZ #3138]
991         * io/test-lfs.c (do_prepare): Give name_len type size_t.
992         * io/tst-fcntl.c (do_prepare): Likewise.
993         * posix/tst-exec.c (do_prepare): Likewise.
994         * posix/tst-preadwrite.c (do_prepare): Likewise.
995         * posix/tst-spawn.c (do_prepare): Likewise.
996         * posix/tst-truncate.c (do_prepare): Likewise.
997         * rt/tst-aio.c (do_prepare): Likewise.
998         * rt/tst-aio64.c (do_prepare): Likewise.
999         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1000         size_t.
1001
1002 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
1003
1004         [BZ #2821]
1005         * time/mktime.c (guess_time_tm): Fix overflow detection.
1006         * time/Makefile (tests): Add bug-mktime1.
1007         * time/bug-mktime1.c: New file.
1008
1009         [BZ #3189, #3188]
1010         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1011         (mremap): Likewise.
1012
1013 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
1014
1015         [BZ #1006]
1016         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1017         Ensure relocation doesn't clobber any bits outside of the
1018         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1019         R_SPARC_HI22 and R_SPARC_H44.
1020
1021         [BZ #2775]
1022         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1023         (long) (MINSIZE + nb - old_size) is positive.
1024
1025         * malloc/arena.c (grow_heap): When growing bail even if new_size
1026         is negative.
1027
1028         [BZ #3155]
1029         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1030         stack below r1.
1031
1032 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1033
1034         * posix/regex_internal.c (re_string_reconstruct): Handle
1035         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1036         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1037         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1038         re_string_context_at.
1039         * posix/Makefile: Add rules to build and run bug-regex26 test.
1040         * posix/bug-regex26.c: New test.
1041
1042         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1043         rather than col_sym_free.  Move seqp declaration earlier.
1044
1045         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1046
1047 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
1048
1049         * nscd/initgrcache.c (addinitgroupsX): Move any_success
1050         decl before first goto out.
1051
1052 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1053
1054         * Makerules (shlib.lds): If have-hash-style, put .hash section
1055         at the end of the RO segment.
1056
1057 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
1058
1059         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1060         style hash table format is used.
1061
1062 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1063
1064         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1065         randomization rather than before.
1066         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1067
1068 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
1069
1070         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1071
1072         * malloc/malloc.c (_int_malloc): Use full list insert and not
1073         shortcut which assumes the list is empty for large requests
1074         too.
1075
1076         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1077
1078 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
1079
1080         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1081         and offout arguments to the prototype.
1082         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1083         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1084         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1085         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1086         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1087         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1088         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1089         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1090
1091 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
1092
1093         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1094
1095         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1096         dlopen parameters.
1097
1098 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
1099
1100         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1101         only if herrno is NETDB_INTERNAL.  Handle errors other than
1102         ERANGE outside of the loops, handle TRY_AGAIN.
1103
1104         * locale/programs/ld-ctype.c (translit_flatten): Issue error
1105         if other's ctype category was missing.
1106         * locale/programs/ld-collate.c (collate_read): Return if
1107         copy_locale's collate category is missing.
1108
1109 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
1110
1111         [BZ #2684]
1112         * malloc/malloc.c (public_rEALLOc): Try harder by using other
1113         arenas if allocation failed.
1114         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1115
1116 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
1117
1118         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1119         waste bins[0..1].
1120         (malloc_state): Reduce bins size by 2.
1121         (_int_malloc): Fix test for large enough buffer for early termination.
1122         When no unsorted block matches perfectly and an exiting block has
1123         to be split, use full list insert and not shortcut which assumes
1124         the list is empty.
1125
1126         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1127         failure.
1128
1129 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1130
1131         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1132         do anything.
1133
1134         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1135         symbol require exact match (these are PLTs).
1136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1137         (_dl_ppc64_addr_sym_match): Likewise.
1138
1139         [BZ #2683]
1140         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1141         If symbol has a value use it.
1142         * elf/tst-dladdr1.c: New file.
1143         * elf/Makefile: Add rules to build and run tst-addr1.
1144
1145 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
1146
1147         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1148         keeps failing and heap growth or new heap creation isn't
1149         successful either.
1150         * malloc/tst-malloc.c (main): Add new tests.
1151
1152 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1153
1154         [BZ #2734]
1155         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1156         as in the x86-64 code to use bswap.
1157
1158 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
1159
1160         [BZ #2680]
1161         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1162         __USE_UNIX98.
1163         * posix/bits/unistd.h: Likewise.
1164
1165 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
1166
1167         [BZ #2751]
1168         * string/strchr.c: Add cast to avoid warning.
1169
1170 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1171
1172         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1173         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
1174         limit is needed to avoid the exploding of the address space
1175         requirement for secondary heaps.
1176         * malloc/arena.c (HEAP_MAX_SIZE): Define using
1177         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1178
1179 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
1180
1181         [BZ #3018]
1182         * Makerules (depfiles): Handle extra-test-objs the same as
1183         extra-objs.
1184         (common-mostlyclean): Likewise.
1185         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1186         instead.
1187         * elf/Makefile (extra-objs): Likewise.
1188         * stdlib/Makefile (extra-objs): Likewise.
1189
1190 2006-08-14  Eric Blake  <ebb9@byu.net>
1191
1192         [BZ #3044]
1193         * misc/error.h: Assume C89 or better.
1194         * misc/error.c: Likewise.
1195
1196 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1197
1198         [BZ #3040]
1199         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1200         __ASSUME_ATFCTS is defined.
1201
1202 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
1203
1204         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1205         to sort in each call.
1206
1207         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1208         is empty simply return and use next service.
1209         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1210
1211         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
1212         tells us when not finding a charmap file is an error.
1213         * locale/programs/charmap.h: Adjust charmap_read prototype.
1214         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1215         cannot find a charmap.
1216         * locale/programs/localedef.c (main): Adjust charmap_read call.
1217
1218 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1219
1220         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1221         sysdeps/posix/pause.c implementation instead.
1222
1223 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
1224
1225         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1226         to EPERM.
1227
1228 2006-08-13  Andreas Schwab  <schwab@suse.de>
1229
1230         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1231         Don't clobber caller's LRSAVE.
1232         (_dl_prof_resolve): Likewise.
1233
1234 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
1235
1236         [BZ #1996]
1237         * libio/memstream.c (open_memstream): Allocate initial buffer with
1238         calloc.
1239         * libio/wmemstream.c (open_wmemstream): Likewise.
1240         * libio/strops.c: Pretty printing.
1241         (_IO_str_overflow): Clear uninitialized part of the new buffer.
1242         (enlarge_userbuf): New function.
1243         (_IO_str_seekoff): Call it if seek position is larger than current
1244         buffer.
1245         * libio/wstrops.c: Likewise.
1246         * libio/vasprintf.c: Add comment as to why we do not have to use
1247         calloc instead of malloc to allocate initial buffer.
1248         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1249         * libio/bug-memstream1.c: New file.
1250         * libio/bug-wmemstream1.c: New file.
1251
1252 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1253
1254         * libio/wstrops.c: Remove dead macro definitions and comments.
1255         * libio/strops.c: Likewise.
1256
1257         [BZ #2764]
1258         * login/utmpname.c (__utmpname): Remove unnecessary test.
1259
1260 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
1261
1262         [BZ #2832]
1263         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1264         0s from integers.
1265
1266 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1267
1268         [BZ #2987]
1269         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1270         for CPU clocks.
1271         * sysdeps/unix/clock_settime.c: Add support for platform-specific
1272         setting of CPU clocks.
1273
1274 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         [BZ #2841]
1277         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1278         since C99 requires the result to promote to 'int' when uint_least8_t
1279         and uint_least16_t promote to 'int'.
1280
1281 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
1282
1283         [BZ #3013]
1284         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1285         lenght of one output field, correct bitmask creation.
1286         * locale/programs/ld-time.c: Add alignment.
1287
1288         [BZ #2997]
1289         * misc/error.c: Add space between program name and message if file
1290         name is missing.
1291
1292 2006-08-03  Eric Blake  <ebb9@byu.net>
1293
1294         [BZ #2998]
1295         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1296
1297 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * malloc/memusagestat.c: Silence warnings.
1300
1301         * malloc/malloc.c: Dynamically size mmap treshold if the program
1302         frees mmaped blocks.
1303         Patch by Valerie Henson and Arjan van de Ven.
1304
1305 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
1306
1307         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1308         __USE_GNU.
1309
1310         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1311         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1312         (DEF): Don't put the var into .gnu.linkonce.r.* section.
1313         Only provide var definitions in strtol_l (or for *ull*
1314         in strtoll_l).
1315
1316         * stdio-common/bug16.c (tests): New array.
1317         (do_tests): Allow the first hexadecimal digit
1318         to be 1, 2, 4 or 8.  Do 3 additional tests.
1319
1320         * sysdeps/s390/fpu/libm-test-ulps: Update.
1321
1322         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1323         fchownat syscall if available.
1324         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1325         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1326         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1327
1328 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1329
1330         * nis/nis_xdr.c: Avoid some function calls.
1331
1332 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
1333             Ulrich Drepper  <drepper@redhat.com>
1334
1335         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1336         short cut if only one name component is stripped away.
1337
1338 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1339
1340         * nis/nis_call.c: Minor cleanups throughout.
1341         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1342         (first_shoot): Add search_parent_first parameter.  Only if it is set
1343         search parent server first.
1344         If directory for table found through cold start cache is not the same
1345         as referenced in the cache, don't use it.
1346         (__nisfind_server): Take additional parameter.  Pass it on to
1347         first_shoot.
1348         (__prepare_niscall): Adjust __nisfind_server call.
1349         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1350         * nis/nis_table.c: Adjust __nisfind_server call.
1351         * nis/nis_lookup.c: Likewise.
1352         (nis_lookup): Don't loop endlessly if name is reduced to ".".
1353
1354 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
1355
1356         [BZ #2182]
1357         * math/s_cacosh.c: Return values from positive branch.
1358         * math/s_cacoshf.c: Likewise.
1359         * math/s_cacoshl.c: Likewise.
1360
1361         [BZ #2883]
1362         * sysvipc/sys/msg.h: Change return value to ssize_t.
1363         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1364         * sysvipc/msgrcv.c: Likewise.
1365         * include/sys/msg.h: Likewise.
1366
1367         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1368         test introduced in patch for bz #661.
1369         (getgrouplist): Simplify code a bit.  Don't allocate one additional
1370         element for NEWGROUPS.
1371
1372         [BZ #2908]
1373         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1374         'f', use '1' as leading digit not '\1'.
1375         * stdio-common/Makefile (tests): Add bug16.
1376         * stdio-common/bug16.c: New file.
1377
1378         [BZ #2914]
1379         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1380         and don't try to open it.  The patch introducing the macro
1381         contained a bug and used the same file name as the new file
1382         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
1383         this out completely.
1384
1385         [BZ #2926]
1386         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1387         Patch by Jerry James <Jerry.James@usu.edu>.
1388
1389         * rt/Makefile (tests): Add tst-clock2.
1390         * rt/tst-clock2.c: New file.
1391
1392         [BZ #2978]
1393         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1394         function and its parameters and pass it to new thread.
1395         (__gai_notify): Add support for alternative waiting for completion.
1396         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1397         waiting for completion.
1398         * resolv/getaddrinfo_a.c: Likewise.
1399         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1400         waiting for completion is used.
1401         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1402         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1403         * resolv/gai_error.c: Likewise.
1404         * resolv/gai_sigqueue.c: Likewise.
1405
1406 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
1407
1408         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1409         errno to EBADF and return MACH_PORT_NULL.
1410
1411 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
1412
1413         [BZ #2980]
1414         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1415
1416 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
1417
1418         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1419         walk them instead of the symbol table.
1420
1421 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
1422
1423         [BZ #2098]
1424         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1425         status of NSS calls, not the number of returned entries.
1426
1427         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1428         request_key, keyctl.
1429
1430 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1431
1432         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1433
1434 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
1435
1436         * elf/tst-auditmod1.c: Fix typo in #error.
1437
1438 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1439
1440         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1441
1442         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1443
1444 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1445
1446         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1447         that the directory is empty even on non-POSIX filesystems.
1448
1449 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1450
1451         * elf/dl-open.c (dl_open_worker): Add branch prediction.
1452
1453         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1454         the backend NSS module.  If backend setgrent call failed, don't have
1455         internal_setgrent fail.  Just remember this until it is needed.
1456         * nis/nss_compat/compat-pwd.c: Likewise.
1457         * nis/nss_compat/compat-spwd.c: Likewise.
1458
1459 2006-07-30  Roland McGrath  <roland@redhat.com>
1460
1461         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1462         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1463         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1464         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1465
1466         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1467         (nanosleep_not_cancel): New macro.
1468         (sigsuspend_not_cancel): new macro.
1469         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1470         (do_sigsuspend): Define as inline.
1471         (__sigsuspend): Always use do_sigsuspend.
1472         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
1473         * include/signal.h: Declare __sigsuspend_nocancel.
1474         * sysdeps/posix/pause.c
1475         [! NO_CANCELLATION] (__pause_nocancel): New function.
1476
1477         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
1478         * include/time.h (__nanosleep_nocancel): Likewise.
1479
1480 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
1481
1482         * locale/programs/localedef.c (add_to_readlist): Rename local
1483         variables to avoid confusion.
1484
1485         * locale/programs/charmap.c (charmap_read): Emit error message if
1486         charmap couldn't be found or read.
1487
1488 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
1489
1490         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1491         __ASSUME_FUTEX_LOCK_PI.
1492         * include/time.h: Declare __nanosleep_nocancel.
1493         * include/unistd.h: Declare __pause_nocancel.
1494
1495         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
1496         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
1497         get the __stack_chk_fail_local definition when it's needed.
1498
1499 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
1500
1501         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
1502         * dlfcn/bug-atexit3.c: New file.
1503         * dlfcn/bug-atexit3-lib.cc: New file.
1504
1505         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
1506         used when the namespace is not the base namespace.
1507
1508 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
1509
1510         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
1511         (__new_exitfn): Bump it in every successful call.
1512         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
1513         more exit handlers, call them right away.
1514         * stdlib/exit.h: Declare __new_exitfn_called.
1515
1516 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
1517
1518         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
1519         calling registered handler.
1520
1521         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
1522         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1523         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1524         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1525         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1526         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1527         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1528         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1529
1530 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
1531
1532         * elf/dl-lookup.c (dl_new_hash): New functions.
1533         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
1534         value here.  Compute new-style hash value.  Pass new hash value
1535         and reference to variable with the old value to do_lookup_x.
1536         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
1537         old-style hash table.
1538         (_dl_debug_bindings): Pass new hash value and reference to variable
1539         with the old value to do_lookup_x.
1540         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
1541         new-style hash value and change old-style hash value parameter to
1542         be a reference.  Reoganize functions to determine whether
1543         new-style hash table is available.  Only fall back on old-style
1544         table.  If old-style hash value is needed, compute it here.
1545         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
1546         entry.
1547         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
1548         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
1549         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
1550         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
1551         * Makeconfig: If linker supports --hash-style option add it to all
1552         linker command lines to build DSOs.
1553         * config.make.in: Define have-hash-style.
1554         * configure.in: Test whether linker supports --hash-style option.
1555
1556         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
1557         * sysdeps/generic/ldsodefs.h: Adjust prototype.
1558
1559 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
1560
1561         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
1562         auditing.
1563
1564         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
1565         RPATH of main map twice.
1566
1567 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
1568
1569         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
1570         look further, return original strings.
1571         (_nl_find_msg): Do not return found translation if the conversion
1572         failed.  Either signal the string is unusable or that something went
1573         wrong and the original should be used.
1574
1575 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
1576
1577         * string/_strerror.c (__strerror_r): Add __builtin_expect.
1578
1579 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
1580
1581         [BZ #2766]
1582         * misc/insremque.c (insque): Handle prev == NULL.
1583         * misc/Makefile (tests): Add tst-insremque.
1584         * misc/tst-insremque.c: New test.
1585
1586 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
1587
1588         [BZ #2792]
1589         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
1590         conflict with DL_DST_REQUIRED.
1591
1592 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
1593
1594         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
1595         match what Solaris does.
1596
1597 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
1598
1599         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
1600         local_setegid instead of seteuid and setegid.
1601         * sysdeps/generic/local-setxid.h: New file.
1602         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
1603
1604         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
1605
1606         * string/Makefile (tests): Add bug-envz1.
1607         * string/bug-envz1.c: New file.
1608
1609 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
1610
1611         * posix/regex_internal.c (re_string_skip_chars): If no character has
1612         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
1613         to the byte which couldn't be converted.
1614         (re_string_reconstruct): Don't clear valid_raw_len before calling
1615         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
1616         tip_context using re_string_context_at.
1617         * posix/Makefile: Add rules to build and run bug-regex25 test.
1618         * posix/bug-regex25.c: New test.
1619
1620 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
1621
1622         [BZ #2703]
1623         * string/envz.c (envz_strip): Correct erroneously reversed src
1624         and dest parameters to memmove() invocation.
1625
1626 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
1627
1628         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
1629         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
1630         to make sure the database has been already invalidated.
1631         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
1632         after the cache has been invalidated.  Use pthread_mutex_lock rather
1633         than pthread_mutex_trylock if fd != -1.
1634         * nscd/connections.c (invalidate_cache): Add fd argument, write
1635         response to fd if not calling prune_cache, pass fd to prune_cache.
1636         (handle_request): Adjust invalidate_cache caller.
1637         (nscd_run): Pass -1 as fd to prune_cache.
1638
1639 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
1640
1641         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
1642         the correct place.
1643
1644 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * nscd/nscd.h (struct database_dyn): Add prunelock field.
1647         * nscd/cache.c (prune_cache): Take prunelock before starting the
1648         work.  Just return in case it is already taken.
1649         * nscd/connections.c (dbs): Initialize .prunelock.
1650
1651 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
1652
1653         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
1654         copying.  No need to allocate new array for group members.  Just
1655         move the pointers and update the size.
1656
1657         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
1658         Avoid memory leak in case realloc fails.  Simplification for
1659         better code generation.
1660
1661         Avoid deprecation warning because of libc_hidden_proto for
1662         inet6_option_alloc.
1663         * inet/inet6_option.c (option_alloc): Renamed from
1664         inet6_option_alloc.  Made static.
1665         (inet6_option_alloc): Now a simple wrapper around option_alloc.
1666         (inet6_option_append): Call option_alloc.
1667         * include/netinet/in.h: Remove libc_hidden_proto for
1668         inet6_option_alloc.
1669
1670         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
1671         for cleanup when cb!=NULL [Coverity CID 233].
1672
1673 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
1674
1675         [BZ #2693]
1676         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
1677         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
1678         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
1679         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
1680         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
1681         and inet6_rth_getaddr.
1682         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
1683         array.
1684         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
1685         Mark inet6_option_* interfaces as deprecated.
1686         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
1687         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
1688         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
1689         inet6_rth_segments, and inet6_rth_getaddr.
1690         * inet/inet6_opt.c: New file.
1691         * inet/inet6_rth.c: New file.
1692
1693         * inet/netinet/icmp6.h: Pretty printing.
1694
1695         [BZ #2683]
1696         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
1697
1698 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
1699
1700         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
1701         doing it all here.  When server does not know the answer do not
1702         fail immediate, try parent first.
1703
1704         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
1705         overflow test.
1706
1707 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
1708
1709         * nis/nis_call.c (__prepare_niscall): New function.  Split out
1710         from __do_niscall.
1711         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
1712         and exported.
1713         (__follow_path): New function.  Split out from nis_list.
1714         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
1715         _xdr_nis_result.
1716         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
1717         _xdr_nis_result.
1718         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
1719         and __follow_path.
1720         * nis/Versions: Export __prepare_niscall, __create_ib_request,
1721         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
1722         from libnsl for version GLIBC_PRIVATE.
1723         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
1724         Remove entry parameter from _nss_nisplus_parse_pwent and
1725         _nss_nisplus_parse_grent.
1726         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1727         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
1728         again.  Rewrite getpwent handling to not use nis_first_entry and
1729         nis_next_entry.  Roll out own niscall handling.
1730         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1731
1732         * sunrpc/xdr_rec.c: Fix typo in comment.
1733
1734 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
1735
1736         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
1737         handling.
1738
1739         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
1740         to allocate memory for my_pollfd.  Better initialization of
1741         cb_is_running.  Use TEMP_FAILURE_RETRY.
1742
1743         * malloc/memusage.sh (memusageso): Add quotes.
1744         (memusagestat): Likewise.
1745         * debug/xtrace.sh (pcprofileso): Likewise.
1746         (pcprofiledump): Likewise.
1747         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
1748         replacement.
1749         * malloc/Makefile ($(objpfx)memusage): Likewise.
1750
1751         * nis/nis_callback.c (__nis_create_callback): Calls to
1752         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
1753         asprintf call fails.
1754
1755         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
1756         no uninitialized memory is passed to sendto.
1757
1758 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
1759
1760         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
1761         of snprintf+strdup.  Handle OOM.
1762         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
1763         cb->serv together.  Remove now obsolete free calls.
1764         (__nis_destroy_callback): Remove now obsolete free call.
1765
1766 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
1767
1768         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
1769         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
1770         and ULA respectively). Set precedence for IPv4 address to 10 as
1771         defined in RFC3484 for preferring IPv6.
1772         * posix/gai.conf: Update to match the new default tables.
1773
1774 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
1775
1776         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
1777         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
1778         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
1779         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
1780
1781         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
1782         Removed.
1783         (init_nss_interface): Remove initialization of these variables.
1784
1785 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
1786
1787         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
1788         nis_free_directory forward to avoid duplication.
1789
1790 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
1791
1792         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
1793         rec_dirsearch returning NULL.
1794         (first_shoot): Handle __nis_finddirectory returning NULL.
1795         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
1796
1797         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
1798         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
1799
1800 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
1801
1802         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
1803         pid changed.
1804
1805 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
1806
1807         * include/rpc/pmap_prot.h: Mark all functions as hidden.
1808
1809         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
1810         * nscd/nscd_getgr_r.c: Likewise.
1811
1812         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
1813
1814         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
1815         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
1816
1817         * stdlib/longlong.h (__clz_tab): Mark as hidden.
1818
1819         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
1820
1821         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
1822
1823         * include/rpc/auth.h: Mark xdr_des_block_internal and
1824         xdr_opaque_auth_internal as hidden.
1825
1826         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
1827         hidden.
1828
1829         * include/rpc/xdr.h: Mark all _internal functions as hidden.
1830
1831         * misc/getusershell.c (okshells): Don't use static initializers,
1832         do it dynamically.
1833
1834         * stdlib/fmtmsg.c (keywords): Change type of len element to
1835         uint32_t to not waste space on 64bit machines.
1836
1837         * locale/setlocale.c: Change _nl_category_names into a string.
1838         Add new _nl_category_name_idxs.  Change all users.
1839         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
1840         Declare _nl_category_name_idxs.
1841         * locale/findlocale.c: Adjust for _nl_category_names change.
1842         * locale/loadlocale.c: Likewise.
1843         * locale/newlocale.c: Likewise.
1844         * intl/dcigettext.c: Likewise.
1845
1846         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
1847         (add_alias2): ...here.  New function.
1848         (__gconv_read_conf): Simplify builtin alias handling.
1849         (builtin_aliases): Convert to string to avoid relocations.
1850         * iconv/gconv_builtin.h: Add comment about correct formatting.
1851
1852 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1853
1854         * resolv/res_debug.c (loc_ntoa): Make error const.
1855
1856 2006-05-14  Andreas Schwab  <schwab@suse.de>
1857
1858         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
1859
1860 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
1861
1862         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
1863         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
1864         sizeof (cpu_set_t).
1865
1866 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
1867
1868         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
1869
1870         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
1871
1872         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
1873         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
1874
1875         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
1876         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
1877
1878         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
1879         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
1880         xdr_cback_data.
1881
1882         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
1883         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
1884         xdr_ypupdate_args.
1885
1886         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
1887         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
1888
1889         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
1890         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
1891
1892         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
1893         * include/rpcsvc/nis_callback.h: New file.
1894
1895         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
1896         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
1897
1898         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
1899         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
1900
1901         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
1902         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
1903
1904         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
1905         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
1906
1907         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
1908         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
1909         xdr_ypdelete_args.
1910
1911         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
1912         __BEGIN_DECLS and __END_DECLS, the header is not installed.
1913
1914         * nis/nis_error.c: Remove table of strings.  Use position
1915         independent mechanism.
1916         * nis/nis_error.h: New file.
1917
1918 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
1919
1920         * locale/programs/ld-time.c (time_finish): If wide era name or
1921         format aren't provided, set both wname and wformat to L"".
1922
1923 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
1924
1925         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
1926         results if the call was succesful.
1927
1928         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
1929
1930         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
1931         as hidden.
1932
1933 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
1934
1935         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
1936
1937 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
1938
1939         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
1940         caller makes sure this is not the case.
1941         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
1942
1943 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
1944
1945         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
1946         calls.
1947
1948         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
1949         [Coverity CID 229, 230]
1950
1951         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
1952         DGETTEXT calls.
1953         (hol_help): Likewise.  [Coverity CID 226, 227]
1954
1955         * string/argz-replace.c (__argz_replace): Unconditionally call
1956         free on SRC.  [Coverity CID 225]
1957
1958         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
1959         the return value of __nis_default_owner and __nis_default_group,
1960         it has been especially allocated.  [Coverity CID 224]
1961
1962         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
1963         searchgroup and searchowner.  Significantly simplified.
1964         (__nis_default_owner): Remove duplication.  Do not locally copy the
1965         string before duplicating it.
1966         (__nis_default_group): Likewise.
1967
1968         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
1969         we must clear the variable before calling __nisfind_server.
1970
1971         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
1972         nis_getnames.  [Coverity CID 223]
1973
1974         * locale/programs/locfile.c (locfile_read): Use alloca instead of
1975         xmalloc to allocate local repertoire name.  [Coverity CID 222]
1976
1977         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
1978         allocate memory for the input to add_bytes.  [Coverity CID 221]
1979
1980         * posix/wordexp.c (w_addword): Free word if realloc fails and it
1981         was allocated here.  [Coverity CID 219, 220]
1982
1983         * posix/getconf.c (print_all): Free confstr data after printing.
1984         [Coverity CID 218]
1985
1986         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
1987         list allocation fails.  [Coverity CID 215]
1988
1989         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
1990         [Coverity CID 213]
1991
1992         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
1993         string is NULL.  [Coverity CID 212]
1994         * argp/Makefile: Add rules to build and run bug-argp1.
1995         * argp/bug-argp1.c: New file.
1996
1997         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
1998         end of string.
1999         * stdlib/canonicalize.c (__realpath): Likewise.
2000
2001         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2002         pointer.  [Coverity CID 206]
2003
2004         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2005         in statically linked code.
2006         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2007         statically built code, be prepared to have no link map.
2008         [Coverity CID 205]
2009
2010         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2011         dgettext calls. [Coverity CID 204]
2012
2013         * argp/argp-help.c (struct uparams): Remove valid member.  Change
2014         the one user.
2015         (uparam_names): Reduce size.  Avoid relative relocations.
2016         Moved to read-only segment.
2017         (fill_in_uparams): Update for new layout.
2018
2019         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2020         assumed to always be != NULL. [Coverity CID 202]
2021
2022         * argp/argp-help.c (hol_entry_help): Remove some dead code
2023         [Coverity CID 200].
2024
2025         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2026         away a few more unconditional yperr2nss calls.
2027         (_nss_nis_getservbyname_r): Likewise.
2028
2029 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
2030
2031         * sysdeps/generic/ldsodefs.h: Remove support for non-core
2032         architectures.
2033
2034         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2035         that unused memory passed to sendto is nevertheless initialized.
2036
2037         [BZ #2499]
2038         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2039         possibly unaligned memory accesses.
2040
2041         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2042         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2043         and __putlong respectively.  Correct buffer overflow check for
2044         NS_NOTIFY_OP.
2045
2046         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2047
2048         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2049         (send_dg): Rewrite error handling to be more compact and avoid
2050         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
2051
2052         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2053
2054         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2055         instead of ns_get16.
2056         (res_queriesmatch): Likewise.  Minor optimization.
2057
2058         [BZ #2499]
2059         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2060         __libc_res_nsend might reallocate the buffer for the answer.  In
2061         this case we have to reload the HP pointer.
2062
2063 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2064
2065         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
2066         some branch prediction hints.
2067
2068         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2069         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2070         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2071         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2072         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2073         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2074         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2075         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2076
2077 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2078
2079         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2080         by a GOT relocation to make Scrt1.o position independent.
2081         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2082
2083         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2084         six system call parameters.
2085         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2086
2087 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2088
2089         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2090         malloc&bzero.
2091
2092         * sunrpc/svc_udp.c (BZERO): Remove definition.
2093         (CALLOC): Define.
2094         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2095
2096         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
2097         (des_SPtrans): Use uint32_t type.
2098         (des_skb): Likewise.
2099
2100         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2101
2102 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
2103
2104         [BZ #2509]
2105         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2106         on 32-bit arches.
2107
2108 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * locale/programs/ld-address.c (address_finish): Fix one more
2111         place where the iso639 array might be accessed beyond the limits.
2112
2113 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
2114
2115         * nis/nis_table.c (nis_list): Avoid clearing res twice before
2116         filling it for the first time.
2117
2118         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2119         Adjust all callers.
2120         Free res object content before returning.
2121
2122         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2123
2124         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2125         client->cl_auth.
2126
2127         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2128         cleanup for initial thread, just the free call on TVP.
2129
2130         * nscd/gai.c (__getline): Define.
2131
2132
2133 See ChangeLog.16 for earlier changes.