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