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