* po/ko.po: Update from translation team.
[platform/upstream/glibc.git] / ChangeLog
1 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2
3         * po/ko.po: Update from translation team.
4
5 2009-02-26  Roland McGrath  <roland@redhat.com>
6
7         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
8         avoids unused warning.
9
10 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
11             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12
13         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
14         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
15         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
16         and asm/user.h.  Include asm/ptrace.h.
17         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
18         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
19         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
20         Undefine.
21         (start_thread): Don't undefine.
22         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
23         Define.
24
25 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
26
27         * wctype/wctype.h: The *_l functions are in POSIX 2008.
28         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
29         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
30         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
31         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
32         200112L to 200809L.
33         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
34         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
35         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
36         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
37         _SC_THREAD_ROBUST_PRIO_PROTECT.
38         * posix/unistd.h: fexecve is in POSIX 2008.
39         * time/time.h: strftime_l is in POSIX 2008.
40         * io/sys/stat.h: futimens is in POSIX 2008.
41         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
42         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
43         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
44         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
45         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
46         open_memstream, and vdprintf are in POSIX 2008.
47
48 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
49
50         * include/features.h: Define macros for XPG7/POSIX 2008.
51         * ctype/ctype.h: The *_l functions are in POSIX 2008.
52         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
53         POSIX 2008.
54         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
55         * locale/xlocale.h: Define locale_t type.
56         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
57         in POSIX 2008.  Don't define locale_t here.
58         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
59         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
60         UTIME_OMIT only with __USE_ATFILE.
61         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
62         * stdio-common/psiginfo.c: New file.
63         * stdio-common/psiginfo-data.h: New file.
64         * stdio-common/psiginfo-define.h: New file.
65         * stdio-common/Makefile (routines): Add psiginfo.
66         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
67         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
68         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
69         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
70         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
71         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
72         * io/sys/stat.h: Move mknodat definition into same conditional as
73         mknod.
74         * time/sys/time.h: futimesat is not among the functions accepted
75         into the POSIX standard.
76
77         * include/features.h: If no feature selection given and we select
78         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
79         * posix/Versions: Export __posix_getopt.
80         * posix/getopt.c (_getopt_initialize): Take additional parameter.
81         Use it to alternatively initialize __posixly_correct.
82         (_getopt_internal_r): Take addition parameter.  Pass on to
83         _getopt_initialize.
84         (_getopt_internal): Take addition parameter.  Pass on to
85         _getopt_internal_r.
86         (getopt): Pass additional zero to _getopt_internal.
87         (__posix_getopt): New function.
88         * posix/getopt.h: Add redirection for getopt.
89         * posix/getopt1.c (getopt_long): Pass additional zero to
90         _getopt_internal.
91         (getopt_long_only): Likewise.
92         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
93         (_getopt_long_only_r): Likewise.
94         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
95         _getopt_internal_r.
96
97 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
98
99         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
100         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
101         * sysdeps/posix/sysconf.c (__sysconf): Handle
102         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
103         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
104
105 2009-02-24  Roland McGrath  <roland@redhat.com>
106
107         [BZ #9895]
108         * README.template: Reworded not to use substituted version number.
109         Renamed to ...
110         * README: ... here (no longer generated).
111         * Makefile (README): Target removed.
112
113 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
114
115         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
116         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
117         instead.
118
119         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
120
121         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
122
123 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
124
125         * po/bg.po: Update from translation team.
126
127 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
128
129         * stdlib/monetary.h: Uglify function parameter names.
130         * sunrpc/rpc/pmap_clnt.h: Likewise.
131         * sunrpc/rpc/svc.h: Likewise.
132         * sunrpc/rpc/xdr.h: Likewise.
133         * sunrpc/rpc/clnt.h: Likewise.
134         * resolv/netdb.h: Likewise.
135         * resolv/arpa/nameser.h: Likewise.
136         * resolv/resolv.h: Likewise.
137         * argp/argp.h: Likewise.
138         * locale/langinfo.h: Likewise.
139         * io/sys/stat.h: Likewise.
140         * posix/spawn.h: Likewise.
141         * nis/rpcsvc/nislib.h: Likewise.
142         * malloc/obstack.h: Likewise.
143         * sysdeps/ia64/bits/link.h: Likewise.
144         * sysdeps/i386/bits/link.h: Likewise.
145         * sysdeps/s390/bits/link.h: Likewise.
146         * sysdeps/powerpc/bits/link.h: Likewise.
147         * sysdeps/x86_64/bits/link.h: Likewise.
148         * sysdeps/sparc/bits/link.h: Likewise.
149         * sysdeps/sh/bits/link.h: Likewise.
150         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
151         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
152         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
153         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
154
155 2008-12-01  Fredrik Unger  <fred@tree.se>
156
157         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
158         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
159         _FP_UNPACK_RAW_2, fix up first argument.
160
161 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
162
163         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
164         (GET_NPROCS_PARSER): Change parameters and use next_line.
165         (__get_nprocs): Rewrite to not use stdio routines.
166         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
167         Change parameters and use next_line.
168
169 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
170
171         [BZ #5381]
172         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
173         Change mempool_alloc prototype.
174         * nscd/mem.c (gc): Don't handle mem_in_flight.
175         (mempool_alloc): Third parameter now only indicates whether this is the
176         first call (to allocate data) or not.  If it is, get db rdlock.
177         Release it on error.  Don't handle mem_in_flight.
178         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
179         Adjust third parameter of mempool_alloc calls.
180         Nothing to do here in case mempool_alloc fails.
181         Avoid local variable shadowing parameter.  No need to get db rdlock
182         before calling cache_add.
183         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
184         no mem_in_flight array anymore.
185         * nscd/connections.c: Remove definition and handling of mem_in_flight.
186         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
187         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
188         in case mempool_alloc fails. No need to get db rdlock before calling
189         cache_add.
190         * nscd/hstcache.c (cache_addhst): Likewise.
191         * nscd/initgrcache.c (addinitgroupsX): Likewise.
192         * nscd/servicescache.c (cache_addserv): Likewise.
193         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
194
195 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
196
197         * po/lt.po: Update from translation team.
198
199 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
200
201         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
202         defined, allow additional data to be added using the optional
203         MORE_ELF_HEADER_DATA macro.
204         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
205         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
206
207 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
208
209         * include/atomic.h: Define catomic_and if not already defined.
210         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
211         * sysdeps/i386/i486/bits/atomic.h: Likewise.
212
213 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
214
215         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
216         Change all callers.
217         (_int_realloc): Likewise.  Third argument is now padded size
218         All _int_* functions are now static.
219
220         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
221         * malloc/arena.c: Likewise.
222         * include/malloc.h: Remove now unnecessary declarations of the _int_*
223         functions.
224
225         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
226         easily.
227
228         * malloc/malloc.c: Add branch prediction for use of the hooks.
229
230         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
231
232 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
233
234         [BZ #7095]
235         * bits/confname.h: Add SUSv7 macros for getconf environments.
236         * bits/environments.h: Likewise.
237         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
238         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
239         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
240         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
241         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
242         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
243         * posix/getconf.c: Likewise.
244         * posix/sysconf.c: Likewise.
245         * sysdeps/posix/sysconf.c: Likewise.
246         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
247         environments.
248
249 2009-01-16  Petr Baudis  <pasky@suse.cz>
250
251         [BZ #9753]
252         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
253         even if we currently have zero nscount.
254
255 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
256
257         [BZ #9781]
258         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
259         the input line is too long.
260
261         * po/Makefile (libc.pot): Add f_print as function taking c-format
262         parameter.
263
264         * debug/xtrace.sh: Unify translatable messages.
265         * elf/ldd.bash.in: Likewise.
266         * elf/sprof.c: Likewise.
267         * locale/programs/locale.c: Likewise.
268         * malloc/memusage.sh: Likewise.
269         * nss/getent.c: Likewise.
270
271 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
272
273         * debug/pcprofiledump.c (print_version,
274         argp_program_version_hook): New function.
275         * elf/ldconfig.c (more_help): New function.
276         (argp): Use it.
277         * elf/sln.c (usage): New function.
278         (main): Support --help and --version.
279         * malloc/memusagestat.c (print_version): New function.
280         (argp_program_version_hook): New variable.
281         * nscd/nscd.c (more_help): New function.
282         (argp): Use it.
283         * posix/getconf.c (main): Send --version output to stdout.
284         Support --help.
285         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
286         arguments.  All callers changed.
287         (print_version): New function.
288         (parseargs): Support --help and --version.
289         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
290         changed.
291         (print_version): New function.
292         (main): Use getopt_long.  Support --help and --version.
293         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
294         --version.
295
296 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
297
298         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
299         (update_data): Fix handling of wrapping back
300         to the beginning of the buffer.
301
302         [BZ #9823]
303         * stdio-common/psignal.c (psignal): Fix test for empty string.
304
305 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
306
307         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
308         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
309         move _null_auth to .rodata.
310
311         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
312         value of 24.
313
314         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
315
316         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
317         today than when the original code was written.  Use larger
318         buffers.  This also makes it unnecessary to have stat information,
319         if this causes extra efforts.
320         (__opendir): In case O_DIRECTORY works, don't call fstat just for
321         __alloc_dir.
322
323 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
324
325         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
326         is set.
327         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
328         * sysdeps/sh/sh4/__longjmp.S: Likewise.
329         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
330         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
331         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
332         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
333
334 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
335
336         * po/ru.po: Update from translation team.
337
338 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
339
340         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
341         Add _tid slot to maintain consistency with kernel.
342
343 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
344
345         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
346         incomplete characters at end of input buffer.
347         * libio/Makefile (tests): Add tst-fgetwc.
348         * libio/tst-fgetwc.c: New file.
349         * libio/tst-fgetwc.input: New file.
350
351 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
352
353         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
354
355 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
356
357         [BZ #9793]
358         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
359         *OUTBUFSTART unless the whole output fit into the buffer.
360         * iconv/Makefile (tests): Add tst-iconv4.
361         * iconv/tst-iconv4.c: New file.
362
363 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
364
365         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
366         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
367
368 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
369
370         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
371         newer linker scripts.
372
373 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
374
375         [BZ #7040]
376         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
377         inotify_rm_watch should have type int.
378
379 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
380
381         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
382         Make aligned_restore_vmx a local symbol.
383         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
384         Likewise.
385
386 2009-01-30  Andreas Jaeger  <aj@suse.de>
387
388         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
389         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
390         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
391         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
392         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
393         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
394         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
395
396 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
397
398         [BZ #9726]
399         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
400         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
401
402 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
403
404         [BZ #9726]
405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
406         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
408         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
409
410 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
411
412         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
413         memcpy instead of memcmp.
414         (_dl_setup_pointer_guard): Likewise.
415
416 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
417
418         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
419         manipulated brk, use malloc_printerr.
420         * misc/sbrk.c (__sbrk): Better error handling for nonsense
421         requests.
422
423 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
424
425         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
426         rindex): For C++ add inlines so that they can be recognized as
427         builtins.
428         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
429
430 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
431             Jakub Jelinek  <jakub@redhat.com>
432
433         * string/string.h: Define correct C++ prototypes for gcc 4.4.
434         * wcsmbs/wchar.h: Likewise.
435
436 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
437
438         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
439         (stackinfo_sub_sp): Define.
440
441 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
442
443         [BZ #9750]
444         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
445         * include/alloca.h (alloca_account): Define.
446         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
447         (stackinfo_sub_sp): Define.
448
449         * nscd/connections.c (nscd_init): If database file access fails
450         check whether this is due to permission problems and bail in that
451         case.
452
453         [BZ #9741]
454         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
455         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
456
457 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
458
459         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
460         Add "t" to clobber list.
461         (INTERNAL_SYSCALL_NCS): Likewise.
462
463 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
464
465         * nss/getent.c (print_networks): Don't print comma between aliases.
466
467 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
468
469         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
470
471         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
472         the hash table.
473         * misc/Makefile (tests): Add bug-hsearch1.
474         * misc/bug-hsearch1.c: New file.
475
476 2009-01-22  Roland McGrath  <roland@redhat.com>
477
478         * Makeconfig (%.v.i): Strip trailing # comments,
479         not only whole-line comments.
480
481 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
482
483         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
484         one parameter.  If non-NULL use it to initialize return value.
485         (_dl_setup_pointer_guard): New function.
486         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
487         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
488         * elf/rtld.c (security_init): Pass _dl_random to
489         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
490         pointer_chk_guard.
491         * elf/dl-sysdep.c (_dl_random): New variable.
492         (_dl_sysdep_start): Handle AT_RANDOM.
493         (_dl_show_auxv): Likewise.
494         * elf/dl-support.c (_dl_random): New variable.
495         (_dl_aux_init): Handle AT_RANDOM.
496         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
497         to _dl_setup_stack_chk_guard.
498
499         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
500
501 2009-01-10  Roland McGrath  <roland@redhat.com>
502
503         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
504
505 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
506
507         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
508
509         [BZ #9706]
510         * nss/nss_files/files-parse.c (strtou32): New function.
511         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
512         across 32-bit and 64-bit platforms.
513         (INT_FIELD_MAYBE_NULL): Likewise.
514
515 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
516
517         [BZ #9720]
518         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
519         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
520         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
521         Likewise.
522
523 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
524
525         [BZ #697]
526         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
527         being NULL also if there are no backreferences.
528         * posix/rxspencer/tests: Add testcases.
529
530 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
531
532         [BZ #9697]
533         * posix/bug-regex17.c: Add testcases.
534         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
535         handling.
536
537 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
538
539         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
540         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
541         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
542         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
543         for elf subdir.
544         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
545         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
546         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
547         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
548         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
549         * sysdeps/unix/sysv/linux/s390/Versions: New file.
550
551 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
552
553         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
554         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
555         re_string_skip_chars, re_string_reconstruct): Likewise.
556         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
557
558 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
559
560         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
561         adjust the buffer alignment.
562
563 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
564
565         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
566         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
567         net/route.h.
568
569         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
570         flavor to description only when flavor is not NULL.
571
572         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
573         mutex after SIGIO/SIGURG lookup loop.
574
575 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
576
577         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
578
579 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
580
581         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
582         handling.
583
584 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
585
586         * sysdeps/unix/sysv/linux/kernel-features.h
587         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
588
589         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
590         if no output is written.
591
592         * version.h: Bump to 2.10 development.
593
594         * posix/getconf.c: Update copyright year.
595         * nss/getent.c: Likewise.
596         * iconv/iconvconfig.c: Likewise.
597         * iconv/iconv_prog.c: Likewise.
598         * elf/ldconfig.c: Likewise.
599         * catgets/gencat.c: Likewise.
600         * csu/version.c: Likewise.
601         * elf/ldd.bash.in: Likewise.
602         * elf/sprof.c (print_version): Likewise.
603         * locale/programs/locale.c: Likewise.
604         * locale/programs/localedef.c: Likewise.
605         * nscd/nscd.c (print_version): Likewise.
606         * debug/xtrace.sh: Likewise.
607         * malloc/memusage.sh: Likewise.
608         * malloc/mtrace.pl: Likewise.
609         * debug/catchsegv.sh: Likewise.
610
611 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
612
613         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
614         script.
615
616 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
617
618         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
619         gethostbyname4_r function call succeeded, just leave the loop.
620
621         [BZ #9694]
622         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
623         very end.
624         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
625         * wctype/Makefile (tests): Add bug-wctypeh.
626         * wctype/bug-wctypeh.c: New file.
627
628         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
629         LOCALDOMAIN is defined.
630         * nscd/nscd_getai.c (__nscd_getai): Likewise.
631
632         * sysdeps/x86_64/bits/select.h: New file.
633
634         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
635
636 2008-12-21  Bruno Haible  <bruno@clisp.org>
637
638         [BZ #9677]
639         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
640         if no output is written.
641
642 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
643
644         * login/utmp_file.c (pututline_file): Replace call to dup2 with
645         libc internal symbol __dup2 to avoid access through the PLT.
646
647 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
648
649         [BZ #6545]
650         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
651         available only for __USE_GNU.
652
653         * inet/Makefile (tests): Add tst-getni2.
654         * inet/tst-getni2.c: New file.
655
656         [BZ #7080]
657         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
658         NULL when NI_NAMEREQD is set.
659         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
660         * inet/Makefile (tests): Add tst-getni1.
661         * inet/tst-getni1.c: New file.
662
663 2008-12-03  Petr Baudis  <pasky@suse.cz>
664
665         [BZ #7067]
666         * nscd/connections.c (invalidate_cache): Use prune_run_lock
667         instead of prune_lock.
668         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
669         * nscd/nscd.h (database_dyn): Add prune_run_cache.
670
671 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
672
673         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
674         use.
675
676         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
677         handling.
678
679         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
680         after reading name server list.
681
682         [BZ #7058]
683         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
684         handling for host name aliases.
685
686 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
687
688         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
689         instead of doing things manually.
690
691 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
692
693         * posix/regex_internal.h (build_wcs_upper_buffer):
694         Return type is reg_error_t.
695
696 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
697
698         * posix/globtest.sh: Use mktemp to create temporary file and
699         directory.
700
701         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
702         sets correctly.
703         (__CPU_CLR_S): Likewise.
704         (__CPU_ISSET_S): Likewise.
705
706 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
707             Ulrich Drepper  <drepper@redhat.com>
708
709         * scripts/firstversion.awk: Use custom comparison function to compare
710         version numbers.
711         * scripts/versions.awk: Use sort invocation which can handle
712         multi-digit sub-version numbers.
713
714 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
715
716         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
717         * locale/iso-639.def: Add Chhattisgarhi entry.
718
719 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
720
721         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
722         ESRCH return value.
723         (_nss_dns_gethostbyname4_r): Likewise.
724         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
725         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
726         gethostbyname4_r, we don't have a separate IPv6 status, so copy
727         the no_data variable.
728
729         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
730         information at the correct index.
731
732         * socket/sys/socket.h: Declare accept4.
733         * socket/accept4.c: New file.
734         * sysdeps/unix/sysv/linux/accept4.c: New file.
735         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
736         * socket/Makefile (routines): Add accept4.
737         * socket/Versions: Export accept4 with version GLIBC_2.10.
738         * socket/paccept.c: Removed.
739         * sysdeps/unix/sysv/linux/paccept.c: Removed.
740         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
741         * Versions.def: Define GLIBC_2.10 for libc.
742         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
743
744         * nscd/connections.c: Use accept4.
745
746         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
747
748 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
749
750         * resolv/res_send.c (send_dg): Create sockets with non-blocking
751         flag already set.
752
753         * stdlib/setenv.c (unsetenv): Don't search environment if it does
754         not exist.
755         * stdlib/Makefile (tests): Add tst-unsetenv1.
756         * stdlib/tst-unsetenv1.c: New file.
757
758 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
759
760         * login/utmp_file.c (file_writable): New variable.
761         (setutent_file): Don't try to open file for writing.
762         (pututline_file): Before writing, make descriptor writable if
763         necessary.
764
765 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
766
767         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
768         to IPv4 or IPv6 if an interface has been found.
769
770 2008-11-26  Roland McGrath  <roland@redhat.com>
771
772         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
773         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
774
775         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
776         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
777         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
778
779         * elf/elf.h (NT_386_IOPERM): New macro.
780         (NT_PPC_VSX): New macro.
781
782 2008-11-25  Roland McGrath  <roland@redhat.com>
783
784         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
785         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
786         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
787         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
788         Subdirectories moved to ports repository.
789         * configure.in (base_machine): Remove alpha case.
790
791 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
792
793         * sysdeps/mach/strerror_l.c: New file.
794
795 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
796
797         [BZ #6411]
798         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
799         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
800         magic numbers.
801         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
802         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
803         (relax_fenv_state): Same as above.
804         (FPSCR_29): Reserve bit in ISA 2.05.
805         (FPSCR_NI): Provide define for compat.
806         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
807         magic numbers.
808         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
809         magic numbers.
810         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
811         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
812         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
813         access to hwcap to account for hwcap size increase to uint64_t.
814         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
815         Likewise.
816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
817         (*setcontext): Likewise.
818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
819         New file.
820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
821         New file.
822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
823         (*setcontext): dynamically select mtfsf insn based on
824         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
825         increase to uint64_t.
826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
827         (*swapcontext): dynamically select mtfsf insn based on
828         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
829         increase to uint64_t.
830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
831         New file.
832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
833         New file.
834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
835         (*setcontext): dynamically select mtfsf insn based on
836         PPC_FEATURE_HAS_DFP.
837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
838         (*swapcontext): dynamically select mtfsf insn based on
839         PPC_FEATURE_HAS_DFP.
840
841 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
842
843         * version.h: Bump for 2.9 release.
844         * include/features.h (__GLIBC_MINOR__): Bump to 9.
845
846         [BZ #7029]
847         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
848         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
849         all the rounding.
850
851 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
852
853         [BZ #7009]
854         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
855         unknown request types for now.
856
857 2008-11-11  Roland McGrath  <roland@redhat.com>
858
859         * sysdeps/x86_64/configure: New file.
860
861         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
862         * configure: Regenerated.
863
864 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
865
866         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
867         correct instruction to remove the stack frame.
868
869 2008-11-03  Michael Matz  <matz@suse.de>
870
871         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
872         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
873
874 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
875
876         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
877         Remove.
878
879         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
880         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
881         of the thread variable instead of void *.
882         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
883         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
884         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
885         __libc_tsd_define arguments.
886         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
887         __libc_tsd_address arguments.  Remove union hack.
888         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
889         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
890         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
891         Adjust __libc_tsd_{set,get} arguments.
892         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
893         __libc_tsd_define arguments.
894         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
895         arguments.
896         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
897         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
898         (LOCALE): Adjust __libc_tsd_define arguments.
899         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
900         arguments.
901         (LOCALE): Adjust __libc_tsd_define arguments.
902         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
903         arguments.
904         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
905         arguments.
906
907 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
908
909         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
910         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
911
912 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
913
914         [BZ #6966]
915         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
916
917 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
918             Ulrich Drepper  <drepper@redhat.com>
919
920         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
921         definition for GCC 3.1 and later.
922
923 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
924
925         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
926         refetch dtv, as it might have changed.
927         * elf/Makefile: Add rules to build and run tst-tls18.
928         * elf/tst-tls18.c: New test.
929         * elf/tst-tlsmod18a.c: New file.
930
931 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
932
933         [BZ #6875]
934         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
935
936 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
937
938         [BZ #6867]
939         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
940
941         [BZ #6919]
942         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
943         Fix length of copy operation.
944
945 2008-10-02  Pierre Habouzit <madcoder@debian.org>
946
947         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
948         and fix its calling convention.
949
950 2008-10-07  Andreas Schwab  <schwab@suse.de>
951
952         [BZ #6942]
953         * resolv/res_send.c (send_vc): Fix last change.
954         (send_dg): Align here as well.
955
956 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
957
958         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
959         return value in case rlimit is RLIM_INFINITY.
960
961         [BZ #6947]
962         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
963         for UL_SETFSIZE.
964         * resource/Makefile (tests): Add bug-ulimit1.
965         * resource/bug-ulimit1.c: New file.
966
967         [BZ #6974]
968         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
969         without dot.  Properly terminate the string with a null byte.
970         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
971
972         [BZ #6980]
973         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
974         negative sizees.
975         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
976         negative __size.
977
978         [BZ #6995]
979         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
980
981 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
982
983         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
984         abort if there is no initgroups_dyn function.
985
986         * resolv/res_send.c (send_dg): On timeout, only return nonzero
987         result if any of the queries really provided an answer.
988
989 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
990
991         * po/lt.po: Update from translation team.
992
993 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
994
995         * po/id.po: Update from translation team.
996
997 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
998
999         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1000         Fix tests for existence of second reply.
1001
1002 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
1003
1004         * po/id.po: New file.
1005         Contributed by the Indonesian translation team.
1006
1007 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
1008
1009         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1010         initialization.
1011
1012 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1013
1014         * elf/Makefile: Add rules to build and run tst-tls17.
1015         * elf/tst-tls17.c: New test.
1016         * elf/tst-tlsmod17a.c: New file.
1017         * elf/tst-tlsmod17b.c: Likewise.
1018
1019 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1020
1021         * stdlib/divmod_1.c: Use correct type for dummy variable.
1022         * stdlib/mod_1.c: Likewise.
1023
1024 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1025
1026         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1027
1028 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1029
1030         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1031         __nonnull order for C++.
1032         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1033         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1034
1035 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1036
1037         * stdlib/longlong.h: Update from GCC.
1038
1039 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1040             David S. Miller  <davem@davemloft.net>
1041
1042         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1043         make sure any registers used with 64-bit 'branch-on-register'
1044         instructions have their top 32-bits clear.
1045         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1046         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1047
1048 2008-09-18  Andreas Schwab  <schwab@suse.de>
1049
1050         [BZ #6942]
1051         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1052         Properly handle partial reads.
1053
1054 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1055
1056         * elf/elf.h (STO_MIPS_PLT): New.
1057         (R_MIPS_COPY): New.
1058         (R_MIPS_JUMP_SLOT): New.
1059         (R_MIPS_NUM): Redefine to 128.
1060         (DT_MIPS_PLTGOT): New.
1061         (DT_MIPS_RWPLT): New.
1062         (DT_MIPS_NUM): Redefine to 0x35.
1063
1064 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1065
1066         * timezone/africa: Update from tzdata2008f.
1067         * timezone/asia: Likewise.
1068         * timezone/australasia: Likewise.
1069         * timezone/europe: Likewise.
1070         * timezone/leapseconds: Likewise.
1071         * timezone/northamerica: Likewise.
1072         * timezone/southamerica: Likewise.
1073         * timezone/zone.tab: Likewise.
1074
1075 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1076
1077         * nscd/connections.c: Disable use of paccept for now.
1078
1079 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1080
1081         * socket/Versions: Remove paccept export for GLIBC_2.9.
1082         * socket/Makefile (routines): Remove paccept.
1083         * socket/sys/socket.h: Remove paccept declaration.
1084
1085         * po/sv.po: Update from translation team.
1086
1087 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1088
1089         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1090         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1091
1092 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1093
1094         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1095         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1096
1097 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1098
1099         * sunrpc/rpc/svc.h: Declare svcfd_create.
1100         Patch by Michael Solberg <msolberg@redhat.com>.
1101
1102 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1103             Ulrich Drepper  <drepper@redhat.com>
1104
1105         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1106         _int_valloc fails.
1107         (public_pVALLOc): Likewise.
1108
1109 2008-09-02  Andreas Jaeger  <aj@suse.de>
1110
1111         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1112         commit.
1113
1114 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1115
1116         [BZ #6860]
1117         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1118
1119 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1120
1121         * Makefile (check-data): Check data directory in add-ons.
1122         * elf/Makefile (check-data): Likewise.
1123
1124 2008-08-18  Roland McGrath  <roland@redhat.com>
1125
1126         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1127         * configure: Regenerated.
1128         * config.make.in (cflags-cpu): New substituted variable.
1129         (with-cpu): Variable removed.
1130         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1131
1132 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1133
1134         [BZ #6845]
1135         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1136         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1137         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1138         redundant.  Functions which call floating point assembler operations
1139         should go into a sysdeps powerpc/fpu directory.
1140
1141 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1142
1143         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1144         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1145
1146 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1147
1148         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1149
1150         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1151         change related to AT_EXECFN.  We cannot use that string.
1152         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1153         _dl_execfn member.
1154         * elf/dl-support.c: Remove _dl_execfn variable.
1155         (_dl_aux_init): Remove handling of AT_EXECFN.
1156         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1157         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1158
1159 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1160
1161         [BZ #6544]
1162         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1163         byte gets added to writes and seeks from the end use the length of
1164         the buffer and not the currently terminating NUL byte.
1165
1166         [BZ #6634]
1167         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1168         Set to true if locking failed.
1169         (getutid_r_file): Adjust caller.
1170         (pututline_file): Likewise.  Return NULL in this case.
1171         Patch mostly by halesh.s@gmail.com.
1172
1173 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1174
1175         [BZ #6589]
1176         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1177         Define.
1178         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1179
1180 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1181
1182         [BZ #6839]
1183         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1184         macro since it is now available in elf/dynamic-link.h.
1185
1186 2008-08-12  Roland McGrath  <roland@frob.com>
1187
1188         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1189         in case used outside of libc.
1190         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1191
1192 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1193
1194         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1195         directly instead of going through dn_comp.
1196
1197 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1198
1199         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1200         Fix asm constraints.
1201
1202 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1203
1204         [BZ #6790]
1205         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1206         (IPV6_PMTUDISC_PROBE): Likewise.
1207
1208 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1209
1210         [BZ #6791]
1211         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1212
1213 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1214             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1215
1216         [BZ #6817]
1217         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1218         Added the members 'vsx' and 'arch_2_06'.
1219         (_dl_powerpc_platforms): Add the member 'power7'.
1220         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1221         to reflect the changes required by VSX and ISA 2.06.
1222         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1223         'power7'.
1224         Defined PPC_PLATFORM_POWER7.
1225         (_dl_string_platform): Add support for POWER7.
1226         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1227         capability and ISA 2.06.
1228
1229 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1230
1231         [BZ #6824]
1232         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1233         macro to detect use of 128 bit long double.
1234         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1235
1236 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1237
1238         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1239
1240         [BZ #5794]
1241         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1242         parameters.
1243         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1244         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1245
1246 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1247
1248         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1249         guaranteed to be large enough to read inotify event.  Ignore
1250         EAGAIN error.  Better error message.  Add branch predicition.
1251         (main_loop_epoll): Likewise.
1252
1253 2008-08-02  Roland McGrath  <roland@frob.com>
1254
1255         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1256         Add memory clobbers.
1257
1258 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1259
1260         * manual/arith.texi: Avoid @strong{Note:}.
1261         * manual/creature.texi: Likewise.
1262         * manual/filesys.texi: Likewise.
1263         * manual/math.texi: Likewise.
1264         * manual/memory.texi: Likewise.
1265         * manual/resource.texi: Likewise.
1266         * manual/syslog.texi: Likewise.
1267         * manual/time.texi: Likewise.
1268
1269         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1270         to prevent warning.
1271
1272 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1273
1274         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1275         new epoll_create1 interface.
1276         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1277         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1278         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1279
1280         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1281         (NS_GET32): Likewise.
1282
1283         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1284         syscalls, too.
1285
1286         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1287         use the AT_EXECFN value if it is no absolute path.
1288         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1289         __ASSUME_AT_EXECFN.
1290
1291         * Versions.def: Add GLIBC_2.9 to libresolv.
1292         * include/resolv.h: Remove hidden proto declarations for __ns_*
1293         functions.  Add them for __dn_count_labels and __p_secstodate.
1294         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1295         Define ns_msg_getflags macro here.
1296         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1297         and __p_secstodate.
1298         * resolv/Versions: Export functions from <arpa/nameser.h> from
1299         libresolv in version GLIBC_2.9.
1300         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1301         hidden definitions.
1302         * resolv/ns_netint.c: Likewise.
1303         * resolv/ns_parse.c: Likewise.
1304         * resolv/ns_print.c: Likewise.
1305         * resolv/ns_samedomain.c: Likewise.
1306         * resolv/ns_ttl.c: Likewise.
1307         * resolv/arpa/nameser_compat.h: Likewise.
1308         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1309         function calls.
1310         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1311         instead of ns_get16.
1312         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1313         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1314         (gaih_getanswer_slice): Likewise.
1315         * resolv/Makefile (libresolv-routines): Add ns_date.
1316         * resolv/ns_date.c: New file.
1317
1318         * elf/Makefile (check-localplt.out): Also check libresolv and
1319         libcrypt.
1320
1321 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1322
1323         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1324         __ASSUME_O_CLOEXEC.
1325
1326 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1327
1328         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1329         buffer passed to NSS functions.
1330
1331         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1332
1333         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1334         Define.
1335
1336         * misc/syslog.c (openlog_internal): Fix compile problem.
1337
1338 2008-07-28  Roland McGrath  <roland@redhat.com>
1339
1340         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1341
1342 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1343
1344         * io/ftw.c (add_object): Remove inline to avoid warning.
1345
1346         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1347
1348         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1349         Use it instead of locally defined resplen2 variable.
1350         (res_nsend): Adjust for __libc_res_nsend interface change.
1351         (send_vc): Initialize *resplen2 if necessary.  Read length of
1352         package into an appropriately aligned variable.  Store converted length
1353         in new variable and use it appropriately.
1354         Add branch prediction help.
1355         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1356         and pass it on to __libc_res_nsend.  Adjust all callers.
1357         (__libc_res_nsearch): Likewise.
1358         (__libc_res_nqeurydomain): Likewise.
1359         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1360         change.
1361         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1362         Define resplen2 variable and pass it to __libc_res_nsearch and then
1363         to gaih_getanswer.
1364         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1365         Add branch prediction.
1366         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1367         (gaih_getanswer): Don't decode second slice if first one failed due
1368         to a too small buffer.  Don't let not found status of second
1369         decoder shadow results of the first.
1370         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1371         and __libc_res_nquery interface changes
1372         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1373         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1374         __libc_res_nsearch, and __libc_res_nsend.
1375         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1376         change.
1377         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1378         __libc_res_nsearch interface changes.
1379
1380 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1381
1382         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1383
1384         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1385         file descriptors with close-on-exec set.
1386         (exec_comm_child): Fix the case where the write end of the pipe is
1387         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1388
1389         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1390         * io/pipe2.c: Likewise.
1391         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1392         instead of __ASSUME_PACCEPT.
1393         * include/unistd.h: Declare __have_pipe2.
1394         * libio/iopopen.c: Implement "e" flag.
1395         * libio/Makefile (tests): Add tst-popen1.
1396         * libio/tst-popen1.c: New file.
1397
1398         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1399         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1400
1401 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1402
1403         [BZ #6771]
1404         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1405         success call of _IO_SEEKOFF or calls which failed because the
1406         descriptor is for a pipe.
1407
1408         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1409         magic number.
1410
1411         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1412
1413         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1414         F_SETFD use if we know fopen set the flag.
1415
1416         * login/utmp_file.c (setutent_file): Minor optimization in case
1417         O_CLOEXEC is available.
1418
1419 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1420
1421         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1422         * elf/Makefile: Use pie-ccflag variable.
1423         * nscd/Makefile: Likewise.
1424         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1425
1426 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1427
1428         [BZ #6724]
1429         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1430         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1431         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1432         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1433         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1434         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1435         utmp32, utmpx32 and login32.
1436         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1437         versions of struct utmp functions to libc and libutil.
1438         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1439         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1440         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1441         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1442         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1443         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1444         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1445         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1446         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1447         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1448         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1449         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1450         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1451         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1452         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1453         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1454         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1455         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1456         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1457         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1458         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1459         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1460
1461 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1462
1463         * scripts/gen-as-const.awk: Generate more widely usable code by
1464         using 64-bit arithmetic.
1465
1466         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1467         the same treatment as narrow output code in last patch.
1468
1469         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1470
1471         [BZ #6763]
1472         * elf/dl-load.c (local_strdup): Remove inline.
1473         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1474         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1475         part of the object.
1476
1477         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1478
1479 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1480
1481         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1482         the new syscalls, too.
1483
1484         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1485         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1486
1487         [BZ #6698]
1488         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1489         parameter for end of buffer.  If temporary copy is too large use
1490         malloc.
1491         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1492         interface change.
1493         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1494         string rewrite when allocating buffer.
1495
1496         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1497         syscalls, too.
1498
1499         * nscd/connections.c (nscd_init): Clean up fcntl call.
1500
1501         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1502         SOCK_NONBLOCK if possible.
1503
1504         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1505         SOCK_CLOEXEC if available.
1506
1507         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1508         __libc_clntudp_bufcreate_internal.
1509         * include/sys/socket.h: Declare __have_sock_cloexec.
1510         * socket/Makefile (aux): Add have_sock_cloexec.
1511         * socket/have_sock_cloexec.c: New file.
1512         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1513         __libc_clntudp_bufcreate.
1514         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1515         which takes an additional parameter.  Create socket with non-blocking
1516         mode and close-on-exec flag set, if wanted.
1517         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1518         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1519         instead of clntudp_create.  The socket has already the close-on-exec
1520         flag set if SOCK_CLOEXEC is defined.
1521
1522 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1523
1524         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1525         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1526         appropriate.
1527         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1528         non-blocking mode by using socket, paccept, and inotify_init1.
1529
1530         * Versions.def (glibc): Add GLIBC_2.9.
1531         * io/Makefile (routines): Add dup3 and pipe2.
1532         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1533         * io/dup3.c: New file.
1534         * io/pipe2.c: New file.
1535         * posix/unistd.h: Declare dup3 and pipe2.
1536         * socket/Makefile (routines): Add paccept.
1537         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1538         * socket/paccept.c: New file.
1539         * socket/sys/socket.h: Declare paccept.
1540         * sysdeps/unix/syscalls.list: Add entry for dup3.
1541         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1542         epoll_create2 and inotify_init1.
1543         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1544         * sysdeps/unix/sysv/linux/paccept.c: New file.
1545         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1546         possible.
1547         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1548         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1549         inotify_init1, and pipe2 entries.
1550         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1551         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1552         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1553         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1554         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1555         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1556         SOCK_NONBLOCK.
1557         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1558         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1559         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1560         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1561         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1562         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1563         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1564         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1565         EPOLL_NONBLOCK.  Declare epoll_create2.
1566         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1567         EFD_NONBLOCK.
1568         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1569         IN_NONBLOCK.  Declare inotify_init1.
1570         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1571         SFD_NONBLOCK.
1572         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1573         TFD_NONBLOCK.
1574
1575         * elf/elf.h: Define AT_EXECFN.
1576         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1577         LD_ORIGIN_PATH.
1578         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1579         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1580         if __ASSUME_AT_EXECFN is defined.
1581         (_dl_aux_init): Handle AT_EXECFN.
1582         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1583         for 2.6.27 and up.
1584         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1585         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1586         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1587         _dl_execfn if available and avoid compatibility code if
1588         __ASSUME_AT_EXECFN is defined.
1589
1590         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1591         _dl_discover_osversion only for older kernels.
1592
1593 2008-07-22  Roland McGrath  <roland@frob.com>
1594
1595         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1596
1597 2008-07-21  Roland McGrath  <roland@frob.com>
1598
1599         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1600         returned too much data out of line.
1601
1602 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1603
1604         * locale/setlocale.c (setname): Remove inline to avoid compiler
1605         warning.
1606
1607         [BZ #6712]
1608         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1609
1610 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1611
1612         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1613         doesn't manage to write anything, fail.
1614
1615         * malloc/hooks.c (__malloc_check_init): Remove printf.
1616
1617 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1618
1619         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1620
1621 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1622
1623         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1624         from inotify.
1625         (main_loop_epoll): Likewise.
1626
1627 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1628
1629         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1630
1631         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1632         if DEBUG is defined.
1633
1634         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1635         query.  Adjust buffer size computation for padding.
1636
1637 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1638
1639         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1640         * stdio-common/tst-setvbuf1.c: New file.
1641         * stdio-common/tst-setvbuf1.expect: New file.
1642
1643         [BZ #6719]
1644         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1645         when selecting fully-buffered stream.
1646         Patch by Wang Xin <wxinee@gmail.com>.
1647
1648 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1649
1650         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1651         (__open_2): New function.
1652         (__open64_2): New alias to __open_2.
1653         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1654         (__openat_2): New function.
1655         (__openat64_2): New alias to __openat_2.
1656
1657 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1658
1659         [BZ #6723]
1660         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1661
1662 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1663
1664         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1665         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1666         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1667         __hurd_dfail.
1668         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1669         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1670         * sysdeps/mach/hurd/send.c (__send): Likewise.
1671         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1672         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1673
1674 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1675
1676         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1677         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1678         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1679         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1680         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1681         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1682
1683 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1684
1685         [BZ #6657]
1686         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1687         of %EY.
1688         Patch by Petr Baudis.
1689
1690 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1691
1692         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1693         Patch by Peter Jones <pjones@redhat.com>.
1694
1695 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1696
1697         [BZ #6654]
1698         * stdlib/canonicalize.c (__realpath): readlink can write too much
1699         into the buffer on platforms without PATH_MAX.
1700
1701 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1702
1703         [BZ #6653]
1704         * posix/tst-regex.c (main): Rename to...
1705         (do_test): ... this. Remove cmdline option processing.
1706         (TIMEOUT): Define.
1707         (TEST_FUNCTION): Define.
1708         (CMDLINE_OPTIONS): Define.
1709
1710 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1711
1712         [BZ #5210]
1713         * configure.in: Add -Werror to -fstack-protector test to catch
1714         unsupported architectures.
1715         Patch by Gilles Esponasse <g.esp@free.fr>.
1716
1717 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1720         getcontext returns ENOSYS.
1721
1722 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1723
1724         * nscd/connections.c (main_loop_poll): Fix test for read error.
1725         (main_loop_epoll): Likewise.
1726
1727 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1728
1729         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1730         better place so it is not called when nscd is used.
1731
1732         * nscd/connections.c: Also recognize and handle changes to the
1733         resolver configuration file.
1734
1735 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1736
1737         * time/strftime.c: Pass reference to tzset_called around to handle
1738         recursive calls.
1739
1740         [BZ #6612]
1741         * time/strftime.c (__strftime_internal): Call tzset() only
1742         when printing timezone-dependent values.
1743         Based on a patch by Petr Baudis <pasky@suse.cz>.
1744
1745         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1746         unconditionally use second gaih_getanswer_slice result.
1747
1748         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1749         (getaddrinfo): RES must always be non-NULL.
1750
1751 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1752
1753         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1754         cr[34] registers.
1755         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1756         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1757         Likewise.
1758         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1759         register.
1760
1761 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1762
1763         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1764         fields.
1765         * nscd/connections.c (inotify_fd): New variable.
1766         (nscd_init): Try to open an inotify descriptor.
1767         If successful, watch files for databases using inotify instead of
1768         having prune threads stat the files.
1769         (nscd_run_prune): Recognize clear_cache flag being set and call
1770         prune_cache appropriately.
1771         (main_loop_poll): Add inotify descriptor to wait set and handle the
1772         reported changes.
1773         (main_loop_epoll): Likewise.
1774         * nscd/cache.c (prune_cache): Don't stat files for databases if
1775         inotify is used.
1776         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1777         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1778
1779         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1780         fixed-size portion of the record.
1781         * nscd/servicescache.c (cache_addserv): Likewise.
1782         * nscd/pwdcache.c (cache_addpw): Likewise.
1783         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1784
1785 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1786
1787         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1788         out we don't use uninitialized memory.
1789
1790         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1791         the client.
1792
1793 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1794
1795         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1796         ignore T_DNAME messages.
1797         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1798
1799 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1800
1801         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1802         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1803
1804 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1805
1806         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1807         instead of portstr to nscd_getserv_r.  Patch by
1808         Roman Kagan <rkagan@mail.ru>.
1809
1810 2008-05-26  Jim Meyering  <meyering@redhat.com>
1811
1812         Remove more useless "if" tests before "free".
1813         * include/inline-hashtab.h (htab_delete): Likewise.
1814         * libio/freopen.c (freopen): Likewise.
1815         * libio/freopen64.c (freopen64): Likewise.
1816         * locale/programs/ld-collate.c (collate_read): Likewise.
1817         * misc/fstab.c (libc_freeres_fn): Likewise.
1818         * posix/glob.c (globfree): Likewise.
1819
1820 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1821
1822         * string/Makefile (strop-tests): Add memmem.
1823         * string/test-memmem.c: New file.
1824         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1825         (test_init): Size buf1 according to BUF1PAGES.
1826
1827 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1828
1829         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1830         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1831         (CFLAGS-scanf17.c): New.
1832         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1833         * stdio-common/scanf15.c (main): Likewise.
1834         * stdio-common/scanf16.c: New file.
1835         * stdio-common/scanf17.c: New file.
1836
1837 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1838
1839         * resolv/res_send.c (send_dg): If we already have one of two
1840         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1841         use the one answer insted of failing.
1842
1843 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1844
1845         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1846         being executed on PowerPC as the expected result exceeds IBM
1847         long double 128 __LDBL_MAX__.
1848
1849 2008-05-21  Roland McGrath  <roland@redhat.com>
1850
1851         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1852
1853         * Makefile (check-data): Use $(abi-name) before other guesses.
1854         Look in $(add-ons) dirs before scripts/data/.
1855         * elf/Makefile (check-data): Likewise.
1856
1857         * scripts/soversions.awk: Grok ABI line.
1858         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1859         Emit definition for abi-name variable.
1860
1861 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1862
1863         * string/endian.h: Define new fixed-size hto* and *toh macros only
1864         if [__USE_BSD].
1865
1866         * iconvdata/Depend: Add localedata.
1867
1868 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1869
1870         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1871
1872 2008-05-08  David S. Miller  <davem@davemloft.net>
1873
1874         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1875         HIDDEN_JUMPTARGET.
1876         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1877         (__SYSCALL_CLOBBERS): Remove %g* registers.
1878         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1879         (__SYSCALL_CLOBBERS): Likewise.
1880         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1881         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1882
1883 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1886         (CALL_ERRNO_LOCATION): Define.
1887         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1888         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1889         (CALL_ERRNO_LOCATION): Define.
1890         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1891         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1892         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1893
1894 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1895
1896         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1897         variable.
1898
1899 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1900
1901         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1902         (FIRST_FRAME_POINTER): Define.
1903
1904 2008-05-09  David S. Miller  <davem@davemloft.net>
1905
1906         * sysdeps/sparc/sparc64/backtrace.c: New file.
1907
1908 2008-05-14  David S. Miller  <davem@davemloft.net>
1909
1910         * sysdeps/sparc/machine-gmon.h: New file.
1911         * sysdeps/sparc/sparc-mcount.S: Likewise.
1912         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1913         sysdep_routines in gmon directory.
1914
1915 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1916
1917         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1918
1919 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1920
1921         * resolv/res_query.c (__libc_res_nquery): In case one of two
1922         answer was too short don't try to read that answer's header.
1923
1924         * resolv/res_send.c (send_dg): In case of timeout and there are
1925         two queries and one has been answered, return value indicating
1926         success.
1927
1928 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1929
1930         * nscd/cache.c (cache_add): Take additional parameter specifying
1931         whether this is in response of a cache refill.  Check alignment
1932         of package data.  Revamp waking of pruning thread.
1933         (prune_cache): Small optimization.
1934         * nscd/nscd.h: Adjust cache_add prototypes.
1935         * nscd/aicache.c: Adjust cache_add calls.
1936         * nscd/grpcache.c: Likewise.
1937         * nscd/hstcache.c: Likewise.
1938         * nscd/initgrcache.c: Likewise.
1939         * nscd/pwdcache.c: Likewise.
1940         * nscd/servicescache.c: Likewise.
1941         * nscd/connections.c (restart): Really disable cache use before
1942         exec attempt.  If it fails, reenable cache.
1943         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1944         time to max to be able to notice concurrent cache additions.  Unlock
1945         prune_lock while performing gc.  Afterwards compute wakeup time with
1946         current wakeup_time value in mind.
1947
1948 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1951
1952         * nscd/mem.c (gc): Correctly determine highest used array element
1953         in mark.
1954
1955         * nscd/mem.c (markrange): Add assert to check entries are all
1956         aligned.  Small cleanup in bitmap use.
1957
1958         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1959         blockoff of type nscd_ssize_t.
1960         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1961         (mempoll_alloc): Record block offset and not address.
1962
1963         * nscd/mem.c (gc): Fix test for stack overuse.
1964
1965         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1966         more asserts.
1967
1968         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1969         entry is available, believe it.
1970
1971         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1972         no answers return NSS_STATUS_NOTFOUND.
1973         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1974         buffer does not have any content.
1975
1976 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1977
1978         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1979
1980         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1981         lookup, don't assign canon unconditionally.
1982
1983 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1984
1985         * string/Makefile (distribute): Add str-two-way.h.
1986
1987 2008-03-29  Eric Blake  <ebb9@byu.net>
1988
1989         Rewrite string searches to O(n) rather than O(n^2).
1990         * string/str-two-way.h: New file.  For linear fixed-allocation
1991         string searching.
1992         * string/memmem.c: New implementation.
1993         * string/strstr.c: New implementation.
1994         * string/strcasestr.c: New implementation.
1995
1996 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1997
1998         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1999         opr.ctx_type.
2000         (calc_first): Initialize constraint field.
2001         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2002         Use search_duplicated_node to avoid loops.  Fix grammar.
2003         (duplicate_node): Merge constraint field for all node types.
2004         (calc_eclosure_iter): Look at constraint field for all node types.
2005         * posix/regex_internal.c (create_cd_newstate): Don't look at
2006         create_cd_newstate.
2007
2008 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2009
2010         [BZ #6428]
2011         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2012
2013         [BZ #6442]
2014         * string/endian.h: Add macros for fixed-size endian conversion.
2015         * bits/byteswap.h: Allow inclusion from <endian.h>.
2016         * sysdeps/i386/bits/byteswap.h: Likewise.
2017         * sysdeps/ia64/bits/byteswap.h: Likewise.
2018         * sysdeps/s390/bits/byteswap.h: Likewise.
2019         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2020         * string/Makefile (tests): Add tst-endian.
2021         * string/tst-endian.c: New file.
2022
2023         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2024         Patch by Reuben Thomas.
2025
2026 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2027
2028         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2029
2030 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2031
2032         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2033
2034         [BZ #6461]
2035         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2036         Add missing braces.
2037         (BODY for __gconv_transform_internal_ascii): Likewise.
2038
2039         [BZ #6472]
2040         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2041         to be treated like link-local addresses.
2042         (match_prefix): Don't treat IPv4 loopback address special when
2043         converting to v4 mapped addressed.
2044
2045         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2046         if necessary.
2047         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2048         * posix/tst-rfc3484-2.c: Likewise.
2049         * posix/tst-rfc3484-3.c: Likewise.
2050
2051         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2052         and SCTP.
2053
2054         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2055
2056         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2057
2058         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2059
2060 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2061
2062         * po/lt.po: New file.  From Lituanian translation team.
2063
2064 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2065
2066         Introduce TLS descriptors for i386 and x86_64.
2067         * include/inline-hashtab.h: New file, copied from 2005's
2068         libiberty, with fix for memory leak imported afterwards by
2069         Glauber de Oliveira Costa.
2070         * elf/tlsdeschtab.h: New file.
2071         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2072         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2073         (CHECK_STATIC_TLS): Move to...
2074         * elf/dynamic-link.h: ... this file.
2075         (TRY_STATIC_TLS): New macro.
2076         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2077         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2078         R_386_TLS_DESC): Define.
2079         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2080         binutils.
2081         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2082         R_X86_64_TLSDESC): Define.
2083         (R_386_NUM, R_X86_64_NUM): Adjust.
2084         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2085         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2086         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2087         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2088         release tlsdesc_table.
2089         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2090         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2091         (elf_machine_rel): Handle R_386_TLS_DESC.
2092         (elf_machine_rela): Likewise.
2093         (elf_machine_lazy_rel): Likewise.
2094         (elf_machine_lazy_rela): Likewise.
2095         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2096         * sysdeps/i386/dl-tlsdesc.S: New file.
2097         * sysdeps/i386/dl-tlsdesc.h: New file.
2098         * sysdeps/i386/tlsdesc.c: New file.
2099         * sysdeps/i386/tlsdesc.sym: New file.
2100         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2101         tlsdesc_table.
2102         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2103         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2104         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2105         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2106         release tlsdesc_table.
2107         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2108         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2109         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2110         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2111         (elf_machine_rela): Likewise.
2112         (elf_machine_lazy_rel): Likewise.
2113         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2114         (__tls_get_addr): Do not declare for non-shared compiles.
2115         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2116         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2117         * sysdeps/x86_64/tlsdesc.c: New file.
2118         * sysdeps/x86_64/tlsdesc.sym: New file.
2119         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2120         tlsdesc_table for both 32- and 64-bit structs.
2121
2122 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2123
2124         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2125         its own function.  This reduces the frame setup costs and more.
2126
2127 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2128
2129         [BZ #3406]
2130         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2131         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2132
2133 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2134
2135         * io/openat.c (__openat_2): Also pass fd to __openat.
2136         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2137         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2138
2139         * string/tester.c (test_memcmp): Add a few more tests.
2140         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2141
2142 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2143
2144         * nscd/cache.c (cache_add): Before returning with failure and this
2145         is the first use of the record, mark it as unusable.
2146         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2147         reporting a failure.
2148         * nscd/grpcache.c: Likewise
2149         * nscd/hstcache.c: Likewise.
2150         * nscd/initgrcache.c: Likewise.
2151         * nscd/pwdcache.c: Likewise.
2152         * nscd/servicescache.c: Likewise.
2153
2154 2008-05-10  Roland McGrath  <roland@redhat.com>
2155
2156         [BZ #6505]
2157         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2158
2159 2008-05-08  David S. Miller  <davem@davemloft.net>
2160
2161         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2162
2163         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2164         (__ieee754_y0l): Likewise.
2165         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2166         (__ieee754_y1l): Likewise.
2167         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2168         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2169         frexpl and ldexpl.  math_private.h provides them and the latter
2170         is not even used.
2171         (__log1pl): Use __frexpl.
2172
2173 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2174
2175         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2176         prototypes.
2177         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2178         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2179         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2180         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2181         af==AF_UNSPEC.
2182         (_nss_nis_gethostbyname4_r): New function.
2183         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2184         Change to also handle af==AF_UNSPEC.
2185         (get_tablename): New function.  Use it to avoid duplication.
2186         (_nss_nisplus_gethostbyname4_r): New function.
2187         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2188         available.
2189         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2190         * nss/nss.h: Define struct gaih_addrtuple.
2191         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2192         af==AF_UNSPEC.
2193         (_nss_files_gethostbyname4_r): New function.
2194         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2195         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2196         calls.
2197         * resolv/res_query.c (__libc_res_nquery): Take two additional
2198         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2199         look up IPv4 and IPv6.
2200         Change all callers.
2201         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2202         for an additional query and answer buffer.  Pass to send_vc and
2203         send_dg.
2204         (send_vc): Send possibly two requests and receive two answers.
2205         (send_dg): Likewise.
2206         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2207         __libc_res_nquery.
2208         (_nss_dns_gethostbyname4_r): New function.
2209         (gaih_getanswer_slice): Likewise.
2210         (gaih_getanswer): Likewise.
2211         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2212         __libc_res_nquery call.
2213         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2214         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2215         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2216         available.
2217
2218 2008-05-05  David S. Miller  <davem@davemloft.net>
2219
2220         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2221         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2222
2223 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2224
2225         Fix termios bit macros.
2226         Move *DLY definitions where they belong, in termios.h.
2227         Add *[0-3] definitions.
2228         Fixes confusion between VT and FF.
2229         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2230         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2231         are already defined to avoid collision with termios.h.
2232         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2233         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2234         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2235         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2236         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2237         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2238         VTDLY, VT0, VT1): New macros.
2239         [__USE_GNU] (OLCUC): Change value of macro.
2240         [__USE_XOPEN] (OFILL): New macro.
2241         [__USE_BSD] (CRTSCTS): Change value.
2242         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2243         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2244         (B7200, B14400, B28800, B76800): New macros.
2245
2246 2008-05-01  David S. Miller  <davem@davemloft.net>
2247
2248         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2249         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2250         (gen-as-const-headers): Add it.
2251         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2252         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2253         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2254         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2255
2256         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2257         six system call parameters.
2258         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2259
2260 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2261
2262         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2263         RUSAGE_LWP.
2264         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2265         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2266
2267 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2268
2269         * stdlib/tst-setcontext.c: Include unistd.h.
2270
2271 2008-04-25  David S. Miller  <davem@davemloft.net>
2272
2273         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2274         Pass "union semun" properly in to sys_ipc, it must be passed
2275         by value, not by reference.
2276
2277 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2278
2279         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2280         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2281         * nscd/connections.c (mem_in_flight): Likewise.
2282
2283         * nscd/nscd.h (dbs): Make hidden.
2284
2285         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2286         Avoid returning -1, return 0 instead.
2287
2288 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2289
2290         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2291
2292 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2293
2294         [BZ #5209]
2295         * sysdeps/unix/sysv/linux/times.c: New file.
2296
2297         [BZ #5381]
2298         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2299         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2300         prototype.
2301         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2302         appropriate mem_in_flight element.
2303         (gc): Take allocations which have not yet been committed to the
2304         database into account.
2305         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2306         Reset mem_in_flight before returning.
2307         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2308         cue it up in mem_in_flight_list.
2309         * nscd/aicache.c: Adjust mempool_alloc call.
2310         * nscd/grpcache.c: Likewise.
2311         * nscd/hstcache.c: Likewise.
2312         * nscd/initgrcache.c: Likewise.
2313         * nscd/pwdcache.c: Likewise.
2314         * nscd/servicescache.c: Likewise.
2315         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2316         of -fpie.
2317
2318         * nscd/connections.c (handle_request): Provide better error message
2319         in case SELinux forbids the service.
2320
2321         * version.h (VERSION): Bump to 2.8.90.
2322
2323 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2324
2325         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2326
2327 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2328
2329         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2330         Also use for 32-bit.
2331         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2332         __nextafter instead of nextafter to avoid local PLT.
2333         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2334         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2335
2336         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2337
2338         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2339         __fe_nomask_env.
2340         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2341         <fenv_libc.h> instead of <fenv.h>.
2342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2344
2345         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2346
2347         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2348         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2349         function from fegetexcept and make old name weak alias.
2350         * include/fenv.h: Declare __fegetexcept.
2351         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2352         fegetexcept.
2353         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2354         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2355         to fetestexcept.
2356         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2357         instead of frexpl to avoid local PLT.
2358         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2359         ilogbl to avoid local PLT.
2360         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2361         instead of ldexpl to avoid local PLT.
2362         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2363         __roundl not roundl to avoid local PLT.
2364         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2365         local PLTs.  Use __sincosl instead of separate sinl and cosl
2366         calls.
2367         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2368
2369         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2370         version for ppc64 to 2.4.21 since without it makecontext will fail.
2371
2372         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2373         to the ABI in use.
2374         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2375         .__tls_get_addr.
2376         [__powerpc64__] (TLS_GD): Likewise.
2377
2378 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2379
2380         [BZ #4997]
2381         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2382         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2383         mantissa.
2384         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2385         Likewise.  Also account for when x is an odd number between 2^52
2386         and 2^53-1.
2387         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2388         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2389         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2390         detect aforementioned erroneous conditions.
2391
2392 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2393
2394         * configure.in: Check for -fno-section-anchors in addition to
2395         -fno-toplevel-reorder.
2396
2397 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2398
2399         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2400
2401         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2402         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2403         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2404         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2405         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2406         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2407
2408 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2409
2410         [BZ #5443]
2411         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2412         * time/alt_digit.c: Likewise.
2413         * wcsmbs/wcsmbsload.c: Likewise.
2414
2415 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2416
2417         * version.h (VERSION): Bump to 2.8.
2418
2419         * timzeone/asia: Update from tzdata2008b.
2420         * timezone/backward: Likewise.
2421         * timezone/europe: Likewise.
2422         * timezone/northamerica: Likewise.
2423         * timezone/southamerica: Likewise.
2424         * timezone/iso3166.tab: Likewise.
2425         * timezone/leapseconds: Likewise.
2426         * timezone/zone.tab: Likewise.
2427         * timezone/private.h: Update from tzcode2008a.
2428         * timezone/zdump.c: Likewise.
2429         * timezone/zic.c: Likewise.
2430
2431 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2432
2433         [BZ #5741]
2434         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2435         Define additonal Data Cache Block instruction macros.
2436         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2437         Replace dcbst with dcbf and sync with sync/isync.
2438
2439 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2440
2441         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2442         Always set ELF_RTYPE_CLASS_PLT.
2443         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2444
2445 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2446
2447         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2448         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2449         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2450         For ISA 2.01 and later replace mftb with mfspr 268.
2451
2452 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2453
2454         [BZ #5768]
2455         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2456         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2457
2458 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2459
2460         [BZ #5768]
2461         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2462         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2463         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2464         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2465
2466 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2467
2468         * stdlib/tst-makecontext.c (othervar): New variable.
2469         (cf): Test sign extending the argument to long.
2470
2471 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2472
2473         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2474         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2475         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2476         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2477         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2478         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2479         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2480
2481 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2482
2483         * elf/Makefile (tests): Substitute tests-vis-yes here.
2484         (tests-vis-yes): Delete.
2485         (modules-name, modules-vis-yes): Similarly.
2486
2487 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2488
2489         [BZ #4407]
2490         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2491         Preserve sign in signgamp when x is zero.
2492
2493 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2494
2495         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2496         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2497         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2498         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2499         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2500         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2501
2502 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2503
2504         [BZ #4314]
2505         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2506         buffers.
2507
2508         [BZ #5209]
2509         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2510         a reserved error value.
2511
2512         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2513         value to check for correct sign extension.
2514
2515         [BZ #5436]
2516         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2517         Copy 64-bit parameter values even though this is not required in
2518         the standard.
2519
2520         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2521         PC save.
2522
2523 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2524
2525         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2526         PC save.
2527
2528 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2529
2530         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2531
2532 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2533
2534         [BZ #5998]
2535         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2536         in line-buffered stream failed.
2537         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2538
2539 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2540
2541         [BZ #6024]
2542         * scripts/abi-versions.awk: If the version specified by
2543         --enable-oldest-abi is older than the first version for this
2544         architecture, use the default version.
2545
2546         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2547         as well when ignoring the whole category.
2548
2549 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2550
2551         [BZ #6042]
2552         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2553         ETHERTYPE_* definitions.
2554         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2555
2556 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2557
2558         * stdlib/mbtowc.c (__no_r_state): Remove.
2559         (mbtowc): New static state variable.  Use it instead of
2560         __no_r_state.
2561         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2562         (__wctomb_state): New hidden variable.
2563         (wctomb): Use __wctomb_state instead of __no_r_state.
2564         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2565         (__wctomb_state): New extern decl.
2566         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2567
2568 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2569
2570         [BZ #5475]
2571         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2572
2573 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2574
2575         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2576
2577 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2578
2579         * po/nl.po: Update from translation team.
2580
2581 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2582
2583         [BZ #6007]
2584         * string/strfry.c: Handle empty strings again.
2585
2586 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2587
2588         [BZ #5443]
2589         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2590         before looking for translation.
2591         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2592         * locale/freelocale.c: Likewise.
2593         * locale/newlocale.c: Likewise.
2594         * locale/setlocale.c: Likewise.
2595         Based partially on a patch by ryo@np.css.fujitsu.com.
2596
2597 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2598
2599         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2600         acquiring wrlock.  Do conv_tab allocation while holding lock.
2601         * intl/Makefile: Add rules to build and run tst-gettext6.
2602         * intl/tst-gettext6.c: New test.
2603         * intl/tst-gettext6.sh: New file.
2604
2605 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2606
2607         * po/nl.po: Update from translation team.
2608
2609         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2610         provided through st_blksize, try the default size before giving up.
2611
2612 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2613
2614         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2615
2616         [BZ #5939]
2617         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2618
2619         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2620         error message.  POSIX today does not require the messages to be in
2621         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2622
2623         [BZ #5979]
2624         * sunrpc/auth_unix.c: Unify printed strings.
2625         * sunrpc/clnt_tcp.c: Likewise.
2626         * sunrpc/clnt_udp.c: Likewise.
2627         * sunrpc/clnt_unix.c: Likewise.
2628         * sunrpc/svc_tcp.c: Likewise.
2629         * sunrpc/svc_udp.c: Likewise.
2630         * sunrpc/svc_unix.c: Likewise.
2631         * sunrpc/xdr.c: Likewise.
2632         * sunrpc/xdr_array.c: Likewise.
2633         * sunrpc/xdr_rec.c: Likewise.
2634         * sunrpc/xdr_ref.c: Likewise.
2635         * locale/programs/ld-time.c (time_finish): Unify messages.
2636         * locale/programs/locfile.c (handle_copy): Fix typo.
2637         * nscd/nscd.c (options): Fix typo.
2638
2639         [BZ #5995]
2640         * stdlib/strtod_l.c: Use correct sign for result in one more
2641         underflow case.
2642         Patch by Eric Blake <ebb9@byu.net>.
2643
2644 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2645
2646         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2647         and creat system calls.
2648         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2649         call.
2650         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2651         system calls.
2652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2653         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2654         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2655
2656 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2657
2658         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2659         <linux/limits.h> has defined it.
2660         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2661         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2662         headers.
2663         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2664         it instead of ARG_MAX.
2665
2666 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2667
2668         * posix/gai.conf: Fix comment for scope nullbits.
2669         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2670         default to 128 bits for v4 mapped addresses.
2671
2672 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2673
2674         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2675         ptrace call to get the ieee_instruction_pointer from the kernel.
2676         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2677         ptrace call to set the ieee_instructtion_pointer.
2678         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2679         Add comment that ieee_instruction_pointer is always 0.
2680
2681 2008-03-09  Andreas Jaeger  <aj@suse.de>
2682
2683         [BZ #5857]
2684         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2685         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2686         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2687
2688         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2689         (rint_test): Likewise.
2690
2691 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2692
2693         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2694         call.
2695         (__nisfind_server): Similar for open readColdStartFile call.
2696         Patch partially by Jim Meyering.
2697         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2698         around internal_setent call.
2699
2700         * po/vi.po: New Vietnamese translation.
2701
2702         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2703         ADJ_OFFSET_SS_READ.
2704
2705         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2706         remove CLONE_STOPPED.
2707
2708 2008-02-10  Jim Meyering  <meyering@redhat.com>
2709
2710         Remove useless "if" before "free":
2711         * elf/ldconfig.c (parse_conf_include): Likewise.
2712         * gmon/gmon.c (weak_alias): Likewise.
2713         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2714         * inet/rcmd.c (__validuser2_sa): Likewise.
2715         * intl/bindtextdom.c (set_binding_values): Likewise.
2716         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2717         * libio/genops.c (save_for_backup): Likewise.
2718         * libio/wgenops.c (save_for_wbackup): Likewise.
2719         * locale/programs/ld-collate.c (collate_read): Likewise.
2720         * locale/programs/linereader.c (get_string): Likewise.
2721         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2722         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2723         * resolv/res_debug.c (do_section): Likewise.
2724         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2725         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2726         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2727         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2728         * time/tzset.c (tzset_internal): Likewise.
2729
2730 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2731
2732         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2733         of ASSEMBLER.
2734
2735 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2736
2737         [BZ #5903]
2738         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2739         not stream for output file.  Open output file here.
2740         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2741         and output file name.
2742         (process_fd): Likewise.
2743         (process_file): Likewise.
2744         (main): Adjust callers of changed functions.
2745         * iconv/iconv_prog.h: Adjust prototype.
2746
2747 2008-03-09  Andreas Jaeger  <aj@suse.de>
2748
2749         [BZ #5753]
2750         * sysdeps/ia64/ieee754.h: Use protected namespace
2751         __BIG_ENDIAN/__LITTLE_ENDIAN.
2752         * sysdeps/ieee754/ieee754.h: Likewise.
2753         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2754
2755 2008-03-08  Roland McGrath  <roland@frob.com>
2756
2757         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2758         ignore a signal that came from a machine exception, treat it as a
2759         fatal core-dump signal instead.
2760         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2761
2762         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2763         Clear DF bit in thread state's eflags.
2764         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2765
2766 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2767
2768         [BZ #5774]
2769         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2770         of NAN(...) sequence.
2771         * stdlib/Makefile (tests): Add tst-strtod6.
2772         * stdlib/tst-strtod6.c: New file.
2773
2774         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2775
2776         [BZ #5762]
2777         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2778         putting offending option character in quotes.  Clean up error
2779         messages.
2780         * po/be.po: Adjust msgstr in translation file.
2781         * po/bg.po: Likewise.
2782         * po/ca.po: Likewise.
2783         * po/cs.po: Likewise.
2784         * po/da.po: Likewise.
2785         * po/de.po: Likewise.
2786         * po/es.po: Likewise.
2787         * po/fr.po: Likewise.
2788         * po/hr.po: Likewise.
2789         * po/ko.po: Likewise.
2790         * po/nl.po: Likewise.
2791         * po/rw.po: Likewise.
2792         * po/sk.po: Likewise.
2793         * po/sv.po: Likewise.
2794         * po/tr.po: Likewise.
2795         * po/zh_CN.po: Likewise.
2796         * po/zh_TW.po: Likewise.
2797
2798         [BZ #5760]
2799         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2800         Patch by Roland Bless <roland@bless.de>.
2801
2802         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2803         .o file.
2804         * elf/Makefile (routines): Add dl-sysdep.
2805         (elide-routines.os): Likewise.
2806
2807 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2808
2809         [BZ #5786]
2810         * elf/dl-sysdep.c: Undefine ROUND after use.
2811         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2812         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2813         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2814         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2815         to ...
2816         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2817         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2818         if necessary.
2819         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2820
2821         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2822         _dl_tls_get_addr_soft element.
2823         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2824         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2825         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2826         GLRO.
2827         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2828         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2829         of internal_function.
2830
2831         * stdlib/Makefile (aux): Add tens_in_limb.
2832         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2833         * stdlib/tens_in_limb.c: ...here.  New file.
2834
2835         [BZ #5778]
2836         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2837         __statfs_chown_restricted.
2838         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2839         for _PC_CHOWN_RESTRICTED.
2840         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2841         Implement __statfs_chown_restricted.
2842         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2843         _POSIX_CHOWN_RESTRICTED value to zero.
2844         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2845         defined to zero.
2846
2847         * sysdeps/x86_64/rtld-memset.c: New file.
2848
2849 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2850
2851         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2852
2853         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2854         Barcelona machine.  Make default fall through branch of
2855         __x86_64_preferred_memory_instruction check as the integer code path.
2856
2857 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2858
2859         * sysdeps/x86_64/cacheinfo.c
2860         (__x86_64_preferred_memory_instruction): New variable.
2861         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2862
2863         * sysdeps/x86_64/memset.S: Rewrite.
2864
2865 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2866
2867         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2868         __obstack_printf_chk): New prototypes.
2869         (__vasprintf_chk, __vdprintf_chk,
2870         __obstack_vprintf_chk): Likewise.
2871         Add libc_hidden_proto.
2872         * libio/obprintf.c
2873         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2874         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2875         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2876         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2877         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2878         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2879         __obstack_vprintf_chk): New prototypes.
2880         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2881         obstack_vprintf): New inlines.
2882         * debug/dprintf_chk.c: New file.
2883         * debug/vdprintf_chk.c: New file.
2884         * debug/asprintf_chk.c: New file.
2885         * debug/vasprintf_chk.c: New file.
2886         * debug/obprintf_chk.c: New file.
2887         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2888         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2889         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2890         @@GLIBC_2.8.
2891         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2892         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2893         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2894         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2895         libc_hidden_proto.
2896         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2897         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2898         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2899         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2900         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2901         @@GLIBC_2.8.
2902         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2903         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2904         obstack_vprintf_chk.
2905         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2906         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2907         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2908         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2909         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2910         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2911
2912 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2913
2914         [BZ #5779]
2915         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2916         Patch by Roy Marples <roy@marples.name>.
2917
2918         [BZ #5736]
2919         * malloc/malloc.c: Fix typo in comment.
2920
2921         [BZ #5627]
2922         * locale/iso-639.def: Add Shuswap.
2923
2924 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2925
2926         [BZ #5790]
2927         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2928         overwrite *h_errnop/*errnop values from getanswer_r in case of
2929         failure.
2930
2931 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2932
2933         [BZ #5818]
2934         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2935         (verify_persistent_db): Remove one unnecessary test and add a new one
2936         for bad configuration.
2937         (nscd_init): Improve error reported when persistent database cannot
2938         be reused.
2939         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2940         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2941         .suggested_module and .max_db_size and case config file says the
2942         values are zero.
2943         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2944
2945         [BZ #5854]
2946         * nis/ypclnt.c (yp_order): Fix handling of return value of
2947         do_ypcall_tr call.
2948         Patch by Jeff Moyer <jmoyer@redhat.com>.
2949
2950         * po/fr.po: Update from translation team.
2951
2952 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2953             Carlos O'Donell <carlos@systemhalted.org>
2954
2955         [BZ #5012]
2956         * FAQ.in: Describe why glibc needs to be compiled with
2957         optimization.
2958
2959 2008-02-19  Roland McGrath  <roland@redhat.com>
2960
2961         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2962
2963 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2964
2965         [BZ #5737]
2966         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2967         __USE_MISC is defined.
2968
2969 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2970
2971         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2972         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2973         sys/timerfd.h.
2974         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2975         timerfd_gettime, timerfd_settime.
2976         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2977         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2978
2979 2008-02-08  Roland McGrath  <roland@redhat.com>
2980
2981         * elf/elf.h (NT_PPC_SPE): New macro.
2982
2983 2008-02-06  Roland McGrath  <roland@redhat.com>
2984
2985         * Makerules ($(common-objpfx)sysd-rules):
2986         Depend on $(sysdep-makeconfigs).
2987
2988 2008-01-31  Roland McGrath  <roland@redhat.com>
2989
2990         [BZ #5442]
2991         * configure.in: Use -print-file-name if it yields a directory,
2992         for each of include and include-fixed.
2993         * configure: Regenerated.
2994
2995         * Makeconfig (sysd-rules-targets): New variable.
2996         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2997         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2998
2999 2008-01-30  Roland McGrath  <roland@redhat.com>
3000
3001         * manual/libc.texinfo: Update back-cover text.
3002
3003         * elf/elf.h (NT_386_TLS): New macro.
3004
3005 2008-01-29  Roland McGrath  <roland@redhat.com>
3006
3007         * Makeconfig (sysd-rules-patterns): New variable.
3008         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3009         (check-inhibit-asm): New canned sequence, replaces ...
3010         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3011         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3012         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3013         (CFLAGS-rtld): Variable removed.
3014
3015 2008-01-24  Roland McGrath  <roland@redhat.com>
3016
3017         * configure.in: Let configure fragments set base_os.
3018         * configure: Regenerated.
3019
3020 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3021
3022         * po/ko.po: Update from translation team.
3023
3024 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3025
3026         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3027
3028 2008-01-12  Andreas Jaeger  <aj@suse.de>
3029
3030         [BZ #5040]
3031         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3032         Add EPOLLRDHUP.
3033
3034 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3035
3036         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3037         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3038         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3039
3040 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3041
3042         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3043         * elf/dl-close.c (_dl_close): Check for it.
3044         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3045         (_dl_allocate_static_tls): Likewise.
3046         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3047         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3048         to it.
3049         * elf/tst-tls16.c: New file.
3050         * elf/tst-tlsmod16a.c: New file.
3051         * elf/tst-tlsmod16b.c: New file.
3052         * elf/Makefile: Add rules to build and run tst-tls16.
3053
3054 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3055
3056         [BZ #5628]
3057         * bits/shm.h: Fix comment describing shmid_ds.
3058         * sysdeps/gnu/bits/shm.h: Likewise.
3059         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3060         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3061         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3062         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3063         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3064         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3065         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3066         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3067         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3068
3069         [BZ #5607]
3070         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3071         prototypes.
3072         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3073         additional suffixes.
3074         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3075         Add optional functions mq_timedreceive and mq_timedsend.
3076         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3077         * conform/data/pthread.h-data: Fix prototype of
3078         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3079         * conform/data/semaphore.h-data: Allow time.h definitions.
3080         * conform/data/signal.h-data: Likewise.
3081         * conform/data/stdio.h-data: getw and putw are not required in v6.
3082         * conform/data/stdlib.h-data: Change setstate prototype.
3083         * conform/data/string.h-data: Fix strerror_r prototype.
3084         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3085         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3086         Fix readlink prototype.
3087         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3088         in6addr_loopback.
3089         * inet/netinet/in.h: Cleanup namespace.
3090         * posix/regex.h: Likewise.
3091         * resolv/netdb.h: Likewise.
3092         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3093         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3094         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3095         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3096         of names of in in6_addr.
3097         (default_precedence): Likewise.
3098         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3099         NULL definition.
3100
3101 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3102
3103         * conform/data/fmtmsg.h-data: Add missing allows.
3104         * conform/data/ftw.h-data: Likewise.
3105         * conform/data/inttypes.h-data: Likewise.
3106         * conform/data/math.h-data: Likewise.
3107         * conform/data/signal.h-data: Likewise.
3108         * conform/data/net/if.h-data: Likewise.
3109         * conform/data/netinet/in.h-data: Likewise.
3110         * conform/data/sys/socket.h-data: Likewise.
3111
3112         [BZ #5614]
3113         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3114         (__strtok_r): Simplify.
3115         * string/tester.c (test_strtok_r): Add test case for futile search
3116         with single-character seach string.
3117
3118 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3119
3120         * po/ko.po: Update from translation team.
3121
3122 2008-01-11  Andreas Jaeger  <aj@suse.de>
3123
3124         [BZ #5600]
3125         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3126         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3127         kernel header.
3128
3129 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3130
3131         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3132         native interface lookup in all the relevant places.
3133
3134 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3135             Ulrich Drepper  <drepper@redhat.com>
3136
3137         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3138         field.  Use sockaddr_in6 for source_addr.
3139         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3140         (match_prefix): Likewise.
3141         (get_label): Likewise.
3142         (get_precedence): Likewise.
3143         (rfc3484_sort): Change to use indirect access to results array.
3144         Adjust to use of sockaddr_in6.  Replace service_order test with
3145         simple index comparison.
3146         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3147         service_order field.  Adjust qsort_t calls.  Access sorted result
3148         array indirectly through order array.
3149         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3150         * posix/tst-rfc3484-2.c: Likewise.
3151         * posix/tst-rfc3484-3.c: Likewise.
3152
3153 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3154
3155         [BZ #5541]
3156         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3157         pollfd structures.
3158         Patch by André Cruz.
3159
3160         [BZ #5545]
3161         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3162         (clnt_spcreateerror): Likewise.
3163
3164         [BZ #5553]
3165         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3166         (public_mEMALIGn): Likewise.
3167         Patch mostly by Daniel Jacobowitz.
3168
3169 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3170
3171         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3172         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3173         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3174         * stdlib/tst-makecontext2.c: New test.
3175
3176 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3177
3178         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3179         defined.
3180         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3181         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3182         transliteration hooks and REINIT_PARAMS afterwards.
3183         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3184         status.
3185         (REINIT_PARAMS): Define.
3186         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3187         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3188         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3189         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3190         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3191         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3192         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3193         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3194         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3195         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3196         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3197         * iconvdata/tst-iconv7.c: New test.
3198
3199 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3200
3201         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3202
3203 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3204
3205         [BZ #5112]
3206         * nscd/connections.c (restart): Fix condition.
3207
3208 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3209
3210         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3211         __ctype_toupper_loc): Add __THROW.
3212
3213 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3214
3215         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3216         recognition of interface family.
3217
3218         * posix/getconf.c: Update copyright year.
3219         * nss/getent.c: Likewise.
3220         * iconv/iconvconfig.c: Likewise.
3221         * iconv/iconv_prog.c: Likewise.
3222         * elf/ldconfig.c: Likewise.
3223         * catgets/gencat.c: Likewise.
3224         * csu/version.c: Likewise.
3225         * elf/ldd.bash.in: Likewise.
3226         * elf/sprof.c (print_version): Likewise.
3227         * locale/programs/locale.c: Likewise.
3228         * locale/programs/localedef.c: Likewise.
3229         * nscd/nscd.c (print_version): Likewise.
3230         * debug/xtrace.sh: Likewise.
3231         * malloc/memusage.sh: Likewise.
3232         * malloc/mtrace.pl: Likewise.
3233         * debug/catchsegv.sh: Likewise.
3234
3235 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3236
3237         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3238         second lookup.
3239
3240 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3241
3242         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3243         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3244
3245 2007-12-17  Roland McGrath  <roland@redhat.com>
3246
3247         * inet/ether_line.c (ether_line): Remove unused variable.
3248
3249 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3250
3251         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3252         and winp.
3253         * login/openpty.c (openpty): Likewise.
3254         * login/pty.h (openpty, forkpty): Likewise.
3255         * manual/terminal.texi (openpty, forkpty): Likewise.
3256
3257 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3258
3259         * malloc/malloc.c (public_cALLOc): For arenas other than
3260         main_arena, count all bytes inside the mprotect_size range of the
3261         heap as uninitialized.
3262
3263 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3264
3265         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3266         executable stacks.
3267
3268         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3269         mTRIm for all of them.
3270         (mTRIm): Additionally iterate over all free blocks and use madvise
3271         to free memory for all those blocks which contain at least one
3272         memory page.
3273         * malloc/tst-trim1.c: New file.
3274         * malloc/Makefile (tests): Add tst-trim1.
3275
3276         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3277
3278 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3279
3280         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3281         First cast argument to long
3282         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3283         Return long.
3284         (__vdso_clock_gettime): Likewise.
3285         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3286         return long.
3287
3288 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3289
3290         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3291         * locale/nl_langinfo_l.c: Real implementation, copied from
3292         nl_langinfo.c.
3293         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3294
3295 2007-12-01  Jim Meyering  <meyering@redhat.com>
3296
3297         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3298         that would inhibit utf8-optimization of a regexp containing line-
3299         or buffer-anchors, e.g., `^', `$'.
3300
3301 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3302
3303         * time/bug-getdate1.c (do_test): Don't use century values which
3304         aren't valid on 32-bit systems.
3305
3306 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3307
3308         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3309         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3310         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3311         __strcat_g, __strncat_g): Add __asm__.
3312
3313 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3314
3315         [BZ #5477]
3316         * io/fchmodat.c: Fix typo in stub_warning use.
3317         Patch by Petr Salinger.
3318
3319 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3320
3321         * iconvdata/hp-thai8.c: New file.
3322         * iconvdata/Makefile: Add rules for hp-thai8.c.
3323         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3324         * iconvdata/gconv-modules: Likewise.
3325
3326         [BZ #5464]
3327         * iconvdata/hp-greek8.c: New file.
3328         * iconvdata/Makefile: Add rules for hp-greek8.c.
3329         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3330         * iconvdata/gconv-modules: Likewise.
3331
3332         [BZ #5463]
3333         * iconvdata/hp-turkish8.c: New file.
3334         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3335         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3336         * iconvdata/gconv-modules: Likewise.
3337
3338         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3339         (shrink_heap): ... this new function.
3340         (heap_trim): Call shrink_heap instead of grow_heap.
3341
3342         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3343         case don't call alloc_perturb.
3344
3345 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3346
3347         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3348         possible.
3349         * sysdeps/unix/sysv/linux/kernel-features.h
3350         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3351         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3352
3353 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3354
3355         [BZ #5424]
3356         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3357         * stdio-common/Makefile (tests): Add bug22.
3358         * stdio-common/bug22.c: New file.
3359
3360         [BZ #5451]
3361         * time/getdate.c: Fix filling in default values.
3362         * time/bug-getdate1.c: New file.
3363         * time/Makefile: Add rules to build and run bug-getdate1.
3364
3365         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3366         * iconvdata/ebcdic-es.c: Likewise.
3367         * iconvdata/ebcdic-es-a.c: Likewise.
3368         * iconvdata/ebcdic-uk.c: Likewise.
3369         * iconvdata/iso8859-16.c: Likewise.
3370         * iconvdata/viscii.c: Likewise.
3371         * iconvdata/iso8859-9e.c: Likewise.
3372         * iconvdata/Makefile: Adjust appropriately.
3373
3374         [BZ #5428]
3375         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3376         __need_wint_t.
3377
3378 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3379
3380         [BZ #5427]
3381         * iconvdata/hp-roman9.c: New file.
3382         * iconvdata/Makefile: Add rules for hp-roman9.c.
3383         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3384         * iconvdata/gconv-modules: Likewise.
3385
3386         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3387         * iconvdata/Makefile: Adjust appropriately.
3388
3389         [BZ #5441]
3390         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3391         structure, it's allocated with alloca.
3392         * stdio-common/Makefile (tests): Add bug21.
3393         * stdio-common/bug21.c: New file.
3394
3395 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3396
3397         [BZ #5452]
3398         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3399         keyword for gcc's braced-groups.
3400
3401 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3402
3403         [BZ #5454]
3404         * inet/ether_line.c: Strip hostname of whitespaces.
3405         * inet/Makefile (tests): Add tst-ether_line.
3406         * inet/tst-ether_line.c: New file.
3407
3408 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3409
3410         [BZ #5439]
3411         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3412
3413         [BZ #5435]
3414         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3415
3416         * stdlib/tst-setcontext.c: Catch the case where the links gets
3417         messed up and we do not reach main again.
3418
3419         * po/ca.po: Update from translation team.
3420
3421 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3422
3423         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3424         * posix/regex.h (REG_ENOSYS): Likewise.
3425         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3426
3427 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3428
3429         * nscd/nscd.h (MAX_STACK_USE): Define.
3430         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3431         (gc): Initialize stack_used based on allocation in prune_cache.
3432         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3433         Clear array before use.
3434
3435         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3436         memory allocation failed.
3437         * nscd/hstcache.c (cache_addhst): Likewise.
3438         * nscd/grpcache.c (cache_addgr): Likewise.
3439         * nscd/servicescache.c (cache_addserv): Likewise.
3440         * nscd/pwdcache.c (cache_addpw): Likewise.
3441         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3442
3443 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3444
3445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3446         and creat system calls.
3447
3448         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3449
3450 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3451
3452         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3453         Add netiucv/iucv.h.
3454         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3455         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3456         protocol.
3457         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3458         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3459         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3460
3461 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3462
3463         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3464         strncat): Define as macros to avoid compile errors.
3465
3466         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3467         creat entries.
3468
3469 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3470
3471         [BZ #5382]
3472         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3473         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3474         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3475         overflow it.
3476         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3477
3478         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3479         Return zero in case the thread library is not NPTL.
3480
3481         [BZ #5375]
3482         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3483         initializing interface list.
3484
3485         [BZ #5378]
3486         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3487         use result of nss_getgrgid_r if nothing was found.  For other
3488         error return with a failure.
3489         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3490
3491         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3492         macro name.
3493
3494 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3495
3496         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3497         (get_scope): For IPv4 scope, use scopes table.
3498         (fini): Free scopes table if necessary.
3499         (free_scopelist): New function.
3500         (scopecmp): New function.
3501         (gaiconf_init): Also handle scopev4 entries.
3502         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3503         * posix/tst-rfc3484-2.c (do_test): Likewise.
3504         * posix/gai.conf: Document scopev4 defaults.
3505         * posix/Makefile (tests): Add tst-rfc3484-3.
3506         * posix/tst-rfc3484-3.c: New file.
3507
3508         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3509         Teredo tunnels.
3510         * posix/gai.conf: Update for current default tables.
3511
3512 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3513
3514         * po/tr.po: Update from translation team.
3515
3516 2007-11-18  Roland McGrath  <roland@frob.com>
3517
3518         * manual/arith.texi (Remainder Functions): Spelling fix.
3519         From Shaun Silk <genix@mysoul.com.au>.
3520
3521         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3522
3523 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3524
3525         * po/zh_CN.po: Update from translation team.
3526
3527         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3528         Add sys/signalfd.h and sys/eventfd.h.
3529
3530 2007-11-15  Bruno Haible  <bruno@clisp.org>
3531
3532         [BZ #5346]
3533         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3534         union.
3535         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3536         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3537         it needs only fixed stack space. Delay the initialization of
3538         msgid_len until it is needed.
3539
3540 2007-11-15  Andreas Jaeger  <aj@suse.de>
3541
3542         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3543         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3544
3545 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3546
3547         * po/ko.po: Update from translation team.
3548
3549 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3550
3551         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3552         significantly.  The device type is also part of the ifinfomsg data.
3553
3554         * po/sv.po: Update from translation team.
3555         * po/nl.po: Likewise.
3556
3557         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3558         to wake up in 24 hours.
3559
3560         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3561
3562 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3563
3564         * po/cs.po: Update from translation team.
3565         * po/pl.po: Likewise.
3566
3567         * include/ifaddrs.h: Remove in6ai_temporary.
3568         (struct in6addrinfo): Add index element.
3569         Declare __check_native.
3570         * inet/Makefile (aux): Add check_native.
3571         * sysdeps/unix/sysv/linux/check_native.c: New file.
3572         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3573         IFA_F_TEMPORARY.  Pass back ifa_index.
3574         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3575         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3576         call __check_native if necessary.
3577         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3578         to sort addresses.  Pass information about the results.
3579         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3580         of rfc3484_sort interface.
3581         * posix/tst-rfc3484-2.c: Likewise.
3582
3583         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3584         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3585         for _quicksort.
3586         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3587         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3588         on as third parameter to compare function and _quicksort.
3589         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3590         to the compare function.
3591         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3592         * Versions.def: Add GLIBC_2.8 for libc.
3593
3594         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3595         * posix/tst-rfc3484-2.c: Likewise.
3596
3597         * include/kernel-features.h: Moved to...
3598         * sysdeps/mach/hurd/kernel-features.h: ...here.
3599
3600 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3601
3602         * sysdeps/i386/i586/memcpy_chk.S: New file.
3603         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3604         * sysdeps/i386/i586/memset_chk.S: Likewise.
3605
3606 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3607
3608         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3609         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3610         list of interfaces.  Also store prefix length.
3611         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3612         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3613         prefix if source and destination address are in the same subnet.
3614         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3615         Always look for matching record in in6ai list.
3616         Correct source_addr_len value for IPv6->IPv4 converted records.
3617
3618 2007-11-11  Roland McGrath  <roland@frob.com>
3619
3620         * include/kernel-features.h: New file.
3621
3622 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3623
3624         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3625         complications for 64-bit platforms.
3626
3627         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3628         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3629         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3630         open64_2.
3631         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3632         entries.
3633         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3634         * sysdeps/wordsize-64/alphasort.c: New file.
3635         * sysdeps/wordsize-64/alphasort64.c: New file.
3636         * sysdeps/wordsize-64/fseeko.c: New file.
3637         * sysdeps/wordsize-64/fseeko64.c: New file.
3638         * sysdeps/wordsize-64/ftello.c: New file.
3639         * sysdeps/wordsize-64/ftello64.c: New file.
3640         * sysdeps/wordsize-64/ftw.c: New file.
3641         * sysdeps/wordsize-64/ftw64.c: New file.
3642         * sysdeps/wordsize-64/iofgetpos.c: New file.
3643         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3644         * sysdeps/wordsize-64/iofopen.c: New file.
3645         * sysdeps/wordsize-64/iofopen64.c: New file.
3646         * sysdeps/wordsize-64/iofsetpos.c: New file.
3647         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3648         * sysdeps/wordsize-64/lockf.c: New file.
3649         * sysdeps/wordsize-64/lockf64.c: New file.
3650         * sysdeps/wordsize-64/mkostemp.c: New file.
3651         * sysdeps/wordsize-64/mkostemp64.c: New file.
3652         * sysdeps/wordsize-64/mkstemp.c: New file.
3653         * sysdeps/wordsize-64/mkstemp64.c: New file.
3654         * sysdeps/wordsize-64/scandir.c: New file.
3655         * sysdeps/wordsize-64/scandir64.c: New file.
3656         * sysdeps/wordsize-64/tmpfile.c: New file.
3657         * sysdeps/wordsize-64/tmpfile64.c: New file.
3658         * sysdeps/wordsize-64/versionsort.c: New file.
3659         * sysdeps/wordsize-64/versionsort64.c: New file.
3660         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3661         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3662         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3663         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3664         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3665         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3666         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3667         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3668         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3669         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3670         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3671         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3672
3673         * crypt/sha256-crypt.c: Fix a comment.
3674         * crypt/sha512-crypt.c: Likewise.
3675
3676 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3677
3678         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3679
3680 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3681
3682         [BZ #5277]
3683         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3684         because output buffer is too small break, don't loop.
3685         * iconvdata/Makefile (tests): Add bug-iconv6.
3686         * iconvdata/bug-iconv6.c: New file.
3687
3688 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3689
3690         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3691         with size_t type.
3692         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3693         size_t.  Add casts where needed.
3694
3695         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3696         old headers, don't call avc_has_perm if we don't have the
3697         permission information.
3698
3699 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3700
3701         * elf/rtld.c (dl_main): Use the page size to find the map start.
3702
3703 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3704
3705         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3706         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3707
3708         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3709         when the lookup call failed.
3710
3711         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3712         Add prune_cond and wakeup_time.
3713         (CACHE_PRUNE_INTERNAL): Define.
3714         Update declarations of prune_cache and setup_thread.
3715         * nscd/connections.c (dbs): Update initializers.
3716         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3717         (nscd_init): Default number of threads is now 4.
3718         (invalidate_cache): Take lock before calling prune_cache.
3719         (handle_request): If SELinux forbids the request, say so.
3720         (readylist_cond): Use static initializer.
3721         (nscd_run_prune): New function.  Used only by pruning threads.
3722         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3723         here.
3724         (fd_ready): Update nscd_run reference.
3725         (start_threads): No need to initialize readylist_cond.
3726         Start pruning threads separately.
3727         * nscd/nscd_setup_thread.c: Change return value type to int and always
3728         return 0.
3729         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3730         to int and return nonzero value if we can use the TID address hack.
3731         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3732         the database is later than the new entry's timeout, update the
3733         wakeup time and wake the cleanup thread.
3734         (prune_cache): Return seconds the next entry in the database is still
3735         valid.  Remove locking for pruning here.
3736         * nscd/nscd.conf: Document default number of threads.
3737
3738 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3739
3740         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3741         stack is properly aligned for the target function.
3742         Correct unwind info.
3743
3744         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3745         when using auditing libraries.
3746
3747 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3748
3749         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3750         _nss_dns_getnetbyaddr2_r.
3751         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3752         extra parameter to getanswer_r.
3753         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3754         _nss_dns_getnetbyaddr2_r.
3755
3756         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3757         gethstbynm3_r.
3758         * nscd/gethstbynm2_r.c: Remove.
3759         * nscd/gethstbynm3_r.c: New file.
3760         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3761         __gethostbyaddr_r.
3762         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3763         __gethostbyaddr_r compatibility wrapper.
3764         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3765         determining timeout of entry.
3766         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3767         __gethostbyaddr2_r.
3768         (addhstbyX): Pass reference to variable for TTL to lookup and
3769         cache_addhst.
3770         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3771         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3772         and __nss_next2.  Remove __nss_services_lookup.
3773         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3774         Add compat wrapper.
3775         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3776         __nss_next2.
3777         * nss/getXXent_r.c: Likewise.
3778         * nss/getnssent_r.c: Likewise.
3779         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3780         does not exist in module, try the optional second name.
3781         (__nss_next2): New function.
3782         (__nss_next): Now wrapper around __nss_next2.
3783         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3784         Declare __nss_next2.
3785         Adjust definition of db_lookup_function type.
3786         * nss/service-lookup.c: Define NO_COMPAT.
3787         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3788         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3789         * inet/ether_ntoh.c: Likewise.
3790         * sunrpc/netname.c: Likewise.
3791         * sunrpc/publickey.c: Likewise.
3792         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3793         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3794         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3795         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3796         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3797
3798         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3799
3800         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3801
3802 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3803
3804         [BZ #5204]
3805         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3806         * crypt/sha512c-test.c: Likewise.
3807
3808         [BZ #5225]
3809         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3810         to keep track of end of %[ format string element.
3811         * stdio-common/Makefile (tests): Add bug20.
3812         * stdio-common/bug20.c: New file.
3813
3814         [BZ #5222]
3815         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3816         path elements in counting mode.
3817
3818 2007-10-27  Andreas Jaeger  <aj@suse.de>
3819
3820         [BZ #5040]
3821         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3822
3823         [BZ #3112]
3824         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3825         (__cleanup): Free shared library when exiting.
3826         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3827         (__cleanup): Free shared library when exiting.
3828
3829 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3830
3831         [BZ #2549]
3832         * math/libm-test.inc (check_float_internal): Support
3833         denormalized return.
3834
3835 2007-10-23  Andreas Jaeger  <aj@suse.de>
3836
3837         [BZ #5208]
3838         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3839         __LONG_LONG_PAIR to handle little endian byte order.
3840         Suggested by abhishekrai@google.com
3841
3842 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3843
3844         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3845
3846 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3847
3848         * nscd/cache.c (prune_cache): Move test for modified file outside
3849         of locking.
3850
3851 2007-10-21  Andreas Jaeger  <aj@suse.de>
3852
3853         * manual/texinfo.tex: Update to latest version.
3854
3855         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3856
3857         * manual/arith.texi (Status bit operations): Fix formatting.
3858
3859         * manual/errno.texi (Error Messages): Fix formatting.
3860
3861         * manual/sysinfo.texi (System Parameters): Fix formatting.
3862
3863         * manual/libc.texinfo: Update VERSION and UPDATED.
3864
3865 2007-10-19  Roland McGrath  <roland@redhat.com>
3866
3867         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3868
3869 2007-10-06  David S. Miller  <davem@davemloft.net>
3870
3871         * configure.in: Add sparcv9v2 and sparc64v2.
3872         * scripts/config.sub: Likewise.
3873         * configure: Regenerate.
3874         * elf/elf.h (HWCAP_SPARC_N2): New.
3875         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3876         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3877         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3878         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3879         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3880         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3881         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3882
3883 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3884
3885         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3886         even if the poll result indicates there is data to read.
3887         Patch by Jeff Moyer <jmoyer@redhat.com>.
3888
3889 2007-10-18  Roland McGrath  <roland@redhat.com>
3890
3891         * elf/elf.h (NT_PPC_VMX): New macro.
3892
3893 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3894
3895         * version.h (VERSION): Set to 2.7.90.
3896
3897 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3898
3899         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3900         weak_alias.
3901
3902 2007-10-17  Roland McGrath  <roland@frob.com>
3903
3904         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3905         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3906
3907 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3908
3909         * version.h (VERSION): Bump to 2.7.
3910         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3911
3912         [BZ #5186]
3913         * time/tzset.c (__tz_convert): Don't force testing for a change of
3914         TZ if not called from localtime.  But then also see whether the
3915         file changed, in case __use_tzfile is set.
3916
3917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3918         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3919         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3920         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3921         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3922         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3923         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3924         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3925
3926 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3927
3928         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3929         and admin selects to be able to replace the gai.conf file, lock
3930         data structures around the qsort call.
3931
3932 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3933
3934         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3935         new memset.
3936         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3937         too high for the improvements.  Implement bzero unconditionally for
3938         use in libc.
3939
3940 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3941             Jakub Jelinek  <jakub@redhat.com>
3942
3943         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3944         even when time_t is 32-bit.
3945         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3946         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3947         always set after the search.
3948
3949 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3950
3951         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3952         unreachable code on 32-bit machines.
3953
3954 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3955
3956         [BZ #5184]
3957         * time/strftime_l.c: Include stdbool.h.
3958         (my_strftime): New wrapper, old function renamed to...
3959         (__strftime_internal): ... new function.  Add tzset_called
3960         argument, pass it down to recursive calls, don't call tzset ()
3961         if already true, set to true after call to tzset ().
3962
3963 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3964
3965         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3966         into account when copying TZ string.
3967
3968 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3969
3970         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3971         num_transition rather than num_transitions - 1.
3972
3973 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3974
3975         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3976         PIC indirect jump.
3977
3978         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3979         a local label rather than HIDDEN_JUMPTARGET.
3980
3981 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3982
3983         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3984         (init_cacheinfo): Initialize it.
3985         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3986         Always define bzero.
3987         Remove non-glibc code.
3988         * sysdeps/x86_64/bzero.S: Make an empty file.
3989
3990 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3991
3992         * sysdeps/x86_64/cacheinfo.c
3993         (__x86_64_preferred_memory_instruction): New.
3994         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3995
3996         * sysdeps/x86_64/memset.S: Rewrite.
3997
3998 2007-10-15  Roland McGrath  <roland@redhat.com>
3999
4000         * po/libc.pot: Regenerated.
4001
4002 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4005         pointers.
4006
4007         [BZ #3425]
4008         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4009         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4010         address record to T_A/T_AAAA requests.
4011
4012 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4013
4014         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4015
4016         * posix/glob.c: Add some branch prediction throughout.
4017
4018         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4019         read from nscd.
4020
4021         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4022         service_order.
4023         (rfc3484_sort): Make sure that even if qsort doesn't support
4024         stable sorting out sorting here is stable by comparing service_order.
4025         (getaddrinfo): Initialize service_order.
4026         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4027         service_order field to sorting structure.
4028         * posix/tst-rfc3484-2.c (do_test): Likewise.
4029
4030         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4031         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4032         __tzset_parse_tz and updating of daylight, timezone, tzname into
4033         update_vars.
4034         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4035         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4036         happens in __tz_compute.
4037         * time/tzfile.c (__tzfile_read): Also read TZ string.
4038         (find_transition): Fold into __tzfile_compute.
4039         (__tzfile_compute): For times beyond the last transition try to
4040         use the TZ string.
4041         * timezone/tst-timezone.c: Information in daylight and tzname does
4042         change for Asia/Tokyo timezone with more concrete information.
4043         Remove the test.
4044
4045         * include/stdio.h: Add libc_hidden_proto for ftello.
4046         * libio/ftello.c: Add libc_hidden_def.
4047
4048         [BZ #1140]
4049         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4050         on the specified time and not the last entries in the file.  Move
4051         code to determine tzname[] to...
4052         (find_transition): ...here.  Add ugly guess for times before the
4053         first transition.
4054
4055 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4056
4057         [BZ #3195]
4058         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4059         no entry.
4060         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4061         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4062         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4063         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4064
4065         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4066         read mechanism when there are no group members and avoid no-op
4067         read syscall in this case.
4068
4069         [BZ #3242]
4070         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4071         (__readall): If reading failed due to EAGAIN error wait a bit
4072         and possibly try again.
4073         (__readvall): Likewise.
4074
4075 2007-10-13  Bruno Haible  <bruno@clisp.org>
4076
4077         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4078         when we cannot recode the message.
4079
4080 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4081
4082         [BZ #4359]
4083         * libio/__freading.c (__freading): Don't return true for
4084         write-only streams.  For read/write streams, check whether we
4085         performed a read operation already.
4086         * libio/Makefile (tests): Add tst-ext2.
4087         * libio/tst-ext2.c: New file.
4088
4089 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4090
4091         * locale/programs/repertoire.c (repertoire_read): Always free
4092         memory for repertoire file name [Coverity CID 270].
4093
4094         * elf/cache.c (save_aux_cache): Free memory allocated for
4095         temporary file name [Coverity CID 267].
4096
4097 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4098
4099         * misc/Makefile (headers): Add bits/error.h.
4100
4101 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4102
4103         * posix/fnmatch_loop.c: Take rule index returned as part of
4104         findidx return value into account when accessing weights.
4105         * posix/regcomp.c: Likewise.
4106         * posix/regexec.c: Likewise.
4107
4108         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4109         (skip_to): Fix problems with parameter of elifdef/elifndef.
4110
4111 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4112
4113         * iconv/gconv_simple.c: Add some branch prediction.
4114
4115 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4116
4117         * locale/programs/ld-collate.c (collate_read): If ignore_content
4118         and nowtok is tok_define, eat any tok_eol tokens.
4119
4120 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4121
4122         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4123         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4124
4125         * inet/netinet/in.h: Don't include bits/socket.h.
4126         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4127         macro.
4128         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4129
4130 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4133         and tok_elifndef.
4134         * locale/programs/locfile-kw.gperf: Likewise.
4135         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4136
4137 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4138
4139         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4140         (__find_specwc): Change into __extern_always_inline function.
4141         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4142         (__parse_one_specmb): Remove ps argument.
4143         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4144         Adjust __find_specmb and __parse_one_specmb callers.
4145         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4146         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4147         Removed.
4148         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4149         caller.
4150
4151 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4152
4153         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4154         with some Pentium Ds.
4155
4156 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4157
4158         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4159         __read not read.
4160         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4161         __write not write.
4162
4163 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4164
4165         [BZ #181]
4166         * locale/C-time.c: Set week_1stday data to 19971201.
4167         * locale/programs/ld-time.c (time_finish): Default for
4168         first_workday is Monday.
4169
4170         [BZ #2633]
4171         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4172
4173         [BZ #5103]
4174         * posix/glob.c (glob): Recognize patterns starting \/.
4175         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4176         (main): Add test for pattern starting \/.
4177
4178         * misc/error.h: Use __const instead of const.
4179         * misc/bits/error.h: Likewise.
4180
4181 2007-10-07  Andreas Jaeger  <aj@suse.de>
4182
4183         * include/bits/error.h: New file.
4184
4185         * misc/bits/error.h (error_at_line): Fix prototype.
4186
4187 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4188
4189         [BZ #3924]
4190         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4191         more little bugs in creating the stack frame when pltexit has to
4192         be called.
4193
4194         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4195         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4196
4197         [BZ #4407]
4198         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4199         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4200         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4201         * math/libm-test.inc: Add test for this case.
4202
4203         [BZ #5010]
4204         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4205         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4206         map service succeeded.
4207         (svc_is_mapped): New function.
4208         (svc_unregister): Use it before trying to unmap service.
4209
4210 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4211
4212         * timezone/zic.c: Update from tzcode2007h.
4213
4214         [BZ #5063]
4215         * timezone/africa: Update from tzdata2007h.
4216         * timezone/antarctica: Likewise.
4217         * timezone/asia: Likewise.
4218         * timezone/australasia: Likewise.
4219         * timezone/europe: Likewise.
4220         * timezone/leapseconds: Likewise.
4221         * timezone/northamerica: Likewise.
4222         * timezone/southamerica: Likewise.
4223         * timzeone/zone.tab: Likewise.
4224
4225         [BZ #5104]
4226         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4227
4228         [BZ #5113]
4229         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4230         avoid warning with -Wconversion.
4231         (__strndup): Likewise.
4232         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4233
4234         [BZ #5112]
4235         * nscd/connections.c (restart): Don't resync if database is
4236         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4237
4238         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4239         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4240
4241         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4242         evetnfd_read, eventfd_write.
4243         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4244         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4245         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4246         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4247         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4248         eventfd_write for GLIBC_2.7.
4249
4250         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4251         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4252         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4253         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4254
4255 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4256
4257         * stdlib/msort.c: Include stdint.h.
4258         (struct msort_param): New type.
4259         (msort_with_tmp): Use struct msort_param pointer for unchanging
4260         parameters.  Add optimized handling for several common sizes
4261         and indirect sorting mode.
4262         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4263         sorting.
4264         Suggested by Belazougui Djamel .
4265
4266         * stdlib/Makefile (tests): Add tst-qsort2.
4267         * stdlib/tst-qsort2.c: New test.
4268
4269 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4270
4271         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4272         for dup2 in case another thread races with the current one.  Retry
4273         in this case.
4274
4275         * misc/error.h: Remove support for use outside of libc.  We have to
4276         include <features.h> now.  Include <bits/error.h> if possible.
4277         * misc/bits/error.h: New file.
4278
4279 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4280
4281         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4282         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4283         __extern_always_inline functions unconditionally, drop macros.
4284
4285         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4286         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4287         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4288
4289         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4290         add __artificial__ attribute.
4291
4292 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4293
4294         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4295         backward to forward direction.
4296
4297         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4298
4299         [BZ #645]
4300         * locale/programs/ld-collate.c (collate_finish): Compare against last
4301         used section which is known to have rules defined.
4302         (collate_read): After order_start, correctly record order of sections
4303         and queue sections up.
4304
4305 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4306
4307         [BZ #5071]
4308         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4309         the same number of pages.
4310         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4311
4312         * locale/programs/ld-collate.c (collate_read): After initial copy
4313         statement, continue in state 0.
4314
4315         * include/stdio_ext.h (__fsetlocking): Define as macro.
4316
4317 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4318
4319         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4320         of section order.
4321
4322         * po/pt_BR.po: Fix typo.
4323
4324 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4325
4326         * iconvdata/Makefile (modules): Add ISO8859-9E.
4327         (distribute): Add iso8859-9e.c.
4328         (gen-8bit-gap-modules): Add iso8859-9e.
4329         * iconvdata/iso8859-9e.c: New file.
4330         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4331         * iconvdata/TESTS: Likewise.
4332         * iconvdata/tst-tables.sh: Likewise.
4333
4334         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4335
4336         * locale/iso-639.def: Add several new entries.
4337
4338 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4339
4340         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4341         void * pointers instead of struct link_map **.
4342         (_dl_scope_free): Change argument type to void *.
4343         * include/link.h (struct link_map): Change type of l_reldeps
4344         to struct link_map_reldeps, move l_reldepsact into that
4345         struct too.
4346         * elf/dl-deps.c: Include atomic.h.
4347         (_dl_map_object_deps): Only change l->l_initfini when it is
4348         fully populated, use _dl_scope_free for freeing it.  Optimize
4349         removal of libs from reldeps by using l_reserved flag, when
4350         some removal is needed, allocate a new list instead of
4351         reallocating and free the old with _dl_scope_free.  Adjust
4352         for l_reldeps and l_reldepsact changes.
4353         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4354         searching in l_initfini and l_reldeps without holding dl_load_lock.
4355         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4356         l_reldepsact changes.
4357         * elf/dl-close.c (_dl_close_worker): Likewise.
4358         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4359
4360 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4361
4362         * iconvdata/Makefile (modules): Add KOI8-RU.
4363         (distribute): Add koi8-ru.c.
4364         (gen-8bit-gap-modules): Add koi8-ru.
4365         * iconvdata/koi8-ru.c: New file.
4366         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4367         * iconvdata/TESTS: Likewise.
4368         * iconvdata/tst-tables.sh: Likewise.
4369
4370         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4371
4372 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4373
4374         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4375         with __warning__/__error__ attributes.
4376         (__warnattr): Define.
4377         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4378         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4379         __warnattr.
4380         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4381         of __*_chk if compile time detectable overflow is found.
4382         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4383         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4384         with __warnattr.
4385         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4386         instead of __*_chk if compile time detectable overflow is found.
4387         (__gets_alias): Rename to...
4388         (__gets_warn): ... this.  Add __warnattr.
4389         (gets): Call __gets_warn instead of __gets_alias.
4390         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4391         aliases with __warnattr.
4392         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4393         time detectable overflow is found.
4394         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4395         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4396         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4397         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4398         __getdomainname_chk_warn): New aliases with __warnattr.
4399         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4400         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4401         __*_chk_warn instead of __*_chk if compile time detectable overflow
4402         is found.
4403         (__getgroups_chk): Rename argument to __listlen from listlen.
4404         (__getwd_alias): Rename to...
4405         (__getwd_warn): ... this.  Add __warnattr.
4406         (getwd): Call __getwd_warn instead of __getwd_alias.
4407         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4408         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4409         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4410         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4411         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4412         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4413         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4414         compile time detectable overflow is found.
4415         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4416         to use __*_chk or not.
4417         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4418         in comparisons which function should be called and in __*_chk*
4419         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4420         detectable overflow is found.
4421         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4422         __*_chk argument.
4423         * debug/tst-chk1.c (do_test): Add a few more tests.
4424
4425 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4426
4427         [BZ #5058]
4428         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4429         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4430         (_nl_unload_domain): Finalize conversions_lock.
4431         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4432         handling table of known conversions.
4433
4434 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4435
4436         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4437         close_not_cancel_no_status instead of close.
4438
4439 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4440
4441         [BZ #5028]
4442         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4443         nrules != 0 for multibyte chars.
4444
4445 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4446
4447         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4448         Provide better error message in case the type is unknown.
4449
4450         [BZ #4963]
4451         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4452         * string/stratcliff.c: Make usable to test wide char functions.
4453         * wcsmbs/wcsatcliff.c: New file.
4454         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4455
4456         [BZ #4972]
4457         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4458         (distribute): Add mac-centraleurope.c.
4459         (gen-8bit-gap-modules): Add mac-centraleurope.
4460         * iconvdata/mac-centraleurope.c: New file.
4461         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4462         * iconvdata/TESTS: Likewise.
4463         * iconvdata/tst-tables.sh: Likewise.
4464
4465         [BZ #5043]
4466         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4467
4468 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4469
4470         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4471         from __x86_64_core_cache_size_half.
4472         (init_cacheinfo): Compute shared cache size for AMD processors with
4473         shared L3 correctly.
4474         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4475         name change.
4476         Patch in large parts by Evandro Menezes.
4477
4478 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4479
4480         * elf/dl-lookup.c (add_dependency): Handle failing memory
4481         allocation for dependency list.  Remove unnecessary check.
4482
4483         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4484         open/close when determining source addresses.
4485
4486         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4487         sha512-crypt, and sha512.
4488         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4489         (distribute): Add sha256.h and sha512.h.
4490         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4491         and call the appropriate code.
4492         * crypt/sha256-crypt.c: New file.
4493         * crypt/sha256.c: New file.
4494         * crypt/sha256.h: New file.
4495         * crypt/sha256c-test.c: New file.
4496         * crypt/sha256test.c: New file.
4497         * crypt/sha512-crypt.c: New file.
4498         * crypt/sha512.c: New file.
4499         * crypt/sha512.h: New file.
4500         * crypt/sha512c-test.c: New file.
4501         * crypt/sha512test.c: New file.
4502
4503 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4504
4505         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4506         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4507         __syslog_chk.
4508
4509 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4510
4511         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4512         %as in fscanf format strings.
4513
4514         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4515         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4516         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4517         Likewise.
4518         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4519         Likewise.
4520
4521         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4522         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4523         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4524         * elf/dl-sym.c (do_sym): Likewise.
4525         * include/link.h (struct link_map): Add l_serial field.
4526         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4527         * elf/dl-lookup.c (add_dependency): Add flags argument.
4528         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4529         flags, use THREAD_GSCOPE_RESET_FLAG before and
4530         THREAD_GSCOPE_SET_FLAG after
4531         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4532         Don't dereference map until it has been found on some list.
4533         If map->l_serial changed, return -1.
4534
4535 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4536
4537         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4538         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4539         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4540         libc_hidden_proto.
4541         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4542         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4543         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4544         add libc_hidden_proto.
4545         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4546         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4547         conformance requested.
4548         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4549         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4550         conformance requested.
4551         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4552         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4553         conformance requested.
4554         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4555         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4556         ISO C99 or POSIX conformance requested.
4557         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4558         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4559         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4560         and __isoc99_vsscanf@@GLIBC_2.7.
4561         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4562         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4563         (tests): Add scanf14.
4564         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4565         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4566         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4567         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4568         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4569         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4570         from using internal headers.
4571         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4572         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4573         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4574         and __isoc99_vswscanf@@GLIBC_2.7.
4575         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4576         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4577         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4578         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4579         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4580         * stdio-common/isoc99_scanf.c: New file.
4581         * stdio-common/isoc99_vsscanf.c: New file.
4582         * stdio-common/isoc99_vscanf.c: New file.
4583         * stdio-common/isoc99_vfscanf.c: New file.
4584         * stdio-common/isoc99_fscanf.c: New file.
4585         * stdio-common/isoc99_sscanf.c: New file.
4586         * wcsmbs/isoc99_fwscanf.c: New file.
4587         * wcsmbs/isoc99_vswscanf.c: New file.
4588         * wcsmbs/isoc99_swscanf.c: New file.
4589         * wcsmbs/isoc99_wscanf.c: New file.
4590         * wcsmbs/isoc99_vwscanf.c: New file.
4591         * wcsmbs/isoc99_vfwscanf.c: New file.
4592         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4593         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4594         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4595         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4596         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4597         * stdio-common/scanf14.c: New test.
4598         * stdio-common/scanf15.c: New test.
4599         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4600         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4601         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4602         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4603         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4604         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4605         __nldbl___isoc99_scanf@@GLIBC_2.7,
4606         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4607         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4608         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4609         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4610         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4611         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4612         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4613         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4614         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4615         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4616         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4617         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4618         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4619         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4620         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4621         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4622         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4623         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4624         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4625         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4626         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4627         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4628         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4629         functions.
4630         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4631         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4632         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4633         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4634         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4635         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4636         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4637         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4638         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4639         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4640         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4641         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4642
4643         * stdio-common/Makefile (tests): Add scanf13.
4644         (scanf13-ENV): New.
4645         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4646         m modifier followed by l.
4647         (STRING_ARG): Add width argument.
4648         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4649         <case L_('C')>: Handle %mlc and %mC.
4650         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4651         arguments.
4652         * stdio-common/scanf13.c: New test.
4653
4654         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4655         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4656
4657 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4658
4659         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4660         type and __THROW marker of splice, vmsplice, and tee.
4661         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4662         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4663         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4664         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4665         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4666         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4667         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4668         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4669         as cancellation points.
4670
4671 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4672
4673         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4674         parse more than three parts of the version number.
4675
4676 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4677
4678         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4679         modifier.  Patch by Jakub Jelinek.
4680
4681 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4682
4683         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4684         call_fallocate in misc subdir.
4685         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4686         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4687         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4688         instead of __fallocate64.
4689         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4690
4691 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4692
4693         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4694         * rt/Makefile (headers): Add bits/mqueue2.h.
4695         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4696         optimizing with GCC and __va_arg_pack_len is defined.
4697         * rt/bits/mqueue2.h: New file.
4698         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4699         (mq_open): New strong_alias.
4700         (__mq_open_2): New function.
4701         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4702         (mq_open): New strong_alias.
4703         (__mq_open_2): New function.
4704         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4705         * Versions.def (librt): Add GLIBC_2.7 version.
4706         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4707         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4708
4709         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4710         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4711         is defined rather than when not C++.
4712         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4713         __openat64_alias): New redirects.
4714         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4715         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4716         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4717         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4718         functions instead of function-like macros.
4719
4720 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4721
4722         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4723         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4724         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4725
4726 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4727
4728         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4729         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4730
4731 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4732
4733         * inet/tst-network.c: Increment ERRORS for failing tests.
4734
4735 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4736
4737         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4738         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4739         implement as __extern_always_inline function.
4740         (vsyslog): Define as __extern_always_inline function unconditionally.
4741         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4742         When __va_arg_pack is defined, implement as __extern_always_inline
4743         functions.
4744         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4745         __extern_always_inline functions unconditionally.
4746         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4747         bits/stdio2.h will be included.
4748         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4749         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4750         implement as __extern_always_inline functions.
4751         (vswprintf, vwprintf, vfwprintf): Define as
4752         __extern_always_inline functions unconditionally.
4753         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4754
4755 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4756
4757         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4758         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4759         attribute.
4760         * include/features.h (__USE_EXTERN_INLINES): Define only when
4761         __extern_inline is defined.
4762         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4763         is defined instead of when not __cplusplus.
4764         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4765         is defined instead of when not __cplusplus.
4766         * socket/sys/socket.h: Include bits/socket2.h when
4767         __extern_always_inline is defined instead of when not __cplusplus.
4768         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4769         is defined instead of when not __cplusplus.
4770         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4771         is defined instead of when not __cplusplus.
4772         * string/string.h: Include bits/string3.h when __extern_always_inline
4773         is defined instead of when not __cplusplus.
4774         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4775         is defined instead of when not __cplusplus.
4776         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4777         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4778         is not defined.
4779         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4780         defined __extern_always_inline instead of !defined __cplusplus.
4781         * libio/bits/stdio-ldbl.h: Likewise.
4782         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4783         * misc/bits/syslog.h (syslog): Don't define for C++.
4784         (vsyslog): Use __extern_always_inline function for C++ instead of
4785         a macro.
4786         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4787         whenever that macro is defined.
4788         (vprintf): Don't provide the inline for C++.
4789         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4790         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4791         define the macros for C++.
4792         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4793         __extern_always_inline functions for C++.
4794         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4795         stat64, lstat64, fstat64, fstatat64): Don't define if not
4796         __USE_EXTERN_INLINES.
4797         * wcsmbs/bits/wchar2.h: Fix #error message.
4798         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4799         (vswprintf, vwprintf, vfwprintf): Define using
4800         __extern_always_inline functions for C++.
4801         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4802         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4803         strncpy, strcat, strncat): Define as __extern_always_inline
4804         functions instead of macros for C++.
4805         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4806         defined __extern_inline.
4807         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4808         to __extern_inline whenever that macro is defined.
4809         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4810         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4811         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4812         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4813         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4814         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4815         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4816         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4817         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4818         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4819         prototypes.  Only provide __extern_inline routines if
4820         __USE_EXTERN_INLINES.
4821         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4822         tests.
4823         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4824         For now avoid some *printf tests in C++.  Skip all testing
4825         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4826         is not.
4827         * debug/tst-chk4.cc: New file.
4828         * debug/tst-chk5.cc: New file.
4829         * debug/tst-chk6.cc: New file.
4830         * debug/tst-lfschk4.cc: New file.
4831         * debug/tst-lfschk5.cc: New file.
4832         * debug/tst-lfschk6.cc: New file.
4833         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4834         prototypes in C++.
4835         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4836         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4837         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4838
4839 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4840
4841         * po/cs.po: Update from translation team.
4842
4843 2007-09-11  Roland McGrath  <roland@redhat.com>
4844
4845         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4846         compiling.
4847
4848 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4849
4850         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4851
4852 2007-09-05  Roland McGrath  <roland@redhat.com>
4853
4854         * manual/signal.texi (Signaling Another Process): Typo fix.
4855         From Karl Berry <karl@freefriends.org>.
4856
4857 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4858
4859         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4860         zero if not defined.
4861         (make_request): Recognize optimistic addresses and treat them like
4862         deprecated addresses.
4863         Reported by Neil Horman <nhorman@redhat.com>.
4864
4865 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4866
4867         * nscd/connections.c (send_ro_fd): Also transfer file size.
4868         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4869         file size don't call fstat.
4870
4871         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4872         ahead and map the file.  This should always be correct and we can
4873         catch problems later.
4874
4875 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4876
4877         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4878         prototypes.
4879         (__fread_alias, __fread_unlocked_alias): New aliases.
4880         (fread): New extern inline.
4881         (fread_unlocked): Likewise.  Undef macro before definition of
4882         the inline function.
4883         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4884         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4885         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4886         and __fread_unlocked_chk@@GLIBC_2.7.
4887         * debug/fread_chk.c: New file.
4888         * debug/fread_u_chk.c: New file.
4889         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4890
4891 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4892
4893         * sysdeps/unix/sysv/linux/syscalls.list
4894         (personality): Change caller to EXTRA.
4895
4896 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4897
4898         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4899         to keep gcc quiet.
4900         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4901
4902         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4903         NDEBUG is defined.
4904
4905         * Makerules: Use -p option with mkdir.
4906
4907         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4908         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4909         (_xdr_directory_obj): Likewise.
4910         (xdr_entry_obj): Likewise.
4911         (xdr_group_obj): Likewise.
4912         (xdr_link_obj): Likewise.
4913         (xdr_table_obj): Likewise.
4914         (_xdr_nis_result): Likewise.
4915         (_xdr_ns_request): Likewise.
4916         (_xdr_ib_request): Likewise.
4917         (_xdr_nis_taglist): Likewise.
4918         (xdr_cback_data): Likewise.
4919         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4920         (xdr_ypresp_maplist): Likewise.
4921
4922         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4923
4924         * posix/regex_internal.h: Prevent some declarations and definitions
4925         to be seen when used in tests.
4926
4927         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4928         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4929
4930         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4931
4932         * config.make.in (datarootdir): Add to shut up configure.
4933
4934         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4935         associativity for fully-associative caches.
4936
4937         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4938         requests.  Fill on more associativity values for L2.
4939         Patch mostly by Evandro Menezes.
4940
4941 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4942
4943         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4944         (_libc_vdso_platform_setup): Avoid using exported variable by using
4945         alias.
4946
4947         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4948
4949         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4950         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4951         defined.
4952
4953 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4954
4955         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4956         align stack for call if pltexit is to be used.
4957
4958         [BZ #3924]
4959         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4960         align for function call in case pltexit has to be called later.
4961
4962         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4963         implicit atomic operation when storing function pointer.
4964         (_dl_runtime_profile): Likewise.
4965
4966 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4967
4968         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4969         NIS_NOTFOUND.
4970
4971 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4972
4973         [BZ #4566]
4974         * string/strtok.c: Fix typo in comment.
4975
4976         [BZ #4582]
4977         * debug/segfault.c: Fix typos in comments.
4978
4979         [BZ #4588]
4980         * stdio-common/tempnam.c: Fix comment, it is not checked that
4981         TMPDIR points to a writable directory.
4982
4983         [BZ #4726]
4984         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4985         memory allocated for the name server address.
4986
4987         [BZ #4946]
4988         * nscd/connections.c (handle_request): Using sendfile always
4989         requires that mmap is used for the database.
4990         Patch by Petr Baudis <pasky@suse.cz>.
4991
4992         [BZ #4905]
4993         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4994         suddenly has two or more addresses, ignore it and remove the old
4995         entry.
4996
4997         [BZ #4814]
4998         * resolv/res_hconf.c: Prepare for compiling outside libc.
4999         * nscd/res_hconf.c: New file.
5000         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
5001         the new file.
5002         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5003         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5004
5005         * nscd/hstcache.c (cache_addhst): Minimal optimization.
5006
5007         [BZ #4925]
5008         * debug/pcprofiledump.c: Turn on internationalization by calling
5009         setlocale.  Patch mostly by Benno Schulenberg.
5010
5011         [BZ #4936]
5012         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5013         the state.
5014         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5015         * iconvdata/bug-iconv5.c: New file.
5016
5017 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5018
5019         [BZ #4896]
5020         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5021         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5022         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5023         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5024         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5025         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5026         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5027         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5028
5029 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5030
5031         [BZ #4937]
5032         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5033         lookup loop.  Suggested by John Reiser.
5034
5035 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5036
5037         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5038
5039 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5040
5041         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5042         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5043         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5044         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5045         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5046         to...
5047         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5048
5049 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5050
5051         * po/nl.po: Update from translation team.
5052
5053 2007-08-16  Andreas Jaeger  <aj@suse.de>
5054
5055         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5056         Reported by Peter Festner <peter.festner@ewetel.net>.
5057
5058 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5059
5060         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5061
5062 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5063
5064         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5065         to check for undefined symbols.
5066
5067         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5068         If the syscall fails, set errno to the actual returned error number
5069         rather than EINVAL.
5070         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5071         arguments are incorrect, set errno to EINVAL, if the syscall
5072         fails, set errno to the actual returned error number.
5073
5074         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5075         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5076
5077         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5078         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5079         file.
5080         (ASI_PNF, ASI_BLK_P): Don't define.
5081         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5082         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5083         file.
5084         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5085         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5086         file.
5087
5088 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5089
5090         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5091         FE_UNDERFLOW on Niagara CPUs.
5092
5093         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5094         exceptions.
5095
5096 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5097
5098         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5099         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5100         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5101         flush should be used or not inside of the function.
5102         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5103
5104         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5105         __thread_start): Use HIDDEN_JUMPTARGET.
5106         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5107         __thread_start): Likewise.
5108         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5109
5110         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5111         Add libc_hidden_proto.
5112         (STRTOF): Add libc_hidden_proto.
5113         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5114         (strtold_l, wcstold_l): Use them as second argument for
5115         long_double_symbol.
5116
5117 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5118
5119         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5120
5121 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5122
5123         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5124
5125 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5126
5127         * po/bg.po: New file.  From the translation team.
5128
5129 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5130
5131         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5132         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5133         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5134         when each feature was introduced.
5135
5136         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5137         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5138         (CHECK_HASH): New macro.
5139         (PREPARE_VERSION): Use it.
5140
5141         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5142         prototype if not __ASSUME_PSELECT.
5143         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5144         prototype if not __ASSUME_PPOLL.
5145
5146         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5147
5148         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5149         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5150         is defined.
5151
5152 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5153
5154         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5155         (_libc_vdso_platform_setup): If vDSO is not available point
5156         __vdso_gettimeofday to the vsyscall.
5157         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5158         __vdso_gettimeofday instead of vsyscall.
5159
5160 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5161
5162         * nscd/servicescache.c: Include kernel-features.h.
5163         * nscd/gai.c: Likewise.
5164         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5165         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5166         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5167         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5168         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5169         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5170         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5171         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5172         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5173
5174 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5175
5176         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5177         and _dl_get_origin defines anymore.
5178
5179         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5180         Build fix for systems which might lack POSIX timer support.
5181
5182         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5183         (_libc_vdso_platform_setup): Mangle function pointers before storing
5184         them.
5185         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5186         Demangle vdso pointer before use.
5187         (INTERNAL_VSYSCALL): Likewise.
5188
5189         * elf/cache.c (primes): Mark as const.
5190         Noted by Roland McGrath.
5191
5192 2007-08-01  Andreas Jaeger  <aj@suse.de>
5193             Jakub Jelinek  <jakub@redhat.com>
5194
5195         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5196         (options): Add option.
5197         (parse_opt): Handle option.
5198         (manual_link): Adjust process_file caller.  Call implicit_soname.
5199         (search_dir): Formatting.  Use and populate auxiliary cache.
5200         (main): Load and save auxiliary cache.
5201         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5202         stat64 from fstat64 to caller.
5203         (implicit_soname): New function.
5204         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5205         leave *soname as NULL.
5206         * elf/cache.c: Include libgen.h.
5207         (print_entry, print_cache, compare, save_cache, add_to_cache):
5208         Formatting and cleanups.
5209         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5210         aux_cache_file): New structures.
5211         (AUX_CACHEMAGIC): Define.
5212         (primes): New array.
5213         (aux_hash_size, aux_hash): New variables.
5214         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5215         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5216         load_aux_cache, save_aux_cache): New functions.
5217         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5218         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5219         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5220         (process_file): Adjust prototype.
5221
5222 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5223
5224         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5225         with __need_size_t.
5226
5227 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5228
5229         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5230         r_found_version structure as second parameter.
5231         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5232         (_dl_vdso_vsym): Change type of second parameter accordingly.
5233         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5234         (_libc_vdso_platform_setup): Adjust.
5235         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5236         (_libc_vdso_platform_setup): Likewise.
5237
5238         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5239         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5240         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5241         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5242         * csu/libc-start.c: Pretty printing.
5243         Use VDSO_SETUP if defined.
5244         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5245         and let generic code call into _libc_vdso_platform_setup.
5246         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5247         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5248         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5249         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5250         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5251         for GLIBC_PRIVATE.
5252         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5253         (sysdep_rountines): Add dl-vdso.
5254
5255         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5256         of routines.
5257
5258         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5259         attribute_hidden to __vdso_gettimeofday prototype.
5260
5261 2007-08-12  Roland McGrath  <roland@redhat.com>
5262
5263         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5264         From: Karl Berry <karl@freefriends.org>.
5265
5266 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5267
5268         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5269         an atime update for the files we read.
5270
5271 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5272
5273         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5274
5275         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5276         instead of mkstemp.
5277
5278         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5279         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5280         * misc/mkostemp.c: New file.
5281         * misc/mkostemp64.c: New file.
5282         * stdlib/stdlib.h: Declare the new functions.
5283         * sysdeps/posix/tempname.c: Add new parameter which is added to
5284         the flags for open.  Remove __GT_BIGFILE handling.
5285         * stdio-common/tempname.c: Likewise.
5286         * include/stdio.h: Adjust __gen_tempname prototype.
5287         Renumber __GT_* constants.
5288         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5289         * misc/mkdtemp.c: Likewise.
5290         * misc/mkstemp.c: Likewise.
5291         * misc/mkstemp64.c: Likewise.
5292         * misc/mktemp.c: Likewise.
5293         * stdio-common/tempnam.c: Likewise.
5294         * stdio-common/tmpfile.c: Likewise.
5295         * stdio-common/tmpfile64.c: Likewise.
5296         * stdio-common/tmpnam.c: Likewise.
5297         * stdio-common/tmpnam_r.c: Likewise.
5298
5299 2007-08-10  Roland McGrath  <roland@frob.com>
5300
5301         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5302         New macros.
5303         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5304         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5305
5306 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5307
5308         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5309         possible.
5310         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5311         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5312         * nss/nss_files/files-have_o_cloexec.c: New file.
5313
5314         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5315         available.
5316
5317 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5318
5319         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5320         ___new_wcstold_l): New weak aliases.
5321         (strtold_l, wcstold_l): Use them as second argument for
5322         long_double_symbol.
5323
5324 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5325
5326         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5327         register in test for error.
5328
5329         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5330         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5331
5332         * po/sv.po: Update from translation team.
5333
5334 2007-08-06  Roland McGrath  <roland@redhat.com>
5335
5336         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5337         Remove __strto*_l inlines.
5338         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5339         * stdlib/strtod.c: Add libc_hidden_def.
5340         * stdlib/strtod_l.c: Likewise.
5341         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5342         for __new_strtold and __new_wcstold.
5343         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5344         __STRTOF, STRTOF.
5345         * stdlib/strtol.c: Add libc_hidden_def.
5346         * stdlib/strtol_l.c: Likewise.
5347         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5348         strtoq.
5349
5350         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5351
5352         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5353         * scripts/data/localplt-generic.data: ... here.
5354         * elf/Makefile (check-data): Get generic file if no other.
5355         ($(objpfx)check-localplt.out): Make target unconditional.
5356
5357         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5358         Use ElfW(Nhdr).
5359
5360 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5361
5362         * po/zh_CN.po: Updated translation from translation team.
5363
5364 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5365
5366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5367         Don't use CGOTSETUP and CGOTRESTORE macros.
5368
5369 2007-08-04  Roland McGrath  <roland@redhat.com>
5370
5371         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5372
5373 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5374
5375         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5376         __extension__ around the whole statement expression.
5377
5378 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5379
5380         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5381         elements during initialization.
5382
5383         * po/pl.po: Updated translation from translation team.
5384         * po/tr.po: Likewise.
5385         * po/nl.po: Likewise.
5386
5387 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5388
5389         * rt/aio.h: Add __nonnull attributes.
5390
5391 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5392
5393         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5394         * stdlib/Makefile (tests): Add tst-strtod5.
5395         (tst-strtod5-ENV): New.
5396         * stdlib/tst-strtod5.c: New file.
5397
5398         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5399         failed.
5400         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5401         on failure.
5402
5403         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5404         allocated.
5405
5406 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5407
5408         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5409         numbers.
5410
5411 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5412
5413         * io/Makefile (aux): Add have_o_cloexec.
5414         * include/fcntl.h: Declare __have_o_cloexec.
5415         * io/have_o_cloexec.c: New file.
5416         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5417         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5418         fcntl call if not necessary.
5419         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5420         of local variable.
5421
5422         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5423         Avoid memset, add explicit initialization.
5424         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5425         to the end and change into zero-sized array.
5426         Move lock member to fill a hole on 64-bit platforms.
5427
5428         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5429         inline functions.
5430         * include/stdlib.h: Add __strto*_internal prototypes here.
5431         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5432         inline functions.
5433         * include/wchar.h: Add __wcsto*_internal prototypes.
5434         * sysdeps/generic/inttypes.h: No need to protect the declaration
5435         of the __strto*_internal and __wcsto*_internal members here.
5436
5437         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5438
5439 2007-08-02  Roland McGrath  <roland@redhat.com>
5440
5441         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5442         $(inst_bindir)/getconf if possible.
5443
5444         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5445         (generated): Add it.
5446         ($(inst_libexecdir)/getconf): Use it.
5447
5448 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5449
5450         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5451         /proc is faster and sufficient.  /sys is still needed for
5452         __get_nprocs_conf.
5453
5454 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5455
5456         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5457         syscall as __fallocate64.
5458         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5459         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5460
5461 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5462
5463         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5464         value.
5465
5466         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5467         if off_t is different rank from size_t.
5468
5469         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5470         uw_frame_state_for): Avoid type punning warnings.
5471         * sysdeps/generic/unwind-dw2-fde-glibc.c
5472         (_Unwind_IteratePhdrCallback): Likewise.
5473         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5474         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5475         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5476         pointers.
5477
5478 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5479
5480         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5481         total processors using sysfs.
5482         (__get_nprocs): Use sysfs to determine which processors are online.
5483
5484 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5485
5486         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5487         syscall arguments count.
5488
5489         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5490
5491 2007-07-30  Roland McGrath  <roland@redhat.com>
5492
5493         * manual/libc.texinfo: Update copyrights, formatting magic, and
5494         @dircategory.  From Karl Berry <karl@freefriends.org>.
5495
5496 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5497
5498         [BZ #4860]
5499         * io/Makefile (headers): Add bits/fcntl2.h.
5500
5501         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5502         using gcc builtin.
5503         (__CPU_EQUAL_S): Likewise.
5504
5505         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5506         (tests): Add tst-cpuset.
5507         * posix/sched_cpualloc.c: New file.
5508         * posix/sched_cpufree.c: New file.
5509         * posix/tst-cpuset.c: New file.
5510         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5511         GLIBC_2.7.
5512         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5513         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5514         macros.  Define CPU_*_S macros.
5515
5516 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5517
5518         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5519         entry.
5520
5521         [BZ #4858]
5522         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5523         #.0g and value rounded to 1.0.
5524         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5525
5526 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5527
5528         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5529         for int_frac_digits and frac_digits.
5530
5531         * login/logout.c (logout): Avoid aliasing violation.
5532         * login/logwtmp.c (logwtmp): Likewise.
5533
5534         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5535
5536         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5537         to avoid warning.
5538         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5539         warning.
5540         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5541         warning.
5542         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5543         to avoid warnings.
5544
5545         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5546         void **.
5547         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5548
5549         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5550         char * to avoid warning.
5551         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5552
5553         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5554
5555         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5556         allocate_arrays): Cast second argument to charmap_find_symbol
5557         to char * to avoid warnings.
5558
5559         * locale/programs/repertoire.c (repertoire_new_char): Change
5560         from_nr, to_nr and cnt to unsigned long, adjust printf format
5561         string.
5562
5563         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5564         Cast second argument to new_element to char * to avoid warnings.
5565
5566         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5567
5568         * intl/gettextP.h (struct loaded_domain): Change plural to const
5569         struct expression *.
5570         * intl/plural-eval.c (plural_eval): Change first argument to
5571         const struct expression *.
5572         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5573         argument to const struct expression **.
5574         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5575         prototypes.
5576         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5577         in call to __gettext_free_exp.
5578
5579         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5580         unitialized wstring/wpattern var warnings.
5581
5582         * posix/runtests.c (struct a_test): Make data field const char *.
5583
5584         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5585         vars if not LDBL_MANT_DIG >= 106.
5586
5587         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5588
5589         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5590         __find_specmb to avoid warning.
5591
5592         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5593
5594         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5595         to avoid warnings.
5596
5597         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5598         initializer.
5599
5600         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5601         tv var when it will be actually used.
5602
5603         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5604         to avoid warnings.
5605
5606         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5607         char array resp. pointer.
5608         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5609         char array.
5610         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5611         to const unsigned char **.
5612         (ucs4_to_cns11643): Change second argument to unsigned char *.
5613         * iconvdata/euc-tw.c (BODY): Change endp type to
5614         const unsigned char *.
5615         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5616         to unsigned char *.
5617         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5618         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5619         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5620         types to unsigned char pointers/arrays instead of char.
5621         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5622         to unsigned char *.
5623         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5624         * iconvdata/jis0212.h: Include assert.h.
5625         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5626         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5627         of trying to handle that.
5628         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5629         shut up a warning.
5630         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5631         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5632         two dimensional const unsigned char arrays.
5633         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5634         Initialize endp to inptr to shut up a warning.
5635
5636 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5637
5638         [BZ #4772]
5639         * time/strptime_l.c (__strptime_internal): Silently ignore
5640         strftime modifiers and field width in recursive calls.
5641
5642         * include/time.h (enum ptime_locale_status): Remove.
5643         (__strptime_internal): Remove decided and era_cnt arguments,
5644         add statep argument.
5645         * time/strptime_l.c (__strptime_internal): Remove decided
5646         and era_cnt arguments, add statep argument.  Don't recompute
5647         any fields in recursive calls, only update caller's tm
5648         and state, if recursive call fails, don't change tm nor
5649         any state.
5650         (get_alt_number): Adjust.
5651         (recursive): Adjust caller.
5652         (strptime): Likewise.
5653         * time/strptime.c (strptime): Likewise.
5654
5655 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5656
5657         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5658         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5659         if from and to charsets are the same.
5660         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5661         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5662         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5663
5664 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5665
5666         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5667         Don't define wint_t when __need_mbstate_t unless it
5668         is necessary.
5669         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5670         in the typedef if possible.
5671         * wctype/wctype.h (wint_t): Define by including
5672         wchar.h with __need_wint_t instead of including stddef.h
5673         with __need_wint_t and as fallback definining it ourselves.
5674         * iconv/gconv.h (__need_wint_t): Define before including
5675         wchar.h.
5676         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5677         or _GLIBCPP_USE_WCHAR_T.
5678         (__need_wchar_t): Don't define
5679         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5680         (__need_wint_t): Don't define before including stddef.h,
5681         define before including wchar.h only if _LIBC or
5682         _GLIBCPP_USE_WCHAR_T.
5683         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5684         * sysdeps/mach/hurd/_G_config.h: Likewise.
5685         * sysdeps/generic/_G_config.h: Likewise.
5686         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5687         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5688         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5689         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5690
5691 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5692
5693         * sysdeps/posix/posix_fallocate64.c: Undefine
5694         __posix_fallocate64_l64 before alias handling.
5695         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5696         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5697         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5698         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5699
5700         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5701
5702 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5703
5704         * locale/programs/ld-collate.c (atwc): New variable.
5705         (add_to_tablewc): New toplevel function, moved from collate_output.
5706         (collate_output): Remove add_to_tablewc nested function.
5707
5708         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5709         (name_insert): New function.
5710         (write_output): Remove hash_table and hash_size vars and name_insert
5711         nested function.
5712
5713 2007-07-24  Roland McGrath  <roland@redhat.com>
5714
5715         * Makerules (install-others-programs-nosubdir): New target.
5716         (install-no-libc.a-nosubdir): Depend on it.
5717
5718         * iconv/Makefile (install-others-programs): Set this instead of
5719         install-others.
5720         * login/Makefile (install-others-programs): Likewise.
5721         * posix/Makefile (install-others-programs): Likewise.
5722
5723         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5724         dependencies.
5725
5726 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5727
5728         * io/Makefile (tests): Add tst-posix_fallocate.
5729         * io/tst-posix_fallocate.c: New file.
5730
5731         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5732         __ASSUME_FALLOCATE.
5733
5734 2007-07-22  Roland McGrath  <roland@frob.com>
5735
5736         * hurd/getdport.c: Add missing copyright year update.
5737
5738         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5739         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5740
5741 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5742
5743         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5744
5745         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5746         O_CLOEXEC is needed.
5747         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5748         Avoid additional fcntl to set O_CLOEXEC if not needed.
5749         * nis/nss_compat/compat-initgroups.c: Likewise.
5750         * nis/nss_compat/compat-pwd.c: Likewise.
5751         * nis/nss_compat/compat-spwd.c: Likewise.
5752
5753 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5754
5755         [BZ #3665]
5756         * manual/errno.texi: Change ECANCELED value to 119.
5757
5758         [BZ #4610]
5759         * mach/lock-intern.h: Include <sys/cdefs.h>.
5760
5761         [BZ #4178]
5762         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5763         reading A.
5764
5765         [BZ #4126]
5766         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5767         to __sigsuspend.
5768
5769         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5770
5771 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5772
5773         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5774         `__ASSEMBLER__'.
5775         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5776
5777 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5778
5779         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5780         descriptor received from nscd.
5781
5782         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5783
5784         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5785         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5786         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5787         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5788         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5789         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5790
5791 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5792
5793         [BZ #4816]
5794         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5795
5796         [BZ #4813]
5797         * login/forkpty.c (forkpty): Close master and slave fds on
5798         fork failure.  Patch by
5799         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5800
5801 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5802
5803         * include/features.h (__USE_ISOC95): New define.
5804         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5805         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5806         for -std=iso9899:199409.
5807         * CONFORMANCE: Remove comments about unsupported AMD1.
5808
5809 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5810
5811         * sysdeps/ia64/sched_cpucount.c: New file.
5812         * sysdeps/powerpc/sched_cpucount.c: New file.
5813
5814         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5815         __BEGIN_DECLS/__END_DECLS around the prototype.
5816         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5817         pointer to const cpu_set_t.
5818
5819         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5820         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5821         __need_size_t and include stddef.h.
5822         * sysvipc/sys/msg.h: Likewise.
5823         * posix/sched.h: Likewise.
5824         * hurd/hurd/signal.h (__need_size_t): Define.
5825
5826         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5827         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5828         no longer defines wint_t or wchar_t.
5829
5830         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5831         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5832         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5833         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5834         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5835         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5836         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5837         * debug/printf_chk.c (__printf_chk): Likewise.
5838         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5839         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5840
5841         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5842         Define.
5843
5844         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5845         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5846
5847 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5848
5849         [BZ #4792]
5850         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5851         * malloc/malloc.h (realloc): Likewise.
5852
5853         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5854         if one of proc_file_chain streams has that fileno.
5855         * stdio-common/Makefile (tests): Add tst-popen2.
5856         * stdio-common/tst-popen2.c: New test.
5857
5858 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5859
5860         * elf/ldconfig.c: Allow GPLv2 or any later version.
5861         * elf/readlib.c: Likewise.
5862         * elf/chroot_canon.c: Likewise.
5863         * elf/cache.c: Likewise.
5864         * nscd/mem.c: Likewise.
5865         * nscd/getpwuid_r.c: Likewise.
5866         * nscd/grpcache.c: Likewise.
5867         * nscd/aicache.c: Likewise.
5868         * nscd/getsrvbynm_r.c: Likewise.
5869         * nscd/nscd.c: Likewise.
5870         * nscd/servicescache.c: Likewise.
5871         * nscd/getsrvbypt_r.c: Likewise.
5872         * nscd/initgrcache.c: Likewise.
5873         * nscd/gethstbyad_r.c: Likewise.
5874         * nscd/gethstbynm2_r.c: Likewise.
5875         * nscd/getgrnam_r.c: Likewise.
5876         * nscd/nscd_setup_thread.c: Likewise.
5877         * nscd/getpwnam_r.c: Likewise.
5878         * nscd/gai.c: Likewise.
5879         * nscd/connections.c: Likewise.
5880         * nscd/dbg_log.c: Likewise.
5881         * nscd/cache.c: Likewise.
5882         * nscd/hstcache.c: Likewise.
5883         * nscd/nscd_conf.c: Likewise.
5884         * nscd/getgrgid_r.c: Likewise.
5885         * nscd/pwdcache.c: Likewise.
5886         * catgets/gencat.c: Likewise.
5887         * locale/programs/linereader.h: Likewise.
5888         * locale/programs/locarchive.c: Likewise.
5889         * locale/programs/ld-paper.c: Likewise.
5890         * locale/programs/locfile-kw.h: Likewise.
5891         * locale/programs/ld-address.c: Likewise.
5892         * locale/programs/xmalloc.c: Likewise.
5893         * locale/programs/ld-time.c: Likewise.
5894         * locale/programs/localedef.c: Likewise.
5895         * locale/programs/simple-hash.c: Likewise.
5896         * locale/programs/xstrdup.c: Likewise.
5897         * locale/programs/ld-numeric.c: Likewise.
5898         * locale/programs/locfile-kw.gperf: Likewise.
5899         * locale/programs/ld-collate.c: Likewise.
5900         * locale/programs/charmap-kw.gperf: Likewise.
5901         * locale/programs/charmap.h: Likewise.
5902         * locale/programs/charmap-kw.h: Likewise.
5903         * locale/programs/config.h: Likewise.
5904         * locale/programs/locfile.c: Likewise.
5905         * locale/programs/ld-ctype.c: Likewise.
5906         * locale/programs/charmap.c: Likewise.
5907         * locale/programs/ld-messages.c: Likewise.
5908         * locale/programs/repertoire.h: Likewise.
5909         * locale/programs/locale.c: Likewise.
5910         * locale/programs/ld-name.c: Likewise.
5911         * locale/programs/linereader.c: Likewise.
5912         * locale/programs/locfile.h: Likewise.
5913         * locale/programs/3level.h: Likewise.
5914         * locale/programs/ld-monetary.c: Likewise.
5915         * locale/programs/ld-measurement.c: Likewise.
5916         * locale/programs/charmap-dir.c: Likewise.
5917         * locale/programs/ld-identification.c: Likewise.
5918         * locale/programs/localedef.h: Likewise.
5919         * locale/programs/charmap-dir.h: Likewise.
5920         * locale/programs/repertoire.c: Likewise.
5921         * locale/programs/simple-hash.h: Likewise.
5922         * locale/programs/ld-telephone.c: Likewise.
5923         * locale/programs/locale-spec.c: Likewise.
5924         * locale/programs/locfile-token.h: Likewise.
5925         * posix/getconf.c: Likewise.
5926         * iconv/dummy-repertoire.c: Likewise.
5927         * iconv/iconv_charmap.c: Likewise.
5928         * iconv/iconvconfig.c: Likewise.
5929         * iconv/iconv_prog.c: Likewise.
5930         * malloc/memusagestat.c: Likewise.
5931         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5932
5933 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5934
5935         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5936         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5937         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5938         check for the first argument.
5939
5940 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5941
5942         [BZ #4775]
5943         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5944         (__tgmath_real_type): Fix if expr is const int or other const
5945         qualified integral type.
5946         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5947         expressions and handle const qualified arguments.
5948         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5949         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5950         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5951         statement expressions.
5952         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5953         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5954         (__TGMATH_UNARY_IMAG): Define.
5955         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5956         * math/Makefile (tests): Add test-tgmath2.
5957         (CFLAGS-test-tgmath2.c): Add.
5958         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5959         count_cfloat, count_cldouble): New variables.
5960         (NCCALLS): Define.
5961         (main): Check number of complex calls as well.
5962         (F(compile_test)): Add complex tests and tests with const qualified
5963         arguments.
5964         (y, z, ccount): Define.
5965         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5966         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5967         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5968         F(cproj)): New functions.
5969         * math/test-tgmath2.c: New test.
5970
5971 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5972
5973         [BZ #4776]
5974         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5975         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5976         instead output ".".
5977         * dlfcn/Makefile (distribute): Add glreflib3.c.
5978         (module-names): Add glreflib3.
5979         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5980         glreflib1.so.
5981         (LDFLAGS_glreflib3.so): New.
5982         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5983         glreflib1.so.
5984         * dlfcn/glreflib3.c: New file.
5985
5986         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5987         returned -1, return NULL.
5988         * intl/explodename.c (_nl_explode_name): Return -1 if
5989         _nl_normalize_codeset failed.
5990
5991 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5992
5993         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5994         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5995         and avoid branch misspredicts for > 31 bytes memset case.
5996         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5997         Remove toc ref to __cache_line_size.
5998
5999         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6000         to get ISA-V2.0 branch hints.
6001         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6002         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6003         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6004         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6005         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6006         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6007         Remove toc ref to __cache_line_size.
6008
6009         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6010         Include math_ldbl_opt.h.
6011
6012 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6013
6014         [BZ #4773]
6015         * time/strptime_l.c (__strptime_internal): Implement greedy
6016         matching of weekday and month names.
6017
6018 2007-07-09  Roland McGrath  <roland@redhat.com>
6019
6020         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6021         (ELF_NOTE_ABI): Use it.
6022         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6023
6024 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6025
6026         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6027         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6028
6029 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6030
6031         [BZ #4745]
6032         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6033         in loop to look for conversion specifier to avoid testing of
6034         wrong errno value.
6035         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6036         * stdio-common/bug18.c: New file.
6037         * stdio-common/bug18a.c: New file.
6038         * stdio-common/bug19.c: New file.
6039         * stdio-common/bug19a.c: New file.
6040
6041 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6042
6043         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6044         running awk script.
6045
6046 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6047
6048         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6049         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6050         Return NULL if mmap failed instead of asserting it does not.
6051         (calloc): Check for integer overflow.
6052
6053         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6054         than LONG_MAX / 10.
6055
6056 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6057
6058         [BZ #4702]
6059         * nis/nss-default.c: Include errno.h.
6060         (init): Preserve errno.
6061
6062 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6063
6064         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6065
6066 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6067
6068         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6069
6070 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6071
6072         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6073
6074 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6075
6076         * sysdeps/s390/dl-procinfo.c: New file.
6077         * sysdeps/s390/dl-procinfo.h: New file.
6078         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6079
6080 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6081
6082         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6083         in PT_NOTE segments with multiple notes.
6084         * elf/readelflib.c (process_elf_file): Likewise.
6085
6086 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6087
6088         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6089         ISO C compliant.
6090
6091 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6092
6093         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6094
6095 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6096
6097         * include/link.h: Don't include rtld-lowlevel.h.
6098         (struct link_map): Remove l_scope_lock.
6099         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6100         (_dl_scope_free_list): New field (variable) in _rtld_global.
6101         (DL_LOOKUP_SCOPE_LOCK): Remove.
6102         (_dl_scope_free): New prototype.
6103         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6104         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6105         (_dl_profile_fixup): Likewise.
6106         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6107         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6108         THREAD_GSCOPE_RESET_FLAG around it.
6109         * elf/dl-close.c (_dl_close_worker): Don't use
6110         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6111         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6112         scopes were queued or if l_scope_mem has been abandoned.
6113         * elf/dl-open.c (_dl_scope_free): New function.
6114         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6115         * elf/dl-support.c (_dl_scope_free_list): New variable.
6116         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6117         Remove DL_LOOKUP_SCOPE_LOCK handling.
6118         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6119         handling.
6120         * elf/dl-object.c (_dl_new_object): Don't use
6121         __rtld_mrlock_initialize.
6122
6123 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6124
6125         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6126         to fill in holes
6127         (rtld_global_ro): Likewise.
6128
6129 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6130
6131         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6132         Move PT_LOAD checking to...
6133         (_dl_addr_inside_object): ... here, new function.
6134         * elf/dl-sym.c (do_sym): If not l_contiguous,
6135         call _dl_addr_inside_object.
6136         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6137         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6138         * elf/dl-open.c (dl_open_worker): Likewise.
6139         (_dl_addr_inside_object): New function if IS_IN_rtld.
6140         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6141         holes are present or are PROT_NONE protected.
6142         * include/link.h (struct link_map): Add l_contiguous field.
6143         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6144
6145 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6146             Tomas Janousek  <tjanouse@redhat.com>
6147             Ulrich Drepper  <drepper@redhat.com>
6148
6149         [BZ #4647]
6150         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6151         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6152         socket.
6153         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6154         unused member a bitmap.
6155         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6156         servers are configured.
6157
6158 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6159
6160         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6161
6162 2007-06-17  Andreas Schwab  <schwab@suse.de>
6163
6164         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6165
6166 2007-06-16  Andreas Jaeger  <aj@suse.de>
6167
6168         [BZ #4125]
6169         * sysdeps/unix/sysv/linux/sys/ptrace.h
6170         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6171         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6172         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6173         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6174         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6175         Define.
6176         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6177         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6178         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6179         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6180
6181 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6182
6183         [BZ #4599]
6184         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6185         determining whether there are IPv4/IPv6 addresses, ignore loopback
6186         addresses.
6187
6188 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6189
6190         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6191         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6192         as the return type.  Change type of "r" variable to CMPtype.
6193         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6194         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6195         * soft-fp/gedf2.c (__gedf2): Likewise.
6196         * soft-fp/gesf2.c (__gesf2): Likewise.
6197         * soft-fp/getf2.c (__getf2): Likewise.
6198         * soft-fp/ledf2.c (__ledf2): Likewise.
6199         * soft-fp/lesf2.c (__lesf2): Likewise.
6200         * soft-fp/letf2.c (__letf2): Likewise.
6201         * soft-fp/unorddf2 (__unorddf2): Likewise.
6202         * soft-fp/unordsf2 (__unordsf2): Likewise.
6203         * soft-fp/unordtf2 (__unordtf2): Likewise.
6204
6205 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6206
6207         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6208         make sure gcc doesn't mess around with this.
6209
6210 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6211
6212         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6213
6214 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6215
6216         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6217         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6218         at most once per _dl_close_worker.
6219
6220 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6221
6222         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6223         __sched_cpucount as const.
6224         * posix/sched_cpucount.c: Adjust.
6225
6226         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6227         instruction for counting bits.
6228         * sysdeps/x86_64/sched_cpucount.c: New file.
6229
6230 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6231
6232         * configure.in: Avoid variable named BASH.
6233         * config.make.in: Likewise.
6234         Patch in part by Mike Frysinger.
6235
6236 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6237
6238         [BZ #4586]
6239         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6240         pseudo-zeros as zero.
6241         * sysdeps/x86_64/ldbl2mpn.c: New file.
6242         * sysdeps/ia64/ldbl2mpn.c: New file.
6243
6244 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6245
6246         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6247         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6248         Remove unreachable code at the end.
6249
6250 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6251
6252         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6253         ldbl-128ibm in comment.
6254         (fpclassifyl): Correct classification of denormals.
6255         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6256         return value for MIN denormal. Rewrite using long double math too
6257         correctly handle denormals and canonicalize the results.
6258
6259 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6260
6261         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6262         (__mpn_construct_long_double): Fix conversion where result ought
6263         to be smaller than __LDBL_MIN__, or the low double should be
6264         denormal.  Fix decision where to negate low double - honor round
6265         to even rules.
6266         * stdio-common/tst-sprintf2.c: Include string.h.
6267         (COMPARE_LDBL): Define.
6268         (TEST): Also test whether a string hexadecimal float representation
6269         can be parsed back to the number.
6270         (main): Add a couple of further tests.
6271
6272 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6273
6274         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6275         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6276         is non-zero, but smaller than 2 * __DBL_MIN__.
6277         * stdio-common/tst-sprintf2.c: New test.
6278         * stdio-common/Makefile (tests): Add tst-sprintf2.
6279
6280         * math/test-misc.c (main): Don't run last batch of tests with
6281         IBM long double format.
6282
6283 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6284
6285         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6286         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6287         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6288         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6289         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6290         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6291         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6292         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6293         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6294         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6297         New file.
6298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6299         New file.
6300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6301         New file.
6302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6303         New file.
6304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6305         New file.
6306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6308         New file.
6309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6310         New file.
6311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6312         New file.
6313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6314         New file.
6315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6316         New file.
6317
6318 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6319
6320         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6321         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6322         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6323         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6324         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6325         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6326         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6327         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6328
6329 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6330
6331         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6332         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6333         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6334         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6335         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6336         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6337         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6338         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6339
6340 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6341
6342         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6343         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6344         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6345         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6346
6347 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6348
6349         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6350         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6351
6352 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6353
6354         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6355         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6356         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6357         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6358
6359 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6360
6361         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6362         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6363
6364 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6365
6366         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6367         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6368
6369         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6370         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6371         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6372         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6373
6374 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6375
6376         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6377         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6378         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6379         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6380
6381 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6382
6383         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6384         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6385         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6386         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6387         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6388         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6389
6390 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6391
6392         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6393         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6394         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6395         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6396
6397 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6398
6399         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6400         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6401         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6402         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6403         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6404         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6405         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6406         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6407         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6408         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6409         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6410         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6411         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6412         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6413         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6414         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6415
6416 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6417
6418         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6419         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6420
6421 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6422
6423         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6424         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6425
6426 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6427
6428         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6429         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6430         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6431         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6432         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6433         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6434         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6435         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6436         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6437         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6438
6439 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6440
6441         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6442
6443 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6444
6445         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6446         branch miss-predicts. Ensure that cache line crossing does not impact
6447         dispatch grouping.
6448
6449 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6450
6451         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6452         "../../powerpc32/power4/memcopy.h".
6453         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6454         "../../powerpc32/power4/wordcopy.c".
6455
6456 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6457
6458         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6459         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6460         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6461         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6462         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6463         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6464
6465 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6466
6467         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6468
6469 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6470
6471         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6472         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6473         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6474         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6475         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6476         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6477         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6478         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6479
6480 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6481
6482         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6483
6484 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6485
6486         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6487         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6488         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6489         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6490         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6491         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6492         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6493
6494 2007-05-29  Roland McGrath  <roland@redhat.com>
6495
6496         * po/Makefile (po-sed-cmd): New variable.
6497         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6498
6499 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6500
6501         * crypt/md5-crypt.c: Fix comment.
6502
6503         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6504         of crashing.  When this is the case or if the reply is malformed,
6505         don't try to close the new file descriptor since it does not
6506         exist.
6507         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6508
6509 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6510
6511         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6512         if __NR_utimensat is not defined.
6513
6514 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6515
6516         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6517
6518 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6519
6520         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6521         (open): Fix comment typos.  Don't call __open_2 if flags
6522         is a compile time constant without O_CREAT.
6523         (__open64_2): Add nonnull attribute.
6524         (open64): Fix comment typos.  Don't call __open64_2 if flags
6525         is a compile time constant without O_CREAT.
6526         (__openat_2): Add nonnull attribute, fix nonnull attribute
6527         on redirect.
6528         (openat): Fix comment typos.  Don't call __openat_2 if flags
6529         is a compile time constant without O_CREAT.
6530         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6531         on redirect.
6532         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6533         is a compile time constant without O_CREAT.
6534
6535 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6536
6537         * Makerules (sysd-rules): Define PTW for ptw-* files.
6538         * Versions: Define GLIBC_2.7 for libc.
6539         * include/stdio.h: Declare __fortify_fail.
6540         * debug/fortify_fail.c: New file.
6541         * debug/Makefile (routines): Add fortify_fail.
6542         * debug/chk_fail.c: Use __fortify_fail.
6543         * debug/stack_chk_fail.c: Likewise.
6544         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6545         __openat64_2 for GLIBC_2.7.
6546         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6547         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6548         and fails if necessary.
6549         * io/open64.c: Likewise.
6550         * io/openat.c: Likewise.
6551         * io/openat64.c: Likewise.
6552         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6553         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6554         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6555         * io/bits/fcntl2.h: New file.
6556         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6557         __openat64_2.
6558         * include/bits/fcntl2.h: New file.
6559         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6560         Add open_2.
6561         * sysdeps/unix/sysv/linux/open_2.c: New file.
6562
6563 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6564
6565         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6566         as second parameter to handle_intel.
6567
6568         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6569         the entry.
6570
6571         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6572         handling to ...
6573         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6574         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6575         cacheinfo.
6576         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6577         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6578         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6579
6580         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6581
6582 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6583
6584         [BZ #4525]
6585         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6586         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6587         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6588
6589         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6590
6591         [BZ #4514]
6592         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6593         reinitialize workend at the start of each do_positional format spec
6594         loop, free workstart before do_positional loops.
6595         (printf_unknown): Fix size of work_buffer.
6596         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6597
6598         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6599         (public_sET_STATe): If ms->version < 3, put all chunks into
6600         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6601         chunks.
6602
6603         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6604         * malloc/hooks.c: Likewise.
6605         * malloc/arena.c: Likewise.
6606         * malloc/malloc.c (do_check_malloc_state): Don't assert
6607         n_mmaps is not greater than n_mmaps_max.  This removes the need
6608         for the previous change.
6609
6610         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6611         2007-05-07 commit.
6612
6613 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6614
6615         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6616         Define for kernel >= 2.6.22.
6617
6618 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6619
6620         * elf/dl-close.c (_dl_close_worker): When removing object from
6621         global scope, wait for all lookups to finish afterwards.
6622         * elf/dl-open.c (add_to_global): When global scope array must
6623         grow, allocate a new one and free old array only after all
6624         lookups finish.
6625         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6626         (_dl_lookup_symbol_x): Likewise.
6627         * elf/dl-support.c: Define _dl_wait_lookup_done.
6628         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6629         _dl_wait_lookup_done.
6630
6631         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6632         not overlapping with arena.
6633
6634         * malloc/mcheck.c (reallochook): If size==0, free the block.
6635
6636         * rt/tst-shm.c: Use fstat64 instead of fstat.
6637
6638         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6639         __NR_sync_file_range is not defined.
6640
6641 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6642
6643         Dummy files to prevent stub versions from being used.
6644         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6645         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6646         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6647         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6648
6649         * version.h (VERSION): Set to 2.6.90.
6650
6651 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6652
6653         * version.h (VERSION): Define to 2.6.
6654         * include/features.h (__GLIBC_MINOR__): Define to 6.
6655
6656         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6657
6658         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6659         sizes.
6660
6661 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6662
6663         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6664         number of mmaps.  n_mmaps_max is the target.
6665         * malloc/hooks.c: Likewise.
6666         * malloc/arena.c: Likewise.
6667
6668 2007-05-12  Andreas Jaeger  <aj@suse.de>
6669
6670         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6671         getpid.
6672
6673 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6674
6675         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6676         adding new variables.
6677
6678         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6679         optimize.  Completely extend global scope array before making the
6680         new entries visible.
6681
6682 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6683
6684         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6685         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6686         tst-getcpu.
6687
6688         * include/link.h: Move l_version and l_nversion members around to
6689         fill gaps.
6690
6691         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6692
6693         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6694         (__sched_setaffinity_new): If syscall was successful and
6695         RESET_VGETCPU_CACHE is defined, use it before returning.
6696         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6697
6698         * io/sys/stat.h: Make sure struct timespec is defined for
6699         __USE_ATFILE.
6700
6701         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6702         UTIME_OMIT.
6703         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6704         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6705         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6706         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6707         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6708         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6709         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6710         * io/sys/stat.h: Declare utimensat, futimens.
6711         * io/utimensat.c: New file.
6712         * io/futimens.c: New file.
6713         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6714         * sysdeps/unix/sysv/linux/futimens.c: New file.
6715         * io/Makefile (routines): Add utimensat, futimens.
6716         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6717         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6718         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6719         available.
6720
6721         * include/sys/cdefs.h: Redefine __nonnull so that test for
6722         incorrect parameters in the libc code itself are not omitted.
6723
6724 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6725
6726         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6727         exception in addition to inexact when asked to raise only FE_INEXACT.
6728
6729         [BZ #3427]
6730         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6731         in *envp.
6732
6733 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6734
6735         [BZ #4403]
6736         * string/strfry.c (strfry): Make result more random.
6737
6738 2007-05-07  Richard Henderson  <rth@redhat.com>
6739
6740         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6741         if __NO_LONG_DOUBLE_MATH.
6742         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6743         available in the compiler, add .arch directive to the assembly.
6744
6745 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6746
6747         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6748         compat_symbol to GLIBC_2_1.
6749         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6750         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6751         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6752         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6753         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6754         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6755         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6756         libc, not libm.
6757         (__isnanl): New compat_symbol.
6758
6759 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6760             Jakub Jelinek  <jakub@redhat.com>
6761
6762         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6763         (new_heap): Initialize mprotect_size.
6764         (grow_heap): When growing, only mprotect from mprotect_size till
6765         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6766         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6767
6768 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6769             Peter Bergner  <bergner@us.ibm.com>
6770
6771         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6772         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6773         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6774         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6775         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6776         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6777         Call __fe_mask_env() if all FP exceptions disabled.
6778         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6779         from old FPSCR to new fenv to propagate DFP rounding modes.
6780         Call __fe_mask_env() if FP exceptions previously enabled.
6781         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6782         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6783         transitioning from all exceptions disabled to any exception enabled
6784         or visa versa.
6785         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6786         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6787         when transitioning from all exceptions disabled to any exception
6788         enabled or visa versa.
6789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6795
6796 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6797
6798         [BZ #4465]
6799         * posix/unistd.h: Remove __THROW from fdatasync.
6800
6801 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6802
6803         [BZ #4465]
6804         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6805
6806 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6807
6808         * stdio-common/vfprintf.c (process_string_arg): Optimize
6809         ridiculous precision in wide char code printing multi-byte string.
6810         Reported by Jim Meyering <jim@meyering.net>.
6811
6812         [BZ #4131]
6813         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6814         boundaries to work around systems with overlapping binary loading.
6815         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6816
6817 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6818
6819         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6820         __mbsnrtowcs after last change.
6821
6822         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6823         (get_ident): Likewise.
6824
6825 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6826
6827         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6828         with setting the sticky bit.
6829         * math/test-misc.c (main): Add more truncation tests.
6830
6831 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6832
6833         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6834         double in the function declaration.
6835         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6836         double in the function declaration.
6837         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6838         float in the function declaration.
6839         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6840         float in the function declaration.
6841
6842         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6843         denormal operands.  Do not generate FP_EX_DENORM exception.
6844         (FP_UNPACK_RAW_EP): Ditto.
6845         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6846         undefined _FP_UNPACK_RAW_E.
6847         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6848         undefined _FP_UNPACK_RAW_EP.
6849         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6850         undefined _FP_PACK_RAW_E.
6851         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6852         undefined _FP_PACK_RAW_EP.
6853
6854         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6855         _FP_FRAC_COPY_2.
6856         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6857         _FP_FRAC_COPY_4.
6858
6859 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6860             Jakub Jelinek  <jakub@redhat.com>
6861
6862         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6863         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6864         this case.
6865         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6866
6867 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6868
6869         * math/test-misc.c (main): Add tests for rounding long double
6870         values close to smallest double denormalized value to double.
6871
6872 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6873
6874         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6875         condition for truncating to 0.  Set sticky bit for such
6876         truncation.
6877
6878 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6879
6880         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6881         fixed length array for ignore.
6882
6883 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6884
6885         [BZ #4438]
6886         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6887         stack for large precisions.
6888         * stdio-common/test-vfprintf.c (main): Add test for large
6889         precision.
6890
6891 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6892
6893         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6894         for exponent 0.
6895         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6896
6897         [BZ #4439]
6898         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6899         account in the size check.
6900         * resolv/tst-inet_ntop.c: New test.
6901         * resolv/Makefile (tests): Add tst-inet_ntop.
6902
6903 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6904             Jakub Jelinek  <jakub@redhat.com>
6905
6906         [BZ #4349]
6907         * malloc/malloc.c: Keep separate list for first blocks on the bin
6908         lists with a given size.  This helps skipping over list elements
6909         we know won't fit in two places.
6910         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6911
6912 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6913
6914         [BZ #4102]
6915         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6916         label to Teredo tunnel addresses 2001://32.
6917
6918 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6919
6920         * locale/programs/ld-collate.c (collate_read): Allow order_start
6921         after copy.
6922
6923         * locale/programs/ld-collate.c (collate_read): Fix printing of
6924         error message.
6925
6926         [BZ #3213]
6927         * locale/C-translit.h.in: Add entry for U2044.
6928
6929         [BZ #4342]
6930         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6931         hexa-decimal floats without exponent.
6932         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6933
6934 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6935
6936         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6937         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6938         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6939         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6940         GLIBC_2.6.
6941         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6942         Add sched_getcpu.
6943
6944 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6945
6946         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6947         of 0 after the out_fail label.
6948
6949 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6950
6951         [BZ #4406]
6952         * iconv/gconv_charset.h (strip): Allow ':'.
6953         * iconv/iconv_open.c (iconv_open): Adjust comment.
6954
6955 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6956
6957         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6958         version.
6959
6960 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6961
6962         [BZ #4381]
6963         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6964         alignment of buffer and tmp_buffer.
6965         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6966         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6967         alignment of buffer.
6968         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6969         bigger than INT_MAX.
6970         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6971         h_errnop arguments.  Fail if buflen is too small.
6972         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6973
6974 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6975
6976         [BZ #4405]
6977         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6978         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6979
6980 2007-04-22  Roland McGrath  <roland@redhat.com>
6981
6982         * elf/elf.h (NT_PRXFPREG): New macro.
6983
6984 2007-04-19  Andreas Jaeger  <aj@suse.de>
6985
6986         [BZ #3905]
6987         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6988         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6989         Added.
6990
6991 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6992
6993         * include/sys/mman.h: Mark madvise hidden.
6994         * misc/madvise.c: Add libc_hidden_def.
6995
6996 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6997
6998         * nis/nis_domain_of.c (__nis_domain_of): New function.
6999         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7000         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7001         * nis/nis_call.c (rec_dirsearch): Likewise.
7002         (first_shoot): Likewise.  Remove search_parent_first argument.
7003         (struct nis_server_cache): Rename search_parent_first field
7004         to search_parent.
7005         (nis_server_cache_search, nis_server_cache_add): Rename
7006         search_parent_first argument to search_parent.
7007         (__nisfind_server): Likewise.  If search_parent, call
7008         __nis_domain_of.
7009
7010 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7011
7012         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7013
7014 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7015
7016         [BZ #4368]
7017         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7018
7019 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7020
7021         [BZ #4364]
7022         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7023
7024 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7025
7026         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7027         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7028         current number of locales in SUPPORTED.
7029         (create_archive): Initialize serial.
7030         (enlarge_archive): Preserve aliases rather than duplicating
7031         their locrecs.
7032
7033 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7034
7035         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7036         after _IO_un_link, not before it.
7037
7038         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7039         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7040         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7041
7042 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7043
7044         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7045         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7046         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7047         Remove __THROW.
7048         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7049         _IO_file_xsgetn_maybe_mmap): Likewise.
7050         * libio/oldfileops.c (old_do_write): Likewise.
7051         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7052         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7053         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7054         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7055         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7056         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7057         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7058         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7059         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7060         _IO_file_underflow, _IO_file_underflow_mmap,
7061         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7062         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7063         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7064         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7065         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7066         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7067         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7068         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7069         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7070         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7071         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7072         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7073         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7074         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7075         _IO_adjust_column_internal, _IO_default_uflow_internal,
7076         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7077         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7078         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7079         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7080         _IO_file_close_it_internal, _IO_file_underflow_internal,
7081         _IO_file_overflow_internal, _IO_file_attach_internal,
7082         _IO_file_fopen_internal, _IO_file_sync_internal,
7083         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7084         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7085         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7086         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7087         _IO_seekpos_unlocked): Likewise.
7088         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7089         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7090
7091 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7092
7093         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7094         argument in xmalloc size computation.
7095
7096 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7097
7098         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7099         math_opt_barrier and math_force_eval macros.
7100
7101 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7102
7103         [BZ #3306]
7104         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7105         * sysdeps/i386/fpu/math_private.h: New file.
7106         * sysdeps/x86_64/fpu/math_private.h: New file.
7107         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7108         math_force_eval macros.  Use "+m" constraint on asm rather than
7109         "=m" and "m".
7110         * math/s_nextafter.c (__nextafter): Likewise.
7111         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7112         Likewise.
7113         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7114         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7115         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7116         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7117         math_opt_barrier and math_force_eval macros.
7118         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7119         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7120         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7121         (__nexttoward): Use math_opt_barrier and
7122         math_force_eval macros.  Use "+m" constraint on asm rather than
7123         "=m" and "m".  Only use asm to force double result if
7124         FLT_EVAL_METHOD is 2.
7125         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7126         (__nexttowardf): Use math_opt_barrier and
7127         math_force_eval macros.  Use "+m" constraint on asm rather than
7128         "=m" and "m".  Only use asm to force double result if
7129         FLT_EVAL_METHOD is not 0.
7130         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7131         (__nexttowardf): Use math_opt_barrier and
7132         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7133         x to float using asm.
7134         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7135         (__nldbl_nexttowardf): Use math_opt_barrier and
7136         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7137         x to float using asm.
7138         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7139         (__nexttowardf): Use math_opt_barrier and math_force_eval
7140         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7141         * math/bug-nextafter.c (zero, inf): New variables.
7142         (main): Add new tests.
7143         * math/bug-nexttoward.c (zero, inf): New variables.
7144         (main): Add new tests.
7145
7146 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7147
7148         [BZ #3427]
7149         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7150         exceptions both in SW and MXCSR.
7151         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7152         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7153         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7154         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7155         in MXCSR if SSE is available.
7156         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7157         and ldsodefs.h.
7158         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7159         Fix comment typo.
7160         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7161         Return 0 rather than 1.
7162         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7163         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7164         * math/test-fenv.c (feholdexcept_tests): New function.
7165         (main): Call it.
7166
7167 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7168
7169         [BZ #3427]
7170         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7171         in SW.
7172
7173 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7174
7175         [BZ #4344]
7176         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7177         Reported by David Anderson <davea42@earthlink.net>.
7178
7179 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7180
7181         * posix/sys/wait.h: Remove unnecessary forward declaration.
7182
7183 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7186         with obj->do_servers after first_shoot.
7187
7188 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7189
7190         * posix/Makefile (routines): Add sched_cpucount.
7191         (tests): Add tst-cpucount.
7192         * posix/sched_cpucount.c: New file.
7193         * posix/tst-cpucount.c: New file.
7194         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7195         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7196         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7197         * posix/sched.h: Define CPU_COUNT.
7198
7199 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7200
7201         * posix/fnmatch.c (STRUCT): Define.
7202         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7203         * posix/fnmatch_loop.c (struct STRUCT): New type.
7204         (FCT): Add ends argument.  If ends != NULL and normal * is
7205         seen in the pattern, store current pattern and string pointers
7206         and return.  Adjust recursive calls.
7207         (EXT): Adjust FCT callers.
7208         (STRUCT): Undef at the end of the file.
7209         * posix/Makefile (tests): Add tst-fnmatch2.
7210         * posix/tst-fnmatch2.c: New test.
7211
7212 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7213
7214         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7215         and 1 on failure.
7216
7217         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7218         Change last argument to unsigned int.
7219
7220 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7221
7222         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7223
7224 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7225
7226         * config.h.in (HAVE_LIBCAP): Add.
7227         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7228         sys/capabilities.h.
7229         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7230         free_caps.  Cast away const from 4th cap_set_flag argument.
7231
7232 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7233
7234         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7235         GLIBC_2.6.
7236         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7237         Add sync_file_range.
7238         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7239
7240 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7241
7242         * sysdeps/powerpc/bits/atomic.h
7243         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7244         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7245         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7246         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7247         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7248         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7249         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7250         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7251         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7252         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7253         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7254         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7255         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7256         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7257         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7258         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7259         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7260         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7261         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7262         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7263
7264 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7265
7266         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7267         (__cache_line_size): Define the variable here.  Add
7268         attribute_hidden, remove weak_extern.
7269         (__libc_start_main): Set __cache_line_size
7270         unconditionally.
7271         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7272         (__cache_line_size): Define the variable here.  Add
7273         attribute_hidden, remove weak_extern.
7274         (DL_PLATFORM_AUXV): Set __cache_line_size
7275         unconditionally.
7276         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7277         weak_extern, add attribute_hidden.
7278         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7279         defined in ld.so.
7280         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7281         definition.
7282         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7283
7284 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7285
7286         [BZ #4276]
7287         * timezone/africa: Update from tzdata2007d.
7288         * timezone/asia: Likewise.
7289         * timezone/australasia: Likewise.
7290         * timezone/backward: Likewise.
7291         * timezone/europe: Likewise.
7292         * timezone/iso3166.tab: Likewise.
7293         * timezone/leapseconds: Likewise.
7294         * timezone/northamerica: Likewise.
7295         * timezone/southamerica: Likewise.
7296         * timezone/zone.tab: Likewise.
7297
7298         * timezone/private.h: Update from tzcode2007d.
7299         * timezone/zdump.c: Likewise.
7300         * timezone/zic.c: Likewise.
7301
7302 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7303
7304         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7305         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7306         variables.
7307         (nis_server_cache_search, nis_server_cache_add): New functions.
7308         (__nisfind_server): Use them.  Add dbp and flags argument, if
7309         call __nisbind_create.
7310         (__nisbind_create): Add server_used and current_ep arguments,
7311         only call __nis_findfastest if server_used is ~0.
7312         (__do_niscall2, __prepare_niscall): Adjust callers.
7313         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7314         ckey_cache_euid, ckey_cache_lock): New variables.
7315         (get_ckey): New function.
7316         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7317         __pmap_getnisport.  Save __pmap_getnisport result in
7318         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7319         key.
7320         * nis/nis_lookup.c (nis_lookup): Likewise.
7321         * nis/nis_table.c (nis_list): Likewise.
7322         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7323         prototypes.
7324
7325         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7326         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7327         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7328         _nss_nisplus_getservbyport_r): Likewise.
7329         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7330         _nss_nisplus_getnetbyaddr_r): Likewise.
7331         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7332         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7333         _nss_nisplus_getntohost_r): Likewise.
7334         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7335         _nss_nisplus_getrpcbynumber_r): Likewise.
7336
7337 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7338
7339         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7340         * configure: Rebuilt.
7341
7342         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7343         bit-fields.
7344         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7345
7346 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7347
7348         [BZ #2831]
7349         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7350         bit-fields.
7351
7352 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7353
7354         * nscd/gai.c: Include alloca.h.
7355         (__libc_use_alloca): Define.
7356
7357 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7358
7359         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7360         smaller scopes.
7361         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7362         (DL_DST_REQUIRED): Adjust user.
7363
7364         * include/dlfcn.h (struct link_map): New forward decl.
7365
7366         * inet/getnameinfo.c: Include stddef.h.
7367         (getnameinfo): Use offsetof.
7368
7369         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7370
7371         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7372
7373         * string/strerror_l.c: Include stdlib.h.
7374
7375         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7376         * config.make.in (gnu89-inline-CFLAGS): New variable.
7377         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7378         -std=gnu99.
7379         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7380         * argp/argp.h: Use it.
7381         * bits/mathinline.h: Likewise.
7382         * bits/sigset.h: Likewise.
7383         * bits/string.h: Likewise.
7384         * ctype/ctype.h: Likewise.
7385         * hurd/hurd.h: Likewise.
7386         * hurd/hurd/fd.h: Likewise.
7387         * hurd/hurd/port.h: Likewise.
7388         * hurd/hurd/signal.h: Likewise.
7389         * hurd/hurd/threadvar.h: Likewise.
7390         * hurd/hurd/userlink.h: Likewise.
7391         * io/sys/stat.h: Likewise.
7392         * libio/bits/stdio.h: Likewise.
7393         * libio/bits/stdio2.h: Likewise.
7394         * mach/lock-intern.h: Likewise.
7395         * mach/mach/mig_support.h: Likewise.
7396         * math/bits/cmathcalls.h: Likewise.
7397         * posix/bits/unistd.h: Likewise.
7398         * socket/bits/socket2.h: Likewise.
7399         * stdlib/bits/stdlib.h: Likewise.
7400         * stdlib/stdlib.h: Likewise.
7401         * string/argz.h: Likewise.
7402         * string/bits/string2.h: Likewise.
7403         * string/bits/string3.h: Likewise.
7404         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7405         * sysdeps/generic/inttypes.h: Likewise.
7406         * sysdeps/generic/machine-lock.h: Likewise.
7407         * sysdeps/generic/machine-sp.h: Likewise.
7408         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7409         * sysdeps/i386/i486/bits/string.h: Likewise.
7410         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7411         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7412         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7413         * sysdeps/mach/i386/machine-lock.h: Likewise.
7414         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7415         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7416         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7417         * sysdeps/s390/bits/string.h: Likewise.
7418         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7419         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7420         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7421         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7422         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7423         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7424         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7425         * wcsmbs/bits/wchar2.h: Likewise.
7426         * wcsmbs/wchar.h: Likewise.
7427         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7428         __extern_inline definition.
7429
7430 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7431
7432         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7433         NULL.
7434
7435         [BZ #3919]
7436         * math/libm-test.inc (log_test): Test -Inf and NaN.
7437         (log10_test, log1p_test, log2_test): Test -Inf.
7438         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7439         FE_INVALID when argument is qNaN.
7440         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7441         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7442         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7443         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7444         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7445         testb $4, %ah and jump if non-zero.
7446         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7447         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7448
7449         [BZ #4101]
7450         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7451         ancestors with the same depths.
7452         Patch by Niels Moeller <nisse@lysator.liu.se>.
7453         (filter_doc): Don't crash if argp is NULL.
7454         * argp/Makefile (tests): Add tst-argp2.
7455         * argp/tst-argp2.c: New test.
7456
7457         [BZ #4130]
7458         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7459         open_not_cancel_2.
7460         (updwtmp_file): Likewise.
7461
7462         [BZ #4181]
7463         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7464         (inet6_opt_append): Don't check extlen is big enough if extbuf
7465         is NULL.
7466         (inet6_opt_finish): Likewise.
7467         * inet/Makefile (tests): Add test-inet6_opt.
7468         * inet/test-inet6_opt.c: New test.
7469
7470         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7471         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7472         NLMSG_ERR.  Instead use a page sized buffer.
7473         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7474         buffer.
7475
7476 2007-03-14  Richard Henderson  <rth@redhat.com>
7477
7478         * sysdeps/alpha/fpu/s_llround.c: New file.
7479         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7480         * sysdeps/alpha/fpu/s_lround.c: New file.
7481         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7482         * sysdeps/alpha/fpu/s_round.c: New file.
7483         * sysdeps/alpha/fpu/s_roundf.c: New file.
7484         * sysdeps/alpha/fpu/s_trunc.c: New file.
7485         * sysdeps/alpha/fpu/s_truncf.c: New file.
7486
7487         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7488         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7489         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7490         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7491         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7492         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7493
7494         * sysdeps/alpha/fpu/s_fmax.S: New file.
7495         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7496         * sysdeps/alpha/fpu/s_fmin.S: New file.
7497         * sysdeps/alpha/fpu/s_fminf.S: New file.
7498         * sysdeps/alpha/fpu/s_isnan.c: New file.
7499         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7500         * sysdeps/alpha/fpu/s_llrint.c: New file.
7501         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7502         * sysdeps/alpha/fpu/s_lrint.c: New file.
7503         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7504         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7505         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7506
7507         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7508         (__fdimf, fdimf, __fdim, fdim): Remove.
7509         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7510         (__isnanf, __isnan, __isnanl): New.
7511
7512 2007-03-13  Richard Henderson  <rth@redhat.com>
7513
7514         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7515
7516 2007-03-13  Richard Henderson  <rth@redhat.com>
7517
7518         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7519         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7520         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7521         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7522         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7523         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7524
7525 2007-03-13  Richard Henderson  <rth@redhat.com>
7526
7527         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7528         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7529         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7530         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7531         Move to dl-auxv.h; initialize instead of extern weak.
7532         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7533         weak symbol.
7534         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7535         Extern instead of initialized.
7536
7537 2007-03-13  Richard Henderson  <rth@redhat.com>
7538
7539         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7540         __sigsuspend_nocancel.
7541
7542 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7543
7544         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7545         172.16/12 address range.
7546
7547 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7548
7549         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7550         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7551         message.
7552
7553 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7554
7555         [BZ #4069]
7556         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7557         earlier.
7558         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7559
7560         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7561         for x qNaN and y either +-inf or non-integer value.
7562         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7563         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7564         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7565
7566 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7567
7568         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7569         from sysdep_headers.
7570
7571 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7572
7573         * time/tzfile.c (find_transition): Instead of a linear search try to
7574         guess the transition index, use a linear search if the result is at
7575         most 10 transitions away from the guess or binary search otherwise.
7576
7577 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7578
7579         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7580         memory reallocation.
7581
7582 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7583
7584         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7585         and fix some typos.
7586         Optimize use of TOLOWER.
7587
7588         [BZ #3325]
7589         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7590         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7591         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7592
7593         [BZ #3458]
7594         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7595         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7596
7597         [BZ #4076]
7598         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7599         (open_dir_stream): Likewise.
7600         * io/Makefile (tests): Add bug-ftw5.
7601         * io/bug-ftw5.c: New file.
7602
7603         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7604         * nscd/servicescache.c (cache_addserv): Likewise.
7605
7606         * nscd/grpcache.c (cache_addgr): In case a record changed on
7607         refresh, adjust key_copy.
7608
7609         [BZ #4074]
7610         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7611         refresh, adjust key_copy.
7612
7613         [BZ #4070]
7614         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7615         special cases.
7616         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7617
7618 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7619
7620         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7621         optimization.
7622
7623         * stdio-common/vfscanf.c: Small cleanups throughout.
7624
7625 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7626
7627         [BZ #3325]
7628         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7629         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7630         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7631         Patch by Jared Casper <jaredcasper@gmail.com>.
7632
7633         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7634         * sysdeps/unix/opendir.c: Likewise.
7635         * sysdeps/unix/readdir.c: Likewise.
7636
7637         [BZ #2211]
7638         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7639         point numbers.
7640         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7641
7642         * stdio-common/vfscanf.c: Fix problems in width accounting.
7643         * stdio-common/tst-sscanf.c (double_tests): New tests.
7644         (main): Hook them up.
7645
7646         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7647         More simplifications of floating-point reader.
7648
7649         * stdio-common/Makefile (tests): Add tst-swscanf.
7650         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7651         testing.
7652         * stdio-common/tst-swscanf.c: New file.
7653
7654 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7655
7656         [BZ #2633]
7657         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7658         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7659         Remove using for __jmp_buf_tag.
7660         * locale/locale.h (struct lconv): Also define in std namespace.
7661         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7662
7663         [BZ #3842]
7664         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7665         using __libc_enable_secure.
7666
7667         [BZ #3818]
7668         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7669
7670         [BZ #3745]
7671         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7672         of names for ellipsises.
7673
7674         [BZ #3348]
7675         * malloc/memusage.sh: Cleanups.
7676         * debug/xtrace.sh: Quoting and trap changes.
7677
7678 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7679
7680         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7681
7682         * locale/iso-3166.def: Update entry for Serbia.
7683         * locale/iso-4217.def: Define RSD, remove CSD.
7684
7685         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7686         and 64-bit operations.
7687
7688         [BZ #4040]
7689         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7690         16-bit operations.
7691
7692         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7693         of writev.
7694
7695 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7696
7697         [BZ #3991]
7698         * assert/assert.h (assert): Simplify.
7699         (assert_perror): Likewise.
7700         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7701
7702         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7703         reqdata.
7704
7705         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7706         change: don't pass NULL in place of an integer.
7707
7708 2007-02-02  Bruno Haible  <bruno@clisp.org>
7709
7710         [BZ #3954]
7711         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7712         Add mapping for U+327E.
7713         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7714         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7715         mapping of 0xD9 0xE8.
7716         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7717         mapping of U+327E.
7718         Reported by Jungshik Shin <jungshik@google.com>.
7719
7720         [BZ #3955]
7721         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7722         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7723         Reported by Jungshik Shin <jungshik@google.com>.
7724
7725 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7726
7727         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7728         byte variants.
7729
7730         [BZ #4040]
7731         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7732         byte variants.  Patch mostly be tom@tommay.net.
7733
7734 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7735
7736         [BZ #3996]
7737         * posix/glob.c (attribute_hidden): Define if not defined.
7738         (glob): Unescape dirname, filename or username when needed and not
7739         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7740         is NULL.  Handle unescaped [ in pattern without closing ].
7741         Don't pass GLOB_CHECK down to recursive glob for directories.
7742         (__glob_pattern_type): New function.
7743         (__glob_pattern_p): Implement using __glob_pattern_type.
7744         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7745         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7746         Remove unreachable code.
7747         * posix/globtest.sh: Add a couple of new tests.
7748
7749 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7750
7751         * po/ru.po: Update from translation team.
7752
7753 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7754
7755         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7756         to the list of i486+ CPUs.
7757         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7758
7759 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7760
7761         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7762         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7763         references.
7764
7765 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7766
7767         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7768
7769         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7770         * resolv/res_mkquery.c: Define __res_nopt.
7771         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7772         try adding EDNS0 record.
7773         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7774         EDNS0 record was send make sure we don't try it again.
7775         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7776         * include/resolv.h: Declare __res_nopt.
7777
7778 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7779
7780         [BZ #3944]
7781         * time/strptime_l.c (__strptime_internal): Set have_mon for
7782         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7783         have been computed from tm_yday and tm_year.  Don't crash
7784         in day_of_the_week or day_of_the_year if not have_mon
7785         and tm_mon contains bogus value.
7786         * time/Makefile (tests): Add tst-strptime3.
7787         * time/tst-strptime3.c: New test.
7788
7789 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7790
7791         [BZ #3957]
7792         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7793         bit for RE_HAT_LISTS_NOT_NEWLINE.
7794         (build_charclass_op): Remove bogus comment.
7795         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7796         * posix/bug-regex27.c: New test.
7797         * posix/bug-regex28.c: New test.
7798
7799 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7800
7801         * po/sv.po: Update from translation team.
7802
7803 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7804
7805         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7806
7807 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7808
7809         * include/locale.h (__uselocale): Add libc_hidden_proto.
7810         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7811
7812         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7813         gettimeofday.
7814
7815 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7816
7817         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7818         returning.
7819         (PTR_DEMANGLE): Real definition now that it's not the same as
7820         PRT_MANGLE anymore.
7821         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7822
7823         * string/strerror_l.c: New file.
7824         * string/Makefile (routines): Add strerror_l.
7825         * string/string.h: Declare strerror_l.
7826         * string/Versions: Export strerror_l for GLIBC_2.6.
7827
7828 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7829
7830         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7831         as parameter.  Construct request record.  Try sending request
7832         before the first poll use, it usually succeeds.  Adjust all
7833         callers.
7834         * nscd/nscd-client.h: Define MAXKEYLEN.
7835         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7836
7837 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7838
7839         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7840         from return value.
7841         * nscd/nscd_helper.c: Include string.h.
7842         (__nscd_cache_search): Remove const qualifier from return value.
7843         On strict alignment architectures check hash entry and data head
7844         alignment.
7845         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7846         mmapped data during GC cycle contains garbage.  If
7847         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7848         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7849         dropped to 0.
7850         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7851         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7852         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7853         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7854         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7855
7856 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7857
7858         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7859
7860 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7861
7862         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7863         names not numbers in cfi_*.
7864
7865 2007-01-26  Andreas Jaeger  <aj@suse.de>
7866
7867         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7868         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7869         Correct values of PER_HPUX and PER_OSF4.
7870
7871 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7872
7873         * elf/dl-minimal.c: Undefine _itoa first.
7874         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7875         * malloc/mtrace.c: Revert last change.
7876         * posix/wordexp.c: Likewise.
7877
7878 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7879
7880         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7881         and __geode__ to the list of i486+ CPUs.
7882         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7883
7884 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7885
7886         * stdio-common/_itoa.c: Include <limits.h>.
7887         * stdio-common/_itowa.c: Likewise.
7888
7889 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7890
7891         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7892         platforms.
7893         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7894         64-bit platforms.
7895         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7896         possible.
7897         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7898         if possible.
7899
7900         [BZ #3902]
7901         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7902         * stdio-common/Makefile (tests): Add bug17.
7903         * stdio-common/bug17.c: New file.
7904
7905 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7906
7907         * iconvdata/brf.c: New file.
7908         * iconvdata/testdata/BRF: New file.
7909         * iconvdata/testdata/BRF..UTF8: New file.
7910         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7911         * iconvdata/Makefile: Add rules to build BRF.
7912         * iconvdata/TESTS: Add BRF entry.
7913         * iconvdata/gconv-modules: Likewise.
7914         * iconvdata/tst-tables.sh: Likewise.
7915
7916 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7917
7918         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7919         type `long long int', not `long int'.
7920         (wcstoq): Likewise.
7921
7922 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7923
7924         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7925         of values on 64-bit platforms which are too large.
7926
7927 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7928             Joe Kerian  <jkerian@us.us.ibm.com>
7929
7930         [BZ #2749]
7931         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7932         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7933         (__copysignl): Use signbit() for comparison.
7934         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7935         SET_LDOUBLE_WORDS64.
7936
7937         [BZ #2423, #2749]
7938         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7939         (__ceill): Remove calls to fegetround(), fesetround().
7940         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7941         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7942         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7943
7944 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7945
7946         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7947
7948         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7949
7950 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7951
7952         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7953         demangle pointer.
7954         * csu/libc-start.c: Likewise.
7955
7956 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7957
7958         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7959         really work anyway.
7960
7961 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7962
7963         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7964         users.
7965         (handle_request): Remove unnecessary tests.
7966
7967         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7968
7969 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7970
7971         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7972         workbits in semi-raw fraction.
7973
7974         * math/test-misc.c: Add new tests.
7975
7976 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7977
7978         * math/basic-test.c: Include test-skeleton.c.
7979         (TEST_TRUNC): Define.
7980         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7981         (main): Rename to ...
7982         (do_test): ...this.  Run new tests.
7983         (TEST_FUNCTION): Define.
7984
7985 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7986             Joe Kerian  <jkerian@us.us.ibm.com>
7987
7988         [BZ #2749]
7989         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7990         handling for high words.
7991         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7992         and overflow for infinity.
7993
7994 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7995
7996         * nscd/connections.c (handle_request): Add a __builtin_expect.
7997
7998         * nscd/connections.c (serv2db): Change type into structure which
7999         also says whether this is a request for data.  Renamed to
8000         servinfo.  All users changed.
8001         (handle_request): Much simpler test whether we should search the cache.
8002
8003         * nscd/connections.c (handle_request): Fix thinko in selinux test
8004         invocation.
8005
8006         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8007         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8008         it before getting dl_load_lock and then relock.
8009         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8010         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8011         case we unlocked the scope.
8012         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8013         _dl_lookup_symbol_x in case we locked the scope.
8014         (_dl_profile_fixup): Likewise.
8015         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8016         set DL_LOOKUP_SCOPE_LOCK.
8017
8018 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8019
8020         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8021         CFLAGS-getsrvbynpt_r.c.
8022         * nscd/getsrvbynm_r.c: New file.
8023         * nscd/getsrvbypt_r.c: New file.
8024         * nscd/nscd_getserv_r.c: New file.
8025         * nscd/servicescache.c: New file.
8026         * nscd/Makefile (routines): Add nscd_getserv_r.
8027         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8028         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8029         CFLAGS-getsrvbypt_r.c.
8030         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8031         table.  Add entries for services database.
8032         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8033         services database.
8034         (dbs): Add .reset_res and servdb initialization.
8035         (serv2db): Add entries for services database.
8036         (verify_persistent_db): Accept dbnr == servdb.
8037         (invalidate_cache): Rewrite database name recognition to use a table.
8038         Call res_init() if .reset_res is set for database.
8039         (handle_request): Add code to handle services database.
8040         * nscd/gai.c: Don't define __getservbyname_r.
8041         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8042         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8043         (serv_response_header): Define.
8044         (struct datahead): Add serv_response_header member.
8045         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8046         using table.
8047         * nscd/nscd.conf: Add entries for services database.
8048         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8049         Declare serv_iov_disabled.
8050         Declare addservbyname, readdservbyname, addservbyport, and
8051         readdservbyport.
8052         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8053         (find_db): Fix error message.
8054         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8055         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8056         * nscd/selinux.c (perms): Add entries for services database.
8057         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8058         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8059
8060         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8061         * nscd/hstcache.c: Likewise.
8062         * nscd/pwdcache.c: Likewise.
8063
8064         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8065         computation of keylen.
8066
8067         * include/string.h: Only redefine strndupa if this is really for
8068         libc code.
8069
8070 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8071
8072         * nscd/nscd_gethst_r.c: Minor cleanups.
8073
8074         * nscd/connections.c (handle_request): Check selinux permissions
8075         for all non-admin commands.
8076
8077         * sysdeps/i386/i486/bits/atomic.h: Define
8078         atomic_compare_and_exchange_val_acq,
8079         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8080         using __sync_* built-ins for gcc >= 4.1.
8081         * sysdeps/x86_64/bits/atomic.h: Likewise.
8082
8083         [BZ #3840]
8084         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8085         and .oS.d files.
8086
8087 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8088
8089         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8090         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8091         (do_test): Check errno and exit(0) if ENOSYS.
8092
8093 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8094
8095         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8096         thousands separators.
8097         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8098         * stdlib/tst-strtod4.c: New test.
8099
8100         [BZ #3855]
8101         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8102         hexadecimal digit should accept just the initial 0.
8103         * stdlib/tst-strtod2.c (tests): New variable.
8104         (do_test): Run several tests rather than just one.
8105
8106 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8107
8108         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8109         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8110
8111 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8112
8113         * io/fts.c: Make sure fts_cur is always valid after return from
8114         fts_read.
8115         Patch by Miloslav Trmac <mitr@redhat.com>.
8116
8117 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8118
8119         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8120         (R_MIPS_NUM): Bump by 1.
8121
8122 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8123
8124         * posix/execvp.c: Include alloca.h.
8125         (allocate_scripts_argv): Renamed to...
8126         (scripts_argv): ... this.  Don't allocate buffer here nor count
8127         arguments.
8128         (execvp): Use alloca if possible.
8129         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8130         * posix/tst-vfork3.c: New test.
8131
8132 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8133
8134         * string/Makefile (tst-strxfrm2-ENV): Define.
8135         * stdlib/Makefile (tst-strtod3-ENV): Define.
8136
8137 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8138
8139         * posix/getconf.c: Update copyright year.
8140         * nss/getent.c: Likewise.
8141         * iconv/iconvconfig.c: Likewise.
8142         * iconv/iconv_prog.c: Likewise.
8143         * elf/ldconfig.c: Likewise.
8144         * catgets/gencat.c: Likewise.
8145         * csu/version.c: Likewise.
8146         * elf/ldd.bash.in: Likewise.
8147         * elf/sprof.c (print_version): Likewise.
8148         * locale/programs/locale.c: Likewise.
8149         * locale/programs/localedef.c: Likewise.
8150         * nscd/nscd.c (print_version): Likewise.
8151         * debug/xtrace.sh: Likewise.
8152         * malloc/memusage.sh: Likewise.
8153         * malloc/mtrace.pl: Likewise.
8154         * debug/catchsegv.sh: Likewise.
8155
8156 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8157
8158         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8159         attempts.
8160
8161 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8162
8163         * posix/wordexp.c: Remove some unnecessary tests.
8164
8165 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8166
8167         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8168         blacklist the group till after we look it up.
8169
8170 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8171
8172         * include/atomic.h (atomic_forced_read): New macro.
8173
8174 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8175
8176         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8177
8178 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8179
8180         * nss/getXXbyYY_r.c: Include atomic.h.
8181         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8182         add atomic_write_barrier () in between.
8183
8184         * stdlib/Makefile (tests): Add tst-makecontext.
8185         * stdlib/tst-makecontext.c: New test.
8186
8187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8188         (__makecontext): Don't realign uc_mcontext.uc_regs.
8189
8190 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8191
8192         * elf/dl-support.c: Include dl-procinfo.h.
8193         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8194         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8195         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8196         Define.
8197         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8198         hardcoded constants.
8199         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8200         PPC_PLATFORM_* macros for array designators.
8201
8202 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8203
8204         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8205         names to the beginning.
8206         (_dl_powerpc_platforms): Add "power6x".
8207         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8208         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8209         (_DL_PLATFORMS_COUNT): Increase.
8210         (_dl_string_platform): Handle power6x case.
8211         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8212         PPC_FEATURE_POWER6_EXT): Define.
8213         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8214
8215 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8216
8217         [BZ #3747]
8218         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8219         [-2^31 .. 2^31) range.
8220         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8221         targets.
8222         * stdlib/tst-rand48-2.c: New test.
8223         * stdlib/Makefile (tests): Add tst-rand48-2.
8224
8225 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8226
8227         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8228
8229 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8230
8231         * misc/tst-pselect.c (do_test): Make sure the helper process is
8232         terminating when the test is aborted.
8233
8234 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8235
8236         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8237         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8238         Handle relatime mount option.
8239
8240         [BZ #2337]
8241         * libio/Makefile (tests): Add tst-setvbuf1.
8242         * libio/tst-setvbuf1.c: New file.
8243
8244 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8245
8246         [BZ #2337]
8247         * libio/genops.c (__uflow): Fix a typo.
8248         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8249         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8250         the narrow buffer size.
8251
8252 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8253
8254         [BZ #2337]
8255         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8256         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8257         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8258         in _flags.
8259         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8260         _IO_wstr_finish): Likewise.
8261         * libio/wmemstream.c (open_wmemstream): Likewise.
8262         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8263         even for wide streams.
8264
8265 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8266
8267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8268         kernel-features.h.
8269
8270 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8271
8272         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8273         separators also if no non-zero digits found.
8274         * stdlib/Makefile (tests): Add tst-strtod3.
8275
8276 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8277
8278         [BZ #3632]
8279         * include/features.h: Fix comment about default value for
8280         _POSIX_C_SOURCE.
8281
8282         [BZ #3664]
8283         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8284         empty parsed strings.
8285         * stdlib/Makefile (tests): Add tst-strtod2.
8286         * stdlib/tst-strtod2.c: New file.
8287
8288         [BZ #3673]
8289         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8290         computation.
8291         * stdlib/Makefile (tests): Add tst-atof2.
8292         * stdlib/tst-atof2.c: New file.
8293
8294         [BZ #3674]
8295         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8296         correctly if removing trailing zero of hex-float.
8297         * stdlib/Makefile (tests): Add tst-atof1.
8298         * stdlib/tst-atof1.c: New file.
8299
8300 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8301
8302         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8303         Start searching for next comma at p rather than rest.
8304         * misc/Makefile (tests): Add tst-mntent2.
8305         * misc/tst-mntent2.c: New test.
8306
8307         * misc/getusershell.c (initshells): Check for integer overflows.
8308         Make strings buffer one bigger as fgets always succeeds when second
8309         argument is 1.  Don't use calloc for shells array.  Disallow
8310         / as shell.
8311
8312 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8313
8314         * malloc/memusage.c: Handle realloc with new size of zero and
8315         non-NULL pointer correctly.
8316         (me): Really write first record twice.
8317         (struct entry): Make format bi-arch safe.
8318         (dest): Write out more realloc statistics.
8319         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8320
8321 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8322
8323         * nis/nis_subr.c (nis_getnames): Revert last change.
8324
8325 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8326
8327         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8328         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8329         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8330         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8331         ENOTTY.
8332         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8333         * io/tst-ttyname_r.c: New test.
8334
8335 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8336
8337         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8338
8339 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8340
8341         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8342         jump table entries.
8343
8344 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8345
8346         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8347         `clone' function to ensure proper unwinding stop of gdb.
8348         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8349
8350 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8351
8352         * nscd/nscd.init: Remove obsolete and commented-out -S option
8353         handling.
8354
8355 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8356
8357         [BZ #3514]
8358         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8359
8360         [BZ #3515]
8361         * manual/string.texi (strtok): Remove duplicate paragraph.
8362
8363 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8364
8365         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8366         libgcc not supporting `rflags' unwinding (register # >= 17).
8367
8368 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8369
8370         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8371         succeeded.
8372
8373 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8374             Jakub Jelinek  <jakub@redhat.com>
8375             Jan Kratochvil  <jan.kratochvil@redhat.com>
8376
8377         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8378         unwind information.
8379         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8380         'restore_rt' even in the 'signal' directory.
8381         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8382
8383 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8384
8385         [BZ #3559]
8386         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8387         malloc crashed.  Don't allocate memory unnecessarily in each
8388         loop.
8389
8390 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8391
8392         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8393
8394 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8395
8396         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8397
8398 2006-11-18  Bruno Haible  <bruno@clisp.org>
8399
8400         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8401         __sysconf only after having tried to call getgroups32.
8402
8403 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8404
8405         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8406         addresses for IPv4 queries if they can be mapped.
8407
8408 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8409
8410         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8411         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8412         (signmask): Add .size directive.
8413         (othermask): Add .type directive.
8414
8415 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8416
8417         * po/nl.po: Update from translation team.
8418
8419         * timezone/zdump.c: Redo fix for BZ #3137.
8420
8421 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8422
8423         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8424         to first_unused after parsing :include: file.
8425
8426 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8427
8428         * timezone/africa: Update from tzdata2006o.
8429         * timezone/antarctica: Likewise.
8430         * timezone/asia: Likewise.
8431         * timezone/australasia: Likewise.
8432         * timezone/backward: Likewise.
8433         * timezone/europe: Likewise.
8434         * timezone/iso3166.tab: Likewise.
8435         * timezone/northamerica: Likewise.
8436         * timezone/southamerica: Likewise.
8437         * timezone/zone.tab: Likewise.
8438
8439         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8440         on machines with 64-bit time_t.
8441
8442         * timezone/checktab.awk: Update from tzcode2006o.
8443         * timezone/ialloc.c: Likewise.
8444         * timezone/private.h: Likewise.
8445         * timezone/scheck.c: Likewise.
8446         * timezone/tzfile.h: Likewise.
8447         * timezone/tzselect.ksh: Likewise.
8448         * timezone/zdump.c: Likewise.
8449         * timezone/zic.c: Likewise.
8450
8451         [BZ #3483]
8452         * elf/ldconfig.c (main): Call setlocale and textdomain.
8453         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8454
8455         [BZ #3480]
8456         * manual/argp.texi: Fix typos.
8457         * manual/charset.texi: Likewise.
8458         * manual/errno.texi: Likewise.
8459         * manual/filesys.texi: Likewise.
8460         * manual/lang.texi: Likewise.
8461         * manual/maint.texi: Likewise.
8462         * manual/memory.texi: Likewise.
8463         * manual/message.texi: Likewise.
8464         * manual/resource.texi: Likewise.
8465         * manual/search.texi: Likewise.
8466         * manual/signal.texi: Likewise.
8467         * manual/startup.texi: Likewise.
8468         * manual/stdio.texi: Likewise.
8469         * manual/sysinfo.texi: Likewise.
8470         * manual/syslog.texi: Likewise.
8471         * manual/time.texi: Likewise.
8472         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8473
8474         [BZ #3465]
8475         * sunrpc/clnt_raw.c: Minimal message improvements.
8476         * sunrpc/pm_getmaps.c: Likewise.
8477         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8478         * nis/nis_print_group_entry.c: Likewise.
8479         * locale/programs/repertoire.c: Likewise.
8480         * locale/programs/charmap.c: Likewise.
8481         * malloc/memusage.sh: Likewise.
8482         * elf/dl-deps.c: Likewise.
8483         * locale/programs/ld-collate.c: Likewise.
8484         * libio/vswprintf.c: Likewise.
8485         * malloc/memusagestat.c: Likewise.
8486         * sunrpc/auth_unix.c: Likewise.
8487         * sunrpc/rpc_main.c: Likewise.
8488         * nscd/cache.c: Likewise.
8489         * locale/programs/repertoire.c: Unify output messages.
8490         * locale/programs/charmap.c: Likewise.
8491         * locale/programs/ld-ctype.c: Likewise.
8492         * locale/programs/ld-monetary.c: Likewise.
8493         * locale/programs/ld-numeric.c: Likewise.
8494         * locale/programs/ld-time.c: Likewise.
8495         * elf/ldconfig.c: Likewise.
8496         * nscd/selinux.c: Likewise.
8497         * elf/cache.c: Likewise.
8498         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8499
8500         [BZ #3451]
8501         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8502         change atomic.
8503         (ceil): Likewise.
8504
8505 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8506
8507         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8508         if N is one bigger than return value.
8509         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8510         and l1 last arguments, if buf is defined, verify the return value
8511         equals to strlen (buf) and verify no byte beyond passed length
8512         is modified.
8513
8514 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8515
8516         * po/sv.po: Update from translation team.
8517
8518 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8519
8520         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8521         noinline attribute.
8522
8523 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8524
8525         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8526         noinline attribute.
8527
8528         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8529         Use __new_sys_siglist instead of _sys_siglist_internal as
8530         second macro argument.
8531         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8532         strong_alias.
8533
8534 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8535
8536         [BZ #3493]
8537         * posix/unistd.h (sysconf): Remove const attribute.
8538
8539         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8540         temporary or deprecated addresses.
8541         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8542
8543         * string/Makefile (tests): Add tst-strxfrm2.
8544         * string/tst-strxfrm2.c: New file.
8545
8546 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8547
8548         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8549         rather than r->r_brk.
8550
8551 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8552
8553         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8554         optimization even if needed > n.
8555
8556         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8557         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8558         return false, otherwise return true.
8559         (cache_rpath): Return decompose_rpath return value.
8560
8561 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8562
8563         * include/libc-symbols.h (declare_symbol): Rename to...
8564         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8565         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8566         .size directive.
8567         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8568         changes.
8569         * sysdeps/gnu/siglist.c: Likewise.
8570
8571 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8572
8573         * sysdeps/powerpc/fpu/bits/mathinline.h
8574         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8575         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8576
8577 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8578
8579         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8580         Update handling of cache descriptor 0x49 for new models.
8581         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8582         Likewise.
8583
8584 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8585
8586         * malloc/memusage.c (dest): Reset not_me back to false after
8587         printing statistics.
8588
8589 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8590
8591         * configure.in: Work around ld --help change and avoid -z relro
8592         test completely if the architecture doesn't care about security.
8593
8594 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8595
8596         * po/sv.po: Update from translation team.
8597
8598 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8599
8600         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8601         generate compatibility version.
8602
8603 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8604
8605         * configure.in: Relax -z relro requirement a bit.
8606
8607         * po/sv.po: Update from translation team.
8608
8609 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8610
8611         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8612         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8613         * elf/dl-close.c (_dl_close_worker): Likewise.
8614         * elf/dl-open.c (_dl_open_worker): Likewise.
8615         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8616
8617 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8618
8619         * configure.in: Require assembler support for visibility, compiler
8620         support for visibility and aliases, linker support for various -z
8621         options.
8622         * Makeconfig: Remove conditional code which now is unnecessary.
8623         * config.h.in: Likewise.
8624         * config.make.in: Likewise.
8625         * dlfcn/Makefile: Likewise.
8626         * elf/Makefile: Likewise.
8627         * elf/dl-load.c: Likewise.
8628         * elf/rtld.c: Likewise.
8629         * include/libc-symbols.h: Likewise.
8630         * include/stdio.h: Likewise.
8631         * io/Makefile: Likewise.
8632         * io/fstat.c: Likewise.
8633         * io/fstat64.c: Likewise.
8634         * io/fstatat.c: Likewise.
8635         * io/fstatat64.c: Likewise.
8636         * io/lstat.c: Likewise.
8637         * io/lstat64.c: Likewise.
8638         * io/mknod.c: Likewise.
8639         * io/mknodat.c: Likewise.
8640         * io/stat.c: Likewise.
8641         * io/stat64.c: Likewise.
8642         * libio/stdio.c: Likewise.
8643         * nscd/Makefile: Likewise.
8644         * stdlib/Makefile: Likewise.
8645         * stdlib/atexit.c: Likewise.
8646         * sysdeps/generic/ldsodefs.h: Likewise.
8647         * sysdeps/i386/dl-machine.h: Likewise.
8648         * sysdeps/i386/sysdep.h: Likewise.
8649         * sysdeps/i386/i686/memcmp.S: Likewise.
8650         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8651         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8652         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8653
8654         * Makerules: USE_TLS support is now default.
8655         * tls.make.c: Likewise.
8656         * csu/Versions: Likewise.
8657         * csu/libc-start.c: Likewise.
8658         * csu/libc-tls.c: Likewise.
8659         * csu/version.c: Likewise.
8660         * dlfcn/dlinfo.c: Likewise.
8661         * elf/dl-addr.c: Likewise.
8662         * elf/dl-cache.c: Likewise.
8663         * elf/dl-close.c: Likewise.
8664         * elf/dl-iteratephdr.c: Likewise.
8665         * elf/dl-load.c: Likewise.
8666         * elf/dl-lookup.c: Likewise.
8667         * elf/dl-object.c: Likewise.
8668         * elf/dl-open.c: Likewise.
8669         * elf/dl-reloc.c: Likewise.
8670         * elf/dl-support.c: Likewise.
8671         * elf/dl-sym.c: Likewise.
8672         * elf/dl-sysdep.c: Likewise.
8673         * elf/dl-tls.c: Likewise.
8674         * elf/ldconfig.c: Likewise.
8675         * elf/rtld.c: Likewise.
8676         * elf/tst-tls-dlinfo.c: Likewise.
8677         * elf/tst-tls1.c: Likewise.
8678         * elf/tst-tls10.h: Likewise.
8679         * elf/tst-tls14.c: Likewise.
8680         * elf/tst-tls2.c: Likewise.
8681         * elf/tst-tls3.c: Likewise.
8682         * elf/tst-tls4.c: Likewise.
8683         * elf/tst-tls5.c: Likewise.
8684         * elf/tst-tls6.c: Likewise.
8685         * elf/tst-tls7.c: Likewise.
8686         * elf/tst-tls8.c: Likewise.
8687         * elf/tst-tls9.c: Likewise.
8688         * elf/tst-tlsmod1.c: Likewise.
8689         * elf/tst-tlsmod13.c: Likewise.
8690         * elf/tst-tlsmod13a.c: Likewise.
8691         * elf/tst-tlsmod14a.c: Likewise.
8692         * elf/tst-tlsmod2.c: Likewise.
8693         * elf/tst-tlsmod3.c: Likewise.
8694         * elf/tst-tlsmod4.c: Likewise.
8695         * elf/tst-tlsmod5.c: Likewise.
8696         * elf/tst-tlsmod6.c: Likewise.
8697         * include/errno.h: Likewise.
8698         * include/link.h: Likewise.
8699         * include/tls.h: Likewise.
8700         * locale/global-locale.c: Likewise.
8701         * locale/localeinfo.h: Likewise.
8702         * malloc/arena.c: Likewise.
8703         * malloc/hooks.c: Likewise.
8704         * malloc/malloc.c: Likewise.
8705         * resolv/Versions: Likewise.
8706         * sysdeps/alpha/dl-machine.h: Likewise.
8707         * sysdeps/alpha/libc-tls.c: Likewise.
8708         * sysdeps/generic/ldsodefs.h: Likewise.
8709         * sysdeps/generic/tls.h: Likewise.
8710         * sysdeps/i386/dl-machine.h: Likewise.
8711         * sysdeps/ia64/dl-machine.h: Likewise.
8712         * sysdeps/ia64/libc-tls.c: Likewise.
8713         * sysdeps/mach/hurd/fork.c: Likewise.
8714         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8715         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8716         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8717         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8718         * sysdeps/s390/libc-tls.c: Likewise.
8719         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8720         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8721         * sysdeps/sh/dl-machine.h: Likewise.
8722         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8723         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8724         * sysdeps/x86_64/dl-machine.h: Likewise.
8725
8726         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8727         split out locking and parameter checking.
8728         (_dl_close): Call _dl_close_worker after locking and checking.
8729         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8730         _dl_close.
8731         * elf/Makefile: Add rules to build and run tst-thrlock.
8732         * elf/tst-thrlock.c:  New file.
8733
8734         [BZ #3426]
8735         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8736         reality.
8737
8738         [BZ #3429]
8739         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8740         we are sure we do not need it anymore for _dl_close.  Also move
8741         the asserts inside the lock region.
8742         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8743
8744 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8745
8746         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8747         argument.
8748         (_dl_lookup_symbol_x): Adjust caller.
8749
8750         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8751         _ns_global_scope.
8752         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8753
8754         * elf/dl-libc.c: Revert l_scope name changes.
8755         * elf/dl-load.c: Likewise.
8756         * elf/dl-object.c: Likewise.
8757         * elf/rtld.c: Likewise.
8758         * elf/dl-close.c (_dl_close): Likewise.
8759         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8760         always use __rtld_mrlock_{change,done}.  Always free old scope list
8761         here if not l_scope_mem.
8762         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8763         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8764         the lookup and __rtld_mrlock_unlock it after the lookup.
8765         * elf/dl-sym.c: Likewise.
8766         * include/link.h (struct r_scoperec): Remove.
8767         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8768         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8769
8770 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8771
8772         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8773
8774 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8775
8776         * configure.in: Disable building profile libraries by default.
8777
8778 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8779
8780         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8781         as signed longs, check for x_base + pos overflow.
8782         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8783         * sunrpc/tst-xdrmem2.c: New test.
8784
8785 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8786
8787         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8788         _dl_lookup_symbol_x code.
8789
8790 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8791
8792         * elf/dl-runtime.c: Include sysdep-cancel.h.
8793         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8794         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8795         instead of catomic_* macros.
8796         * elf/dl-sym.c: Include sysdep-cancel.h.
8797         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8798         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8799         * elf/dl-close.c: Include sysdep-cancel.h.
8800         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8801         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8802         * elf/dl-open.c: Include sysdep-cancel.h.
8803         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8804         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8805
8806 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8807
8808         [BZ #3313]
8809         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8810         fastbin rather than end of fastbin array.
8811
8812 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8813
8814         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8815         body macro.
8816         * sysdeps/x86_64/bits/atomic.h
8817         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8818         (catomic_decrement): Use correct body macro.
8819
8820 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8821
8822         * include/atomic.h: Add a unique prefix to all local variables
8823         in macros.
8824         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8825
8826 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8827
8828         [BZ #3369]
8829         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8830         and 7.
8831
8832 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8833
8834         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8835
8836 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8837
8838         [BZ #3313]
8839         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8840         determine highest fast bin to consolidate, always look into all of
8841         them.
8842         (do_check_malloc_state): Only require for empty bins for large
8843         sizes in main arena.
8844
8845         * libio/stdio.h: Add more __wur attributes.
8846
8847         * elf/dl-minimal.c (realloc): Optimize last patch.
8848
8849 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8850
8851         [BZ #3352]
8852         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8853         and use memcpy() if it does.
8854
8855 2006-11-12  Andreas Jaeger  <aj@suse.de>
8856
8857         [BZ #2510]
8858         * manual/search.texi (Hash Search Function): Clarify.
8859         (Array Search Function): Clarify.
8860
8861 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8862
8863         [BZ #2830]
8864         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8865         shifting.
8866         * math/atest-exp2.c (read_mpn_hex): Likewise.
8867         * math/atest-sincos.c (main): Likewise.
8868
8869 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8870
8871         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8872         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8873         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8874         version GLIBC_2.6.
8875         * Versions.def: Add GLIBC_2.6 for libc.
8876
8877         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8878
8879         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8880
8881 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8882
8883         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8884
8885         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8886
8887         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8888         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8889
8890 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8891
8892         * include/atomic.c: Define catomic_* operations.
8893         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8894         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8895         * malloc/memusage.c: Likewise.
8896         * gmon/mcount.c: Likewise.
8897         * elf/dl-close.c: Likewise.
8898         * elf/dl-open.c: Likewise.
8899         * elf/dl-profile.c: Likewise.
8900         * elf/dl-sym.c: Likewise.
8901         * elf/dl-runtime.c: Likewise.
8902         * elf/dl-fptr.c: Likewise.
8903         * resolv/res_libc.c: Likewise.
8904
8905 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8906
8907         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8908         components which lack them.
8909
8910         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8911         at least one entry consisting of the parameter concatenated with
8912         the domain.
8913
8914 2006-10-10  Roland McGrath  <roland@frob.com>
8915
8916         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8917         * sysdeps/mach/hurd/futimes.c: Likewise.
8918         * sysdeps/mach/hurd/lutimes.c: Likewise.
8919
8920 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8921             Jakub Jelinek  <jakub@redhat.com>
8922
8923         Implement reference counting of scope records.
8924         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8925         from the list in objects which remain.  Always allocate new scope
8926         record.
8927         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8928         don't resize, allocate a new one.
8929         * elf/dl-runtime.c: Update reference counters before using a scope
8930         array.
8931         * elf/dl-sym.c: Likewise.
8932         * elf/dl-libc.c: Adjust for l_scope name change.
8933         * elf/dl-load.c: Likewise.
8934         * elf/dl-object.c: Likewise.
8935         * elf/rtld.c: Likewise.
8936         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8937         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8938         Add l_scoperec_lock.
8939         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8940         * sysdeps/generic/rtld-lowlevel.h: New file.
8941
8942         * include/atomic.h: Rename atomic_and to atomic_and_val and
8943         atomic_or to atomic_or_val.  Define new macros atomic_and and
8944         atomic_or which do not return values.
8945         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8946         Various cleanups.
8947         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8948
8949         * po/sv.po: Update from translation team.
8950
8951 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8952
8953         * Versions.def: Add GLIBC_2.6 to libpthread.
8954
8955         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8956         (versioned_symbol): Likewise.
8957         (compat_symbol): Likewise.
8958
8959         * po/tr.po: Update from translation team.
8960
8961 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8962
8963         * nis/Banner: Removed.  It's been integral part forever and the
8964         author info is incomplete anyway.
8965         * libio/Banner: Likewise.
8966
8967         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8968         code, make sure the nis_freeresult call doesn't crash and that the
8969         result is reported correctly.
8970
8971 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8972
8973         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8974         when callback is NULL.
8975
8976         * nis/Versions (libnss_nisplus): Add
8977         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8978         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8979         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8980         _nss_create_tablename): Rename to...
8981         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8982         ... these.  No longer static.
8983         (internal_setgrent): Adjust users.
8984         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8985         Don't use locking around _nss_grp_create_tablename call.
8986         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8987
8988 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8989
8990         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8991
8992 2006-10-06  Andreas Jaeger  <aj@suse.de>
8993
8994         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8995
8996 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8997
8998         * po/pl.po: Update from translation team.
8999
9000         * nscd/nscd.c (main): Fix typo in message.
9001         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9002
9003 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9004
9005         [BZ #3291]
9006         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9007         errno.h, signal.h, unistd.h and sysdep-cancel.h.
9008         (__sigprocmask): Define.
9009
9010 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9011
9012         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9013         used.
9014
9015 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9016
9017         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9018         in oldtotal and newtotal calculation.
9019         * nscd/nscd-client.h (struct mapped_database): Add datasize
9020         field.
9021         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9022         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9023         increased.
9024         (__nscd_cache_search): Add checks to make sure we never reference
9025         data beyond the current mapping.
9026
9027 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9028
9029         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9030         variables const to avoid compiler warnings.
9031
9032         * io/fts.c (fts_close): Remove redundant checks.
9033         (fts_build): Likewise.
9034         (fts_palloc): Likewise.
9035
9036         * manual/message.texi (Advanced gettext functions,
9037         Using gettextized software): Fix typos.
9038
9039 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9040
9041         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9042         explain why there are no leaks.
9043
9044 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9045
9046         * libio/wmemstream.c: Include <wchar.h>.
9047         * libio/bug-wmemstream1.c: Likewise.
9048         * libio/tst-wmemstream1.c: Likewise.
9049         * libio/tst-wmemstream2.c: Likewise.
9050
9051         * version.h (RELEASE): Bump to 2.5.
9052         * README: Regenerated.
9053
9054         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9055
9056         [BZ #3273]
9057         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9058         found no group members.
9059         Patch by Petr Baudis.
9060
9061 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9062
9063         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9064         assert bootstrap_map.l_tls_modid is zero.
9065         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9066         if USE___THREAD.
9067
9068 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9069
9070         * libio/stdio.h: Move open_wmemstream prototype to ...
9071         * wcsmbs/wchar.h: ... here.
9072
9073 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9074
9075         [BZ #3252]
9076         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9077         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9078         __{,l}chown to handle the rest.
9079         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9080         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9081         __{,l}chown to handle the rest.
9082         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9083         i386/fchownat.c.
9084         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9085         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9086
9087         [BZ #3253]
9088         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9089         time, rather allocate increasingly bigger arrays of pointers, if
9090         possible with alloca, if too large with malloc.
9091
9092 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9093
9094         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9095
9096         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9097
9098 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9099
9100         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9101         home addresses.
9102         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9103         IFA_F_HOMEADDRESS flag for interfaces.
9104         * include/ifaddrs.h (struct in6addrinfo): Define
9105         in6ai_homeaddress.
9106
9107 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9108
9109         [BZ #3225]
9110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9111         PTR_DEMANGLE3): Define.
9112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9113         PTR_DEMANGLE3): Likewise.
9114         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9115         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9116         Likewise.
9117         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9118
9119 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9120
9121         * po/libc.pot: Regenerated.
9122         * po/be.po: Updated.
9123         * po/ca.po: Likewise.
9124         * po/cs.po: Likewise.
9125         * po/da.po: Likewise.
9126         * po/de.po: Likewise.
9127         * po/el.po: Likewise.
9128         * po/en_GB.po: Likewise.
9129         * po/es.po: Likewise.
9130         * po/fi.po: Likewise.
9131         * po/fr.po: Likewise.
9132         * po/gl.po: Likewise.
9133         * po/hr.po: Likewise.
9134         * po/hu.po: Likewise.
9135         * po/ja.po: Likewise.
9136         * po/ko.po: Likewise.
9137         * po/nb.po: Likewise.
9138         * po/nl.po: Likewise.
9139         * po/pl.po: Likewise.
9140         * po/pt_BR.po: Likewise.
9141         * po/ru.po: Likewise.
9142         * po/rw.po: Likewise.
9143         * po/sk.po: Likewise.
9144         * po/sv.po: Likewise.
9145         * po/tr.po: Likewise.
9146         * po/zh_CN.po: Likewise.
9147         * po/zh_TW.po: Likewise.
9148
9149         [BZ #3137]
9150         * iconv/iconv_prog.c (main): Fix spelling in error message.
9151         * iconv/iconvconfig.c (main): Likewise.
9152         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9153         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9154         * locale/programs/localedef.c (main): Likewise.
9155         * locale/programs/repertoire.c (repertoire_read): Likewise.
9156         * timezone/zdump.c (main): Likewise.
9157         * nscd/connections.c (handle_request): Fix spelling in log message.
9158         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9159
9160 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9161
9162         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9163         interfaces.
9164
9165 2006-09-20  Andreas Jaeger  <aj@suse.de>
9166
9167         * math/libm-test.inc (lrint_test_upward): Fix typo.
9168
9169 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9170
9171         [BZ #2592]
9172         * math/libm-test.inc (lrint_test_tonearest): New function.
9173         (lrint_test_towardzero): New function.
9174         (lrint_test_downward): New function.
9175         (lrint_test_upward): New function.
9176         (main): Run these new tests.
9177         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9178         of values near to 0.
9179         (two52): Use double not long double.
9180         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9181         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9182         (two23): Use float not double.
9183         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9184         (two23): Use float not double.
9185         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9186         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9187         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9188         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9189
9190 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9191
9192         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9193         Cast sp to unsigned long to avoid compiler warning.
9194         Use __makecontext_ret function instead of a trampoline on the stack.
9195         (__makecontext_ret): New function.
9196         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9197
9198 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9199
9200         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9201         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9202         bits.
9203
9204 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9205
9206         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9207         sure no reference to the unloaded map's search list remains in the
9208         dependency's scope.
9209
9210 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9211
9212         * elf/Makefile: Add rules to build and run unload7 test.
9213         * elf/unload7.c: New test.
9214         * elf/unload7mod1.c: New file.
9215         * elf/unload7mod2.c: New file.
9216
9217 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9218
9219         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9220         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9221         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9222         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9223         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9224         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9225         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9226         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9227         PTRACE_GETEVENTMSG): Likewise.
9228         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9229         values.
9230
9231 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9232
9233         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9234         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9235         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9236         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9237
9238 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9239
9240         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9241         write '\0' to the fd.
9242         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9243         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9244         Change regs to unsigned long pointer from unsigned int, fix fscr
9245         offset.
9246
9247 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9248
9249         * io/Makefile (CFLAGS-fstatat.c): Set.
9250         (CFLAGS-fstatat64.c): Likewise.
9251         (CFLAGS-mknodat.c): Likewise.
9252
9253         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9254         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9255         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9256         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9257
9258 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9259             Steven Munroe  <sjmunroe@us.ibm.com>
9260
9261         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9262         names to the beginning.  Rename "cell" to "cellbe".
9263         (_dl_powerpc_platforms): New.
9264         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9265         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9266         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9267         (_DL_HWCAP_PLATFORM): Define to new mask.
9268         (_dl_platform_string, _dl_string_platform): New functions.
9269         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9270         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9271
9272 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9273
9274         [BZ #2526]
9275         * README.libm: Fix a thinko in sqrt algorithm description.
9276
9277         [BZ #3143]
9278         * manual/string.texi (argz_delete): Fix prototype.
9279         Patch by <alpt@freaknet.org>.
9280
9281 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9282
9283         [BZ #3138]
9284         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9285         * io/tst-fcntl.c (do_prepare): Likewise.
9286         * posix/tst-exec.c (do_prepare): Likewise.
9287         * posix/tst-preadwrite.c (do_prepare): Likewise.
9288         * posix/tst-spawn.c (do_prepare): Likewise.
9289         * posix/tst-truncate.c (do_prepare): Likewise.
9290         * rt/tst-aio.c (do_prepare): Likewise.
9291         * rt/tst-aio64.c (do_prepare): Likewise.
9292         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9293         size_t.
9294
9295 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9296
9297         [BZ #2821]
9298         * time/mktime.c (guess_time_tm): Fix overflow detection.
9299         * time/Makefile (tests): Add bug-mktime1.
9300         * time/bug-mktime1.c: New file.
9301
9302         [BZ #3189, #3188]
9303         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9304         (mremap): Likewise.
9305
9306 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9307
9308         [BZ #1006]
9309         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9310         Ensure relocation doesn't clobber any bits outside of the
9311         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9312         R_SPARC_HI22 and R_SPARC_H44.
9313
9314         [BZ #2775]
9315         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9316         (long) (MINSIZE + nb - old_size) is positive.
9317
9318         * malloc/arena.c (grow_heap): When growing bail even if new_size
9319         is negative.
9320
9321         [BZ #3155]
9322         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9323         stack below r1.
9324
9325 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9326
9327         * posix/regex_internal.c (re_string_reconstruct): Handle
9328         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9329         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9330         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9331         re_string_context_at.
9332         * posix/Makefile: Add rules to build and run bug-regex26 test.
9333         * posix/bug-regex26.c: New test.
9334
9335         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9336         rather than col_sym_free.  Move seqp declaration earlier.
9337
9338         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9339
9340 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9341
9342         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9343         decl before first goto out.
9344
9345 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9346
9347         * Makerules (shlib.lds): If have-hash-style, put .hash section
9348         at the end of the RO segment.
9349
9350 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9351
9352         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9353         style hash table format is used.
9354
9355 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9356
9357         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9358         randomization rather than before.
9359         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9360
9361 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9362
9363         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9364
9365         * malloc/malloc.c (_int_malloc): Use full list insert and not
9366         shortcut which assumes the list is empty for large requests
9367         too.
9368
9369         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9370
9371 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9372
9373         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9374         and offout arguments to the prototype.
9375         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9376         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9377         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9378         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9379         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9380         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9381         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9382         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9383
9384 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9385
9386         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9387
9388         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9389         dlopen parameters.
9390
9391 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9392
9393         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9394         only if herrno is NETDB_INTERNAL.  Handle errors other than
9395         ERANGE outside of the loops, handle TRY_AGAIN.
9396
9397         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9398         if other's ctype category was missing.
9399         * locale/programs/ld-collate.c (collate_read): Return if
9400         copy_locale's collate category is missing.
9401
9402 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9403
9404         [BZ #2684]
9405         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9406         arenas if allocation failed.
9407         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9408
9409 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9410
9411         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9412         waste bins[0..1].
9413         (malloc_state): Reduce bins size by 2.
9414         (_int_malloc): Fix test for large enough buffer for early termination.
9415         When no unsorted block matches perfectly and an exiting block has
9416         to be split, use full list insert and not shortcut which assumes
9417         the list is empty.
9418
9419         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9420         failure.
9421
9422 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9423
9424         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9425         do anything.
9426
9427         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9428         symbol require exact match (these are PLTs).
9429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9430         (_dl_ppc64_addr_sym_match): Likewise.
9431
9432         [BZ #2683]
9433         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9434         If symbol has a value use it.
9435         * elf/tst-dladdr1.c: New file.
9436         * elf/Makefile: Add rules to build and run tst-addr1.
9437
9438 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9439
9440         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9441         keeps failing and heap growth or new heap creation isn't
9442         successful either.
9443         * malloc/tst-malloc.c (main): Add new tests.
9444
9445 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9446
9447         [BZ #2734]
9448         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9449         as in the x86-64 code to use bswap.
9450
9451 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9452
9453         [BZ #2680]
9454         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9455         __USE_UNIX98.
9456         * posix/bits/unistd.h: Likewise.
9457
9458 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9459
9460         [BZ #2751]
9461         * string/strchr.c: Add cast to avoid warning.
9462
9463 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9464
9465         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9466         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9467         limit is needed to avoid the exploding of the address space
9468         requirement for secondary heaps.
9469         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9470         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9471
9472 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9473
9474         [BZ #3018]
9475         * Makerules (depfiles): Handle extra-test-objs the same as
9476         extra-objs.
9477         (common-mostlyclean): Likewise.
9478         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9479         instead.
9480         * elf/Makefile (extra-objs): Likewise.
9481         * stdlib/Makefile (extra-objs): Likewise.
9482
9483 2006-08-14  Eric Blake  <ebb9@byu.net>
9484
9485         [BZ #3044]
9486         * misc/error.h: Assume C89 or better.
9487         * misc/error.c: Likewise.
9488
9489 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9490
9491         [BZ #3040]
9492         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9493         __ASSUME_ATFCTS is defined.
9494
9495 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9496
9497         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9498         to sort in each call.
9499
9500         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9501         is empty simply return and use next service.
9502         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9503
9504         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9505         tells us when not finding a charmap file is an error.
9506         * locale/programs/charmap.h: Adjust charmap_read prototype.
9507         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9508         cannot find a charmap.
9509         * locale/programs/localedef.c (main): Adjust charmap_read call.
9510
9511 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9512
9513         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9514         sysdeps/posix/pause.c implementation instead.
9515
9516 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9517
9518         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9519         to EPERM.
9520
9521 2006-08-13  Andreas Schwab  <schwab@suse.de>
9522
9523         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9524         Don't clobber caller's LRSAVE.
9525         (_dl_prof_resolve): Likewise.
9526
9527 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9528
9529         [BZ #1996]
9530         * libio/memstream.c (open_memstream): Allocate initial buffer with
9531         calloc.
9532         * libio/wmemstream.c (open_wmemstream): Likewise.
9533         * libio/strops.c: Pretty printing.
9534         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9535         (enlarge_userbuf): New function.
9536         (_IO_str_seekoff): Call it if seek position is larger than current
9537         buffer.
9538         * libio/wstrops.c: Likewise.
9539         * libio/vasprintf.c: Add comment as to why we do not have to use
9540         calloc instead of malloc to allocate initial buffer.
9541         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9542         * libio/bug-memstream1.c: New file.
9543         * libio/bug-wmemstream1.c: New file.
9544
9545 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9546
9547         * libio/wstrops.c: Remove dead macro definitions and comments.
9548         * libio/strops.c: Likewise.
9549
9550         [BZ #2764]
9551         * login/utmpname.c (__utmpname): Remove unnecessary test.
9552
9553 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9554
9555         [BZ #2832]
9556         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9557         0s from integers.
9558
9559 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9560
9561         [BZ #2987]
9562         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9563         for CPU clocks.
9564         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9565         setting of CPU clocks.
9566
9567 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9568
9569         [BZ #2841]
9570         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9571         since C99 requires the result to promote to 'int' when uint_least8_t
9572         and uint_least16_t promote to 'int'.
9573
9574 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9575
9576         [BZ #3013]
9577         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9578         lenght of one output field, correct bitmask creation.
9579         * locale/programs/ld-time.c: Add alignment.
9580
9581         [BZ #2997]
9582         * misc/error.c: Add space between program name and message if file
9583         name is missing.
9584
9585 2006-08-03  Eric Blake  <ebb9@byu.net>
9586
9587         [BZ #2998]
9588         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9589
9590 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9591
9592         * malloc/memusagestat.c: Silence warnings.
9593
9594         * malloc/malloc.c: Dynamically size mmap treshold if the program
9595         frees mmaped blocks.
9596         Patch by Valerie Henson and Arjan van de Ven.
9597
9598 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9599
9600         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9601         __USE_GNU.
9602
9603         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9604         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9605         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9606         Only provide var definitions in strtol_l (or for *ull*
9607         in strtoll_l).
9608
9609         * stdio-common/bug16.c (tests): New array.
9610         (do_tests): Allow the first hexadecimal digit
9611         to be 1, 2, 4 or 8.  Do 3 additional tests.
9612
9613         * sysdeps/s390/fpu/libm-test-ulps: Update.
9614
9615         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9616         fchownat syscall if available.
9617         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9618         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9619         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9620
9621 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9622
9623         * nis/nis_xdr.c: Avoid some function calls.
9624
9625 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9626             Ulrich Drepper  <drepper@redhat.com>
9627
9628         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9629         short cut if only one name component is stripped away.
9630
9631 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9632
9633         * nis/nis_call.c: Minor cleanups throughout.
9634         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9635         (first_shoot): Add search_parent_first parameter.  Only if it is set
9636         search parent server first.
9637         If directory for table found through cold start cache is not the same
9638         as referenced in the cache, don't use it.
9639         (__nisfind_server): Take additional parameter.  Pass it on to
9640         first_shoot.
9641         (__prepare_niscall): Adjust __nisfind_server call.
9642         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9643         * nis/nis_table.c: Adjust __nisfind_server call.
9644         * nis/nis_lookup.c: Likewise.
9645         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9646
9647 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9648
9649         [BZ #2182]
9650         * math/s_cacosh.c: Return values from positive branch.
9651         * math/s_cacoshf.c: Likewise.
9652         * math/s_cacoshl.c: Likewise.
9653
9654         [BZ #2883]
9655         * sysvipc/sys/msg.h: Change return value to ssize_t.
9656         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9657         * sysvipc/msgrcv.c: Likewise.
9658         * include/sys/msg.h: Likewise.
9659
9660         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9661         test introduced in patch for bz #661.
9662         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9663         element for NEWGROUPS.
9664
9665         [BZ #2908]
9666         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9667         'f', use '1' as leading digit not '\1'.
9668         * stdio-common/Makefile (tests): Add bug16.
9669         * stdio-common/bug16.c: New file.
9670
9671         [BZ #2914]
9672         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9673         and don't try to open it.  The patch introducing the macro
9674         contained a bug and used the same file name as the new file
9675         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9676         this out completely.
9677
9678         [BZ #2926]
9679         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9680         Patch by Jerry James <Jerry.James@usu.edu>.
9681
9682         * rt/Makefile (tests): Add tst-clock2.
9683         * rt/tst-clock2.c: New file.
9684
9685         [BZ #2978]
9686         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9687         function and its parameters and pass it to new thread.
9688         (__gai_notify): Add support for alternative waiting for completion.
9689         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9690         waiting for completion.
9691         * resolv/getaddrinfo_a.c: Likewise.
9692         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9693         waiting for completion is used.
9694         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9695         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9696         * resolv/gai_error.c: Likewise.
9697         * resolv/gai_sigqueue.c: Likewise.
9698
9699 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9700
9701         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9702         errno to EBADF and return MACH_PORT_NULL.
9703
9704 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9705
9706         [BZ #2980]
9707         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9708
9709 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9710
9711         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9712         walk them instead of the symbol table.
9713
9714 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9715
9716         [BZ #2098]
9717         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9718         status of NSS calls, not the number of returned entries.
9719
9720         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9721         request_key, keyctl.
9722
9723 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9724
9725         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9726
9727 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9728
9729         * elf/tst-auditmod1.c: Fix typo in #error.
9730
9731 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9732
9733         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9734
9735         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9736
9737 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9738
9739         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9740         that the directory is empty even on non-POSIX filesystems.
9741
9742 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9743
9744         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9745
9746         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9747         the backend NSS module.  If backend setgrent call failed, don't have
9748         internal_setgrent fail.  Just remember this until it is needed.
9749         * nis/nss_compat/compat-pwd.c: Likewise.
9750         * nis/nss_compat/compat-spwd.c: Likewise.
9751
9752 2006-07-30  Roland McGrath  <roland@redhat.com>
9753
9754         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9755         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9756         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9757         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9758
9759         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9760         (nanosleep_not_cancel): New macro.
9761         (sigsuspend_not_cancel): new macro.
9762         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9763         (do_sigsuspend): Define as inline.
9764         (__sigsuspend): Always use do_sigsuspend.
9765         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9766         * include/signal.h: Declare __sigsuspend_nocancel.
9767         * sysdeps/posix/pause.c
9768         [! NO_CANCELLATION] (__pause_nocancel): New function.
9769
9770         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9771         * include/time.h (__nanosleep_nocancel): Likewise.
9772
9773 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9774
9775         * locale/programs/localedef.c (add_to_readlist): Rename local
9776         variables to avoid confusion.
9777
9778         * locale/programs/charmap.c (charmap_read): Emit error message if
9779         charmap couldn't be found or read.
9780
9781 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9782
9783         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9784         __ASSUME_FUTEX_LOCK_PI.
9785         * include/time.h: Declare __nanosleep_nocancel.
9786         * include/unistd.h: Declare __pause_nocancel.
9787
9788         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9789         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9790         get the __stack_chk_fail_local definition when it's needed.
9791
9792 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9793
9794         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9795         * dlfcn/bug-atexit3.c: New file.
9796         * dlfcn/bug-atexit3-lib.cc: New file.
9797
9798         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9799         used when the namespace is not the base namespace.
9800
9801 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9802
9803         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9804         (__new_exitfn): Bump it in every successful call.
9805         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9806         more exit handlers, call them right away.
9807         * stdlib/exit.h: Declare __new_exitfn_called.
9808
9809 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9810
9811         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9812         calling registered handler.
9813
9814         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9815         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9816         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9817         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9818         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9819         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9820         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9821         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9822
9823 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9824
9825         * elf/dl-lookup.c (dl_new_hash): New functions.
9826         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9827         value here.  Compute new-style hash value.  Pass new hash value
9828         and reference to variable with the old value to do_lookup_x.
9829         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9830         old-style hash table.
9831         (_dl_debug_bindings): Pass new hash value and reference to variable
9832         with the old value to do_lookup_x.
9833         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9834         new-style hash value and change old-style hash value parameter to
9835         be a reference.  Reoganize functions to determine whether
9836         new-style hash table is available.  Only fall back on old-style
9837         table.  If old-style hash value is needed, compute it here.
9838         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9839         entry.
9840         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9841         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9842         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9843         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9844         * Makeconfig: If linker supports --hash-style option add it to all
9845         linker command lines to build DSOs.
9846         * config.make.in: Define have-hash-style.
9847         * configure.in: Test whether linker supports --hash-style option.
9848
9849         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9850         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9851
9852 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9853
9854         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9855         auditing.
9856
9857         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9858         RPATH of main map twice.
9859
9860 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9861
9862         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9863         look further, return original strings.
9864         (_nl_find_msg): Do not return found translation if the conversion
9865         failed.  Either signal the string is unusable or that something went
9866         wrong and the original should be used.
9867
9868 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9869
9870         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9871
9872 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9873
9874         [BZ #2766]
9875         * misc/insremque.c (insque): Handle prev == NULL.
9876         * misc/Makefile (tests): Add tst-insremque.
9877         * misc/tst-insremque.c: New test.
9878
9879 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9880
9881         [BZ #2792]
9882         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9883         conflict with DL_DST_REQUIRED.
9884
9885 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9886
9887         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9888         match what Solaris does.
9889
9890 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9891
9892         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9893         local_setegid instead of seteuid and setegid.
9894         * sysdeps/generic/local-setxid.h: New file.
9895         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9896
9897         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9898
9899         * string/Makefile (tests): Add bug-envz1.
9900         * string/bug-envz1.c: New file.
9901
9902 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9903
9904         * posix/regex_internal.c (re_string_skip_chars): If no character has
9905         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9906         to the byte which couldn't be converted.
9907         (re_string_reconstruct): Don't clear valid_raw_len before calling
9908         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9909         tip_context using re_string_context_at.
9910         * posix/Makefile: Add rules to build and run bug-regex25 test.
9911         * posix/bug-regex25.c: New test.
9912
9913 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9914
9915         [BZ #2703]
9916         * string/envz.c (envz_strip): Correct erroneously reversed src
9917         and dest parameters to memmove() invocation.
9918
9919 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9920
9921         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9922         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9923         to make sure the database has been already invalidated.
9924         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9925         after the cache has been invalidated.  Use pthread_mutex_lock rather
9926         than pthread_mutex_trylock if fd != -1.
9927         * nscd/connections.c (invalidate_cache): Add fd argument, write
9928         response to fd if not calling prune_cache, pass fd to prune_cache.
9929         (handle_request): Adjust invalidate_cache caller.
9930         (nscd_run): Pass -1 as fd to prune_cache.
9931
9932 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9933
9934         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9935         the correct place.
9936
9937 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9938
9939         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9940         * nscd/cache.c (prune_cache): Take prunelock before starting the
9941         work.  Just return in case it is already taken.
9942         * nscd/connections.c (dbs): Initialize .prunelock.
9943
9944 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9945
9946         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9947         copying.  No need to allocate new array for group members.  Just
9948         move the pointers and update the size.
9949
9950         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9951         Avoid memory leak in case realloc fails.  Simplification for
9952         better code generation.
9953
9954         Avoid deprecation warning because of libc_hidden_proto for
9955         inet6_option_alloc.
9956         * inet/inet6_option.c (option_alloc): Renamed from
9957         inet6_option_alloc.  Made static.
9958         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9959         (inet6_option_append): Call option_alloc.
9960         * include/netinet/in.h: Remove libc_hidden_proto for
9961         inet6_option_alloc.
9962
9963         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9964         for cleanup when cb!=NULL [Coverity CID 233].
9965
9966 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9967
9968         [BZ #2693]
9969         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9970         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9971         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9972         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9973         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9974         and inet6_rth_getaddr.
9975         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9976         array.
9977         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9978         Mark inet6_option_* interfaces as deprecated.
9979         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9980         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9981         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9982         inet6_rth_segments, and inet6_rth_getaddr.
9983         * inet/inet6_opt.c: New file.
9984         * inet/inet6_rth.c: New file.
9985
9986         * inet/netinet/icmp6.h: Pretty printing.
9987
9988         [BZ #2683]
9989         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9990
9991 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9992
9993         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9994         doing it all here.  When server does not know the answer do not
9995         fail immediate, try parent first.
9996
9997         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9998         overflow test.
9999
10000 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
10001
10002         * nis/nis_call.c (__prepare_niscall): New function.  Split out
10003         from __do_niscall.
10004         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10005         and exported.
10006         (__follow_path): New function.  Split out from nis_list.
10007         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10008         _xdr_nis_result.
10009         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10010         _xdr_nis_result.
10011         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10012         and __follow_path.
10013         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10014         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10015         from libnsl for version GLIBC_PRIVATE.
10016         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10017         Remove entry parameter from _nss_nisplus_parse_pwent and
10018         _nss_nisplus_parse_grent.
10019         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10020         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10021         again.  Rewrite getpwent handling to not use nis_first_entry and
10022         nis_next_entry.  Roll out own niscall handling.
10023         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10024
10025         * sunrpc/xdr_rec.c: Fix typo in comment.
10026
10027 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10028
10029         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10030         handling.
10031
10032         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10033         to allocate memory for my_pollfd.  Better initialization of
10034         cb_is_running.  Use TEMP_FAILURE_RETRY.
10035
10036         * malloc/memusage.sh (memusageso): Add quotes.
10037         (memusagestat): Likewise.
10038         * debug/xtrace.sh (pcprofileso): Likewise.
10039         (pcprofiledump): Likewise.
10040         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10041         replacement.
10042         * malloc/Makefile ($(objpfx)memusage): Likewise.
10043
10044         * nis/nis_callback.c (__nis_create_callback): Calls to
10045         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10046         asprintf call fails.
10047
10048         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10049         no uninitialized memory is passed to sendto.
10050
10051 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10052
10053         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10054         of snprintf+strdup.  Handle OOM.
10055         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10056         cb->serv together.  Remove now obsolete free calls.
10057         (__nis_destroy_callback): Remove now obsolete free call.
10058
10059 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10060
10061         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10062         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10063         and ULA respectively). Set precedence for IPv4 address to 10 as
10064         defined in RFC3484 for preferring IPv6.
10065         * posix/gai.conf: Update to match the new default tables.
10066
10067 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10068
10069         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10070         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10071         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10072         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10073
10074         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10075         Removed.
10076         (init_nss_interface): Remove initialization of these variables.
10077
10078 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10079
10080         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10081         nis_free_directory forward to avoid duplication.
10082
10083 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10084
10085         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10086         rec_dirsearch returning NULL.
10087         (first_shoot): Handle __nis_finddirectory returning NULL.
10088         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10089
10090         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10091         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10092
10093 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10094
10095         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10096         pid changed.
10097
10098 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10099
10100         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10101
10102         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10103         * nscd/nscd_getgr_r.c: Likewise.
10104
10105         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10106
10107         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10108         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10109
10110         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10111
10112         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10113
10114         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10115
10116         * include/rpc/auth.h: Mark xdr_des_block_internal and
10117         xdr_opaque_auth_internal as hidden.
10118
10119         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10120         hidden.
10121
10122         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10123
10124         * misc/getusershell.c (okshells): Don't use static initializers,
10125         do it dynamically.
10126
10127         * stdlib/fmtmsg.c (keywords): Change type of len element to
10128         uint32_t to not waste space on 64bit machines.
10129
10130         * locale/setlocale.c: Change _nl_category_names into a string.
10131         Add new _nl_category_name_idxs.  Change all users.
10132         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10133         Declare _nl_category_name_idxs.
10134         * locale/findlocale.c: Adjust for _nl_category_names change.
10135         * locale/loadlocale.c: Likewise.
10136         * locale/newlocale.c: Likewise.
10137         * intl/dcigettext.c: Likewise.
10138
10139         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10140         (add_alias2): ...here.  New function.
10141         (__gconv_read_conf): Simplify builtin alias handling.
10142         (builtin_aliases): Convert to string to avoid relocations.
10143         * iconv/gconv_builtin.h: Add comment about correct formatting.
10144
10145 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10146
10147         * resolv/res_debug.c (loc_ntoa): Make error const.
10148
10149 2006-05-14  Andreas Schwab  <schwab@suse.de>
10150
10151         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10152
10153 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10154
10155         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10156         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10157         sizeof (cpu_set_t).
10158
10159 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10160
10161         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10162
10163         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10164
10165         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10166         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10167
10168         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10169         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10170
10171         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10172         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10173         xdr_cback_data.
10174
10175         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10176         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10177         xdr_ypupdate_args.
10178
10179         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10180         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10181
10182         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10183         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10184
10185         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10186         * include/rpcsvc/nis_callback.h: New file.
10187
10188         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10189         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10190
10191         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10192         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10193
10194         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10195         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10196
10197         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10198         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10199
10200         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10201         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10202         xdr_ypdelete_args.
10203
10204         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10205         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10206
10207         * nis/nis_error.c: Remove table of strings.  Use position
10208         independent mechanism.
10209         * nis/nis_error.h: New file.
10210
10211 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10212
10213         * locale/programs/ld-time.c (time_finish): If wide era name or
10214         format aren't provided, set both wname and wformat to L"".
10215
10216 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10217
10218         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10219         results if the call was succesful.
10220
10221         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10222
10223         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10224         as hidden.
10225
10226 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10227
10228         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10229
10230 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10231
10232         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10233         caller makes sure this is not the case.
10234         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10235
10236 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10237
10238         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10239         calls.
10240
10241         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10242         [Coverity CID 229, 230]
10243
10244         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10245         DGETTEXT calls.
10246         (hol_help): Likewise.  [Coverity CID 226, 227]
10247
10248         * string/argz-replace.c (__argz_replace): Unconditionally call
10249         free on SRC.  [Coverity CID 225]
10250
10251         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10252         the return value of __nis_default_owner and __nis_default_group,
10253         it has been especially allocated.  [Coverity CID 224]
10254
10255         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10256         searchgroup and searchowner.  Significantly simplified.
10257         (__nis_default_owner): Remove duplication.  Do not locally copy the
10258         string before duplicating it.
10259         (__nis_default_group): Likewise.
10260
10261         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10262         we must clear the variable before calling __nisfind_server.
10263
10264         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10265         nis_getnames.  [Coverity CID 223]
10266
10267         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10268         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10269
10270         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10271         allocate memory for the input to add_bytes.  [Coverity CID 221]
10272
10273         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10274         was allocated here.  [Coverity CID 219, 220]
10275
10276         * posix/getconf.c (print_all): Free confstr data after printing.
10277         [Coverity CID 218]
10278
10279         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10280         list allocation fails.  [Coverity CID 215]
10281
10282         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10283         [Coverity CID 213]
10284
10285         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10286         string is NULL.  [Coverity CID 212]
10287         * argp/Makefile: Add rules to build and run bug-argp1.
10288         * argp/bug-argp1.c: New file.
10289
10290         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10291         end of string.
10292         * stdlib/canonicalize.c (__realpath): Likewise.
10293
10294         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10295         pointer.  [Coverity CID 206]
10296
10297         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10298         in statically linked code.
10299         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10300         statically built code, be prepared to have no link map.
10301         [Coverity CID 205]
10302
10303         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10304         dgettext calls. [Coverity CID 204]
10305
10306         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10307         the one user.
10308         (uparam_names): Reduce size.  Avoid relative relocations.
10309         Moved to read-only segment.
10310         (fill_in_uparams): Update for new layout.
10311
10312         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10313         assumed to always be != NULL. [Coverity CID 202]
10314
10315         * argp/argp-help.c (hol_entry_help): Remove some dead code
10316         [Coverity CID 200].
10317
10318         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10319         away a few more unconditional yperr2nss calls.
10320         (_nss_nis_getservbyname_r): Likewise.
10321
10322 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10323
10324         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10325         architectures.
10326
10327         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10328         that unused memory passed to sendto is nevertheless initialized.
10329
10330         [BZ #2499]
10331         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10332         possibly unaligned memory accesses.
10333
10334         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10335         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10336         and __putlong respectively.  Correct buffer overflow check for
10337         NS_NOTIFY_OP.
10338
10339         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10340
10341         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10342         (send_dg): Rewrite error handling to be more compact and avoid
10343         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10344
10345         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10346
10347         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10348         instead of ns_get16.
10349         (res_queriesmatch): Likewise.  Minor optimization.
10350
10351         [BZ #2499]
10352         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10353         __libc_res_nsend might reallocate the buffer for the answer.  In
10354         this case we have to reload the HP pointer.
10355
10356 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10357
10358         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10359         some branch prediction hints.
10360
10361         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10362         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10363         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10364         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10365         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10366         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10367         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10368         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10369
10370 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10371
10372         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10373         by a GOT relocation to make Scrt1.o position independent.
10374         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10375
10376         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10377         six system call parameters.
10378         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10379
10380 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10381
10382         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10383         malloc&bzero.
10384
10385         * sunrpc/svc_udp.c (BZERO): Remove definition.
10386         (CALLOC): Define.
10387         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10388
10389         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10390         (des_SPtrans): Use uint32_t type.
10391         (des_skb): Likewise.
10392
10393         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10394
10395 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10396
10397         [BZ #2509]
10398         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10399         on 32-bit arches.
10400
10401 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10402
10403         * locale/programs/ld-address.c (address_finish): Fix one more
10404         place where the iso639 array might be accessed beyond the limits.
10405
10406 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10407
10408         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10409         filling it for the first time.
10410
10411         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10412         Adjust all callers.
10413         Free res object content before returning.
10414
10415         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10416
10417         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10418         client->cl_auth.
10419
10420         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10421         cleanup for initial thread, just the free call on TVP.
10422
10423         * nscd/gai.c (__getline): Define.
10424
10425
10426 See ChangeLog.16 for earlier changes.