* po/ru.po: Update from translation team.
[platform/upstream/glibc.git] / ChangeLog
1 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2
3         * po/ru.po: Update from translation team.
4
5 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
6
7         * po/nl.po: Update from translation team.
8
9 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
10
11         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
12         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18
19         * po/pl.po: Update from translation team.
20
21 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
22
23         [BZ #7083]
24         * sysdeps/unix/sysv/linux/fallocate.c: New file.
25         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
26         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
27         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
28         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
29         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
30         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
31         for GLIBC_2.10.
32         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
33         Add fallocate and fallocate64.
34
35         * io/fcntl.h: Pretty printing.
36
37 2009-03-02  Richard Guenther  <rguenther@suse.de>
38
39         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
40         attribute also for non-C99 inline semantics variant.
41
42 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
43
44         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
45         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
46         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
47         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
48         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
49         Likewise.
50         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
51         Likewise.
52
53 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
54
55         * po/cs.po: Update from translation team.
56
57 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
58
59         * po/bg.po: Update from translation team.
60         * po/sv.po: Likewise.
61         * po/fi.po: Likewise.
62         * po/vi.po: Likewise.
63
64 2009-02-27  Roland McGrath  <roland@redhat.com>
65
66         * Makeconfig (%.v.i): Depend on Makeconfig.
67         Exclude % lines from initial #-comment removal.
68
69 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
70
71         * po/ko.po: Update from translation team.
72
73 2009-02-26  Roland McGrath  <roland@redhat.com>
74
75         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
76         avoids unused warning.
77
78 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
79             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
80
81         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
82         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
83         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
84         and asm/user.h.  Include asm/ptrace.h.
85         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
86         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
87         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
88         Undefine.
89         (start_thread): Don't undefine.
90         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
91         Define.
92
93 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
94
95         * wctype/wctype.h: The *_l functions are in POSIX 2008.
96         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
97         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
98         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
99         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
100         200112L to 200809L.
101         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
102         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
103         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
104         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
105         _SC_THREAD_ROBUST_PRIO_PROTECT.
106         * posix/unistd.h: fexecve is in POSIX 2008.
107         * time/time.h: strftime_l is in POSIX 2008.
108         * io/sys/stat.h: futimens is in POSIX 2008.
109         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
110         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
111         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
112         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
113         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
114         open_memstream, and vdprintf are in POSIX 2008.
115
116 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
117
118         * include/features.h: Define macros for XPG7/POSIX 2008.
119         * ctype/ctype.h: The *_l functions are in POSIX 2008.
120         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
121         POSIX 2008.
122         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
123         * locale/xlocale.h: Define locale_t type.
124         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
125         in POSIX 2008.  Don't define locale_t here.
126         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
127         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
128         UTIME_OMIT only with __USE_ATFILE.
129         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
130         * stdio-common/psiginfo.c: New file.
131         * stdio-common/psiginfo-data.h: New file.
132         * stdio-common/psiginfo-define.h: New file.
133         * stdio-common/Makefile (routines): Add psiginfo.
134         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
135         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
136         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
137         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
138         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
139         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
140         * io/sys/stat.h: Move mknodat definition into same conditional as
141         mknod.
142         * time/sys/time.h: futimesat is not among the functions accepted
143         into the POSIX standard.
144
145         * include/features.h: If no feature selection given and we select
146         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
147         * posix/Versions: Export __posix_getopt.
148         * posix/getopt.c (_getopt_initialize): Take additional parameter.
149         Use it to alternatively initialize __posixly_correct.
150         (_getopt_internal_r): Take addition parameter.  Pass on to
151         _getopt_initialize.
152         (_getopt_internal): Take addition parameter.  Pass on to
153         _getopt_internal_r.
154         (getopt): Pass additional zero to _getopt_internal.
155         (__posix_getopt): New function.
156         * posix/getopt.h: Add redirection for getopt.
157         * posix/getopt1.c (getopt_long): Pass additional zero to
158         _getopt_internal.
159         (getopt_long_only): Likewise.
160         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
161         (_getopt_long_only_r): Likewise.
162         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
163         _getopt_internal_r.
164
165 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
166
167         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
168         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
169         * sysdeps/posix/sysconf.c (__sysconf): Handle
170         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
171         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
172
173 2009-02-24  Roland McGrath  <roland@redhat.com>
174
175         [BZ #9895]
176         * README.template: Reworded not to use substituted version number.
177         Renamed to ...
178         * README: ... here (no longer generated).
179         * Makefile (README): Target removed.
180
181 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
182
183         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
184         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
185         instead.
186
187         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
188
189         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
190
191 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
192
193         * po/bg.po: Update from translation team.
194
195 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
196
197         * stdlib/monetary.h: Uglify function parameter names.
198         * sunrpc/rpc/pmap_clnt.h: Likewise.
199         * sunrpc/rpc/svc.h: Likewise.
200         * sunrpc/rpc/xdr.h: Likewise.
201         * sunrpc/rpc/clnt.h: Likewise.
202         * resolv/netdb.h: Likewise.
203         * resolv/arpa/nameser.h: Likewise.
204         * resolv/resolv.h: Likewise.
205         * argp/argp.h: Likewise.
206         * locale/langinfo.h: Likewise.
207         * io/sys/stat.h: Likewise.
208         * posix/spawn.h: Likewise.
209         * nis/rpcsvc/nislib.h: Likewise.
210         * malloc/obstack.h: Likewise.
211         * sysdeps/ia64/bits/link.h: Likewise.
212         * sysdeps/i386/bits/link.h: Likewise.
213         * sysdeps/s390/bits/link.h: Likewise.
214         * sysdeps/powerpc/bits/link.h: Likewise.
215         * sysdeps/x86_64/bits/link.h: Likewise.
216         * sysdeps/sparc/bits/link.h: Likewise.
217         * sysdeps/sh/bits/link.h: Likewise.
218         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
219         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
220         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
221         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
222
223 2008-12-01  Fredrik Unger  <fred@tree.se>
224
225         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
226         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
227         _FP_UNPACK_RAW_2, fix up first argument.
228
229 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
230
231         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
232         (GET_NPROCS_PARSER): Change parameters and use next_line.
233         (__get_nprocs): Rewrite to not use stdio routines.
234         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
235         Change parameters and use next_line.
236
237 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
238
239         [BZ #5381]
240         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
241         Change mempool_alloc prototype.
242         * nscd/mem.c (gc): Don't handle mem_in_flight.
243         (mempool_alloc): Third parameter now only indicates whether this is the
244         first call (to allocate data) or not.  If it is, get db rdlock.
245         Release it on error.  Don't handle mem_in_flight.
246         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
247         Adjust third parameter of mempool_alloc calls.
248         Nothing to do here in case mempool_alloc fails.
249         Avoid local variable shadowing parameter.  No need to get db rdlock
250         before calling cache_add.
251         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
252         no mem_in_flight array anymore.
253         * nscd/connections.c: Remove definition and handling of mem_in_flight.
254         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
255         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
256         in case mempool_alloc fails. No need to get db rdlock before calling
257         cache_add.
258         * nscd/hstcache.c (cache_addhst): Likewise.
259         * nscd/initgrcache.c (addinitgroupsX): Likewise.
260         * nscd/servicescache.c (cache_addserv): Likewise.
261         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
262
263 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
264
265         * po/lt.po: Update from translation team.
266
267 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
268
269         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
270         defined, allow additional data to be added using the optional
271         MORE_ELF_HEADER_DATA macro.
272         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
273         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
274
275 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
276
277         * include/atomic.h: Define catomic_and if not already defined.
278         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
279         * sysdeps/i386/i486/bits/atomic.h: Likewise.
280
281 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
282
283         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
284         Change all callers.
285         (_int_realloc): Likewise.  Third argument is now padded size
286         All _int_* functions are now static.
287
288         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
289         * malloc/arena.c: Likewise.
290         * include/malloc.h: Remove now unnecessary declarations of the _int_*
291         functions.
292
293         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
294         easily.
295
296         * malloc/malloc.c: Add branch prediction for use of the hooks.
297
298         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
299
300 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
301
302         [BZ #7095]
303         * bits/confname.h: Add SUSv7 macros for getconf environments.
304         * bits/environments.h: Likewise.
305         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
306         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
307         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
308         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
309         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
310         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
311         * posix/getconf.c: Likewise.
312         * posix/sysconf.c: Likewise.
313         * sysdeps/posix/sysconf.c: Likewise.
314         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
315         environments.
316
317 2009-01-16  Petr Baudis  <pasky@suse.cz>
318
319         [BZ #9753]
320         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
321         even if we currently have zero nscount.
322
323 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
324
325         [BZ #9781]
326         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
327         the input line is too long.
328
329         * po/Makefile (libc.pot): Add f_print as function taking c-format
330         parameter.
331
332         * debug/xtrace.sh: Unify translatable messages.
333         * elf/ldd.bash.in: Likewise.
334         * elf/sprof.c: Likewise.
335         * locale/programs/locale.c: Likewise.
336         * malloc/memusage.sh: Likewise.
337         * nss/getent.c: Likewise.
338
339 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
340
341         * debug/pcprofiledump.c (print_version,
342         argp_program_version_hook): New function.
343         * elf/ldconfig.c (more_help): New function.
344         (argp): Use it.
345         * elf/sln.c (usage): New function.
346         (main): Support --help and --version.
347         * malloc/memusagestat.c (print_version): New function.
348         (argp_program_version_hook): New variable.
349         * nscd/nscd.c (more_help): New function.
350         (argp): Use it.
351         * posix/getconf.c (main): Send --version output to stdout.
352         Support --help.
353         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
354         arguments.  All callers changed.
355         (print_version): New function.
356         (parseargs): Support --help and --version.
357         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
358         changed.
359         (print_version): New function.
360         (main): Use getopt_long.  Support --help and --version.
361         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
362         --version.
363
364 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
365
366         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
367         (update_data): Fix handling of wrapping back
368         to the beginning of the buffer.
369
370         [BZ #9823]
371         * stdio-common/psignal.c (psignal): Fix test for empty string.
372
373 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
374
375         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
376         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
377         move _null_auth to .rodata.
378
379         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
380         value of 24.
381
382         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
383
384         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
385         today than when the original code was written.  Use larger
386         buffers.  This also makes it unnecessary to have stat information,
387         if this causes extra efforts.
388         (__opendir): In case O_DIRECTORY works, don't call fstat just for
389         __alloc_dir.
390
391 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
392
393         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
394         is set.
395         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
396         * sysdeps/sh/sh4/__longjmp.S: Likewise.
397         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
398         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
399         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
400         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
401
402 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
403
404         * po/ru.po: Update from translation team.
405
406 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
407
408         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
409         Add _tid slot to maintain consistency with kernel.
410
411 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
412
413         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
414         incomplete characters at end of input buffer.
415         * libio/Makefile (tests): Add tst-fgetwc.
416         * libio/tst-fgetwc.c: New file.
417         * libio/tst-fgetwc.input: New file.
418
419 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
420
421         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
422
423 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
424
425         [BZ #9793]
426         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
427         *OUTBUFSTART unless the whole output fit into the buffer.
428         * iconv/Makefile (tests): Add tst-iconv4.
429         * iconv/tst-iconv4.c: New file.
430
431 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
432
433         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
434         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
435
436 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
437
438         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
439         newer linker scripts.
440
441 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
442
443         [BZ #7040]
444         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
445         inotify_rm_watch should have type int.
446
447 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
448
449         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
450         Make aligned_restore_vmx a local symbol.
451         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
452         Likewise.
453
454 2009-01-30  Andreas Jaeger  <aj@suse.de>
455
456         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
457         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
458         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
459         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
460         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
461         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
462         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
463
464 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
465
466         [BZ #9726]
467         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
468         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
469
470 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
471
472         [BZ #9726]
473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
474         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
476         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
477
478 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
479
480         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
481         memcpy instead of memcmp.
482         (_dl_setup_pointer_guard): Likewise.
483
484 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
485
486         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
487         manipulated brk, use malloc_printerr.
488         * misc/sbrk.c (__sbrk): Better error handling for nonsense
489         requests.
490
491 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
492
493         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
494         rindex): For C++ add inlines so that they can be recognized as
495         builtins.
496         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
497
498 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
499             Jakub Jelinek  <jakub@redhat.com>
500
501         * string/string.h: Define correct C++ prototypes for gcc 4.4.
502         * wcsmbs/wchar.h: Likewise.
503
504 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
505
506         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
507         (stackinfo_sub_sp): Define.
508
509 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
510
511         [BZ #9750]
512         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
513         * include/alloca.h (alloca_account): Define.
514         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
515         (stackinfo_sub_sp): Define.
516
517         * nscd/connections.c (nscd_init): If database file access fails
518         check whether this is due to permission problems and bail in that
519         case.
520
521         [BZ #9741]
522         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
523         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
524
525 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
526
527         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
528         Add "t" to clobber list.
529         (INTERNAL_SYSCALL_NCS): Likewise.
530
531 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
532
533         * nss/getent.c (print_networks): Don't print comma between aliases.
534
535 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
536
537         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
538
539         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
540         the hash table.
541         * misc/Makefile (tests): Add bug-hsearch1.
542         * misc/bug-hsearch1.c: New file.
543
544 2009-01-22  Roland McGrath  <roland@redhat.com>
545
546         * Makeconfig (%.v.i): Strip trailing # comments,
547         not only whole-line comments.
548
549 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
550
551         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
552         one parameter.  If non-NULL use it to initialize return value.
553         (_dl_setup_pointer_guard): New function.
554         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
555         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
556         * elf/rtld.c (security_init): Pass _dl_random to
557         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
558         pointer_chk_guard.
559         * elf/dl-sysdep.c (_dl_random): New variable.
560         (_dl_sysdep_start): Handle AT_RANDOM.
561         (_dl_show_auxv): Likewise.
562         * elf/dl-support.c (_dl_random): New variable.
563         (_dl_aux_init): Handle AT_RANDOM.
564         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
565         to _dl_setup_stack_chk_guard.
566
567         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
568
569 2009-01-10  Roland McGrath  <roland@redhat.com>
570
571         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
572
573 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
574
575         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
576
577         [BZ #9706]
578         * nss/nss_files/files-parse.c (strtou32): New function.
579         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
580         across 32-bit and 64-bit platforms.
581         (INT_FIELD_MAYBE_NULL): Likewise.
582
583 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
584
585         [BZ #9720]
586         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
587         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
588         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
589         Likewise.
590
591 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
592
593         [BZ #697]
594         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
595         being NULL also if there are no backreferences.
596         * posix/rxspencer/tests: Add testcases.
597
598 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
599
600         [BZ #9697]
601         * posix/bug-regex17.c: Add testcases.
602         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
603         handling.
604
605 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
606
607         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
608         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
609         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
610         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
611         for elf subdir.
612         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
613         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
614         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
615         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
616         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
617         * sysdeps/unix/sysv/linux/s390/Versions: New file.
618
619 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
620
621         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
622         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
623         re_string_skip_chars, re_string_reconstruct): Likewise.
624         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
625
626 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
627
628         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
629         adjust the buffer alignment.
630
631 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
632
633         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
634         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
635         net/route.h.
636
637         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
638         flavor to description only when flavor is not NULL.
639
640         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
641         mutex after SIGIO/SIGURG lookup loop.
642
643 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
644
645         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
646
647 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
648
649         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
650         handling.
651
652 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
653
654         * sysdeps/unix/sysv/linux/kernel-features.h
655         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
656
657         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
658         if no output is written.
659
660         * version.h: Bump to 2.10 development.
661
662         * posix/getconf.c: Update copyright year.
663         * nss/getent.c: Likewise.
664         * iconv/iconvconfig.c: Likewise.
665         * iconv/iconv_prog.c: Likewise.
666         * elf/ldconfig.c: Likewise.
667         * catgets/gencat.c: Likewise.
668         * csu/version.c: Likewise.
669         * elf/ldd.bash.in: Likewise.
670         * elf/sprof.c (print_version): Likewise.
671         * locale/programs/locale.c: Likewise.
672         * locale/programs/localedef.c: Likewise.
673         * nscd/nscd.c (print_version): Likewise.
674         * debug/xtrace.sh: Likewise.
675         * malloc/memusage.sh: Likewise.
676         * malloc/mtrace.pl: Likewise.
677         * debug/catchsegv.sh: Likewise.
678
679 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
680
681         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
682         script.
683
684 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
685
686         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
687         gethostbyname4_r function call succeeded, just leave the loop.
688
689         [BZ #9694]
690         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
691         very end.
692         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
693         * wctype/Makefile (tests): Add bug-wctypeh.
694         * wctype/bug-wctypeh.c: New file.
695
696         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
697         LOCALDOMAIN is defined.
698         * nscd/nscd_getai.c (__nscd_getai): Likewise.
699
700         * sysdeps/x86_64/bits/select.h: New file.
701
702         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
703
704 2008-12-21  Bruno Haible  <bruno@clisp.org>
705
706         [BZ #9677]
707         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
708         if no output is written.
709
710 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
711
712         * login/utmp_file.c (pututline_file): Replace call to dup2 with
713         libc internal symbol __dup2 to avoid access through the PLT.
714
715 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
716
717         [BZ #6545]
718         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
719         available only for __USE_GNU.
720
721         * inet/Makefile (tests): Add tst-getni2.
722         * inet/tst-getni2.c: New file.
723
724         [BZ #7080]
725         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
726         NULL when NI_NAMEREQD is set.
727         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
728         * inet/Makefile (tests): Add tst-getni1.
729         * inet/tst-getni1.c: New file.
730
731 2008-12-03  Petr Baudis  <pasky@suse.cz>
732
733         [BZ #7067]
734         * nscd/connections.c (invalidate_cache): Use prune_run_lock
735         instead of prune_lock.
736         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
737         * nscd/nscd.h (database_dyn): Add prune_run_cache.
738
739 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
740
741         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
742         use.
743
744         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
745         handling.
746
747         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
748         after reading name server list.
749
750         [BZ #7058]
751         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
752         handling for host name aliases.
753
754 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
755
756         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
757         instead of doing things manually.
758
759 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
760
761         * posix/regex_internal.h (build_wcs_upper_buffer):
762         Return type is reg_error_t.
763
764 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
765
766         * posix/globtest.sh: Use mktemp to create temporary file and
767         directory.
768
769         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
770         sets correctly.
771         (__CPU_CLR_S): Likewise.
772         (__CPU_ISSET_S): Likewise.
773
774 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
775             Ulrich Drepper  <drepper@redhat.com>
776
777         * scripts/firstversion.awk: Use custom comparison function to compare
778         version numbers.
779         * scripts/versions.awk: Use sort invocation which can handle
780         multi-digit sub-version numbers.
781
782 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
783
784         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
785         * locale/iso-639.def: Add Chhattisgarhi entry.
786
787 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
788
789         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
790         ESRCH return value.
791         (_nss_dns_gethostbyname4_r): Likewise.
792         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
793         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
794         gethostbyname4_r, we don't have a separate IPv6 status, so copy
795         the no_data variable.
796
797         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
798         information at the correct index.
799
800         * socket/sys/socket.h: Declare accept4.
801         * socket/accept4.c: New file.
802         * sysdeps/unix/sysv/linux/accept4.c: New file.
803         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
804         * socket/Makefile (routines): Add accept4.
805         * socket/Versions: Export accept4 with version GLIBC_2.10.
806         * socket/paccept.c: Removed.
807         * sysdeps/unix/sysv/linux/paccept.c: Removed.
808         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
809         * Versions.def: Define GLIBC_2.10 for libc.
810         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
811
812         * nscd/connections.c: Use accept4.
813
814         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
815
816 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
817
818         * resolv/res_send.c (send_dg): Create sockets with non-blocking
819         flag already set.
820
821         * stdlib/setenv.c (unsetenv): Don't search environment if it does
822         not exist.
823         * stdlib/Makefile (tests): Add tst-unsetenv1.
824         * stdlib/tst-unsetenv1.c: New file.
825
826 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
827
828         * login/utmp_file.c (file_writable): New variable.
829         (setutent_file): Don't try to open file for writing.
830         (pututline_file): Before writing, make descriptor writable if
831         necessary.
832
833 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
834
835         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
836         to IPv4 or IPv6 if an interface has been found.
837
838 2008-11-26  Roland McGrath  <roland@redhat.com>
839
840         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
841         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
842
843         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
844         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
845         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
846
847         * elf/elf.h (NT_386_IOPERM): New macro.
848         (NT_PPC_VSX): New macro.
849
850 2008-11-25  Roland McGrath  <roland@redhat.com>
851
852         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
853         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
854         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
855         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
856         Subdirectories moved to ports repository.
857         * configure.in (base_machine): Remove alpha case.
858
859 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
860
861         * sysdeps/mach/strerror_l.c: New file.
862
863 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
864
865         [BZ #6411]
866         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
867         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
868         magic numbers.
869         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
870         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
871         (relax_fenv_state): Same as above.
872         (FPSCR_29): Reserve bit in ISA 2.05.
873         (FPSCR_NI): Provide define for compat.
874         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
875         magic numbers.
876         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
877         magic numbers.
878         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
879         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
880         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
881         access to hwcap to account for hwcap size increase to uint64_t.
882         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
883         Likewise.
884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
885         (*setcontext): Likewise.
886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
887         New file.
888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
889         New file.
890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
891         (*setcontext): dynamically select mtfsf insn based on
892         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
893         increase to uint64_t.
894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
895         (*swapcontext): dynamically select mtfsf insn based on
896         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
897         increase to uint64_t.
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
899         New file.
900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
901         New file.
902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
903         (*setcontext): dynamically select mtfsf insn based on
904         PPC_FEATURE_HAS_DFP.
905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
906         (*swapcontext): dynamically select mtfsf insn based on
907         PPC_FEATURE_HAS_DFP.
908
909 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
910
911         * version.h: Bump for 2.9 release.
912         * include/features.h (__GLIBC_MINOR__): Bump to 9.
913
914         [BZ #7029]
915         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
916         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
917         all the rounding.
918
919 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
920
921         [BZ #7009]
922         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
923         unknown request types for now.
924
925 2008-11-11  Roland McGrath  <roland@redhat.com>
926
927         * sysdeps/x86_64/configure: New file.
928
929         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
930         * configure: Regenerated.
931
932 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
933
934         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
935         correct instruction to remove the stack frame.
936
937 2008-11-03  Michael Matz  <matz@suse.de>
938
939         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
940         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
941
942 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
943
944         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
945         Remove.
946
947         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
948         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
949         of the thread variable instead of void *.
950         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
951         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
952         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
953         __libc_tsd_define arguments.
954         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
955         __libc_tsd_address arguments.  Remove union hack.
956         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
957         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
958         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
959         Adjust __libc_tsd_{set,get} arguments.
960         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
961         __libc_tsd_define arguments.
962         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
963         arguments.
964         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
965         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
966         (LOCALE): Adjust __libc_tsd_define arguments.
967         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
968         arguments.
969         (LOCALE): Adjust __libc_tsd_define arguments.
970         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
971         arguments.
972         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
973         arguments.
974
975 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
976
977         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
978         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
979
980 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
981
982         [BZ #6966]
983         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
984
985 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
986             Ulrich Drepper  <drepper@redhat.com>
987
988         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
989         definition for GCC 3.1 and later.
990
991 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
992
993         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
994         refetch dtv, as it might have changed.
995         * elf/Makefile: Add rules to build and run tst-tls18.
996         * elf/tst-tls18.c: New test.
997         * elf/tst-tlsmod18a.c: New file.
998
999 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1000
1001         [BZ #6875]
1002         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1003
1004 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1005
1006         [BZ #6867]
1007         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1008
1009         [BZ #6919]
1010         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1011         Fix length of copy operation.
1012
1013 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1014
1015         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1016         and fix its calling convention.
1017
1018 2008-10-07  Andreas Schwab  <schwab@suse.de>
1019
1020         [BZ #6942]
1021         * resolv/res_send.c (send_vc): Fix last change.
1022         (send_dg): Align here as well.
1023
1024 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1025
1026         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1027         return value in case rlimit is RLIM_INFINITY.
1028
1029         [BZ #6947]
1030         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1031         for UL_SETFSIZE.
1032         * resource/Makefile (tests): Add bug-ulimit1.
1033         * resource/bug-ulimit1.c: New file.
1034
1035         [BZ #6974]
1036         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1037         without dot.  Properly terminate the string with a null byte.
1038         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1039
1040         [BZ #6980]
1041         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1042         negative sizees.
1043         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1044         negative __size.
1045
1046         [BZ #6995]
1047         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1048
1049 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
1050
1051         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1052         abort if there is no initgroups_dyn function.
1053
1054         * resolv/res_send.c (send_dg): On timeout, only return nonzero
1055         result if any of the queries really provided an answer.
1056
1057 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
1058
1059         * po/lt.po: Update from translation team.
1060
1061 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
1062
1063         * po/id.po: Update from translation team.
1064
1065 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
1066
1067         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1068         Fix tests for existence of second reply.
1069
1070 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
1071
1072         * po/id.po: New file.
1073         Contributed by the Indonesian translation team.
1074
1075 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
1076
1077         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1078         initialization.
1079
1080 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1081
1082         * elf/Makefile: Add rules to build and run tst-tls17.
1083         * elf/tst-tls17.c: New test.
1084         * elf/tst-tlsmod17a.c: New file.
1085         * elf/tst-tlsmod17b.c: Likewise.
1086
1087 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1088
1089         * stdlib/divmod_1.c: Use correct type for dummy variable.
1090         * stdlib/mod_1.c: Likewise.
1091
1092 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1093
1094         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1095
1096 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1097
1098         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1099         __nonnull order for C++.
1100         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1101         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1102
1103 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1104
1105         * stdlib/longlong.h: Update from GCC.
1106
1107 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1108             David S. Miller  <davem@davemloft.net>
1109
1110         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1111         make sure any registers used with 64-bit 'branch-on-register'
1112         instructions have their top 32-bits clear.
1113         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1114         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1115
1116 2008-09-18  Andreas Schwab  <schwab@suse.de>
1117
1118         [BZ #6942]
1119         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1120         Properly handle partial reads.
1121
1122 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1123
1124         * elf/elf.h (STO_MIPS_PLT): New.
1125         (R_MIPS_COPY): New.
1126         (R_MIPS_JUMP_SLOT): New.
1127         (R_MIPS_NUM): Redefine to 128.
1128         (DT_MIPS_PLTGOT): New.
1129         (DT_MIPS_RWPLT): New.
1130         (DT_MIPS_NUM): Redefine to 0x35.
1131
1132 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1133
1134         * timezone/africa: Update from tzdata2008f.
1135         * timezone/asia: Likewise.
1136         * timezone/australasia: Likewise.
1137         * timezone/europe: Likewise.
1138         * timezone/leapseconds: Likewise.
1139         * timezone/northamerica: Likewise.
1140         * timezone/southamerica: Likewise.
1141         * timezone/zone.tab: Likewise.
1142
1143 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * nscd/connections.c: Disable use of paccept for now.
1146
1147 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1148
1149         * socket/Versions: Remove paccept export for GLIBC_2.9.
1150         * socket/Makefile (routines): Remove paccept.
1151         * socket/sys/socket.h: Remove paccept declaration.
1152
1153         * po/sv.po: Update from translation team.
1154
1155 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1156
1157         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1158         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1159
1160 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1161
1162         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1163         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1164
1165 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1166
1167         * sunrpc/rpc/svc.h: Declare svcfd_create.
1168         Patch by Michael Solberg <msolberg@redhat.com>.
1169
1170 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1171             Ulrich Drepper  <drepper@redhat.com>
1172
1173         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1174         _int_valloc fails.
1175         (public_pVALLOc): Likewise.
1176
1177 2008-09-02  Andreas Jaeger  <aj@suse.de>
1178
1179         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1180         commit.
1181
1182 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1183
1184         [BZ #6860]
1185         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1186
1187 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1188
1189         * Makefile (check-data): Check data directory in add-ons.
1190         * elf/Makefile (check-data): Likewise.
1191
1192 2008-08-18  Roland McGrath  <roland@redhat.com>
1193
1194         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1195         * configure: Regenerated.
1196         * config.make.in (cflags-cpu): New substituted variable.
1197         (with-cpu): Variable removed.
1198         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1199
1200 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1201
1202         [BZ #6845]
1203         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1204         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1205         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1206         redundant.  Functions which call floating point assembler operations
1207         should go into a sysdeps powerpc/fpu directory.
1208
1209 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1210
1211         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1212         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1213
1214 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1215
1216         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1217
1218         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1219         change related to AT_EXECFN.  We cannot use that string.
1220         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1221         _dl_execfn member.
1222         * elf/dl-support.c: Remove _dl_execfn variable.
1223         (_dl_aux_init): Remove handling of AT_EXECFN.
1224         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1225         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1226
1227 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1228
1229         [BZ #6544]
1230         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1231         byte gets added to writes and seeks from the end use the length of
1232         the buffer and not the currently terminating NUL byte.
1233
1234         [BZ #6634]
1235         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1236         Set to true if locking failed.
1237         (getutid_r_file): Adjust caller.
1238         (pututline_file): Likewise.  Return NULL in this case.
1239         Patch mostly by halesh.s@gmail.com.
1240
1241 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1242
1243         [BZ #6589]
1244         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1245         Define.
1246         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1247
1248 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1249
1250         [BZ #6839]
1251         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1252         macro since it is now available in elf/dynamic-link.h.
1253
1254 2008-08-12  Roland McGrath  <roland@frob.com>
1255
1256         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1257         in case used outside of libc.
1258         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1259
1260 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1261
1262         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1263         directly instead of going through dn_comp.
1264
1265 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1266
1267         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1268         Fix asm constraints.
1269
1270 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1271
1272         [BZ #6790]
1273         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1274         (IPV6_PMTUDISC_PROBE): Likewise.
1275
1276 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1277
1278         [BZ #6791]
1279         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1280
1281 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1282             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1283
1284         [BZ #6817]
1285         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1286         Added the members 'vsx' and 'arch_2_06'.
1287         (_dl_powerpc_platforms): Add the member 'power7'.
1288         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1289         to reflect the changes required by VSX and ISA 2.06.
1290         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1291         'power7'.
1292         Defined PPC_PLATFORM_POWER7.
1293         (_dl_string_platform): Add support for POWER7.
1294         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1295         capability and ISA 2.06.
1296
1297 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1298
1299         [BZ #6824]
1300         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1301         macro to detect use of 128 bit long double.
1302         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1303
1304 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1305
1306         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1307
1308         [BZ #5794]
1309         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1310         parameters.
1311         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1312         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1313
1314 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1315
1316         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1317         guaranteed to be large enough to read inotify event.  Ignore
1318         EAGAIN error.  Better error message.  Add branch predicition.
1319         (main_loop_epoll): Likewise.
1320
1321 2008-08-02  Roland McGrath  <roland@frob.com>
1322
1323         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1324         Add memory clobbers.
1325
1326 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1327
1328         * manual/arith.texi: Avoid @strong{Note:}.
1329         * manual/creature.texi: Likewise.
1330         * manual/filesys.texi: Likewise.
1331         * manual/math.texi: Likewise.
1332         * manual/memory.texi: Likewise.
1333         * manual/resource.texi: Likewise.
1334         * manual/syslog.texi: Likewise.
1335         * manual/time.texi: Likewise.
1336
1337         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1338         to prevent warning.
1339
1340 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1341
1342         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1343         new epoll_create1 interface.
1344         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1345         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1346         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1347
1348         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1349         (NS_GET32): Likewise.
1350
1351         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1352         syscalls, too.
1353
1354         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1355         use the AT_EXECFN value if it is no absolute path.
1356         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1357         __ASSUME_AT_EXECFN.
1358
1359         * Versions.def: Add GLIBC_2.9 to libresolv.
1360         * include/resolv.h: Remove hidden proto declarations for __ns_*
1361         functions.  Add them for __dn_count_labels and __p_secstodate.
1362         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1363         Define ns_msg_getflags macro here.
1364         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1365         and __p_secstodate.
1366         * resolv/Versions: Export functions from <arpa/nameser.h> from
1367         libresolv in version GLIBC_2.9.
1368         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1369         hidden definitions.
1370         * resolv/ns_netint.c: Likewise.
1371         * resolv/ns_parse.c: Likewise.
1372         * resolv/ns_print.c: Likewise.
1373         * resolv/ns_samedomain.c: Likewise.
1374         * resolv/ns_ttl.c: Likewise.
1375         * resolv/arpa/nameser_compat.h: Likewise.
1376         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1377         function calls.
1378         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1379         instead of ns_get16.
1380         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1381         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1382         (gaih_getanswer_slice): Likewise.
1383         * resolv/Makefile (libresolv-routines): Add ns_date.
1384         * resolv/ns_date.c: New file.
1385
1386         * elf/Makefile (check-localplt.out): Also check libresolv and
1387         libcrypt.
1388
1389 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1390
1391         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1392         __ASSUME_O_CLOEXEC.
1393
1394 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1395
1396         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1397         buffer passed to NSS functions.
1398
1399         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1400
1401         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1402         Define.
1403
1404         * misc/syslog.c (openlog_internal): Fix compile problem.
1405
1406 2008-07-28  Roland McGrath  <roland@redhat.com>
1407
1408         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1409
1410 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1411
1412         * io/ftw.c (add_object): Remove inline to avoid warning.
1413
1414         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1415
1416         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1417         Use it instead of locally defined resplen2 variable.
1418         (res_nsend): Adjust for __libc_res_nsend interface change.
1419         (send_vc): Initialize *resplen2 if necessary.  Read length of
1420         package into an appropriately aligned variable.  Store converted length
1421         in new variable and use it appropriately.
1422         Add branch prediction help.
1423         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1424         and pass it on to __libc_res_nsend.  Adjust all callers.
1425         (__libc_res_nsearch): Likewise.
1426         (__libc_res_nqeurydomain): Likewise.
1427         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1428         change.
1429         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1430         Define resplen2 variable and pass it to __libc_res_nsearch and then
1431         to gaih_getanswer.
1432         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1433         Add branch prediction.
1434         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1435         (gaih_getanswer): Don't decode second slice if first one failed due
1436         to a too small buffer.  Don't let not found status of second
1437         decoder shadow results of the first.
1438         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1439         and __libc_res_nquery interface changes
1440         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1441         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1442         __libc_res_nsearch, and __libc_res_nsend.
1443         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1444         change.
1445         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1446         __libc_res_nsearch interface changes.
1447
1448 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1449
1450         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1451
1452         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1453         file descriptors with close-on-exec set.
1454         (exec_comm_child): Fix the case where the write end of the pipe is
1455         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1456
1457         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1458         * io/pipe2.c: Likewise.
1459         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1460         instead of __ASSUME_PACCEPT.
1461         * include/unistd.h: Declare __have_pipe2.
1462         * libio/iopopen.c: Implement "e" flag.
1463         * libio/Makefile (tests): Add tst-popen1.
1464         * libio/tst-popen1.c: New file.
1465
1466         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1467         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1468
1469 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1470
1471         [BZ #6771]
1472         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1473         success call of _IO_SEEKOFF or calls which failed because the
1474         descriptor is for a pipe.
1475
1476         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1477         magic number.
1478
1479         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1480
1481         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1482         F_SETFD use if we know fopen set the flag.
1483
1484         * login/utmp_file.c (setutent_file): Minor optimization in case
1485         O_CLOEXEC is available.
1486
1487 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1488
1489         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1490         * elf/Makefile: Use pie-ccflag variable.
1491         * nscd/Makefile: Likewise.
1492         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1493
1494 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1495
1496         [BZ #6724]
1497         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1498         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1499         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1500         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1501         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1502         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1503         utmp32, utmpx32 and login32.
1504         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1505         versions of struct utmp functions to libc and libutil.
1506         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1507         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1508         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1509         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1510         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1511         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1512         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1513         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1514         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1515         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1516         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1517         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1518         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1519         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1520         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1521         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1522         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1523         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1524         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1525         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1526         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1527         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1528
1529 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1530
1531         * scripts/gen-as-const.awk: Generate more widely usable code by
1532         using 64-bit arithmetic.
1533
1534         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1535         the same treatment as narrow output code in last patch.
1536
1537         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1538
1539         [BZ #6763]
1540         * elf/dl-load.c (local_strdup): Remove inline.
1541         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1542         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1543         part of the object.
1544
1545         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1546
1547 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1548
1549         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1550         the new syscalls, too.
1551
1552         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1553         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1554
1555         [BZ #6698]
1556         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1557         parameter for end of buffer.  If temporary copy is too large use
1558         malloc.
1559         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1560         interface change.
1561         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1562         string rewrite when allocating buffer.
1563
1564         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1565         syscalls, too.
1566
1567         * nscd/connections.c (nscd_init): Clean up fcntl call.
1568
1569         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1570         SOCK_NONBLOCK if possible.
1571
1572         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1573         SOCK_CLOEXEC if available.
1574
1575         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1576         __libc_clntudp_bufcreate_internal.
1577         * include/sys/socket.h: Declare __have_sock_cloexec.
1578         * socket/Makefile (aux): Add have_sock_cloexec.
1579         * socket/have_sock_cloexec.c: New file.
1580         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1581         __libc_clntudp_bufcreate.
1582         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1583         which takes an additional parameter.  Create socket with non-blocking
1584         mode and close-on-exec flag set, if wanted.
1585         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1586         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1587         instead of clntudp_create.  The socket has already the close-on-exec
1588         flag set if SOCK_CLOEXEC is defined.
1589
1590 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1591
1592         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1593         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1594         appropriate.
1595         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1596         non-blocking mode by using socket, paccept, and inotify_init1.
1597
1598         * Versions.def (glibc): Add GLIBC_2.9.
1599         * io/Makefile (routines): Add dup3 and pipe2.
1600         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1601         * io/dup3.c: New file.
1602         * io/pipe2.c: New file.
1603         * posix/unistd.h: Declare dup3 and pipe2.
1604         * socket/Makefile (routines): Add paccept.
1605         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1606         * socket/paccept.c: New file.
1607         * socket/sys/socket.h: Declare paccept.
1608         * sysdeps/unix/syscalls.list: Add entry for dup3.
1609         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1610         epoll_create2 and inotify_init1.
1611         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1612         * sysdeps/unix/sysv/linux/paccept.c: New file.
1613         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1614         possible.
1615         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1616         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1617         inotify_init1, and pipe2 entries.
1618         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1619         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1620         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1621         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1622         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1623         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1624         SOCK_NONBLOCK.
1625         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1626         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1627         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1628         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1629         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1630         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1631         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1632         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1633         EPOLL_NONBLOCK.  Declare epoll_create2.
1634         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1635         EFD_NONBLOCK.
1636         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1637         IN_NONBLOCK.  Declare inotify_init1.
1638         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1639         SFD_NONBLOCK.
1640         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1641         TFD_NONBLOCK.
1642
1643         * elf/elf.h: Define AT_EXECFN.
1644         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1645         LD_ORIGIN_PATH.
1646         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1647         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1648         if __ASSUME_AT_EXECFN is defined.
1649         (_dl_aux_init): Handle AT_EXECFN.
1650         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1651         for 2.6.27 and up.
1652         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1653         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1654         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1655         _dl_execfn if available and avoid compatibility code if
1656         __ASSUME_AT_EXECFN is defined.
1657
1658         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1659         _dl_discover_osversion only for older kernels.
1660
1661 2008-07-22  Roland McGrath  <roland@frob.com>
1662
1663         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1664
1665 2008-07-21  Roland McGrath  <roland@frob.com>
1666
1667         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1668         returned too much data out of line.
1669
1670 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1671
1672         * locale/setlocale.c (setname): Remove inline to avoid compiler
1673         warning.
1674
1675         [BZ #6712]
1676         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1677
1678 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1679
1680         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1681         doesn't manage to write anything, fail.
1682
1683         * malloc/hooks.c (__malloc_check_init): Remove printf.
1684
1685 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1686
1687         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1688
1689 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1690
1691         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1692         from inotify.
1693         (main_loop_epoll): Likewise.
1694
1695 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1696
1697         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1698
1699         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1700         if DEBUG is defined.
1701
1702         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1703         query.  Adjust buffer size computation for padding.
1704
1705 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1706
1707         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1708         * stdio-common/tst-setvbuf1.c: New file.
1709         * stdio-common/tst-setvbuf1.expect: New file.
1710
1711         [BZ #6719]
1712         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1713         when selecting fully-buffered stream.
1714         Patch by Wang Xin <wxinee@gmail.com>.
1715
1716 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1717
1718         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1719         (__open_2): New function.
1720         (__open64_2): New alias to __open_2.
1721         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1722         (__openat_2): New function.
1723         (__openat64_2): New alias to __openat_2.
1724
1725 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1726
1727         [BZ #6723]
1728         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1729
1730 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1731
1732         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1733         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1734         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1735         __hurd_dfail.
1736         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1737         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1738         * sysdeps/mach/hurd/send.c (__send): Likewise.
1739         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1740         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1741
1742 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1743
1744         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1745         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1746         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1747         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1748         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1749         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1750
1751 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1752
1753         [BZ #6657]
1754         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1755         of %EY.
1756         Patch by Petr Baudis.
1757
1758 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1759
1760         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1761         Patch by Peter Jones <pjones@redhat.com>.
1762
1763 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1764
1765         [BZ #6654]
1766         * stdlib/canonicalize.c (__realpath): readlink can write too much
1767         into the buffer on platforms without PATH_MAX.
1768
1769 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1770
1771         [BZ #6653]
1772         * posix/tst-regex.c (main): Rename to...
1773         (do_test): ... this. Remove cmdline option processing.
1774         (TIMEOUT): Define.
1775         (TEST_FUNCTION): Define.
1776         (CMDLINE_OPTIONS): Define.
1777
1778 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1779
1780         [BZ #5210]
1781         * configure.in: Add -Werror to -fstack-protector test to catch
1782         unsupported architectures.
1783         Patch by Gilles Esponasse <g.esp@free.fr>.
1784
1785 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1786
1787         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1788         getcontext returns ENOSYS.
1789
1790 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1791
1792         * nscd/connections.c (main_loop_poll): Fix test for read error.
1793         (main_loop_epoll): Likewise.
1794
1795 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1796
1797         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1798         better place so it is not called when nscd is used.
1799
1800         * nscd/connections.c: Also recognize and handle changes to the
1801         resolver configuration file.
1802
1803 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1804
1805         * time/strftime.c: Pass reference to tzset_called around to handle
1806         recursive calls.
1807
1808         [BZ #6612]
1809         * time/strftime.c (__strftime_internal): Call tzset() only
1810         when printing timezone-dependent values.
1811         Based on a patch by Petr Baudis <pasky@suse.cz>.
1812
1813         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1814         unconditionally use second gaih_getanswer_slice result.
1815
1816         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1817         (getaddrinfo): RES must always be non-NULL.
1818
1819 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1820
1821         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1822         cr[34] registers.
1823         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1824         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1825         Likewise.
1826         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1827         register.
1828
1829 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1830
1831         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1832         fields.
1833         * nscd/connections.c (inotify_fd): New variable.
1834         (nscd_init): Try to open an inotify descriptor.
1835         If successful, watch files for databases using inotify instead of
1836         having prune threads stat the files.
1837         (nscd_run_prune): Recognize clear_cache flag being set and call
1838         prune_cache appropriately.
1839         (main_loop_poll): Add inotify descriptor to wait set and handle the
1840         reported changes.
1841         (main_loop_epoll): Likewise.
1842         * nscd/cache.c (prune_cache): Don't stat files for databases if
1843         inotify is used.
1844         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1845         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1846
1847         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1848         fixed-size portion of the record.
1849         * nscd/servicescache.c (cache_addserv): Likewise.
1850         * nscd/pwdcache.c (cache_addpw): Likewise.
1851         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1852
1853 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1854
1855         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1856         out we don't use uninitialized memory.
1857
1858         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1859         the client.
1860
1861 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1862
1863         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1864         ignore T_DNAME messages.
1865         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1866
1867 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1868
1869         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1870         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1871
1872 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1873
1874         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1875         instead of portstr to nscd_getserv_r.  Patch by
1876         Roman Kagan <rkagan@mail.ru>.
1877
1878 2008-05-26  Jim Meyering  <meyering@redhat.com>
1879
1880         Remove more useless "if" tests before "free".
1881         * include/inline-hashtab.h (htab_delete): Likewise.
1882         * libio/freopen.c (freopen): Likewise.
1883         * libio/freopen64.c (freopen64): Likewise.
1884         * locale/programs/ld-collate.c (collate_read): Likewise.
1885         * misc/fstab.c (libc_freeres_fn): Likewise.
1886         * posix/glob.c (globfree): Likewise.
1887
1888 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1889
1890         * string/Makefile (strop-tests): Add memmem.
1891         * string/test-memmem.c: New file.
1892         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1893         (test_init): Size buf1 according to BUF1PAGES.
1894
1895 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1896
1897         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1898         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1899         (CFLAGS-scanf17.c): New.
1900         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1901         * stdio-common/scanf15.c (main): Likewise.
1902         * stdio-common/scanf16.c: New file.
1903         * stdio-common/scanf17.c: New file.
1904
1905 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1906
1907         * resolv/res_send.c (send_dg): If we already have one of two
1908         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1909         use the one answer insted of failing.
1910
1911 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1912
1913         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1914         being executed on PowerPC as the expected result exceeds IBM
1915         long double 128 __LDBL_MAX__.
1916
1917 2008-05-21  Roland McGrath  <roland@redhat.com>
1918
1919         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1920
1921         * Makefile (check-data): Use $(abi-name) before other guesses.
1922         Look in $(add-ons) dirs before scripts/data/.
1923         * elf/Makefile (check-data): Likewise.
1924
1925         * scripts/soversions.awk: Grok ABI line.
1926         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1927         Emit definition for abi-name variable.
1928
1929 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1930
1931         * string/endian.h: Define new fixed-size hto* and *toh macros only
1932         if [__USE_BSD].
1933
1934         * iconvdata/Depend: Add localedata.
1935
1936 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1937
1938         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1939
1940 2008-05-08  David S. Miller  <davem@davemloft.net>
1941
1942         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1943         HIDDEN_JUMPTARGET.
1944         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1945         (__SYSCALL_CLOBBERS): Remove %g* registers.
1946         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1947         (__SYSCALL_CLOBBERS): Likewise.
1948         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1949         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1950
1951 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1952
1953         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1954         (CALL_ERRNO_LOCATION): Define.
1955         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1956         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1957         (CALL_ERRNO_LOCATION): Define.
1958         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1959         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1960         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1961
1962 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1963
1964         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1965         variable.
1966
1967 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1968
1969         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1970         (FIRST_FRAME_POINTER): Define.
1971
1972 2008-05-09  David S. Miller  <davem@davemloft.net>
1973
1974         * sysdeps/sparc/sparc64/backtrace.c: New file.
1975
1976 2008-05-14  David S. Miller  <davem@davemloft.net>
1977
1978         * sysdeps/sparc/machine-gmon.h: New file.
1979         * sysdeps/sparc/sparc-mcount.S: Likewise.
1980         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1981         sysdep_routines in gmon directory.
1982
1983 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1984
1985         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1986
1987 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1988
1989         * resolv/res_query.c (__libc_res_nquery): In case one of two
1990         answer was too short don't try to read that answer's header.
1991
1992         * resolv/res_send.c (send_dg): In case of timeout and there are
1993         two queries and one has been answered, return value indicating
1994         success.
1995
1996 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1997
1998         * nscd/cache.c (cache_add): Take additional parameter specifying
1999         whether this is in response of a cache refill.  Check alignment
2000         of package data.  Revamp waking of pruning thread.
2001         (prune_cache): Small optimization.
2002         * nscd/nscd.h: Adjust cache_add prototypes.
2003         * nscd/aicache.c: Adjust cache_add calls.
2004         * nscd/grpcache.c: Likewise.
2005         * nscd/hstcache.c: Likewise.
2006         * nscd/initgrcache.c: Likewise.
2007         * nscd/pwdcache.c: Likewise.
2008         * nscd/servicescache.c: Likewise.
2009         * nscd/connections.c (restart): Really disable cache use before
2010         exec attempt.  If it fails, reenable cache.
2011         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2012         time to max to be able to notice concurrent cache additions.  Unlock
2013         prune_lock while performing gc.  Afterwards compute wakeup time with
2014         current wakeup_time value in mind.
2015
2016 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
2017
2018         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2019
2020         * nscd/mem.c (gc): Correctly determine highest used array element
2021         in mark.
2022
2023         * nscd/mem.c (markrange): Add assert to check entries are all
2024         aligned.  Small cleanup in bitmap use.
2025
2026         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2027         blockoff of type nscd_ssize_t.
2028         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2029         (mempoll_alloc): Record block offset and not address.
2030
2031         * nscd/mem.c (gc): Fix test for stack overuse.
2032
2033         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2034         more asserts.
2035
2036         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2037         entry is available, believe it.
2038
2039         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2040         no answers return NSS_STATUS_NOTFOUND.
2041         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2042         buffer does not have any content.
2043
2044 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
2045
2046         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2047
2048         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2049         lookup, don't assign canon unconditionally.
2050
2051 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2052
2053         * string/Makefile (distribute): Add str-two-way.h.
2054
2055 2008-03-29  Eric Blake  <ebb9@byu.net>
2056
2057         Rewrite string searches to O(n) rather than O(n^2).
2058         * string/str-two-way.h: New file.  For linear fixed-allocation
2059         string searching.
2060         * string/memmem.c: New implementation.
2061         * string/strstr.c: New implementation.
2062         * string/strcasestr.c: New implementation.
2063
2064 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
2065
2066         * posix/regcomp.c (optimize_utf8): Add a note on why we test
2067         opr.ctx_type.
2068         (calc_first): Initialize constraint field.
2069         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2070         Use search_duplicated_node to avoid loops.  Fix grammar.
2071         (duplicate_node): Merge constraint field for all node types.
2072         (calc_eclosure_iter): Look at constraint field for all node types.
2073         * posix/regex_internal.c (create_cd_newstate): Don't look at
2074         create_cd_newstate.
2075
2076 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2077
2078         [BZ #6428]
2079         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2080
2081         [BZ #6442]
2082         * string/endian.h: Add macros for fixed-size endian conversion.
2083         * bits/byteswap.h: Allow inclusion from <endian.h>.
2084         * sysdeps/i386/bits/byteswap.h: Likewise.
2085         * sysdeps/ia64/bits/byteswap.h: Likewise.
2086         * sysdeps/s390/bits/byteswap.h: Likewise.
2087         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2088         * string/Makefile (tests): Add tst-endian.
2089         * string/tst-endian.c: New file.
2090
2091         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2092         Patch by Reuben Thomas.
2093
2094 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2095
2096         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2097
2098 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2099
2100         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2101
2102         [BZ #6461]
2103         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2104         Add missing braces.
2105         (BODY for __gconv_transform_internal_ascii): Likewise.
2106
2107         [BZ #6472]
2108         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2109         to be treated like link-local addresses.
2110         (match_prefix): Don't treat IPv4 loopback address special when
2111         converting to v4 mapped addressed.
2112
2113         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2114         if necessary.
2115         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2116         * posix/tst-rfc3484-2.c: Likewise.
2117         * posix/tst-rfc3484-3.c: Likewise.
2118
2119         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2120         and SCTP.
2121
2122         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2123
2124         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2125
2126         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2127
2128 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2129
2130         * po/lt.po: New file.  From Lituanian translation team.
2131
2132 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2133
2134         Introduce TLS descriptors for i386 and x86_64.
2135         * include/inline-hashtab.h: New file, copied from 2005's
2136         libiberty, with fix for memory leak imported afterwards by
2137         Glauber de Oliveira Costa.
2138         * elf/tlsdeschtab.h: New file.
2139         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2140         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2141         (CHECK_STATIC_TLS): Move to...
2142         * elf/dynamic-link.h: ... this file.
2143         (TRY_STATIC_TLS): New macro.
2144         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2145         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2146         R_386_TLS_DESC): Define.
2147         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2148         binutils.
2149         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2150         R_X86_64_TLSDESC): Define.
2151         (R_386_NUM, R_X86_64_NUM): Adjust.
2152         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2153         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2154         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2155         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2156         release tlsdesc_table.
2157         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2158         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2159         (elf_machine_rel): Handle R_386_TLS_DESC.
2160         (elf_machine_rela): Likewise.
2161         (elf_machine_lazy_rel): Likewise.
2162         (elf_machine_lazy_rela): Likewise.
2163         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2164         * sysdeps/i386/dl-tlsdesc.S: New file.
2165         * sysdeps/i386/dl-tlsdesc.h: New file.
2166         * sysdeps/i386/tlsdesc.c: New file.
2167         * sysdeps/i386/tlsdesc.sym: New file.
2168         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2169         tlsdesc_table.
2170         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2171         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2172         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2173         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2174         release tlsdesc_table.
2175         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2176         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2177         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2178         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2179         (elf_machine_rela): Likewise.
2180         (elf_machine_lazy_rel): Likewise.
2181         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2182         (__tls_get_addr): Do not declare for non-shared compiles.
2183         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2184         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2185         * sysdeps/x86_64/tlsdesc.c: New file.
2186         * sysdeps/x86_64/tlsdesc.sym: New file.
2187         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2188         tlsdesc_table for both 32- and 64-bit structs.
2189
2190 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2191
2192         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2193         its own function.  This reduces the frame setup costs and more.
2194
2195 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2196
2197         [BZ #3406]
2198         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2199         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2200
2201 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2202
2203         * io/openat.c (__openat_2): Also pass fd to __openat.
2204         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2205         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2206
2207         * string/tester.c (test_memcmp): Add a few more tests.
2208         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2209
2210 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2211
2212         * nscd/cache.c (cache_add): Before returning with failure and this
2213         is the first use of the record, mark it as unusable.
2214         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2215         reporting a failure.
2216         * nscd/grpcache.c: Likewise
2217         * nscd/hstcache.c: Likewise.
2218         * nscd/initgrcache.c: Likewise.
2219         * nscd/pwdcache.c: Likewise.
2220         * nscd/servicescache.c: Likewise.
2221
2222 2008-05-10  Roland McGrath  <roland@redhat.com>
2223
2224         [BZ #6505]
2225         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2226
2227 2008-05-08  David S. Miller  <davem@davemloft.net>
2228
2229         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2230
2231         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2232         (__ieee754_y0l): Likewise.
2233         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2234         (__ieee754_y1l): Likewise.
2235         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2236         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2237         frexpl and ldexpl.  math_private.h provides them and the latter
2238         is not even used.
2239         (__log1pl): Use __frexpl.
2240
2241 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2242
2243         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2244         prototypes.
2245         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2246         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2247         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2248         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2249         af==AF_UNSPEC.
2250         (_nss_nis_gethostbyname4_r): New function.
2251         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2252         Change to also handle af==AF_UNSPEC.
2253         (get_tablename): New function.  Use it to avoid duplication.
2254         (_nss_nisplus_gethostbyname4_r): New function.
2255         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2256         available.
2257         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2258         * nss/nss.h: Define struct gaih_addrtuple.
2259         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2260         af==AF_UNSPEC.
2261         (_nss_files_gethostbyname4_r): New function.
2262         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2263         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2264         calls.
2265         * resolv/res_query.c (__libc_res_nquery): Take two additional
2266         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2267         look up IPv4 and IPv6.
2268         Change all callers.
2269         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2270         for an additional query and answer buffer.  Pass to send_vc and
2271         send_dg.
2272         (send_vc): Send possibly two requests and receive two answers.
2273         (send_dg): Likewise.
2274         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2275         __libc_res_nquery.
2276         (_nss_dns_gethostbyname4_r): New function.
2277         (gaih_getanswer_slice): Likewise.
2278         (gaih_getanswer): Likewise.
2279         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2280         __libc_res_nquery call.
2281         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2282         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2283         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2284         available.
2285
2286 2008-05-05  David S. Miller  <davem@davemloft.net>
2287
2288         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2289         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2290
2291 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2292
2293         Fix termios bit macros.
2294         Move *DLY definitions where they belong, in termios.h.
2295         Add *[0-3] definitions.
2296         Fixes confusion between VT and FF.
2297         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2298         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2299         are already defined to avoid collision with termios.h.
2300         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2301         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2302         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2303         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2304         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2305         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2306         VTDLY, VT0, VT1): New macros.
2307         [__USE_GNU] (OLCUC): Change value of macro.
2308         [__USE_XOPEN] (OFILL): New macro.
2309         [__USE_BSD] (CRTSCTS): Change value.
2310         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2311         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2312         (B7200, B14400, B28800, B76800): New macros.
2313
2314 2008-05-01  David S. Miller  <davem@davemloft.net>
2315
2316         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2317         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2318         (gen-as-const-headers): Add it.
2319         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2320         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2321         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2322         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2323
2324         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2325         six system call parameters.
2326         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2327
2328 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2329
2330         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2331         RUSAGE_LWP.
2332         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2333         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2334
2335 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2336
2337         * stdlib/tst-setcontext.c: Include unistd.h.
2338
2339 2008-04-25  David S. Miller  <davem@davemloft.net>
2340
2341         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2342         Pass "union semun" properly in to sys_ipc, it must be passed
2343         by value, not by reference.
2344
2345 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2346
2347         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2348         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2349         * nscd/connections.c (mem_in_flight): Likewise.
2350
2351         * nscd/nscd.h (dbs): Make hidden.
2352
2353         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2354         Avoid returning -1, return 0 instead.
2355
2356 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2357
2358         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2359
2360 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2361
2362         [BZ #5209]
2363         * sysdeps/unix/sysv/linux/times.c: New file.
2364
2365         [BZ #5381]
2366         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2367         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2368         prototype.
2369         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2370         appropriate mem_in_flight element.
2371         (gc): Take allocations which have not yet been committed to the
2372         database into account.
2373         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2374         Reset mem_in_flight before returning.
2375         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2376         cue it up in mem_in_flight_list.
2377         * nscd/aicache.c: Adjust mempool_alloc call.
2378         * nscd/grpcache.c: Likewise.
2379         * nscd/hstcache.c: Likewise.
2380         * nscd/initgrcache.c: Likewise.
2381         * nscd/pwdcache.c: Likewise.
2382         * nscd/servicescache.c: Likewise.
2383         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2384         of -fpie.
2385
2386         * nscd/connections.c (handle_request): Provide better error message
2387         in case SELinux forbids the service.
2388
2389         * version.h (VERSION): Bump to 2.8.90.
2390
2391 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2392
2393         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2394
2395 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2396
2397         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2398         Also use for 32-bit.
2399         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2400         __nextafter instead of nextafter to avoid local PLT.
2401         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2402         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2403
2404         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2405
2406         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2407         __fe_nomask_env.
2408         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2409         <fenv_libc.h> instead of <fenv.h>.
2410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2412
2413         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2414
2415         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2416         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2417         function from fegetexcept and make old name weak alias.
2418         * include/fenv.h: Declare __fegetexcept.
2419         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2420         fegetexcept.
2421         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2422         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2423         to fetestexcept.
2424         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2425         instead of frexpl to avoid local PLT.
2426         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2427         ilogbl to avoid local PLT.
2428         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2429         instead of ldexpl to avoid local PLT.
2430         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2431         __roundl not roundl to avoid local PLT.
2432         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2433         local PLTs.  Use __sincosl instead of separate sinl and cosl
2434         calls.
2435         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2436
2437         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2438         version for ppc64 to 2.4.21 since without it makecontext will fail.
2439
2440         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2441         to the ABI in use.
2442         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2443         .__tls_get_addr.
2444         [__powerpc64__] (TLS_GD): Likewise.
2445
2446 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2447
2448         [BZ #4997]
2449         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2450         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2451         mantissa.
2452         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2453         Likewise.  Also account for when x is an odd number between 2^52
2454         and 2^53-1.
2455         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2456         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2457         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2458         detect aforementioned erroneous conditions.
2459
2460 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2461
2462         * configure.in: Check for -fno-section-anchors in addition to
2463         -fno-toplevel-reorder.
2464
2465 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2466
2467         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2468
2469         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2470         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2471         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2472         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2473         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2474         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2475
2476 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2477
2478         [BZ #5443]
2479         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2480         * time/alt_digit.c: Likewise.
2481         * wcsmbs/wcsmbsload.c: Likewise.
2482
2483 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2484
2485         * version.h (VERSION): Bump to 2.8.
2486
2487         * timzeone/asia: Update from tzdata2008b.
2488         * timezone/backward: Likewise.
2489         * timezone/europe: Likewise.
2490         * timezone/northamerica: Likewise.
2491         * timezone/southamerica: Likewise.
2492         * timezone/iso3166.tab: Likewise.
2493         * timezone/leapseconds: Likewise.
2494         * timezone/zone.tab: Likewise.
2495         * timezone/private.h: Update from tzcode2008a.
2496         * timezone/zdump.c: Likewise.
2497         * timezone/zic.c: Likewise.
2498
2499 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2500
2501         [BZ #5741]
2502         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2503         Define additonal Data Cache Block instruction macros.
2504         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2505         Replace dcbst with dcbf and sync with sync/isync.
2506
2507 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2508
2509         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2510         Always set ELF_RTYPE_CLASS_PLT.
2511         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2512
2513 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2514
2515         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2516         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2517         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2518         For ISA 2.01 and later replace mftb with mfspr 268.
2519
2520 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2521
2522         [BZ #5768]
2523         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2524         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2525
2526 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2527
2528         [BZ #5768]
2529         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2530         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2531         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2532         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2533
2534 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2535
2536         * stdlib/tst-makecontext.c (othervar): New variable.
2537         (cf): Test sign extending the argument to long.
2538
2539 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2540
2541         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2542         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2543         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2544         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2545         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2546         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2547         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2548
2549 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2550
2551         * elf/Makefile (tests): Substitute tests-vis-yes here.
2552         (tests-vis-yes): Delete.
2553         (modules-name, modules-vis-yes): Similarly.
2554
2555 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2556
2557         [BZ #4407]
2558         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2559         Preserve sign in signgamp when x is zero.
2560
2561 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2562
2563         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2564         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2565         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2566         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2567         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2568         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2569
2570 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2571
2572         [BZ #4314]
2573         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2574         buffers.
2575
2576         [BZ #5209]
2577         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2578         a reserved error value.
2579
2580         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2581         value to check for correct sign extension.
2582
2583         [BZ #5436]
2584         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2585         Copy 64-bit parameter values even though this is not required in
2586         the standard.
2587
2588         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2589         PC save.
2590
2591 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2592
2593         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2594         PC save.
2595
2596 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2597
2598         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2599
2600 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2601
2602         [BZ #5998]
2603         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2604         in line-buffered stream failed.
2605         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2606
2607 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2608
2609         [BZ #6024]
2610         * scripts/abi-versions.awk: If the version specified by
2611         --enable-oldest-abi is older than the first version for this
2612         architecture, use the default version.
2613
2614         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2615         as well when ignoring the whole category.
2616
2617 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2618
2619         [BZ #6042]
2620         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2621         ETHERTYPE_* definitions.
2622         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2623
2624 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2625
2626         * stdlib/mbtowc.c (__no_r_state): Remove.
2627         (mbtowc): New static state variable.  Use it instead of
2628         __no_r_state.
2629         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2630         (__wctomb_state): New hidden variable.
2631         (wctomb): Use __wctomb_state instead of __no_r_state.
2632         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2633         (__wctomb_state): New extern decl.
2634         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2635
2636 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2637
2638         [BZ #5475]
2639         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2640
2641 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2642
2643         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2644
2645 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2646
2647         * po/nl.po: Update from translation team.
2648
2649 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2650
2651         [BZ #6007]
2652         * string/strfry.c: Handle empty strings again.
2653
2654 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2655
2656         [BZ #5443]
2657         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2658         before looking for translation.
2659         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2660         * locale/freelocale.c: Likewise.
2661         * locale/newlocale.c: Likewise.
2662         * locale/setlocale.c: Likewise.
2663         Based partially on a patch by ryo@np.css.fujitsu.com.
2664
2665 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2666
2667         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2668         acquiring wrlock.  Do conv_tab allocation while holding lock.
2669         * intl/Makefile: Add rules to build and run tst-gettext6.
2670         * intl/tst-gettext6.c: New test.
2671         * intl/tst-gettext6.sh: New file.
2672
2673 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2674
2675         * po/nl.po: Update from translation team.
2676
2677         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2678         provided through st_blksize, try the default size before giving up.
2679
2680 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2681
2682         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2683
2684         [BZ #5939]
2685         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2686
2687         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2688         error message.  POSIX today does not require the messages to be in
2689         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2690
2691         [BZ #5979]
2692         * sunrpc/auth_unix.c: Unify printed strings.
2693         * sunrpc/clnt_tcp.c: Likewise.
2694         * sunrpc/clnt_udp.c: Likewise.
2695         * sunrpc/clnt_unix.c: Likewise.
2696         * sunrpc/svc_tcp.c: Likewise.
2697         * sunrpc/svc_udp.c: Likewise.
2698         * sunrpc/svc_unix.c: Likewise.
2699         * sunrpc/xdr.c: Likewise.
2700         * sunrpc/xdr_array.c: Likewise.
2701         * sunrpc/xdr_rec.c: Likewise.
2702         * sunrpc/xdr_ref.c: Likewise.
2703         * locale/programs/ld-time.c (time_finish): Unify messages.
2704         * locale/programs/locfile.c (handle_copy): Fix typo.
2705         * nscd/nscd.c (options): Fix typo.
2706
2707         [BZ #5995]
2708         * stdlib/strtod_l.c: Use correct sign for result in one more
2709         underflow case.
2710         Patch by Eric Blake <ebb9@byu.net>.
2711
2712 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2713
2714         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2715         and creat system calls.
2716         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2717         call.
2718         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2719         system calls.
2720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2721         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2722         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2723
2724 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2725
2726         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2727         <linux/limits.h> has defined it.
2728         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2729         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2730         headers.
2731         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2732         it instead of ARG_MAX.
2733
2734 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2735
2736         * posix/gai.conf: Fix comment for scope nullbits.
2737         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2738         default to 128 bits for v4 mapped addresses.
2739
2740 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2741
2742         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2743         ptrace call to get the ieee_instruction_pointer from the kernel.
2744         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2745         ptrace call to set the ieee_instructtion_pointer.
2746         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2747         Add comment that ieee_instruction_pointer is always 0.
2748
2749 2008-03-09  Andreas Jaeger  <aj@suse.de>
2750
2751         [BZ #5857]
2752         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2753         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2754         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2755
2756         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2757         (rint_test): Likewise.
2758
2759 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2760
2761         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2762         call.
2763         (__nisfind_server): Similar for open readColdStartFile call.
2764         Patch partially by Jim Meyering.
2765         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2766         around internal_setent call.
2767
2768         * po/vi.po: New Vietnamese translation.
2769
2770         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2771         ADJ_OFFSET_SS_READ.
2772
2773         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2774         remove CLONE_STOPPED.
2775
2776 2008-02-10  Jim Meyering  <meyering@redhat.com>
2777
2778         Remove useless "if" before "free":
2779         * elf/ldconfig.c (parse_conf_include): Likewise.
2780         * gmon/gmon.c (weak_alias): Likewise.
2781         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2782         * inet/rcmd.c (__validuser2_sa): Likewise.
2783         * intl/bindtextdom.c (set_binding_values): Likewise.
2784         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2785         * libio/genops.c (save_for_backup): Likewise.
2786         * libio/wgenops.c (save_for_wbackup): Likewise.
2787         * locale/programs/ld-collate.c (collate_read): Likewise.
2788         * locale/programs/linereader.c (get_string): Likewise.
2789         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2790         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2791         * resolv/res_debug.c (do_section): Likewise.
2792         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2793         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2794         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2795         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2796         * time/tzset.c (tzset_internal): Likewise.
2797
2798 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2799
2800         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2801         of ASSEMBLER.
2802
2803 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2804
2805         [BZ #5903]
2806         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2807         not stream for output file.  Open output file here.
2808         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2809         and output file name.
2810         (process_fd): Likewise.
2811         (process_file): Likewise.
2812         (main): Adjust callers of changed functions.
2813         * iconv/iconv_prog.h: Adjust prototype.
2814
2815 2008-03-09  Andreas Jaeger  <aj@suse.de>
2816
2817         [BZ #5753]
2818         * sysdeps/ia64/ieee754.h: Use protected namespace
2819         __BIG_ENDIAN/__LITTLE_ENDIAN.
2820         * sysdeps/ieee754/ieee754.h: Likewise.
2821         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2822
2823 2008-03-08  Roland McGrath  <roland@frob.com>
2824
2825         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2826         ignore a signal that came from a machine exception, treat it as a
2827         fatal core-dump signal instead.
2828         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2829
2830         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2831         Clear DF bit in thread state's eflags.
2832         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2833
2834 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2835
2836         [BZ #5774]
2837         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2838         of NAN(...) sequence.
2839         * stdlib/Makefile (tests): Add tst-strtod6.
2840         * stdlib/tst-strtod6.c: New file.
2841
2842         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2843
2844         [BZ #5762]
2845         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2846         putting offending option character in quotes.  Clean up error
2847         messages.
2848         * po/be.po: Adjust msgstr in translation file.
2849         * po/bg.po: Likewise.
2850         * po/ca.po: Likewise.
2851         * po/cs.po: Likewise.
2852         * po/da.po: Likewise.
2853         * po/de.po: Likewise.
2854         * po/es.po: Likewise.
2855         * po/fr.po: Likewise.
2856         * po/hr.po: Likewise.
2857         * po/ko.po: Likewise.
2858         * po/nl.po: Likewise.
2859         * po/rw.po: Likewise.
2860         * po/sk.po: Likewise.
2861         * po/sv.po: Likewise.
2862         * po/tr.po: Likewise.
2863         * po/zh_CN.po: Likewise.
2864         * po/zh_TW.po: Likewise.
2865
2866         [BZ #5760]
2867         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2868         Patch by Roland Bless <roland@bless.de>.
2869
2870         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2871         .o file.
2872         * elf/Makefile (routines): Add dl-sysdep.
2873         (elide-routines.os): Likewise.
2874
2875 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2876
2877         [BZ #5786]
2878         * elf/dl-sysdep.c: Undefine ROUND after use.
2879         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2880         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2881         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2882         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2883         to ...
2884         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2885         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2886         if necessary.
2887         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2888
2889         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2890         _dl_tls_get_addr_soft element.
2891         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2892         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2893         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2894         GLRO.
2895         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2896         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2897         of internal_function.
2898
2899         * stdlib/Makefile (aux): Add tens_in_limb.
2900         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2901         * stdlib/tens_in_limb.c: ...here.  New file.
2902
2903         [BZ #5778]
2904         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2905         __statfs_chown_restricted.
2906         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2907         for _PC_CHOWN_RESTRICTED.
2908         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2909         Implement __statfs_chown_restricted.
2910         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2911         _POSIX_CHOWN_RESTRICTED value to zero.
2912         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2913         defined to zero.
2914
2915         * sysdeps/x86_64/rtld-memset.c: New file.
2916
2917 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2918
2919         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2920
2921         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2922         Barcelona machine.  Make default fall through branch of
2923         __x86_64_preferred_memory_instruction check as the integer code path.
2924
2925 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2926
2927         * sysdeps/x86_64/cacheinfo.c
2928         (__x86_64_preferred_memory_instruction): New variable.
2929         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2930
2931         * sysdeps/x86_64/memset.S: Rewrite.
2932
2933 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2934
2935         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2936         __obstack_printf_chk): New prototypes.
2937         (__vasprintf_chk, __vdprintf_chk,
2938         __obstack_vprintf_chk): Likewise.
2939         Add libc_hidden_proto.
2940         * libio/obprintf.c
2941         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2942         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2943         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2944         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2945         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2946         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2947         __obstack_vprintf_chk): New prototypes.
2948         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2949         obstack_vprintf): New inlines.
2950         * debug/dprintf_chk.c: New file.
2951         * debug/vdprintf_chk.c: New file.
2952         * debug/asprintf_chk.c: New file.
2953         * debug/vasprintf_chk.c: New file.
2954         * debug/obprintf_chk.c: New file.
2955         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2956         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2957         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2958         @@GLIBC_2.8.
2959         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2960         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2961         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2962         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2963         libc_hidden_proto.
2964         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2965         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2966         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2967         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2968         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2969         @@GLIBC_2.8.
2970         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2971         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2972         obstack_vprintf_chk.
2973         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2974         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2975         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2976         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2977         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2978         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2979
2980 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2981
2982         [BZ #5779]
2983         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2984         Patch by Roy Marples <roy@marples.name>.
2985
2986         [BZ #5736]
2987         * malloc/malloc.c: Fix typo in comment.
2988
2989         [BZ #5627]
2990         * locale/iso-639.def: Add Shuswap.
2991
2992 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2993
2994         [BZ #5790]
2995         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2996         overwrite *h_errnop/*errnop values from getanswer_r in case of
2997         failure.
2998
2999 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3000
3001         [BZ #5818]
3002         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3003         (verify_persistent_db): Remove one unnecessary test and add a new one
3004         for bad configuration.
3005         (nscd_init): Improve error reported when persistent database cannot
3006         be reused.
3007         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3008         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3009         .suggested_module and .max_db_size and case config file says the
3010         values are zero.
3011         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3012
3013         [BZ #5854]
3014         * nis/ypclnt.c (yp_order): Fix handling of return value of
3015         do_ypcall_tr call.
3016         Patch by Jeff Moyer <jmoyer@redhat.com>.
3017
3018         * po/fr.po: Update from translation team.
3019
3020 2008-02-22  Andreas Jaeger  <aj@suse.de>,
3021             Carlos O'Donell <carlos@systemhalted.org>
3022
3023         [BZ #5012]
3024         * FAQ.in: Describe why glibc needs to be compiled with
3025         optimization.
3026
3027 2008-02-19  Roland McGrath  <roland@redhat.com>
3028
3029         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3030
3031 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
3032
3033         [BZ #5737]
3034         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3035         __USE_MISC is defined.
3036
3037 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
3038
3039         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3040         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3041         sys/timerfd.h.
3042         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3043         timerfd_gettime, timerfd_settime.
3044         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3045         timerfd_gettime, timerfd_settime for GLIBC_2.8.
3046
3047 2008-02-08  Roland McGrath  <roland@redhat.com>
3048
3049         * elf/elf.h (NT_PPC_SPE): New macro.
3050
3051 2008-02-06  Roland McGrath  <roland@redhat.com>
3052
3053         * Makerules ($(common-objpfx)sysd-rules):
3054         Depend on $(sysdep-makeconfigs).
3055
3056 2008-01-31  Roland McGrath  <roland@redhat.com>
3057
3058         [BZ #5442]
3059         * configure.in: Use -print-file-name if it yields a directory,
3060         for each of include and include-fixed.
3061         * configure: Regenerated.
3062
3063         * Makeconfig (sysd-rules-targets): New variable.
3064         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3065         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3066
3067 2008-01-30  Roland McGrath  <roland@redhat.com>
3068
3069         * manual/libc.texinfo: Update back-cover text.
3070
3071         * elf/elf.h (NT_386_TLS): New macro.
3072
3073 2008-01-29  Roland McGrath  <roland@redhat.com>
3074
3075         * Makeconfig (sysd-rules-patterns): New variable.
3076         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3077         (check-inhibit-asm): New canned sequence, replaces ...
3078         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3079         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3080         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3081         (CFLAGS-rtld): Variable removed.
3082
3083 2008-01-24  Roland McGrath  <roland@redhat.com>
3084
3085         * configure.in: Let configure fragments set base_os.
3086         * configure: Regenerated.
3087
3088 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3089
3090         * po/ko.po: Update from translation team.
3091
3092 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3093
3094         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3095
3096 2008-01-12  Andreas Jaeger  <aj@suse.de>
3097
3098         [BZ #5040]
3099         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3100         Add EPOLLRDHUP.
3101
3102 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3103
3104         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3105         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3106         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3107
3108 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3109
3110         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3111         * elf/dl-close.c (_dl_close): Check for it.
3112         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3113         (_dl_allocate_static_tls): Likewise.
3114         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3115         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3116         to it.
3117         * elf/tst-tls16.c: New file.
3118         * elf/tst-tlsmod16a.c: New file.
3119         * elf/tst-tlsmod16b.c: New file.
3120         * elf/Makefile: Add rules to build and run tst-tls16.
3121
3122 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3123
3124         [BZ #5628]
3125         * bits/shm.h: Fix comment describing shmid_ds.
3126         * sysdeps/gnu/bits/shm.h: Likewise.
3127         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3128         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3129         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3130         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3131         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3132         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3133         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3134         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3135         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3136
3137         [BZ #5607]
3138         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3139         prototypes.
3140         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3141         additional suffixes.
3142         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3143         Add optional functions mq_timedreceive and mq_timedsend.
3144         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3145         * conform/data/pthread.h-data: Fix prototype of
3146         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3147         * conform/data/semaphore.h-data: Allow time.h definitions.
3148         * conform/data/signal.h-data: Likewise.
3149         * conform/data/stdio.h-data: getw and putw are not required in v6.
3150         * conform/data/stdlib.h-data: Change setstate prototype.
3151         * conform/data/string.h-data: Fix strerror_r prototype.
3152         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3153         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3154         Fix readlink prototype.
3155         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3156         in6addr_loopback.
3157         * inet/netinet/in.h: Cleanup namespace.
3158         * posix/regex.h: Likewise.
3159         * resolv/netdb.h: Likewise.
3160         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3161         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3162         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3163         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3164         of names of in in6_addr.
3165         (default_precedence): Likewise.
3166         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3167         NULL definition.
3168
3169 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3170
3171         * conform/data/fmtmsg.h-data: Add missing allows.
3172         * conform/data/ftw.h-data: Likewise.
3173         * conform/data/inttypes.h-data: Likewise.
3174         * conform/data/math.h-data: Likewise.
3175         * conform/data/signal.h-data: Likewise.
3176         * conform/data/net/if.h-data: Likewise.
3177         * conform/data/netinet/in.h-data: Likewise.
3178         * conform/data/sys/socket.h-data: Likewise.
3179
3180         [BZ #5614]
3181         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3182         (__strtok_r): Simplify.
3183         * string/tester.c (test_strtok_r): Add test case for futile search
3184         with single-character seach string.
3185
3186 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3187
3188         * po/ko.po: Update from translation team.
3189
3190 2008-01-11  Andreas Jaeger  <aj@suse.de>
3191
3192         [BZ #5600]
3193         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3194         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3195         kernel header.
3196
3197 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3200         native interface lookup in all the relevant places.
3201
3202 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3203             Ulrich Drepper  <drepper@redhat.com>
3204
3205         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3206         field.  Use sockaddr_in6 for source_addr.
3207         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3208         (match_prefix): Likewise.
3209         (get_label): Likewise.
3210         (get_precedence): Likewise.
3211         (rfc3484_sort): Change to use indirect access to results array.
3212         Adjust to use of sockaddr_in6.  Replace service_order test with
3213         simple index comparison.
3214         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3215         service_order field.  Adjust qsort_t calls.  Access sorted result
3216         array indirectly through order array.
3217         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3218         * posix/tst-rfc3484-2.c: Likewise.
3219         * posix/tst-rfc3484-3.c: Likewise.
3220
3221 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3222
3223         [BZ #5541]
3224         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3225         pollfd structures.
3226         Patch by André Cruz.
3227
3228         [BZ #5545]
3229         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3230         (clnt_spcreateerror): Likewise.
3231
3232         [BZ #5553]
3233         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3234         (public_mEMALIGn): Likewise.
3235         Patch mostly by Daniel Jacobowitz.
3236
3237 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3238
3239         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3240         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3241         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3242         * stdlib/tst-makecontext2.c: New test.
3243
3244 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3245
3246         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3247         defined.
3248         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3249         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3250         transliteration hooks and REINIT_PARAMS afterwards.
3251         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3252         status.
3253         (REINIT_PARAMS): Define.
3254         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3255         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3256         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3257         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3258         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3259         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3260         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3261         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3262         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3263         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3264         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3265         * iconvdata/tst-iconv7.c: New test.
3266
3267 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3268
3269         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3270
3271 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3272
3273         [BZ #5112]
3274         * nscd/connections.c (restart): Fix condition.
3275
3276 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3277
3278         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3279         __ctype_toupper_loc): Add __THROW.
3280
3281 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3284         recognition of interface family.
3285
3286         * posix/getconf.c: Update copyright year.
3287         * nss/getent.c: Likewise.
3288         * iconv/iconvconfig.c: Likewise.
3289         * iconv/iconv_prog.c: Likewise.
3290         * elf/ldconfig.c: Likewise.
3291         * catgets/gencat.c: Likewise.
3292         * csu/version.c: Likewise.
3293         * elf/ldd.bash.in: Likewise.
3294         * elf/sprof.c (print_version): Likewise.
3295         * locale/programs/locale.c: Likewise.
3296         * locale/programs/localedef.c: Likewise.
3297         * nscd/nscd.c (print_version): Likewise.
3298         * debug/xtrace.sh: Likewise.
3299         * malloc/memusage.sh: Likewise.
3300         * malloc/mtrace.pl: Likewise.
3301         * debug/catchsegv.sh: Likewise.
3302
3303 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3304
3305         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3306         second lookup.
3307
3308 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3309
3310         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3311         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3312
3313 2007-12-17  Roland McGrath  <roland@redhat.com>
3314
3315         * inet/ether_line.c (ether_line): Remove unused variable.
3316
3317 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3318
3319         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3320         and winp.
3321         * login/openpty.c (openpty): Likewise.
3322         * login/pty.h (openpty, forkpty): Likewise.
3323         * manual/terminal.texi (openpty, forkpty): Likewise.
3324
3325 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3326
3327         * malloc/malloc.c (public_cALLOc): For arenas other than
3328         main_arena, count all bytes inside the mprotect_size range of the
3329         heap as uninitialized.
3330
3331 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3332
3333         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3334         executable stacks.
3335
3336         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3337         mTRIm for all of them.
3338         (mTRIm): Additionally iterate over all free blocks and use madvise
3339         to free memory for all those blocks which contain at least one
3340         memory page.
3341         * malloc/tst-trim1.c: New file.
3342         * malloc/Makefile (tests): Add tst-trim1.
3343
3344         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3345
3346 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3347
3348         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3349         First cast argument to long
3350         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3351         Return long.
3352         (__vdso_clock_gettime): Likewise.
3353         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3354         return long.
3355
3356 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3357
3358         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3359         * locale/nl_langinfo_l.c: Real implementation, copied from
3360         nl_langinfo.c.
3361         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3362
3363 2007-12-01  Jim Meyering  <meyering@redhat.com>
3364
3365         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3366         that would inhibit utf8-optimization of a regexp containing line-
3367         or buffer-anchors, e.g., `^', `$'.
3368
3369 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3370
3371         * time/bug-getdate1.c (do_test): Don't use century values which
3372         aren't valid on 32-bit systems.
3373
3374 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3375
3376         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3377         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3378         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3379         __strcat_g, __strncat_g): Add __asm__.
3380
3381 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3382
3383         [BZ #5477]
3384         * io/fchmodat.c: Fix typo in stub_warning use.
3385         Patch by Petr Salinger.
3386
3387 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3388
3389         * iconvdata/hp-thai8.c: New file.
3390         * iconvdata/Makefile: Add rules for hp-thai8.c.
3391         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3392         * iconvdata/gconv-modules: Likewise.
3393
3394         [BZ #5464]
3395         * iconvdata/hp-greek8.c: New file.
3396         * iconvdata/Makefile: Add rules for hp-greek8.c.
3397         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3398         * iconvdata/gconv-modules: Likewise.
3399
3400         [BZ #5463]
3401         * iconvdata/hp-turkish8.c: New file.
3402         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3403         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3404         * iconvdata/gconv-modules: Likewise.
3405
3406         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3407         (shrink_heap): ... this new function.
3408         (heap_trim): Call shrink_heap instead of grow_heap.
3409
3410         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3411         case don't call alloc_perturb.
3412
3413 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3416         possible.
3417         * sysdeps/unix/sysv/linux/kernel-features.h
3418         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3419         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3420
3421 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3422
3423         [BZ #5424]
3424         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3425         * stdio-common/Makefile (tests): Add bug22.
3426         * stdio-common/bug22.c: New file.
3427
3428         [BZ #5451]
3429         * time/getdate.c: Fix filling in default values.
3430         * time/bug-getdate1.c: New file.
3431         * time/Makefile: Add rules to build and run bug-getdate1.
3432
3433         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3434         * iconvdata/ebcdic-es.c: Likewise.
3435         * iconvdata/ebcdic-es-a.c: Likewise.
3436         * iconvdata/ebcdic-uk.c: Likewise.
3437         * iconvdata/iso8859-16.c: Likewise.
3438         * iconvdata/viscii.c: Likewise.
3439         * iconvdata/iso8859-9e.c: Likewise.
3440         * iconvdata/Makefile: Adjust appropriately.
3441
3442         [BZ #5428]
3443         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3444         __need_wint_t.
3445
3446 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3447
3448         [BZ #5427]
3449         * iconvdata/hp-roman9.c: New file.
3450         * iconvdata/Makefile: Add rules for hp-roman9.c.
3451         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3452         * iconvdata/gconv-modules: Likewise.
3453
3454         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3455         * iconvdata/Makefile: Adjust appropriately.
3456
3457         [BZ #5441]
3458         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3459         structure, it's allocated with alloca.
3460         * stdio-common/Makefile (tests): Add bug21.
3461         * stdio-common/bug21.c: New file.
3462
3463 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3464
3465         [BZ #5452]
3466         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3467         keyword for gcc's braced-groups.
3468
3469 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3470
3471         [BZ #5454]
3472         * inet/ether_line.c: Strip hostname of whitespaces.
3473         * inet/Makefile (tests): Add tst-ether_line.
3474         * inet/tst-ether_line.c: New file.
3475
3476 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3477
3478         [BZ #5439]
3479         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3480
3481         [BZ #5435]
3482         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3483
3484         * stdlib/tst-setcontext.c: Catch the case where the links gets
3485         messed up and we do not reach main again.
3486
3487         * po/ca.po: Update from translation team.
3488
3489 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3490
3491         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3492         * posix/regex.h (REG_ENOSYS): Likewise.
3493         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3494
3495 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3496
3497         * nscd/nscd.h (MAX_STACK_USE): Define.
3498         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3499         (gc): Initialize stack_used based on allocation in prune_cache.
3500         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3501         Clear array before use.
3502
3503         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3504         memory allocation failed.
3505         * nscd/hstcache.c (cache_addhst): Likewise.
3506         * nscd/grpcache.c (cache_addgr): Likewise.
3507         * nscd/servicescache.c (cache_addserv): Likewise.
3508         * nscd/pwdcache.c (cache_addpw): Likewise.
3509         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3510
3511 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3512
3513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3514         and creat system calls.
3515
3516         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3517
3518 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3519
3520         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3521         Add netiucv/iucv.h.
3522         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3523         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3524         protocol.
3525         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3526         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3527         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3528
3529 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3530
3531         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3532         strncat): Define as macros to avoid compile errors.
3533
3534         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3535         creat entries.
3536
3537 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3538
3539         [BZ #5382]
3540         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3541         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3542         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3543         overflow it.
3544         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3545
3546         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3547         Return zero in case the thread library is not NPTL.
3548
3549         [BZ #5375]
3550         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3551         initializing interface list.
3552
3553         [BZ #5378]
3554         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3555         use result of nss_getgrgid_r if nothing was found.  For other
3556         error return with a failure.
3557         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3558
3559         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3560         macro name.
3561
3562 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3563
3564         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3565         (get_scope): For IPv4 scope, use scopes table.
3566         (fini): Free scopes table if necessary.
3567         (free_scopelist): New function.
3568         (scopecmp): New function.
3569         (gaiconf_init): Also handle scopev4 entries.
3570         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3571         * posix/tst-rfc3484-2.c (do_test): Likewise.
3572         * posix/gai.conf: Document scopev4 defaults.
3573         * posix/Makefile (tests): Add tst-rfc3484-3.
3574         * posix/tst-rfc3484-3.c: New file.
3575
3576         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3577         Teredo tunnels.
3578         * posix/gai.conf: Update for current default tables.
3579
3580 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3581
3582         * po/tr.po: Update from translation team.
3583
3584 2007-11-18  Roland McGrath  <roland@frob.com>
3585
3586         * manual/arith.texi (Remainder Functions): Spelling fix.
3587         From Shaun Silk <genix@mysoul.com.au>.
3588
3589         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3590
3591 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3592
3593         * po/zh_CN.po: Update from translation team.
3594
3595         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3596         Add sys/signalfd.h and sys/eventfd.h.
3597
3598 2007-11-15  Bruno Haible  <bruno@clisp.org>
3599
3600         [BZ #5346]
3601         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3602         union.
3603         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3604         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3605         it needs only fixed stack space. Delay the initialization of
3606         msgid_len until it is needed.
3607
3608 2007-11-15  Andreas Jaeger  <aj@suse.de>
3609
3610         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3611         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3612
3613 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3614
3615         * po/ko.po: Update from translation team.
3616
3617 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3618
3619         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3620         significantly.  The device type is also part of the ifinfomsg data.
3621
3622         * po/sv.po: Update from translation team.
3623         * po/nl.po: Likewise.
3624
3625         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3626         to wake up in 24 hours.
3627
3628         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3629
3630 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3631
3632         * po/cs.po: Update from translation team.
3633         * po/pl.po: Likewise.
3634
3635         * include/ifaddrs.h: Remove in6ai_temporary.
3636         (struct in6addrinfo): Add index element.
3637         Declare __check_native.
3638         * inet/Makefile (aux): Add check_native.
3639         * sysdeps/unix/sysv/linux/check_native.c: New file.
3640         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3641         IFA_F_TEMPORARY.  Pass back ifa_index.
3642         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3643         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3644         call __check_native if necessary.
3645         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3646         to sort addresses.  Pass information about the results.
3647         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3648         of rfc3484_sort interface.
3649         * posix/tst-rfc3484-2.c: Likewise.
3650
3651         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3652         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3653         for _quicksort.
3654         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3655         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3656         on as third parameter to compare function and _quicksort.
3657         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3658         to the compare function.
3659         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3660         * Versions.def: Add GLIBC_2.8 for libc.
3661
3662         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3663         * posix/tst-rfc3484-2.c: Likewise.
3664
3665         * include/kernel-features.h: Moved to...
3666         * sysdeps/mach/hurd/kernel-features.h: ...here.
3667
3668 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3669
3670         * sysdeps/i386/i586/memcpy_chk.S: New file.
3671         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3672         * sysdeps/i386/i586/memset_chk.S: Likewise.
3673
3674 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3675
3676         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3677         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3678         list of interfaces.  Also store prefix length.
3679         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3680         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3681         prefix if source and destination address are in the same subnet.
3682         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3683         Always look for matching record in in6ai list.
3684         Correct source_addr_len value for IPv6->IPv4 converted records.
3685
3686 2007-11-11  Roland McGrath  <roland@frob.com>
3687
3688         * include/kernel-features.h: New file.
3689
3690 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3691
3692         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3693         complications for 64-bit platforms.
3694
3695         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3696         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3697         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3698         open64_2.
3699         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3700         entries.
3701         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3702         * sysdeps/wordsize-64/alphasort.c: New file.
3703         * sysdeps/wordsize-64/alphasort64.c: New file.
3704         * sysdeps/wordsize-64/fseeko.c: New file.
3705         * sysdeps/wordsize-64/fseeko64.c: New file.
3706         * sysdeps/wordsize-64/ftello.c: New file.
3707         * sysdeps/wordsize-64/ftello64.c: New file.
3708         * sysdeps/wordsize-64/ftw.c: New file.
3709         * sysdeps/wordsize-64/ftw64.c: New file.
3710         * sysdeps/wordsize-64/iofgetpos.c: New file.
3711         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3712         * sysdeps/wordsize-64/iofopen.c: New file.
3713         * sysdeps/wordsize-64/iofopen64.c: New file.
3714         * sysdeps/wordsize-64/iofsetpos.c: New file.
3715         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3716         * sysdeps/wordsize-64/lockf.c: New file.
3717         * sysdeps/wordsize-64/lockf64.c: New file.
3718         * sysdeps/wordsize-64/mkostemp.c: New file.
3719         * sysdeps/wordsize-64/mkostemp64.c: New file.
3720         * sysdeps/wordsize-64/mkstemp.c: New file.
3721         * sysdeps/wordsize-64/mkstemp64.c: New file.
3722         * sysdeps/wordsize-64/scandir.c: New file.
3723         * sysdeps/wordsize-64/scandir64.c: New file.
3724         * sysdeps/wordsize-64/tmpfile.c: New file.
3725         * sysdeps/wordsize-64/tmpfile64.c: New file.
3726         * sysdeps/wordsize-64/versionsort.c: New file.
3727         * sysdeps/wordsize-64/versionsort64.c: New file.
3728         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3729         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3730         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3731         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3732         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3733         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3734         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3735         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3736         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3737         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3738         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3739         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3740
3741         * crypt/sha256-crypt.c: Fix a comment.
3742         * crypt/sha512-crypt.c: Likewise.
3743
3744 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3745
3746         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3747
3748 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3749
3750         [BZ #5277]
3751         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3752         because output buffer is too small break, don't loop.
3753         * iconvdata/Makefile (tests): Add bug-iconv6.
3754         * iconvdata/bug-iconv6.c: New file.
3755
3756 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3757
3758         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3759         with size_t type.
3760         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3761         size_t.  Add casts where needed.
3762
3763         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3764         old headers, don't call avc_has_perm if we don't have the
3765         permission information.
3766
3767 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3768
3769         * elf/rtld.c (dl_main): Use the page size to find the map start.
3770
3771 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3772
3773         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3774         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3775
3776         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3777         when the lookup call failed.
3778
3779         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3780         Add prune_cond and wakeup_time.
3781         (CACHE_PRUNE_INTERNAL): Define.
3782         Update declarations of prune_cache and setup_thread.
3783         * nscd/connections.c (dbs): Update initializers.
3784         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3785         (nscd_init): Default number of threads is now 4.
3786         (invalidate_cache): Take lock before calling prune_cache.
3787         (handle_request): If SELinux forbids the request, say so.
3788         (readylist_cond): Use static initializer.
3789         (nscd_run_prune): New function.  Used only by pruning threads.
3790         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3791         here.
3792         (fd_ready): Update nscd_run reference.
3793         (start_threads): No need to initialize readylist_cond.
3794         Start pruning threads separately.
3795         * nscd/nscd_setup_thread.c: Change return value type to int and always
3796         return 0.
3797         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3798         to int and return nonzero value if we can use the TID address hack.
3799         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3800         the database is later than the new entry's timeout, update the
3801         wakeup time and wake the cleanup thread.
3802         (prune_cache): Return seconds the next entry in the database is still
3803         valid.  Remove locking for pruning here.
3804         * nscd/nscd.conf: Document default number of threads.
3805
3806 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3807
3808         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3809         stack is properly aligned for the target function.
3810         Correct unwind info.
3811
3812         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3813         when using auditing libraries.
3814
3815 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3816
3817         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3818         _nss_dns_getnetbyaddr2_r.
3819         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3820         extra parameter to getanswer_r.
3821         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3822         _nss_dns_getnetbyaddr2_r.
3823
3824         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3825         gethstbynm3_r.
3826         * nscd/gethstbynm2_r.c: Remove.
3827         * nscd/gethstbynm3_r.c: New file.
3828         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3829         __gethostbyaddr_r.
3830         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3831         __gethostbyaddr_r compatibility wrapper.
3832         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3833         determining timeout of entry.
3834         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3835         __gethostbyaddr2_r.
3836         (addhstbyX): Pass reference to variable for TTL to lookup and
3837         cache_addhst.
3838         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3839         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3840         and __nss_next2.  Remove __nss_services_lookup.
3841         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3842         Add compat wrapper.
3843         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3844         __nss_next2.
3845         * nss/getXXent_r.c: Likewise.
3846         * nss/getnssent_r.c: Likewise.
3847         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3848         does not exist in module, try the optional second name.
3849         (__nss_next2): New function.
3850         (__nss_next): Now wrapper around __nss_next2.
3851         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3852         Declare __nss_next2.
3853         Adjust definition of db_lookup_function type.
3854         * nss/service-lookup.c: Define NO_COMPAT.
3855         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3856         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3857         * inet/ether_ntoh.c: Likewise.
3858         * sunrpc/netname.c: Likewise.
3859         * sunrpc/publickey.c: Likewise.
3860         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3861         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3862         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3863         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3864         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3865
3866         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3867
3868         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3869
3870 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3871
3872         [BZ #5204]
3873         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3874         * crypt/sha512c-test.c: Likewise.
3875
3876         [BZ #5225]
3877         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3878         to keep track of end of %[ format string element.
3879         * stdio-common/Makefile (tests): Add bug20.
3880         * stdio-common/bug20.c: New file.
3881
3882         [BZ #5222]
3883         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3884         path elements in counting mode.
3885
3886 2007-10-27  Andreas Jaeger  <aj@suse.de>
3887
3888         [BZ #5040]
3889         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3890
3891         [BZ #3112]
3892         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3893         (__cleanup): Free shared library when exiting.
3894         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3895         (__cleanup): Free shared library when exiting.
3896
3897 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3898
3899         [BZ #2549]
3900         * math/libm-test.inc (check_float_internal): Support
3901         denormalized return.
3902
3903 2007-10-23  Andreas Jaeger  <aj@suse.de>
3904
3905         [BZ #5208]
3906         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3907         __LONG_LONG_PAIR to handle little endian byte order.
3908         Suggested by abhishekrai@google.com
3909
3910 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3913
3914 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3915
3916         * nscd/cache.c (prune_cache): Move test for modified file outside
3917         of locking.
3918
3919 2007-10-21  Andreas Jaeger  <aj@suse.de>
3920
3921         * manual/texinfo.tex: Update to latest version.
3922
3923         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3924
3925         * manual/arith.texi (Status bit operations): Fix formatting.
3926
3927         * manual/errno.texi (Error Messages): Fix formatting.
3928
3929         * manual/sysinfo.texi (System Parameters): Fix formatting.
3930
3931         * manual/libc.texinfo: Update VERSION and UPDATED.
3932
3933 2007-10-19  Roland McGrath  <roland@redhat.com>
3934
3935         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3936
3937 2007-10-06  David S. Miller  <davem@davemloft.net>
3938
3939         * configure.in: Add sparcv9v2 and sparc64v2.
3940         * scripts/config.sub: Likewise.
3941         * configure: Regenerate.
3942         * elf/elf.h (HWCAP_SPARC_N2): New.
3943         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3944         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3945         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3946         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3947         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3948         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3949         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3950
3951 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3952
3953         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3954         even if the poll result indicates there is data to read.
3955         Patch by Jeff Moyer <jmoyer@redhat.com>.
3956
3957 2007-10-18  Roland McGrath  <roland@redhat.com>
3958
3959         * elf/elf.h (NT_PPC_VMX): New macro.
3960
3961 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3962
3963         * version.h (VERSION): Set to 2.7.90.
3964
3965 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3966
3967         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3968         weak_alias.
3969
3970 2007-10-17  Roland McGrath  <roland@frob.com>
3971
3972         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3973         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3974
3975 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3976
3977         * version.h (VERSION): Bump to 2.7.
3978         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3979
3980         [BZ #5186]
3981         * time/tzset.c (__tz_convert): Don't force testing for a change of
3982         TZ if not called from localtime.  But then also see whether the
3983         file changed, in case __use_tzfile is set.
3984
3985         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3986         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3987         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3988         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3989         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3990         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3991         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3992         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3993
3994 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3995
3996         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3997         and admin selects to be able to replace the gai.conf file, lock
3998         data structures around the qsort call.
3999
4000 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4001
4002         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4003         new memset.
4004         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4005         too high for the improvements.  Implement bzero unconditionally for
4006         use in libc.
4007
4008 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4009             Jakub Jelinek  <jakub@redhat.com>
4010
4011         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4012         even when time_t is 32-bit.
4013         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4014         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4015         always set after the search.
4016
4017 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4018
4019         * time/tzfile.c (__tzfile_read): Help the compiler recognize
4020         unreachable code on 32-bit machines.
4021
4022 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4023
4024         [BZ #5184]
4025         * time/strftime_l.c: Include stdbool.h.
4026         (my_strftime): New wrapper, old function renamed to...
4027         (__strftime_internal): ... new function.  Add tzset_called
4028         argument, pass it down to recursive calls, don't call tzset ()
4029         if already true, set to true after call to tzset ().
4030
4031 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4032
4033         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4034         into account when copying TZ string.
4035
4036 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4037
4038         * time/tzfile.c (__tzfile_compute): For use_last case set i to
4039         num_transition rather than num_transitions - 1.
4040
4041 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4042
4043         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4044         PIC indirect jump.
4045
4046         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4047         a local label rather than HIDDEN_JUMPTARGET.
4048
4049 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4050
4051         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4052         (init_cacheinfo): Initialize it.
4053         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4054         Always define bzero.
4055         Remove non-glibc code.
4056         * sysdeps/x86_64/bzero.S: Make an empty file.
4057
4058 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4059
4060         * sysdeps/x86_64/cacheinfo.c
4061         (__x86_64_preferred_memory_instruction): New.
4062         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4063
4064         * sysdeps/x86_64/memset.S: Rewrite.
4065
4066 2007-10-15  Roland McGrath  <roland@redhat.com>
4067
4068         * po/libc.pot: Regenerated.
4069
4070 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4071
4072         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4073         pointers.
4074
4075         [BZ #3425]
4076         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4077         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4078         address record to T_A/T_AAAA requests.
4079
4080 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4081
4082         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4083
4084         * posix/glob.c: Add some branch prediction throughout.
4085
4086         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4087         read from nscd.
4088
4089         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4090         service_order.
4091         (rfc3484_sort): Make sure that even if qsort doesn't support
4092         stable sorting out sorting here is stable by comparing service_order.
4093         (getaddrinfo): Initialize service_order.
4094         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4095         service_order field to sorting structure.
4096         * posix/tst-rfc3484-2.c (do_test): Likewise.
4097
4098         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4099         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4100         __tzset_parse_tz and updating of daylight, timezone, tzname into
4101         update_vars.
4102         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4103         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4104         happens in __tz_compute.
4105         * time/tzfile.c (__tzfile_read): Also read TZ string.
4106         (find_transition): Fold into __tzfile_compute.
4107         (__tzfile_compute): For times beyond the last transition try to
4108         use the TZ string.
4109         * timezone/tst-timezone.c: Information in daylight and tzname does
4110         change for Asia/Tokyo timezone with more concrete information.
4111         Remove the test.
4112
4113         * include/stdio.h: Add libc_hidden_proto for ftello.
4114         * libio/ftello.c: Add libc_hidden_def.
4115
4116         [BZ #1140]
4117         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4118         on the specified time and not the last entries in the file.  Move
4119         code to determine tzname[] to...
4120         (find_transition): ...here.  Add ugly guess for times before the
4121         first transition.
4122
4123 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4124
4125         [BZ #3195]
4126         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4127         no entry.
4128         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4129         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4130         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4131         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4132
4133         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4134         read mechanism when there are no group members and avoid no-op
4135         read syscall in this case.
4136
4137         [BZ #3242]
4138         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4139         (__readall): If reading failed due to EAGAIN error wait a bit
4140         and possibly try again.
4141         (__readvall): Likewise.
4142
4143 2007-10-13  Bruno Haible  <bruno@clisp.org>
4144
4145         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4146         when we cannot recode the message.
4147
4148 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4149
4150         [BZ #4359]
4151         * libio/__freading.c (__freading): Don't return true for
4152         write-only streams.  For read/write streams, check whether we
4153         performed a read operation already.
4154         * libio/Makefile (tests): Add tst-ext2.
4155         * libio/tst-ext2.c: New file.
4156
4157 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4158
4159         * locale/programs/repertoire.c (repertoire_read): Always free
4160         memory for repertoire file name [Coverity CID 270].
4161
4162         * elf/cache.c (save_aux_cache): Free memory allocated for
4163         temporary file name [Coverity CID 267].
4164
4165 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4166
4167         * misc/Makefile (headers): Add bits/error.h.
4168
4169 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4170
4171         * posix/fnmatch_loop.c: Take rule index returned as part of
4172         findidx return value into account when accessing weights.
4173         * posix/regcomp.c: Likewise.
4174         * posix/regexec.c: Likewise.
4175
4176         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4177         (skip_to): Fix problems with parameter of elifdef/elifndef.
4178
4179 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4180
4181         * iconv/gconv_simple.c: Add some branch prediction.
4182
4183 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4184
4185         * locale/programs/ld-collate.c (collate_read): If ignore_content
4186         and nowtok is tok_define, eat any tok_eol tokens.
4187
4188 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4189
4190         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4191         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4192
4193         * inet/netinet/in.h: Don't include bits/socket.h.
4194         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4195         macro.
4196         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4197
4198 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4199
4200         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4201         and tok_elifndef.
4202         * locale/programs/locfile-kw.gperf: Likewise.
4203         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4204
4205 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4206
4207         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4208         (__find_specwc): Change into __extern_always_inline function.
4209         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4210         (__parse_one_specmb): Remove ps argument.
4211         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4212         Adjust __find_specmb and __parse_one_specmb callers.
4213         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4214         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4215         Removed.
4216         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4217         caller.
4218
4219 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4220
4221         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4222         with some Pentium Ds.
4223
4224 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4225
4226         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4227         __read not read.
4228         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4229         __write not write.
4230
4231 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4232
4233         [BZ #181]
4234         * locale/C-time.c: Set week_1stday data to 19971201.
4235         * locale/programs/ld-time.c (time_finish): Default for
4236         first_workday is Monday.
4237
4238         [BZ #2633]
4239         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4240
4241         [BZ #5103]
4242         * posix/glob.c (glob): Recognize patterns starting \/.
4243         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4244         (main): Add test for pattern starting \/.
4245
4246         * misc/error.h: Use __const instead of const.
4247         * misc/bits/error.h: Likewise.
4248
4249 2007-10-07  Andreas Jaeger  <aj@suse.de>
4250
4251         * include/bits/error.h: New file.
4252
4253         * misc/bits/error.h (error_at_line): Fix prototype.
4254
4255 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4256
4257         [BZ #3924]
4258         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4259         more little bugs in creating the stack frame when pltexit has to
4260         be called.
4261
4262         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4263         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4264
4265         [BZ #4407]
4266         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4267         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4268         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4269         * math/libm-test.inc: Add test for this case.
4270
4271         [BZ #5010]
4272         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4273         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4274         map service succeeded.
4275         (svc_is_mapped): New function.
4276         (svc_unregister): Use it before trying to unmap service.
4277
4278 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4279
4280         * timezone/zic.c: Update from tzcode2007h.
4281
4282         [BZ #5063]
4283         * timezone/africa: Update from tzdata2007h.
4284         * timezone/antarctica: Likewise.
4285         * timezone/asia: Likewise.
4286         * timezone/australasia: Likewise.
4287         * timezone/europe: Likewise.
4288         * timezone/leapseconds: Likewise.
4289         * timezone/northamerica: Likewise.
4290         * timezone/southamerica: Likewise.
4291         * timzeone/zone.tab: Likewise.
4292
4293         [BZ #5104]
4294         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4295
4296         [BZ #5113]
4297         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4298         avoid warning with -Wconversion.
4299         (__strndup): Likewise.
4300         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4301
4302         [BZ #5112]
4303         * nscd/connections.c (restart): Don't resync if database is
4304         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4305
4306         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4307         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4308
4309         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4310         evetnfd_read, eventfd_write.
4311         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4312         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4313         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4314         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4315         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4316         eventfd_write for GLIBC_2.7.
4317
4318         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4319         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4320         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4321         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4322
4323 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * stdlib/msort.c: Include stdint.h.
4326         (struct msort_param): New type.
4327         (msort_with_tmp): Use struct msort_param pointer for unchanging
4328         parameters.  Add optimized handling for several common sizes
4329         and indirect sorting mode.
4330         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4331         sorting.
4332         Suggested by Belazougui Djamel .
4333
4334         * stdlib/Makefile (tests): Add tst-qsort2.
4335         * stdlib/tst-qsort2.c: New test.
4336
4337 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4338
4339         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4340         for dup2 in case another thread races with the current one.  Retry
4341         in this case.
4342
4343         * misc/error.h: Remove support for use outside of libc.  We have to
4344         include <features.h> now.  Include <bits/error.h> if possible.
4345         * misc/bits/error.h: New file.
4346
4347 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4348
4349         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4350         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4351         __extern_always_inline functions unconditionally, drop macros.
4352
4353         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4354         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4355         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4356
4357         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4358         add __artificial__ attribute.
4359
4360 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4361
4362         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4363         backward to forward direction.
4364
4365         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4366
4367         [BZ #645]
4368         * locale/programs/ld-collate.c (collate_finish): Compare against last
4369         used section which is known to have rules defined.
4370         (collate_read): After order_start, correctly record order of sections
4371         and queue sections up.
4372
4373 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4374
4375         [BZ #5071]
4376         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4377         the same number of pages.
4378         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4379
4380         * locale/programs/ld-collate.c (collate_read): After initial copy
4381         statement, continue in state 0.
4382
4383         * include/stdio_ext.h (__fsetlocking): Define as macro.
4384
4385 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4386
4387         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4388         of section order.
4389
4390         * po/pt_BR.po: Fix typo.
4391
4392 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4393
4394         * iconvdata/Makefile (modules): Add ISO8859-9E.
4395         (distribute): Add iso8859-9e.c.
4396         (gen-8bit-gap-modules): Add iso8859-9e.
4397         * iconvdata/iso8859-9e.c: New file.
4398         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4399         * iconvdata/TESTS: Likewise.
4400         * iconvdata/tst-tables.sh: Likewise.
4401
4402         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4403
4404         * locale/iso-639.def: Add several new entries.
4405
4406 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4407
4408         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4409         void * pointers instead of struct link_map **.
4410         (_dl_scope_free): Change argument type to void *.
4411         * include/link.h (struct link_map): Change type of l_reldeps
4412         to struct link_map_reldeps, move l_reldepsact into that
4413         struct too.
4414         * elf/dl-deps.c: Include atomic.h.
4415         (_dl_map_object_deps): Only change l->l_initfini when it is
4416         fully populated, use _dl_scope_free for freeing it.  Optimize
4417         removal of libs from reldeps by using l_reserved flag, when
4418         some removal is needed, allocate a new list instead of
4419         reallocating and free the old with _dl_scope_free.  Adjust
4420         for l_reldeps and l_reldepsact changes.
4421         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4422         searching in l_initfini and l_reldeps without holding dl_load_lock.
4423         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4424         l_reldepsact changes.
4425         * elf/dl-close.c (_dl_close_worker): Likewise.
4426         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4427
4428 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4429
4430         * iconvdata/Makefile (modules): Add KOI8-RU.
4431         (distribute): Add koi8-ru.c.
4432         (gen-8bit-gap-modules): Add koi8-ru.
4433         * iconvdata/koi8-ru.c: New file.
4434         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4435         * iconvdata/TESTS: Likewise.
4436         * iconvdata/tst-tables.sh: Likewise.
4437
4438         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4439
4440 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4441
4442         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4443         with __warning__/__error__ attributes.
4444         (__warnattr): Define.
4445         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4446         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4447         __warnattr.
4448         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4449         of __*_chk if compile time detectable overflow is found.
4450         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4451         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4452         with __warnattr.
4453         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4454         instead of __*_chk if compile time detectable overflow is found.
4455         (__gets_alias): Rename to...
4456         (__gets_warn): ... this.  Add __warnattr.
4457         (gets): Call __gets_warn instead of __gets_alias.
4458         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4459         aliases with __warnattr.
4460         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4461         time detectable overflow is found.
4462         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4463         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4464         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4465         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4466         __getdomainname_chk_warn): New aliases with __warnattr.
4467         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4468         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4469         __*_chk_warn instead of __*_chk if compile time detectable overflow
4470         is found.
4471         (__getgroups_chk): Rename argument to __listlen from listlen.
4472         (__getwd_alias): Rename to...
4473         (__getwd_warn): ... this.  Add __warnattr.
4474         (getwd): Call __getwd_warn instead of __getwd_alias.
4475         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4476         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4477         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4478         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4479         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4480         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4481         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4482         compile time detectable overflow is found.
4483         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4484         to use __*_chk or not.
4485         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4486         in comparisons which function should be called and in __*_chk*
4487         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4488         detectable overflow is found.
4489         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4490         __*_chk argument.
4491         * debug/tst-chk1.c (do_test): Add a few more tests.
4492
4493 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4494
4495         [BZ #5058]
4496         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4497         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4498         (_nl_unload_domain): Finalize conversions_lock.
4499         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4500         handling table of known conversions.
4501
4502 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4503
4504         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4505         close_not_cancel_no_status instead of close.
4506
4507 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4508
4509         [BZ #5028]
4510         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4511         nrules != 0 for multibyte chars.
4512
4513 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4514
4515         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4516         Provide better error message in case the type is unknown.
4517
4518         [BZ #4963]
4519         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4520         * string/stratcliff.c: Make usable to test wide char functions.
4521         * wcsmbs/wcsatcliff.c: New file.
4522         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4523
4524         [BZ #4972]
4525         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4526         (distribute): Add mac-centraleurope.c.
4527         (gen-8bit-gap-modules): Add mac-centraleurope.
4528         * iconvdata/mac-centraleurope.c: New file.
4529         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4530         * iconvdata/TESTS: Likewise.
4531         * iconvdata/tst-tables.sh: Likewise.
4532
4533         [BZ #5043]
4534         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4535
4536 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4537
4538         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4539         from __x86_64_core_cache_size_half.
4540         (init_cacheinfo): Compute shared cache size for AMD processors with
4541         shared L3 correctly.
4542         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4543         name change.
4544         Patch in large parts by Evandro Menezes.
4545
4546 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4547
4548         * elf/dl-lookup.c (add_dependency): Handle failing memory
4549         allocation for dependency list.  Remove unnecessary check.
4550
4551         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4552         open/close when determining source addresses.
4553
4554         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4555         sha512-crypt, and sha512.
4556         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4557         (distribute): Add sha256.h and sha512.h.
4558         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4559         and call the appropriate code.
4560         * crypt/sha256-crypt.c: New file.
4561         * crypt/sha256.c: New file.
4562         * crypt/sha256.h: New file.
4563         * crypt/sha256c-test.c: New file.
4564         * crypt/sha256test.c: New file.
4565         * crypt/sha512-crypt.c: New file.
4566         * crypt/sha512.c: New file.
4567         * crypt/sha512.h: New file.
4568         * crypt/sha512c-test.c: New file.
4569         * crypt/sha512test.c: New file.
4570
4571 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4572
4573         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4574         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4575         __syslog_chk.
4576
4577 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4578
4579         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4580         %as in fscanf format strings.
4581
4582         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4583         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4584         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4585         Likewise.
4586         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4587         Likewise.
4588
4589         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4590         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4591         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4592         * elf/dl-sym.c (do_sym): Likewise.
4593         * include/link.h (struct link_map): Add l_serial field.
4594         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4595         * elf/dl-lookup.c (add_dependency): Add flags argument.
4596         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4597         flags, use THREAD_GSCOPE_RESET_FLAG before and
4598         THREAD_GSCOPE_SET_FLAG after
4599         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4600         Don't dereference map until it has been found on some list.
4601         If map->l_serial changed, return -1.
4602
4603 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4604
4605         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4606         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4607         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4608         libc_hidden_proto.
4609         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4610         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4611         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4612         add libc_hidden_proto.
4613         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4614         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4615         conformance requested.
4616         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4617         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4618         conformance requested.
4619         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4620         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4621         conformance requested.
4622         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4623         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4624         ISO C99 or POSIX conformance requested.
4625         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4626         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4627         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4628         and __isoc99_vsscanf@@GLIBC_2.7.
4629         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4630         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4631         (tests): Add scanf14.
4632         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4633         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4634         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4635         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4636         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4637         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4638         from using internal headers.
4639         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4640         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4641         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4642         and __isoc99_vswscanf@@GLIBC_2.7.
4643         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4644         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4645         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4646         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4647         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4648         * stdio-common/isoc99_scanf.c: New file.
4649         * stdio-common/isoc99_vsscanf.c: New file.
4650         * stdio-common/isoc99_vscanf.c: New file.
4651         * stdio-common/isoc99_vfscanf.c: New file.
4652         * stdio-common/isoc99_fscanf.c: New file.
4653         * stdio-common/isoc99_sscanf.c: New file.
4654         * wcsmbs/isoc99_fwscanf.c: New file.
4655         * wcsmbs/isoc99_vswscanf.c: New file.
4656         * wcsmbs/isoc99_swscanf.c: New file.
4657         * wcsmbs/isoc99_wscanf.c: New file.
4658         * wcsmbs/isoc99_vwscanf.c: New file.
4659         * wcsmbs/isoc99_vfwscanf.c: New file.
4660         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4661         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4662         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4663         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4664         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4665         * stdio-common/scanf14.c: New test.
4666         * stdio-common/scanf15.c: New test.
4667         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4668         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4669         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4670         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4671         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4672         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4673         __nldbl___isoc99_scanf@@GLIBC_2.7,
4674         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4675         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4676         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4677         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4678         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4679         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4680         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4681         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4682         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4683         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4684         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4685         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4686         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4687         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4688         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4689         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4690         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4691         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4692         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4693         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4694         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4695         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4696         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4697         functions.
4698         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4699         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4700         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4701         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4702         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4703         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4704         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4705         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4706         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4707         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4708         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4709         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4710
4711         * stdio-common/Makefile (tests): Add scanf13.
4712         (scanf13-ENV): New.
4713         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4714         m modifier followed by l.
4715         (STRING_ARG): Add width argument.
4716         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4717         <case L_('C')>: Handle %mlc and %mC.
4718         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4719         arguments.
4720         * stdio-common/scanf13.c: New test.
4721
4722         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4723         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4724
4725 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4726
4727         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4728         type and __THROW marker of splice, vmsplice, and tee.
4729         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4730         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4731         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4732         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4733         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4734         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4735         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4736         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4737         as cancellation points.
4738
4739 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4740
4741         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4742         parse more than three parts of the version number.
4743
4744 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4745
4746         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4747         modifier.  Patch by Jakub Jelinek.
4748
4749 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4750
4751         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4752         call_fallocate in misc subdir.
4753         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4754         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4755         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4756         instead of __fallocate64.
4757         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4758
4759 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4760
4761         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4762         * rt/Makefile (headers): Add bits/mqueue2.h.
4763         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4764         optimizing with GCC and __va_arg_pack_len is defined.
4765         * rt/bits/mqueue2.h: New file.
4766         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4767         (mq_open): New strong_alias.
4768         (__mq_open_2): New function.
4769         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4770         (mq_open): New strong_alias.
4771         (__mq_open_2): New function.
4772         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4773         * Versions.def (librt): Add GLIBC_2.7 version.
4774         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4775         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4776
4777         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4778         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4779         is defined rather than when not C++.
4780         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4781         __openat64_alias): New redirects.
4782         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4783         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4784         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4785         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4786         functions instead of function-like macros.
4787
4788 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4789
4790         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4791         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4792         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4793
4794 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4795
4796         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4797         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4798
4799 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4800
4801         * inet/tst-network.c: Increment ERRORS for failing tests.
4802
4803 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4804
4805         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4806         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4807         implement as __extern_always_inline function.
4808         (vsyslog): Define as __extern_always_inline function unconditionally.
4809         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4810         When __va_arg_pack is defined, implement as __extern_always_inline
4811         functions.
4812         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4813         __extern_always_inline functions unconditionally.
4814         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4815         bits/stdio2.h will be included.
4816         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4817         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4818         implement as __extern_always_inline functions.
4819         (vswprintf, vwprintf, vfwprintf): Define as
4820         __extern_always_inline functions unconditionally.
4821         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4822
4823 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4824
4825         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4826         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4827         attribute.
4828         * include/features.h (__USE_EXTERN_INLINES): Define only when
4829         __extern_inline is defined.
4830         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4831         is defined instead of when not __cplusplus.
4832         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4833         is defined instead of when not __cplusplus.
4834         * socket/sys/socket.h: Include bits/socket2.h when
4835         __extern_always_inline is defined instead of when not __cplusplus.
4836         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4837         is defined instead of when not __cplusplus.
4838         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4839         is defined instead of when not __cplusplus.
4840         * string/string.h: Include bits/string3.h when __extern_always_inline
4841         is defined instead of when not __cplusplus.
4842         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4843         is defined instead of when not __cplusplus.
4844         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4845         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4846         is not defined.
4847         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4848         defined __extern_always_inline instead of !defined __cplusplus.
4849         * libio/bits/stdio-ldbl.h: Likewise.
4850         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4851         * misc/bits/syslog.h (syslog): Don't define for C++.
4852         (vsyslog): Use __extern_always_inline function for C++ instead of
4853         a macro.
4854         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4855         whenever that macro is defined.
4856         (vprintf): Don't provide the inline for C++.
4857         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4858         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4859         define the macros for C++.
4860         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4861         __extern_always_inline functions for C++.
4862         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4863         stat64, lstat64, fstat64, fstatat64): Don't define if not
4864         __USE_EXTERN_INLINES.
4865         * wcsmbs/bits/wchar2.h: Fix #error message.
4866         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4867         (vswprintf, vwprintf, vfwprintf): Define using
4868         __extern_always_inline functions for C++.
4869         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4870         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4871         strncpy, strcat, strncat): Define as __extern_always_inline
4872         functions instead of macros for C++.
4873         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4874         defined __extern_inline.
4875         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4876         to __extern_inline whenever that macro is defined.
4877         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4878         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4879         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4880         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4881         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4882         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4883         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4884         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4885         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4886         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4887         prototypes.  Only provide __extern_inline routines if
4888         __USE_EXTERN_INLINES.
4889         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4890         tests.
4891         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4892         For now avoid some *printf tests in C++.  Skip all testing
4893         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4894         is not.
4895         * debug/tst-chk4.cc: New file.
4896         * debug/tst-chk5.cc: New file.
4897         * debug/tst-chk6.cc: New file.
4898         * debug/tst-lfschk4.cc: New file.
4899         * debug/tst-lfschk5.cc: New file.
4900         * debug/tst-lfschk6.cc: New file.
4901         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4902         prototypes in C++.
4903         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4904         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4905         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4906
4907 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4908
4909         * po/cs.po: Update from translation team.
4910
4911 2007-09-11  Roland McGrath  <roland@redhat.com>
4912
4913         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4914         compiling.
4915
4916 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4917
4918         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4919
4920 2007-09-05  Roland McGrath  <roland@redhat.com>
4921
4922         * manual/signal.texi (Signaling Another Process): Typo fix.
4923         From Karl Berry <karl@freefriends.org>.
4924
4925 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4926
4927         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4928         zero if not defined.
4929         (make_request): Recognize optimistic addresses and treat them like
4930         deprecated addresses.
4931         Reported by Neil Horman <nhorman@redhat.com>.
4932
4933 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4934
4935         * nscd/connections.c (send_ro_fd): Also transfer file size.
4936         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4937         file size don't call fstat.
4938
4939         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4940         ahead and map the file.  This should always be correct and we can
4941         catch problems later.
4942
4943 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4944
4945         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4946         prototypes.
4947         (__fread_alias, __fread_unlocked_alias): New aliases.
4948         (fread): New extern inline.
4949         (fread_unlocked): Likewise.  Undef macro before definition of
4950         the inline function.
4951         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4952         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4953         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4954         and __fread_unlocked_chk@@GLIBC_2.7.
4955         * debug/fread_chk.c: New file.
4956         * debug/fread_u_chk.c: New file.
4957         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4958
4959 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4960
4961         * sysdeps/unix/sysv/linux/syscalls.list
4962         (personality): Change caller to EXTRA.
4963
4964 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4965
4966         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4967         to keep gcc quiet.
4968         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4969
4970         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4971         NDEBUG is defined.
4972
4973         * Makerules: Use -p option with mkdir.
4974
4975         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4976         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4977         (_xdr_directory_obj): Likewise.
4978         (xdr_entry_obj): Likewise.
4979         (xdr_group_obj): Likewise.
4980         (xdr_link_obj): Likewise.
4981         (xdr_table_obj): Likewise.
4982         (_xdr_nis_result): Likewise.
4983         (_xdr_ns_request): Likewise.
4984         (_xdr_ib_request): Likewise.
4985         (_xdr_nis_taglist): Likewise.
4986         (xdr_cback_data): Likewise.
4987         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4988         (xdr_ypresp_maplist): Likewise.
4989
4990         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4991
4992         * posix/regex_internal.h: Prevent some declarations and definitions
4993         to be seen when used in tests.
4994
4995         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4996         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4997
4998         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4999
5000         * config.make.in (datarootdir): Add to shut up configure.
5001
5002         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5003         associativity for fully-associative caches.
5004
5005         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5006         requests.  Fill on more associativity values for L2.
5007         Patch mostly by Evandro Menezes.
5008
5009 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5010
5011         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5012         (_libc_vdso_platform_setup): Avoid using exported variable by using
5013         alias.
5014
5015         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5016
5017         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5018         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
5019         defined.
5020
5021 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
5022
5023         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5024         align stack for call if pltexit is to be used.
5025
5026         [BZ #3924]
5027         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5028         align for function call in case pltexit has to be called later.
5029
5030         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5031         implicit atomic operation when storing function pointer.
5032         (_dl_runtime_profile): Likewise.
5033
5034 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5035
5036         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5037         NIS_NOTFOUND.
5038
5039 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5040
5041         [BZ #4566]
5042         * string/strtok.c: Fix typo in comment.
5043
5044         [BZ #4582]
5045         * debug/segfault.c: Fix typos in comments.
5046
5047         [BZ #4588]
5048         * stdio-common/tempnam.c: Fix comment, it is not checked that
5049         TMPDIR points to a writable directory.
5050
5051         [BZ #4726]
5052         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5053         memory allocated for the name server address.
5054
5055         [BZ #4946]
5056         * nscd/connections.c (handle_request): Using sendfile always
5057         requires that mmap is used for the database.
5058         Patch by Petr Baudis <pasky@suse.cz>.
5059
5060         [BZ #4905]
5061         * nscd/hstcache.c (cache_addhst): When reloading an entry which
5062         suddenly has two or more addresses, ignore it and remove the old
5063         entry.
5064
5065         [BZ #4814]
5066         * resolv/res_hconf.c: Prepare for compiling outside libc.
5067         * nscd/res_hconf.c: New file.
5068         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
5069         the new file.
5070         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5071         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5072
5073         * nscd/hstcache.c (cache_addhst): Minimal optimization.
5074
5075         [BZ #4925]
5076         * debug/pcprofiledump.c: Turn on internationalization by calling
5077         setlocale.  Patch mostly by Benno Schulenberg.
5078
5079         [BZ #4936]
5080         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5081         the state.
5082         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5083         * iconvdata/bug-iconv5.c: New file.
5084
5085 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5086
5087         [BZ #4896]
5088         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5089         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5090         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5091         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5092         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5093         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5094         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5095         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5096
5097 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5098
5099         [BZ #4937]
5100         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5101         lookup loop.  Suggested by John Reiser.
5102
5103 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5104
5105         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5106
5107 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5108
5109         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5110         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5111         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5112         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5113         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5114         to...
5115         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5116
5117 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5118
5119         * po/nl.po: Update from translation team.
5120
5121 2007-08-16  Andreas Jaeger  <aj@suse.de>
5122
5123         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5124         Reported by Peter Festner <peter.festner@ewetel.net>.
5125
5126 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5127
5128         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5129
5130 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5131
5132         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5133         to check for undefined symbols.
5134
5135         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5136         If the syscall fails, set errno to the actual returned error number
5137         rather than EINVAL.
5138         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5139         arguments are incorrect, set errno to EINVAL, if the syscall
5140         fails, set errno to the actual returned error number.
5141
5142         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5143         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5144
5145         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5146         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5147         file.
5148         (ASI_PNF, ASI_BLK_P): Don't define.
5149         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5150         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5151         file.
5152         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5153         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5154         file.
5155
5156 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5157
5158         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5159         FE_UNDERFLOW on Niagara CPUs.
5160
5161         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5162         exceptions.
5163
5164 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5165
5166         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5167         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5168         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5169         flush should be used or not inside of the function.
5170         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5171
5172         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5173         __thread_start): Use HIDDEN_JUMPTARGET.
5174         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5175         __thread_start): Likewise.
5176         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5177
5178         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5179         Add libc_hidden_proto.
5180         (STRTOF): Add libc_hidden_proto.
5181         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5182         (strtold_l, wcstold_l): Use them as second argument for
5183         long_double_symbol.
5184
5185 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5186
5187         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5188
5189 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5190
5191         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5192
5193 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5194
5195         * po/bg.po: New file.  From the translation team.
5196
5197 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5198
5199         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5200         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5201         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5202         when each feature was introduced.
5203
5204         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5205         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5206         (CHECK_HASH): New macro.
5207         (PREPARE_VERSION): Use it.
5208
5209         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5210         prototype if not __ASSUME_PSELECT.
5211         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5212         prototype if not __ASSUME_PPOLL.
5213
5214         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5215
5216         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5217         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5218         is defined.
5219
5220 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5221
5222         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5223         (_libc_vdso_platform_setup): If vDSO is not available point
5224         __vdso_gettimeofday to the vsyscall.
5225         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5226         __vdso_gettimeofday instead of vsyscall.
5227
5228 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5229
5230         * nscd/servicescache.c: Include kernel-features.h.
5231         * nscd/gai.c: Likewise.
5232         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5233         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5234         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5235         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5236         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5237         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5238         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5239         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5240         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5241
5242 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5243
5244         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5245         and _dl_get_origin defines anymore.
5246
5247         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5248         Build fix for systems which might lack POSIX timer support.
5249
5250         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5251         (_libc_vdso_platform_setup): Mangle function pointers before storing
5252         them.
5253         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5254         Demangle vdso pointer before use.
5255         (INTERNAL_VSYSCALL): Likewise.
5256
5257         * elf/cache.c (primes): Mark as const.
5258         Noted by Roland McGrath.
5259
5260 2007-08-01  Andreas Jaeger  <aj@suse.de>
5261             Jakub Jelinek  <jakub@redhat.com>
5262
5263         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5264         (options): Add option.
5265         (parse_opt): Handle option.
5266         (manual_link): Adjust process_file caller.  Call implicit_soname.
5267         (search_dir): Formatting.  Use and populate auxiliary cache.
5268         (main): Load and save auxiliary cache.
5269         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5270         stat64 from fstat64 to caller.
5271         (implicit_soname): New function.
5272         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5273         leave *soname as NULL.
5274         * elf/cache.c: Include libgen.h.
5275         (print_entry, print_cache, compare, save_cache, add_to_cache):
5276         Formatting and cleanups.
5277         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5278         aux_cache_file): New structures.
5279         (AUX_CACHEMAGIC): Define.
5280         (primes): New array.
5281         (aux_hash_size, aux_hash): New variables.
5282         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5283         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5284         load_aux_cache, save_aux_cache): New functions.
5285         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5286         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5287         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5288         (process_file): Adjust prototype.
5289
5290 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5291
5292         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5293         with __need_size_t.
5294
5295 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5296
5297         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5298         r_found_version structure as second parameter.
5299         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5300         (_dl_vdso_vsym): Change type of second parameter accordingly.
5301         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5302         (_libc_vdso_platform_setup): Adjust.
5303         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5304         (_libc_vdso_platform_setup): Likewise.
5305
5306         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5307         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5308         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5309         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5310         * csu/libc-start.c: Pretty printing.
5311         Use VDSO_SETUP if defined.
5312         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5313         and let generic code call into _libc_vdso_platform_setup.
5314         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5315         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5316         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5317         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5318         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5319         for GLIBC_PRIVATE.
5320         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5321         (sysdep_rountines): Add dl-vdso.
5322
5323         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5324         of routines.
5325
5326         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5327         attribute_hidden to __vdso_gettimeofday prototype.
5328
5329 2007-08-12  Roland McGrath  <roland@redhat.com>
5330
5331         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5332         From: Karl Berry <karl@freefriends.org>.
5333
5334 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5335
5336         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5337         an atime update for the files we read.
5338
5339 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5340
5341         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5342
5343         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5344         instead of mkstemp.
5345
5346         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5347         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5348         * misc/mkostemp.c: New file.
5349         * misc/mkostemp64.c: New file.
5350         * stdlib/stdlib.h: Declare the new functions.
5351         * sysdeps/posix/tempname.c: Add new parameter which is added to
5352         the flags for open.  Remove __GT_BIGFILE handling.
5353         * stdio-common/tempname.c: Likewise.
5354         * include/stdio.h: Adjust __gen_tempname prototype.
5355         Renumber __GT_* constants.
5356         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5357         * misc/mkdtemp.c: Likewise.
5358         * misc/mkstemp.c: Likewise.
5359         * misc/mkstemp64.c: Likewise.
5360         * misc/mktemp.c: Likewise.
5361         * stdio-common/tempnam.c: Likewise.
5362         * stdio-common/tmpfile.c: Likewise.
5363         * stdio-common/tmpfile64.c: Likewise.
5364         * stdio-common/tmpnam.c: Likewise.
5365         * stdio-common/tmpnam_r.c: Likewise.
5366
5367 2007-08-10  Roland McGrath  <roland@frob.com>
5368
5369         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5370         New macros.
5371         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5372         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5373
5374 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5375
5376         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5377         possible.
5378         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5379         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5380         * nss/nss_files/files-have_o_cloexec.c: New file.
5381
5382         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5383         available.
5384
5385 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5386
5387         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5388         ___new_wcstold_l): New weak aliases.
5389         (strtold_l, wcstold_l): Use them as second argument for
5390         long_double_symbol.
5391
5392 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5393
5394         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5395         register in test for error.
5396
5397         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5398         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5399
5400         * po/sv.po: Update from translation team.
5401
5402 2007-08-06  Roland McGrath  <roland@redhat.com>
5403
5404         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5405         Remove __strto*_l inlines.
5406         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5407         * stdlib/strtod.c: Add libc_hidden_def.
5408         * stdlib/strtod_l.c: Likewise.
5409         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5410         for __new_strtold and __new_wcstold.
5411         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5412         __STRTOF, STRTOF.
5413         * stdlib/strtol.c: Add libc_hidden_def.
5414         * stdlib/strtol_l.c: Likewise.
5415         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5416         strtoq.
5417
5418         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5419
5420         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5421         * scripts/data/localplt-generic.data: ... here.
5422         * elf/Makefile (check-data): Get generic file if no other.
5423         ($(objpfx)check-localplt.out): Make target unconditional.
5424
5425         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5426         Use ElfW(Nhdr).
5427
5428 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5429
5430         * po/zh_CN.po: Updated translation from translation team.
5431
5432 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5433
5434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5435         Don't use CGOTSETUP and CGOTRESTORE macros.
5436
5437 2007-08-04  Roland McGrath  <roland@redhat.com>
5438
5439         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5440
5441 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5442
5443         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5444         __extension__ around the whole statement expression.
5445
5446 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5447
5448         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5449         elements during initialization.
5450
5451         * po/pl.po: Updated translation from translation team.
5452         * po/tr.po: Likewise.
5453         * po/nl.po: Likewise.
5454
5455 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5456
5457         * rt/aio.h: Add __nonnull attributes.
5458
5459 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5460
5461         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5462         * stdlib/Makefile (tests): Add tst-strtod5.
5463         (tst-strtod5-ENV): New.
5464         * stdlib/tst-strtod5.c: New file.
5465
5466         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5467         failed.
5468         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5469         on failure.
5470
5471         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5472         allocated.
5473
5474 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5475
5476         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5477         numbers.
5478
5479 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5480
5481         * io/Makefile (aux): Add have_o_cloexec.
5482         * include/fcntl.h: Declare __have_o_cloexec.
5483         * io/have_o_cloexec.c: New file.
5484         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5485         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5486         fcntl call if not necessary.
5487         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5488         of local variable.
5489
5490         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5491         Avoid memset, add explicit initialization.
5492         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5493         to the end and change into zero-sized array.
5494         Move lock member to fill a hole on 64-bit platforms.
5495
5496         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5497         inline functions.
5498         * include/stdlib.h: Add __strto*_internal prototypes here.
5499         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5500         inline functions.
5501         * include/wchar.h: Add __wcsto*_internal prototypes.
5502         * sysdeps/generic/inttypes.h: No need to protect the declaration
5503         of the __strto*_internal and __wcsto*_internal members here.
5504
5505         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5506
5507 2007-08-02  Roland McGrath  <roland@redhat.com>
5508
5509         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5510         $(inst_bindir)/getconf if possible.
5511
5512         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5513         (generated): Add it.
5514         ($(inst_libexecdir)/getconf): Use it.
5515
5516 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5517
5518         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5519         /proc is faster and sufficient.  /sys is still needed for
5520         __get_nprocs_conf.
5521
5522 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5523
5524         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5525         syscall as __fallocate64.
5526         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5527         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5528
5529 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5530
5531         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5532         value.
5533
5534         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5535         if off_t is different rank from size_t.
5536
5537         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5538         uw_frame_state_for): Avoid type punning warnings.
5539         * sysdeps/generic/unwind-dw2-fde-glibc.c
5540         (_Unwind_IteratePhdrCallback): Likewise.
5541         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5542         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5543         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5544         pointers.
5545
5546 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5547
5548         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5549         total processors using sysfs.
5550         (__get_nprocs): Use sysfs to determine which processors are online.
5551
5552 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5553
5554         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5555         syscall arguments count.
5556
5557         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5558
5559 2007-07-30  Roland McGrath  <roland@redhat.com>
5560
5561         * manual/libc.texinfo: Update copyrights, formatting magic, and
5562         @dircategory.  From Karl Berry <karl@freefriends.org>.
5563
5564 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5565
5566         [BZ #4860]
5567         * io/Makefile (headers): Add bits/fcntl2.h.
5568
5569         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5570         using gcc builtin.
5571         (__CPU_EQUAL_S): Likewise.
5572
5573         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5574         (tests): Add tst-cpuset.
5575         * posix/sched_cpualloc.c: New file.
5576         * posix/sched_cpufree.c: New file.
5577         * posix/tst-cpuset.c: New file.
5578         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5579         GLIBC_2.7.
5580         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5581         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5582         macros.  Define CPU_*_S macros.
5583
5584 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5585
5586         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5587         entry.
5588
5589         [BZ #4858]
5590         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5591         #.0g and value rounded to 1.0.
5592         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5593
5594 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5595
5596         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5597         for int_frac_digits and frac_digits.
5598
5599         * login/logout.c (logout): Avoid aliasing violation.
5600         * login/logwtmp.c (logwtmp): Likewise.
5601
5602         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5603
5604         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5605         to avoid warning.
5606         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5607         warning.
5608         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5609         warning.
5610         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5611         to avoid warnings.
5612
5613         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5614         void **.
5615         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5616
5617         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5618         char * to avoid warning.
5619         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5620
5621         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5622
5623         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5624         allocate_arrays): Cast second argument to charmap_find_symbol
5625         to char * to avoid warnings.
5626
5627         * locale/programs/repertoire.c (repertoire_new_char): Change
5628         from_nr, to_nr and cnt to unsigned long, adjust printf format
5629         string.
5630
5631         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5632         Cast second argument to new_element to char * to avoid warnings.
5633
5634         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5635
5636         * intl/gettextP.h (struct loaded_domain): Change plural to const
5637         struct expression *.
5638         * intl/plural-eval.c (plural_eval): Change first argument to
5639         const struct expression *.
5640         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5641         argument to const struct expression **.
5642         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5643         prototypes.
5644         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5645         in call to __gettext_free_exp.
5646
5647         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5648         unitialized wstring/wpattern var warnings.
5649
5650         * posix/runtests.c (struct a_test): Make data field const char *.
5651
5652         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5653         vars if not LDBL_MANT_DIG >= 106.
5654
5655         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5656
5657         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5658         __find_specmb to avoid warning.
5659
5660         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5661
5662         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5663         to avoid warnings.
5664
5665         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5666         initializer.
5667
5668         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5669         tv var when it will be actually used.
5670
5671         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5672         to avoid warnings.
5673
5674         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5675         char array resp. pointer.
5676         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5677         char array.
5678         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5679         to const unsigned char **.
5680         (ucs4_to_cns11643): Change second argument to unsigned char *.
5681         * iconvdata/euc-tw.c (BODY): Change endp type to
5682         const unsigned char *.
5683         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5684         to unsigned char *.
5685         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5686         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5687         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5688         types to unsigned char pointers/arrays instead of char.
5689         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5690         to unsigned char *.
5691         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5692         * iconvdata/jis0212.h: Include assert.h.
5693         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5694         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5695         of trying to handle that.
5696         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5697         shut up a warning.
5698         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5699         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5700         two dimensional const unsigned char arrays.
5701         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5702         Initialize endp to inptr to shut up a warning.
5703
5704 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5705
5706         [BZ #4772]
5707         * time/strptime_l.c (__strptime_internal): Silently ignore
5708         strftime modifiers and field width in recursive calls.
5709
5710         * include/time.h (enum ptime_locale_status): Remove.
5711         (__strptime_internal): Remove decided and era_cnt arguments,
5712         add statep argument.
5713         * time/strptime_l.c (__strptime_internal): Remove decided
5714         and era_cnt arguments, add statep argument.  Don't recompute
5715         any fields in recursive calls, only update caller's tm
5716         and state, if recursive call fails, don't change tm nor
5717         any state.
5718         (get_alt_number): Adjust.
5719         (recursive): Adjust caller.
5720         (strptime): Likewise.
5721         * time/strptime.c (strptime): Likewise.
5722
5723 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5724
5725         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5726         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5727         if from and to charsets are the same.
5728         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5729         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5730         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5731
5732 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5733
5734         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5735         Don't define wint_t when __need_mbstate_t unless it
5736         is necessary.
5737         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5738         in the typedef if possible.
5739         * wctype/wctype.h (wint_t): Define by including
5740         wchar.h with __need_wint_t instead of including stddef.h
5741         with __need_wint_t and as fallback definining it ourselves.
5742         * iconv/gconv.h (__need_wint_t): Define before including
5743         wchar.h.
5744         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5745         or _GLIBCPP_USE_WCHAR_T.
5746         (__need_wchar_t): Don't define
5747         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5748         (__need_wint_t): Don't define before including stddef.h,
5749         define before including wchar.h only if _LIBC or
5750         _GLIBCPP_USE_WCHAR_T.
5751         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5752         * sysdeps/mach/hurd/_G_config.h: Likewise.
5753         * sysdeps/generic/_G_config.h: Likewise.
5754         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5755         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5756         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5757         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5758
5759 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5760
5761         * sysdeps/posix/posix_fallocate64.c: Undefine
5762         __posix_fallocate64_l64 before alias handling.
5763         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5764         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5765         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5766         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5767
5768         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5769
5770 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5771
5772         * locale/programs/ld-collate.c (atwc): New variable.
5773         (add_to_tablewc): New toplevel function, moved from collate_output.
5774         (collate_output): Remove add_to_tablewc nested function.
5775
5776         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5777         (name_insert): New function.
5778         (write_output): Remove hash_table and hash_size vars and name_insert
5779         nested function.
5780
5781 2007-07-24  Roland McGrath  <roland@redhat.com>
5782
5783         * Makerules (install-others-programs-nosubdir): New target.
5784         (install-no-libc.a-nosubdir): Depend on it.
5785
5786         * iconv/Makefile (install-others-programs): Set this instead of
5787         install-others.
5788         * login/Makefile (install-others-programs): Likewise.
5789         * posix/Makefile (install-others-programs): Likewise.
5790
5791         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5792         dependencies.
5793
5794 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5795
5796         * io/Makefile (tests): Add tst-posix_fallocate.
5797         * io/tst-posix_fallocate.c: New file.
5798
5799         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5800         __ASSUME_FALLOCATE.
5801
5802 2007-07-22  Roland McGrath  <roland@frob.com>
5803
5804         * hurd/getdport.c: Add missing copyright year update.
5805
5806         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5807         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5808
5809 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5810
5811         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5812
5813         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5814         O_CLOEXEC is needed.
5815         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5816         Avoid additional fcntl to set O_CLOEXEC if not needed.
5817         * nis/nss_compat/compat-initgroups.c: Likewise.
5818         * nis/nss_compat/compat-pwd.c: Likewise.
5819         * nis/nss_compat/compat-spwd.c: Likewise.
5820
5821 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5822
5823         [BZ #3665]
5824         * manual/errno.texi: Change ECANCELED value to 119.
5825
5826         [BZ #4610]
5827         * mach/lock-intern.h: Include <sys/cdefs.h>.
5828
5829         [BZ #4178]
5830         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5831         reading A.
5832
5833         [BZ #4126]
5834         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5835         to __sigsuspend.
5836
5837         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5838
5839 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5840
5841         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5842         `__ASSEMBLER__'.
5843         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5844
5845 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5846
5847         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5848         descriptor received from nscd.
5849
5850         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5851
5852         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5853         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5854         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5855         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5856         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5857         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5858
5859 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5860
5861         [BZ #4816]
5862         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5863
5864         [BZ #4813]
5865         * login/forkpty.c (forkpty): Close master and slave fds on
5866         fork failure.  Patch by
5867         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5868
5869 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5870
5871         * include/features.h (__USE_ISOC95): New define.
5872         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5873         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5874         for -std=iso9899:199409.
5875         * CONFORMANCE: Remove comments about unsupported AMD1.
5876
5877 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5878
5879         * sysdeps/ia64/sched_cpucount.c: New file.
5880         * sysdeps/powerpc/sched_cpucount.c: New file.
5881
5882         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5883         __BEGIN_DECLS/__END_DECLS around the prototype.
5884         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5885         pointer to const cpu_set_t.
5886
5887         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5888         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5889         __need_size_t and include stddef.h.
5890         * sysvipc/sys/msg.h: Likewise.
5891         * posix/sched.h: Likewise.
5892         * hurd/hurd/signal.h (__need_size_t): Define.
5893
5894         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5895         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5896         no longer defines wint_t or wchar_t.
5897
5898         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5899         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5900         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5901         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5902         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5903         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5904         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5905         * debug/printf_chk.c (__printf_chk): Likewise.
5906         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5907         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5908
5909         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5910         Define.
5911
5912         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5913         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5914
5915 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5916
5917         [BZ #4792]
5918         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5919         * malloc/malloc.h (realloc): Likewise.
5920
5921         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5922         if one of proc_file_chain streams has that fileno.
5923         * stdio-common/Makefile (tests): Add tst-popen2.
5924         * stdio-common/tst-popen2.c: New test.
5925
5926 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5927
5928         * elf/ldconfig.c: Allow GPLv2 or any later version.
5929         * elf/readlib.c: Likewise.
5930         * elf/chroot_canon.c: Likewise.
5931         * elf/cache.c: Likewise.
5932         * nscd/mem.c: Likewise.
5933         * nscd/getpwuid_r.c: Likewise.
5934         * nscd/grpcache.c: Likewise.
5935         * nscd/aicache.c: Likewise.
5936         * nscd/getsrvbynm_r.c: Likewise.
5937         * nscd/nscd.c: Likewise.
5938         * nscd/servicescache.c: Likewise.
5939         * nscd/getsrvbypt_r.c: Likewise.
5940         * nscd/initgrcache.c: Likewise.
5941         * nscd/gethstbyad_r.c: Likewise.
5942         * nscd/gethstbynm2_r.c: Likewise.
5943         * nscd/getgrnam_r.c: Likewise.
5944         * nscd/nscd_setup_thread.c: Likewise.
5945         * nscd/getpwnam_r.c: Likewise.
5946         * nscd/gai.c: Likewise.
5947         * nscd/connections.c: Likewise.
5948         * nscd/dbg_log.c: Likewise.
5949         * nscd/cache.c: Likewise.
5950         * nscd/hstcache.c: Likewise.
5951         * nscd/nscd_conf.c: Likewise.
5952         * nscd/getgrgid_r.c: Likewise.
5953         * nscd/pwdcache.c: Likewise.
5954         * catgets/gencat.c: Likewise.
5955         * locale/programs/linereader.h: Likewise.
5956         * locale/programs/locarchive.c: Likewise.
5957         * locale/programs/ld-paper.c: Likewise.
5958         * locale/programs/locfile-kw.h: Likewise.
5959         * locale/programs/ld-address.c: Likewise.
5960         * locale/programs/xmalloc.c: Likewise.
5961         * locale/programs/ld-time.c: Likewise.
5962         * locale/programs/localedef.c: Likewise.
5963         * locale/programs/simple-hash.c: Likewise.
5964         * locale/programs/xstrdup.c: Likewise.
5965         * locale/programs/ld-numeric.c: Likewise.
5966         * locale/programs/locfile-kw.gperf: Likewise.
5967         * locale/programs/ld-collate.c: Likewise.
5968         * locale/programs/charmap-kw.gperf: Likewise.
5969         * locale/programs/charmap.h: Likewise.
5970         * locale/programs/charmap-kw.h: Likewise.
5971         * locale/programs/config.h: Likewise.
5972         * locale/programs/locfile.c: Likewise.
5973         * locale/programs/ld-ctype.c: Likewise.
5974         * locale/programs/charmap.c: Likewise.
5975         * locale/programs/ld-messages.c: Likewise.
5976         * locale/programs/repertoire.h: Likewise.
5977         * locale/programs/locale.c: Likewise.
5978         * locale/programs/ld-name.c: Likewise.
5979         * locale/programs/linereader.c: Likewise.
5980         * locale/programs/locfile.h: Likewise.
5981         * locale/programs/3level.h: Likewise.
5982         * locale/programs/ld-monetary.c: Likewise.
5983         * locale/programs/ld-measurement.c: Likewise.
5984         * locale/programs/charmap-dir.c: Likewise.
5985         * locale/programs/ld-identification.c: Likewise.
5986         * locale/programs/localedef.h: Likewise.
5987         * locale/programs/charmap-dir.h: Likewise.
5988         * locale/programs/repertoire.c: Likewise.
5989         * locale/programs/simple-hash.h: Likewise.
5990         * locale/programs/ld-telephone.c: Likewise.
5991         * locale/programs/locale-spec.c: Likewise.
5992         * locale/programs/locfile-token.h: Likewise.
5993         * posix/getconf.c: Likewise.
5994         * iconv/dummy-repertoire.c: Likewise.
5995         * iconv/iconv_charmap.c: Likewise.
5996         * iconv/iconvconfig.c: Likewise.
5997         * iconv/iconv_prog.c: Likewise.
5998         * malloc/memusagestat.c: Likewise.
5999         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6000
6001 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6002
6003         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6004         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6005         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6006         check for the first argument.
6007
6008 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6009
6010         [BZ #4775]
6011         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6012         (__tgmath_real_type): Fix if expr is const int or other const
6013         qualified integral type.
6014         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6015         expressions and handle const qualified arguments.
6016         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6017         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6018         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6019         statement expressions.
6020         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6021         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6022         (__TGMATH_UNARY_IMAG): Define.
6023         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6024         * math/Makefile (tests): Add test-tgmath2.
6025         (CFLAGS-test-tgmath2.c): Add.
6026         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6027         count_cfloat, count_cldouble): New variables.
6028         (NCCALLS): Define.
6029         (main): Check number of complex calls as well.
6030         (F(compile_test)): Add complex tests and tests with const qualified
6031         arguments.
6032         (y, z, ccount): Define.
6033         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6034         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6035         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6036         F(cproj)): New functions.
6037         * math/test-tgmath2.c: New test.
6038
6039 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
6040
6041         [BZ #4776]
6042         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6043         RPATH etc. as "/" rather than "", don't segfault on empty paths,
6044         instead output ".".
6045         * dlfcn/Makefile (distribute): Add glreflib3.c.
6046         (module-names): Add glreflib3.
6047         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6048         glreflib1.so.
6049         (LDFLAGS_glreflib3.so): New.
6050         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6051         glreflib1.so.
6052         * dlfcn/glreflib3.c: New file.
6053
6054         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6055         returned -1, return NULL.
6056         * intl/explodename.c (_nl_explode_name): Return -1 if
6057         _nl_normalize_codeset failed.
6058
6059 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
6060
6061         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6062         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
6063         and avoid branch misspredicts for > 31 bytes memset case.
6064         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6065         Remove toc ref to __cache_line_size.
6066
6067         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6068         to get ISA-V2.0 branch hints.
6069         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6070         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6071         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6072         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6073         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6074         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6075         Remove toc ref to __cache_line_size.
6076
6077         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6078         Include math_ldbl_opt.h.
6079
6080 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6081
6082         [BZ #4773]
6083         * time/strptime_l.c (__strptime_internal): Implement greedy
6084         matching of weekday and month names.
6085
6086 2007-07-09  Roland McGrath  <roland@redhat.com>
6087
6088         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6089         (ELF_NOTE_ABI): Use it.
6090         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6091
6092 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6093
6094         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6095         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6096
6097 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6098
6099         [BZ #4745]
6100         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6101         in loop to look for conversion specifier to avoid testing of
6102         wrong errno value.
6103         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6104         * stdio-common/bug18.c: New file.
6105         * stdio-common/bug18a.c: New file.
6106         * stdio-common/bug19.c: New file.
6107         * stdio-common/bug19a.c: New file.
6108
6109 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6110
6111         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6112         running awk script.
6113
6114 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6115
6116         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6117         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6118         Return NULL if mmap failed instead of asserting it does not.
6119         (calloc): Check for integer overflow.
6120
6121         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6122         than LONG_MAX / 10.
6123
6124 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6125
6126         [BZ #4702]
6127         * nis/nss-default.c: Include errno.h.
6128         (init): Preserve errno.
6129
6130 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6131
6132         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6133
6134 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6135
6136         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6137
6138 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6139
6140         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6141
6142 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6143
6144         * sysdeps/s390/dl-procinfo.c: New file.
6145         * sysdeps/s390/dl-procinfo.h: New file.
6146         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6147
6148 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6149
6150         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6151         in PT_NOTE segments with multiple notes.
6152         * elf/readelflib.c (process_elf_file): Likewise.
6153
6154 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6155
6156         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6157         ISO C compliant.
6158
6159 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6160
6161         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6162
6163 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6164
6165         * include/link.h: Don't include rtld-lowlevel.h.
6166         (struct link_map): Remove l_scope_lock.
6167         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6168         (_dl_scope_free_list): New field (variable) in _rtld_global.
6169         (DL_LOOKUP_SCOPE_LOCK): Remove.
6170         (_dl_scope_free): New prototype.
6171         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6172         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6173         (_dl_profile_fixup): Likewise.
6174         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6175         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6176         THREAD_GSCOPE_RESET_FLAG around it.
6177         * elf/dl-close.c (_dl_close_worker): Don't use
6178         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6179         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6180         scopes were queued or if l_scope_mem has been abandoned.
6181         * elf/dl-open.c (_dl_scope_free): New function.
6182         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6183         * elf/dl-support.c (_dl_scope_free_list): New variable.
6184         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6185         Remove DL_LOOKUP_SCOPE_LOCK handling.
6186         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6187         handling.
6188         * elf/dl-object.c (_dl_new_object): Don't use
6189         __rtld_mrlock_initialize.
6190
6191 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6192
6193         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6194         to fill in holes
6195         (rtld_global_ro): Likewise.
6196
6197 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6198
6199         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6200         Move PT_LOAD checking to...
6201         (_dl_addr_inside_object): ... here, new function.
6202         * elf/dl-sym.c (do_sym): If not l_contiguous,
6203         call _dl_addr_inside_object.
6204         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6205         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6206         * elf/dl-open.c (dl_open_worker): Likewise.
6207         (_dl_addr_inside_object): New function if IS_IN_rtld.
6208         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6209         holes are present or are PROT_NONE protected.
6210         * include/link.h (struct link_map): Add l_contiguous field.
6211         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6212
6213 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6214             Tomas Janousek  <tjanouse@redhat.com>
6215             Ulrich Drepper  <drepper@redhat.com>
6216
6217         [BZ #4647]
6218         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6219         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6220         socket.
6221         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6222         unused member a bitmap.
6223         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6224         servers are configured.
6225
6226 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6227
6228         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6229
6230 2007-06-17  Andreas Schwab  <schwab@suse.de>
6231
6232         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6233
6234 2007-06-16  Andreas Jaeger  <aj@suse.de>
6235
6236         [BZ #4125]
6237         * sysdeps/unix/sysv/linux/sys/ptrace.h
6238         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6239         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6240         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6241         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6242         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6243         Define.
6244         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6245         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6246         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6247         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6248
6249 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6250
6251         [BZ #4599]
6252         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6253         determining whether there are IPv4/IPv6 addresses, ignore loopback
6254         addresses.
6255
6256 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6257
6258         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6259         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6260         as the return type.  Change type of "r" variable to CMPtype.
6261         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6262         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6263         * soft-fp/gedf2.c (__gedf2): Likewise.
6264         * soft-fp/gesf2.c (__gesf2): Likewise.
6265         * soft-fp/getf2.c (__getf2): Likewise.
6266         * soft-fp/ledf2.c (__ledf2): Likewise.
6267         * soft-fp/lesf2.c (__lesf2): Likewise.
6268         * soft-fp/letf2.c (__letf2): Likewise.
6269         * soft-fp/unorddf2 (__unorddf2): Likewise.
6270         * soft-fp/unordsf2 (__unordsf2): Likewise.
6271         * soft-fp/unordtf2 (__unordtf2): Likewise.
6272
6273 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6274
6275         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6276         make sure gcc doesn't mess around with this.
6277
6278 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6279
6280         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6281
6282 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6283
6284         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6285         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6286         at most once per _dl_close_worker.
6287
6288 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6289
6290         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6291         __sched_cpucount as const.
6292         * posix/sched_cpucount.c: Adjust.
6293
6294         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6295         instruction for counting bits.
6296         * sysdeps/x86_64/sched_cpucount.c: New file.
6297
6298 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6299
6300         * configure.in: Avoid variable named BASH.
6301         * config.make.in: Likewise.
6302         Patch in part by Mike Frysinger.
6303
6304 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6305
6306         [BZ #4586]
6307         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6308         pseudo-zeros as zero.
6309         * sysdeps/x86_64/ldbl2mpn.c: New file.
6310         * sysdeps/ia64/ldbl2mpn.c: New file.
6311
6312 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6313
6314         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6315         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6316         Remove unreachable code at the end.
6317
6318 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6319
6320         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6321         ldbl-128ibm in comment.
6322         (fpclassifyl): Correct classification of denormals.
6323         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6324         return value for MIN denormal. Rewrite using long double math too
6325         correctly handle denormals and canonicalize the results.
6326
6327 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6328
6329         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6330         (__mpn_construct_long_double): Fix conversion where result ought
6331         to be smaller than __LDBL_MIN__, or the low double should be
6332         denormal.  Fix decision where to negate low double - honor round
6333         to even rules.
6334         * stdio-common/tst-sprintf2.c: Include string.h.
6335         (COMPARE_LDBL): Define.
6336         (TEST): Also test whether a string hexadecimal float representation
6337         can be parsed back to the number.
6338         (main): Add a couple of further tests.
6339
6340 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6341
6342         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6343         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6344         is non-zero, but smaller than 2 * __DBL_MIN__.
6345         * stdio-common/tst-sprintf2.c: New test.
6346         * stdio-common/Makefile (tests): Add tst-sprintf2.
6347
6348         * math/test-misc.c (main): Don't run last batch of tests with
6349         IBM long double format.
6350
6351 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6352
6353         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6354         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6355         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6356         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6357         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6358         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6359         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6360         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6361         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6362         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6365         New file.
6366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6367         New file.
6368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6369         New file.
6370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6371         New file.
6372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6373         New file.
6374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6376         New file.
6377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6378         New file.
6379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6380         New file.
6381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6382         New file.
6383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6384         New file.
6385
6386 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6387
6388         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6389         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6390         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6391         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6392         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6393         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6394         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6395         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6396
6397 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6398
6399         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6400         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6401         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6402         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6403         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6404         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6405         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6406         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6407
6408 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6409
6410         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6411         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6412         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6413         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6414
6415 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6416
6417         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6418         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6419
6420 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6421
6422         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6423         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6424         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6425         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6426
6427 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6428
6429         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6430         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6431
6432 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6433
6434         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6435         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6436
6437         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6438         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6439         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6440         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6441
6442 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6443
6444         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6445         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6446         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6447         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6448
6449 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6450
6451         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6452         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6453         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6454         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6455         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6456         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6457
6458 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6459
6460         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6461         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6462         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6463         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6464
6465 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6466
6467         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6468         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6469         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6470         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6471         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6472         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6473         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6474         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6475         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6476         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6477         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6478         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6479         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6480         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6481         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6482         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6483
6484 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6485
6486         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6487         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6488
6489 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6490
6491         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6492         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6493
6494 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6495
6496         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6497         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6498         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6499         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6500         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6501         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6502         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6503         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6504         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6505         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6506
6507 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6508
6509         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6510
6511 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6512
6513         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6514         branch miss-predicts. Ensure that cache line crossing does not impact
6515         dispatch grouping.
6516
6517 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6518
6519         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6520         "../../powerpc32/power4/memcopy.h".
6521         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6522         "../../powerpc32/power4/wordcopy.c".
6523
6524 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6525
6526         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6527         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6528         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6529         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6530         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6531         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6532
6533 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6534
6535         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6536
6537 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6538
6539         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6540         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6541         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6542         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6543         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6544         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6545         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6546         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6547
6548 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6549
6550         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6551
6552 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6553
6554         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6555         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6556         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6557         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6558         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6559         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6560         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6561
6562 2007-05-29  Roland McGrath  <roland@redhat.com>
6563
6564         * po/Makefile (po-sed-cmd): New variable.
6565         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6566
6567 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6568
6569         * crypt/md5-crypt.c: Fix comment.
6570
6571         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6572         of crashing.  When this is the case or if the reply is malformed,
6573         don't try to close the new file descriptor since it does not
6574         exist.
6575         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6576
6577 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6578
6579         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6580         if __NR_utimensat is not defined.
6581
6582 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6583
6584         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6585
6586 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6587
6588         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6589         (open): Fix comment typos.  Don't call __open_2 if flags
6590         is a compile time constant without O_CREAT.
6591         (__open64_2): Add nonnull attribute.
6592         (open64): Fix comment typos.  Don't call __open64_2 if flags
6593         is a compile time constant without O_CREAT.
6594         (__openat_2): Add nonnull attribute, fix nonnull attribute
6595         on redirect.
6596         (openat): Fix comment typos.  Don't call __openat_2 if flags
6597         is a compile time constant without O_CREAT.
6598         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6599         on redirect.
6600         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6601         is a compile time constant without O_CREAT.
6602
6603 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6604
6605         * Makerules (sysd-rules): Define PTW for ptw-* files.
6606         * Versions: Define GLIBC_2.7 for libc.
6607         * include/stdio.h: Declare __fortify_fail.
6608         * debug/fortify_fail.c: New file.
6609         * debug/Makefile (routines): Add fortify_fail.
6610         * debug/chk_fail.c: Use __fortify_fail.
6611         * debug/stack_chk_fail.c: Likewise.
6612         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6613         __openat64_2 for GLIBC_2.7.
6614         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6615         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6616         and fails if necessary.
6617         * io/open64.c: Likewise.
6618         * io/openat.c: Likewise.
6619         * io/openat64.c: Likewise.
6620         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6621         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6622         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6623         * io/bits/fcntl2.h: New file.
6624         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6625         __openat64_2.
6626         * include/bits/fcntl2.h: New file.
6627         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6628         Add open_2.
6629         * sysdeps/unix/sysv/linux/open_2.c: New file.
6630
6631 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6632
6633         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6634         as second parameter to handle_intel.
6635
6636         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6637         the entry.
6638
6639         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6640         handling to ...
6641         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6642         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6643         cacheinfo.
6644         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6645         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6646         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6647
6648         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6649
6650 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6651
6652         [BZ #4525]
6653         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6654         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6655         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6656
6657         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6658
6659         [BZ #4514]
6660         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6661         reinitialize workend at the start of each do_positional format spec
6662         loop, free workstart before do_positional loops.
6663         (printf_unknown): Fix size of work_buffer.
6664         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6665
6666         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6667         (public_sET_STATe): If ms->version < 3, put all chunks into
6668         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6669         chunks.
6670
6671         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6672         * malloc/hooks.c: Likewise.
6673         * malloc/arena.c: Likewise.
6674         * malloc/malloc.c (do_check_malloc_state): Don't assert
6675         n_mmaps is not greater than n_mmaps_max.  This removes the need
6676         for the previous change.
6677
6678         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6679         2007-05-07 commit.
6680
6681 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6682
6683         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6684         Define for kernel >= 2.6.22.
6685
6686 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6687
6688         * elf/dl-close.c (_dl_close_worker): When removing object from
6689         global scope, wait for all lookups to finish afterwards.
6690         * elf/dl-open.c (add_to_global): When global scope array must
6691         grow, allocate a new one and free old array only after all
6692         lookups finish.
6693         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6694         (_dl_lookup_symbol_x): Likewise.
6695         * elf/dl-support.c: Define _dl_wait_lookup_done.
6696         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6697         _dl_wait_lookup_done.
6698
6699         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6700         not overlapping with arena.
6701
6702         * malloc/mcheck.c (reallochook): If size==0, free the block.
6703
6704         * rt/tst-shm.c: Use fstat64 instead of fstat.
6705
6706         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6707         __NR_sync_file_range is not defined.
6708
6709 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6710
6711         Dummy files to prevent stub versions from being used.
6712         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6713         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6714         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6715         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6716
6717         * version.h (VERSION): Set to 2.6.90.
6718
6719 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6720
6721         * version.h (VERSION): Define to 2.6.
6722         * include/features.h (__GLIBC_MINOR__): Define to 6.
6723
6724         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6725
6726         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6727         sizes.
6728
6729 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6730
6731         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6732         number of mmaps.  n_mmaps_max is the target.
6733         * malloc/hooks.c: Likewise.
6734         * malloc/arena.c: Likewise.
6735
6736 2007-05-12  Andreas Jaeger  <aj@suse.de>
6737
6738         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6739         getpid.
6740
6741 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6742
6743         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6744         adding new variables.
6745
6746         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6747         optimize.  Completely extend global scope array before making the
6748         new entries visible.
6749
6750 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6751
6752         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6753         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6754         tst-getcpu.
6755
6756         * include/link.h: Move l_version and l_nversion members around to
6757         fill gaps.
6758
6759         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6760
6761         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6762         (__sched_setaffinity_new): If syscall was successful and
6763         RESET_VGETCPU_CACHE is defined, use it before returning.
6764         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6765
6766         * io/sys/stat.h: Make sure struct timespec is defined for
6767         __USE_ATFILE.
6768
6769         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6770         UTIME_OMIT.
6771         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6772         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6773         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6774         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6775         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6776         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6777         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6778         * io/sys/stat.h: Declare utimensat, futimens.
6779         * io/utimensat.c: New file.
6780         * io/futimens.c: New file.
6781         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6782         * sysdeps/unix/sysv/linux/futimens.c: New file.
6783         * io/Makefile (routines): Add utimensat, futimens.
6784         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6785         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6786         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6787         available.
6788
6789         * include/sys/cdefs.h: Redefine __nonnull so that test for
6790         incorrect parameters in the libc code itself are not omitted.
6791
6792 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6793
6794         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6795         exception in addition to inexact when asked to raise only FE_INEXACT.
6796
6797         [BZ #3427]
6798         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6799         in *envp.
6800
6801 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6802
6803         [BZ #4403]
6804         * string/strfry.c (strfry): Make result more random.
6805
6806 2007-05-07  Richard Henderson  <rth@redhat.com>
6807
6808         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6809         if __NO_LONG_DOUBLE_MATH.
6810         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6811         available in the compiler, add .arch directive to the assembly.
6812
6813 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6814
6815         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6816         compat_symbol to GLIBC_2_1.
6817         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6818         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6819         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6820         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6821         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6822         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6823         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6824         libc, not libm.
6825         (__isnanl): New compat_symbol.
6826
6827 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6828             Jakub Jelinek  <jakub@redhat.com>
6829
6830         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6831         (new_heap): Initialize mprotect_size.
6832         (grow_heap): When growing, only mprotect from mprotect_size till
6833         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6834         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6835
6836 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6837             Peter Bergner  <bergner@us.ibm.com>
6838
6839         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6840         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6841         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6842         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6843         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6844         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6845         Call __fe_mask_env() if all FP exceptions disabled.
6846         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6847         from old FPSCR to new fenv to propagate DFP rounding modes.
6848         Call __fe_mask_env() if FP exceptions previously enabled.
6849         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6850         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6851         transitioning from all exceptions disabled to any exception enabled
6852         or visa versa.
6853         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6854         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6855         when transitioning from all exceptions disabled to any exception
6856         enabled or visa versa.
6857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6863
6864 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6865
6866         [BZ #4465]
6867         * posix/unistd.h: Remove __THROW from fdatasync.
6868
6869 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6870
6871         [BZ #4465]
6872         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6873
6874 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6875
6876         * stdio-common/vfprintf.c (process_string_arg): Optimize
6877         ridiculous precision in wide char code printing multi-byte string.
6878         Reported by Jim Meyering <jim@meyering.net>.
6879
6880         [BZ #4131]
6881         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6882         boundaries to work around systems with overlapping binary loading.
6883         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6884
6885 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6886
6887         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6888         __mbsnrtowcs after last change.
6889
6890         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6891         (get_ident): Likewise.
6892
6893 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6894
6895         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6896         with setting the sticky bit.
6897         * math/test-misc.c (main): Add more truncation tests.
6898
6899 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6900
6901         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6902         double in the function declaration.
6903         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6904         double in the function declaration.
6905         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6906         float in the function declaration.
6907         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6908         float in the function declaration.
6909
6910         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6911         denormal operands.  Do not generate FP_EX_DENORM exception.
6912         (FP_UNPACK_RAW_EP): Ditto.
6913         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6914         undefined _FP_UNPACK_RAW_E.
6915         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6916         undefined _FP_UNPACK_RAW_EP.
6917         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6918         undefined _FP_PACK_RAW_E.
6919         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6920         undefined _FP_PACK_RAW_EP.
6921
6922         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6923         _FP_FRAC_COPY_2.
6924         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6925         _FP_FRAC_COPY_4.
6926
6927 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6928             Jakub Jelinek  <jakub@redhat.com>
6929
6930         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6931         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6932         this case.
6933         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6934
6935 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6936
6937         * math/test-misc.c (main): Add tests for rounding long double
6938         values close to smallest double denormalized value to double.
6939
6940 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6941
6942         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6943         condition for truncating to 0.  Set sticky bit for such
6944         truncation.
6945
6946 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6947
6948         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6949         fixed length array for ignore.
6950
6951 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6952
6953         [BZ #4438]
6954         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6955         stack for large precisions.
6956         * stdio-common/test-vfprintf.c (main): Add test for large
6957         precision.
6958
6959 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6960
6961         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6962         for exponent 0.
6963         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6964
6965         [BZ #4439]
6966         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6967         account in the size check.
6968         * resolv/tst-inet_ntop.c: New test.
6969         * resolv/Makefile (tests): Add tst-inet_ntop.
6970
6971 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6972             Jakub Jelinek  <jakub@redhat.com>
6973
6974         [BZ #4349]
6975         * malloc/malloc.c: Keep separate list for first blocks on the bin
6976         lists with a given size.  This helps skipping over list elements
6977         we know won't fit in two places.
6978         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6979
6980 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6981
6982         [BZ #4102]
6983         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6984         label to Teredo tunnel addresses 2001://32.
6985
6986 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6987
6988         * locale/programs/ld-collate.c (collate_read): Allow order_start
6989         after copy.
6990
6991         * locale/programs/ld-collate.c (collate_read): Fix printing of
6992         error message.
6993
6994         [BZ #3213]
6995         * locale/C-translit.h.in: Add entry for U2044.
6996
6997         [BZ #4342]
6998         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6999         hexa-decimal floats without exponent.
7000         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7001
7002 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7003
7004         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7005         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7006         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7007         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7008         GLIBC_2.6.
7009         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7010         Add sched_getcpu.
7011
7012 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7013
7014         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7015         of 0 after the out_fail label.
7016
7017 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7018
7019         [BZ #4406]
7020         * iconv/gconv_charset.h (strip): Allow ':'.
7021         * iconv/iconv_open.c (iconv_open): Adjust comment.
7022
7023 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7024
7025         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7026         version.
7027
7028 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7029
7030         [BZ #4381]
7031         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7032         alignment of buffer and tmp_buffer.
7033         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7034         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7035         alignment of buffer.
7036         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
7037         bigger than INT_MAX.
7038         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
7039         h_errnop arguments.  Fail if buflen is too small.
7040         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7041
7042 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7043
7044         [BZ #4405]
7045         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7046         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
7047
7048 2007-04-22  Roland McGrath  <roland@redhat.com>
7049
7050         * elf/elf.h (NT_PRXFPREG): New macro.
7051
7052 2007-04-19  Andreas Jaeger  <aj@suse.de>
7053
7054         [BZ #3905]
7055         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7056         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7057         Added.
7058
7059 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
7060
7061         * include/sys/mman.h: Mark madvise hidden.
7062         * misc/madvise.c: Add libc_hidden_def.
7063
7064 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
7065
7066         * nis/nis_domain_of.c (__nis_domain_of): New function.
7067         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7068         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7069         * nis/nis_call.c (rec_dirsearch): Likewise.
7070         (first_shoot): Likewise.  Remove search_parent_first argument.
7071         (struct nis_server_cache): Rename search_parent_first field
7072         to search_parent.
7073         (nis_server_cache_search, nis_server_cache_add): Rename
7074         search_parent_first argument to search_parent.
7075         (__nisfind_server): Likewise.  If search_parent, call
7076         __nis_domain_of.
7077
7078 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7079
7080         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7081
7082 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7083
7084         [BZ #4368]
7085         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7086
7087 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7088
7089         [BZ #4364]
7090         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7091
7092 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7093
7094         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7095         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7096         current number of locales in SUPPORTED.
7097         (create_archive): Initialize serial.
7098         (enlarge_archive): Preserve aliases rather than duplicating
7099         their locrecs.
7100
7101 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7102
7103         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7104         after _IO_un_link, not before it.
7105
7106         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7107         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7108         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7109
7110 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7111
7112         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7113         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7114         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7115         Remove __THROW.
7116         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7117         _IO_file_xsgetn_maybe_mmap): Likewise.
7118         * libio/oldfileops.c (old_do_write): Likewise.
7119         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7120         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7121         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7122         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7123         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7124         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7125         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7126         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7127         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7128         _IO_file_underflow, _IO_file_underflow_mmap,
7129         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7130         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7131         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7132         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7133         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7134         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7135         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7136         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7137         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7138         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7139         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7140         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7141         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7142         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7143         _IO_adjust_column_internal, _IO_default_uflow_internal,
7144         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7145         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7146         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7147         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7148         _IO_file_close_it_internal, _IO_file_underflow_internal,
7149         _IO_file_overflow_internal, _IO_file_attach_internal,
7150         _IO_file_fopen_internal, _IO_file_sync_internal,
7151         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7152         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7153         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7154         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7155         _IO_seekpos_unlocked): Likewise.
7156         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7157         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7158
7159 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7160
7161         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7162         argument in xmalloc size computation.
7163
7164 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7165
7166         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7167         math_opt_barrier and math_force_eval macros.
7168
7169 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7170
7171         [BZ #3306]
7172         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7173         * sysdeps/i386/fpu/math_private.h: New file.
7174         * sysdeps/x86_64/fpu/math_private.h: New file.
7175         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7176         math_force_eval macros.  Use "+m" constraint on asm rather than
7177         "=m" and "m".
7178         * math/s_nextafter.c (__nextafter): Likewise.
7179         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7180         Likewise.
7181         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7182         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7183         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7184         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7185         math_opt_barrier and math_force_eval macros.
7186         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7187         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7188         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7189         (__nexttoward): Use math_opt_barrier and
7190         math_force_eval macros.  Use "+m" constraint on asm rather than
7191         "=m" and "m".  Only use asm to force double result if
7192         FLT_EVAL_METHOD is 2.
7193         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7194         (__nexttowardf): Use math_opt_barrier and
7195         math_force_eval macros.  Use "+m" constraint on asm rather than
7196         "=m" and "m".  Only use asm to force double result if
7197         FLT_EVAL_METHOD is not 0.
7198         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7199         (__nexttowardf): Use math_opt_barrier and
7200         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7201         x to float using asm.
7202         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7203         (__nldbl_nexttowardf): Use math_opt_barrier and
7204         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7205         x to float using asm.
7206         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7207         (__nexttowardf): Use math_opt_barrier and math_force_eval
7208         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7209         * math/bug-nextafter.c (zero, inf): New variables.
7210         (main): Add new tests.
7211         * math/bug-nexttoward.c (zero, inf): New variables.
7212         (main): Add new tests.
7213
7214 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7215
7216         [BZ #3427]
7217         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7218         exceptions both in SW and MXCSR.
7219         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7220         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7221         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7222         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7223         in MXCSR if SSE is available.
7224         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7225         and ldsodefs.h.
7226         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7227         Fix comment typo.
7228         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7229         Return 0 rather than 1.
7230         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7231         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7232         * math/test-fenv.c (feholdexcept_tests): New function.
7233         (main): Call it.
7234
7235 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7236
7237         [BZ #3427]
7238         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7239         in SW.
7240
7241 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7242
7243         [BZ #4344]
7244         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7245         Reported by David Anderson <davea42@earthlink.net>.
7246
7247 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7248
7249         * posix/sys/wait.h: Remove unnecessary forward declaration.
7250
7251 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7252
7253         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7254         with obj->do_servers after first_shoot.
7255
7256 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7257
7258         * posix/Makefile (routines): Add sched_cpucount.
7259         (tests): Add tst-cpucount.
7260         * posix/sched_cpucount.c: New file.
7261         * posix/tst-cpucount.c: New file.
7262         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7263         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7264         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7265         * posix/sched.h: Define CPU_COUNT.
7266
7267 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7268
7269         * posix/fnmatch.c (STRUCT): Define.
7270         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7271         * posix/fnmatch_loop.c (struct STRUCT): New type.
7272         (FCT): Add ends argument.  If ends != NULL and normal * is
7273         seen in the pattern, store current pattern and string pointers
7274         and return.  Adjust recursive calls.
7275         (EXT): Adjust FCT callers.
7276         (STRUCT): Undef at the end of the file.
7277         * posix/Makefile (tests): Add tst-fnmatch2.
7278         * posix/tst-fnmatch2.c: New test.
7279
7280 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7281
7282         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7283         and 1 on failure.
7284
7285         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7286         Change last argument to unsigned int.
7287
7288 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7289
7290         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7291
7292 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7293
7294         * config.h.in (HAVE_LIBCAP): Add.
7295         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7296         sys/capabilities.h.
7297         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7298         free_caps.  Cast away const from 4th cap_set_flag argument.
7299
7300 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7301
7302         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7303         GLIBC_2.6.
7304         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7305         Add sync_file_range.
7306         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7307
7308 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7309
7310         * sysdeps/powerpc/bits/atomic.h
7311         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7312         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7313         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7314         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7315         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7316         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7317         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7318         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7319         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7320         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7321         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7322         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7323         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7324         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7325         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7326         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7327         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7328         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7329         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7330         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7331
7332 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7333
7334         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7335         (__cache_line_size): Define the variable here.  Add
7336         attribute_hidden, remove weak_extern.
7337         (__libc_start_main): Set __cache_line_size
7338         unconditionally.
7339         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7340         (__cache_line_size): Define the variable here.  Add
7341         attribute_hidden, remove weak_extern.
7342         (DL_PLATFORM_AUXV): Set __cache_line_size
7343         unconditionally.
7344         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7345         weak_extern, add attribute_hidden.
7346         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7347         defined in ld.so.
7348         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7349         definition.
7350         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7351
7352 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7353
7354         [BZ #4276]
7355         * timezone/africa: Update from tzdata2007d.
7356         * timezone/asia: Likewise.
7357         * timezone/australasia: Likewise.
7358         * timezone/backward: Likewise.
7359         * timezone/europe: Likewise.
7360         * timezone/iso3166.tab: Likewise.
7361         * timezone/leapseconds: Likewise.
7362         * timezone/northamerica: Likewise.
7363         * timezone/southamerica: Likewise.
7364         * timezone/zone.tab: Likewise.
7365
7366         * timezone/private.h: Update from tzcode2007d.
7367         * timezone/zdump.c: Likewise.
7368         * timezone/zic.c: Likewise.
7369
7370 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7371
7372         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7373         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7374         variables.
7375         (nis_server_cache_search, nis_server_cache_add): New functions.
7376         (__nisfind_server): Use them.  Add dbp and flags argument, if
7377         call __nisbind_create.
7378         (__nisbind_create): Add server_used and current_ep arguments,
7379         only call __nis_findfastest if server_used is ~0.
7380         (__do_niscall2, __prepare_niscall): Adjust callers.
7381         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7382         ckey_cache_euid, ckey_cache_lock): New variables.
7383         (get_ckey): New function.
7384         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7385         __pmap_getnisport.  Save __pmap_getnisport result in
7386         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7387         key.
7388         * nis/nis_lookup.c (nis_lookup): Likewise.
7389         * nis/nis_table.c (nis_list): Likewise.
7390         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7391         prototypes.
7392
7393         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7394         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7395         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7396         _nss_nisplus_getservbyport_r): Likewise.
7397         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7398         _nss_nisplus_getnetbyaddr_r): Likewise.
7399         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7400         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7401         _nss_nisplus_getntohost_r): Likewise.
7402         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7403         _nss_nisplus_getrpcbynumber_r): Likewise.
7404
7405 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7406
7407         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7408         * configure: Rebuilt.
7409
7410         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7411         bit-fields.
7412         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7413
7414 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7415
7416         [BZ #2831]
7417         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7418         bit-fields.
7419
7420 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7421
7422         * nscd/gai.c: Include alloca.h.
7423         (__libc_use_alloca): Define.
7424
7425 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7426
7427         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7428         smaller scopes.
7429         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7430         (DL_DST_REQUIRED): Adjust user.
7431
7432         * include/dlfcn.h (struct link_map): New forward decl.
7433
7434         * inet/getnameinfo.c: Include stddef.h.
7435         (getnameinfo): Use offsetof.
7436
7437         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7438
7439         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7440
7441         * string/strerror_l.c: Include stdlib.h.
7442
7443         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7444         * config.make.in (gnu89-inline-CFLAGS): New variable.
7445         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7446         -std=gnu99.
7447         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7448         * argp/argp.h: Use it.
7449         * bits/mathinline.h: Likewise.
7450         * bits/sigset.h: Likewise.
7451         * bits/string.h: Likewise.
7452         * ctype/ctype.h: Likewise.
7453         * hurd/hurd.h: Likewise.
7454         * hurd/hurd/fd.h: Likewise.
7455         * hurd/hurd/port.h: Likewise.
7456         * hurd/hurd/signal.h: Likewise.
7457         * hurd/hurd/threadvar.h: Likewise.
7458         * hurd/hurd/userlink.h: Likewise.
7459         * io/sys/stat.h: Likewise.
7460         * libio/bits/stdio.h: Likewise.
7461         * libio/bits/stdio2.h: Likewise.
7462         * mach/lock-intern.h: Likewise.
7463         * mach/mach/mig_support.h: Likewise.
7464         * math/bits/cmathcalls.h: Likewise.
7465         * posix/bits/unistd.h: Likewise.
7466         * socket/bits/socket2.h: Likewise.
7467         * stdlib/bits/stdlib.h: Likewise.
7468         * stdlib/stdlib.h: Likewise.
7469         * string/argz.h: Likewise.
7470         * string/bits/string2.h: Likewise.
7471         * string/bits/string3.h: Likewise.
7472         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7473         * sysdeps/generic/inttypes.h: Likewise.
7474         * sysdeps/generic/machine-lock.h: Likewise.
7475         * sysdeps/generic/machine-sp.h: Likewise.
7476         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7477         * sysdeps/i386/i486/bits/string.h: Likewise.
7478         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7479         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7480         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7481         * sysdeps/mach/i386/machine-lock.h: Likewise.
7482         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7483         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7484         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7485         * sysdeps/s390/bits/string.h: Likewise.
7486         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7487         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7488         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7489         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7490         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7491         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7492         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7493         * wcsmbs/bits/wchar2.h: Likewise.
7494         * wcsmbs/wchar.h: Likewise.
7495         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7496         __extern_inline definition.
7497
7498 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7499
7500         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7501         NULL.
7502
7503         [BZ #3919]
7504         * math/libm-test.inc (log_test): Test -Inf and NaN.
7505         (log10_test, log1p_test, log2_test): Test -Inf.
7506         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7507         FE_INVALID when argument is qNaN.
7508         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7509         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7510         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7511         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7512         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7513         testb $4, %ah and jump if non-zero.
7514         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7515         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7516
7517         [BZ #4101]
7518         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7519         ancestors with the same depths.
7520         Patch by Niels Moeller <nisse@lysator.liu.se>.
7521         (filter_doc): Don't crash if argp is NULL.
7522         * argp/Makefile (tests): Add tst-argp2.
7523         * argp/tst-argp2.c: New test.
7524
7525         [BZ #4130]
7526         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7527         open_not_cancel_2.
7528         (updwtmp_file): Likewise.
7529
7530         [BZ #4181]
7531         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7532         (inet6_opt_append): Don't check extlen is big enough if extbuf
7533         is NULL.
7534         (inet6_opt_finish): Likewise.
7535         * inet/Makefile (tests): Add test-inet6_opt.
7536         * inet/test-inet6_opt.c: New test.
7537
7538         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7539         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7540         NLMSG_ERR.  Instead use a page sized buffer.
7541         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7542         buffer.
7543
7544 2007-03-14  Richard Henderson  <rth@redhat.com>
7545
7546         * sysdeps/alpha/fpu/s_llround.c: New file.
7547         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7548         * sysdeps/alpha/fpu/s_lround.c: New file.
7549         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7550         * sysdeps/alpha/fpu/s_round.c: New file.
7551         * sysdeps/alpha/fpu/s_roundf.c: New file.
7552         * sysdeps/alpha/fpu/s_trunc.c: New file.
7553         * sysdeps/alpha/fpu/s_truncf.c: New file.
7554
7555         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7556         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7557         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7558         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7559         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7560         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7561
7562         * sysdeps/alpha/fpu/s_fmax.S: New file.
7563         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7564         * sysdeps/alpha/fpu/s_fmin.S: New file.
7565         * sysdeps/alpha/fpu/s_fminf.S: New file.
7566         * sysdeps/alpha/fpu/s_isnan.c: New file.
7567         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7568         * sysdeps/alpha/fpu/s_llrint.c: New file.
7569         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7570         * sysdeps/alpha/fpu/s_lrint.c: New file.
7571         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7572         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7573         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7574
7575         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7576         (__fdimf, fdimf, __fdim, fdim): Remove.
7577         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7578         (__isnanf, __isnan, __isnanl): New.
7579
7580 2007-03-13  Richard Henderson  <rth@redhat.com>
7581
7582         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7583
7584 2007-03-13  Richard Henderson  <rth@redhat.com>
7585
7586         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7587         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7588         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7589         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7590         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7591         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7592
7593 2007-03-13  Richard Henderson  <rth@redhat.com>
7594
7595         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7596         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7597         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7598         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7599         Move to dl-auxv.h; initialize instead of extern weak.
7600         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7601         weak symbol.
7602         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7603         Extern instead of initialized.
7604
7605 2007-03-13  Richard Henderson  <rth@redhat.com>
7606
7607         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7608         __sigsuspend_nocancel.
7609
7610 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7611
7612         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7613         172.16/12 address range.
7614
7615 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7616
7617         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7618         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7619         message.
7620
7621 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7622
7623         [BZ #4069]
7624         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7625         earlier.
7626         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7627
7628         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7629         for x qNaN and y either +-inf or non-integer value.
7630         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7631         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7632         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7633
7634 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7635
7636         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7637         from sysdep_headers.
7638
7639 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7640
7641         * time/tzfile.c (find_transition): Instead of a linear search try to
7642         guess the transition index, use a linear search if the result is at
7643         most 10 transitions away from the guess or binary search otherwise.
7644
7645 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7646
7647         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7648         memory reallocation.
7649
7650 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7651
7652         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7653         and fix some typos.
7654         Optimize use of TOLOWER.
7655
7656         [BZ #3325]
7657         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7658         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7659         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7660
7661         [BZ #3458]
7662         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7663         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7664
7665         [BZ #4076]
7666         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7667         (open_dir_stream): Likewise.
7668         * io/Makefile (tests): Add bug-ftw5.
7669         * io/bug-ftw5.c: New file.
7670
7671         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7672         * nscd/servicescache.c (cache_addserv): Likewise.
7673
7674         * nscd/grpcache.c (cache_addgr): In case a record changed on
7675         refresh, adjust key_copy.
7676
7677         [BZ #4074]
7678         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7679         refresh, adjust key_copy.
7680
7681         [BZ #4070]
7682         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7683         special cases.
7684         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7685
7686 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7687
7688         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7689         optimization.
7690
7691         * stdio-common/vfscanf.c: Small cleanups throughout.
7692
7693 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7694
7695         [BZ #3325]
7696         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7697         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7698         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7699         Patch by Jared Casper <jaredcasper@gmail.com>.
7700
7701         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7702         * sysdeps/unix/opendir.c: Likewise.
7703         * sysdeps/unix/readdir.c: Likewise.
7704
7705         [BZ #2211]
7706         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7707         point numbers.
7708         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7709
7710         * stdio-common/vfscanf.c: Fix problems in width accounting.
7711         * stdio-common/tst-sscanf.c (double_tests): New tests.
7712         (main): Hook them up.
7713
7714         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7715         More simplifications of floating-point reader.
7716
7717         * stdio-common/Makefile (tests): Add tst-swscanf.
7718         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7719         testing.
7720         * stdio-common/tst-swscanf.c: New file.
7721
7722 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7723
7724         [BZ #2633]
7725         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7726         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7727         Remove using for __jmp_buf_tag.
7728         * locale/locale.h (struct lconv): Also define in std namespace.
7729         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7730
7731         [BZ #3842]
7732         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7733         using __libc_enable_secure.
7734
7735         [BZ #3818]
7736         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7737
7738         [BZ #3745]
7739         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7740         of names for ellipsises.
7741
7742         [BZ #3348]
7743         * malloc/memusage.sh: Cleanups.
7744         * debug/xtrace.sh: Quoting and trap changes.
7745
7746 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7747
7748         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7749
7750         * locale/iso-3166.def: Update entry for Serbia.
7751         * locale/iso-4217.def: Define RSD, remove CSD.
7752
7753         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7754         and 64-bit operations.
7755
7756         [BZ #4040]
7757         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7758         16-bit operations.
7759
7760         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7761         of writev.
7762
7763 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7764
7765         [BZ #3991]
7766         * assert/assert.h (assert): Simplify.
7767         (assert_perror): Likewise.
7768         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7769
7770         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7771         reqdata.
7772
7773         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7774         change: don't pass NULL in place of an integer.
7775
7776 2007-02-02  Bruno Haible  <bruno@clisp.org>
7777
7778         [BZ #3954]
7779         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7780         Add mapping for U+327E.
7781         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7782         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7783         mapping of 0xD9 0xE8.
7784         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7785         mapping of U+327E.
7786         Reported by Jungshik Shin <jungshik@google.com>.
7787
7788         [BZ #3955]
7789         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7790         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7791         Reported by Jungshik Shin <jungshik@google.com>.
7792
7793 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7794
7795         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7796         byte variants.
7797
7798         [BZ #4040]
7799         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7800         byte variants.  Patch mostly be tom@tommay.net.
7801
7802 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7803
7804         [BZ #3996]
7805         * posix/glob.c (attribute_hidden): Define if not defined.
7806         (glob): Unescape dirname, filename or username when needed and not
7807         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7808         is NULL.  Handle unescaped [ in pattern without closing ].
7809         Don't pass GLOB_CHECK down to recursive glob for directories.
7810         (__glob_pattern_type): New function.
7811         (__glob_pattern_p): Implement using __glob_pattern_type.
7812         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7813         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7814         Remove unreachable code.
7815         * posix/globtest.sh: Add a couple of new tests.
7816
7817 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7818
7819         * po/ru.po: Update from translation team.
7820
7821 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7822
7823         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7824         to the list of i486+ CPUs.
7825         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7826
7827 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7828
7829         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7830         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7831         references.
7832
7833 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7834
7835         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7836
7837         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7838         * resolv/res_mkquery.c: Define __res_nopt.
7839         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7840         try adding EDNS0 record.
7841         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7842         EDNS0 record was send make sure we don't try it again.
7843         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7844         * include/resolv.h: Declare __res_nopt.
7845
7846 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7847
7848         [BZ #3944]
7849         * time/strptime_l.c (__strptime_internal): Set have_mon for
7850         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7851         have been computed from tm_yday and tm_year.  Don't crash
7852         in day_of_the_week or day_of_the_year if not have_mon
7853         and tm_mon contains bogus value.
7854         * time/Makefile (tests): Add tst-strptime3.
7855         * time/tst-strptime3.c: New test.
7856
7857 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7858
7859         [BZ #3957]
7860         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7861         bit for RE_HAT_LISTS_NOT_NEWLINE.
7862         (build_charclass_op): Remove bogus comment.
7863         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7864         * posix/bug-regex27.c: New test.
7865         * posix/bug-regex28.c: New test.
7866
7867 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7868
7869         * po/sv.po: Update from translation team.
7870
7871 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7872
7873         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7874
7875 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7876
7877         * include/locale.h (__uselocale): Add libc_hidden_proto.
7878         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7879
7880         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7881         gettimeofday.
7882
7883 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7884
7885         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7886         returning.
7887         (PTR_DEMANGLE): Real definition now that it's not the same as
7888         PRT_MANGLE anymore.
7889         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7890
7891         * string/strerror_l.c: New file.
7892         * string/Makefile (routines): Add strerror_l.
7893         * string/string.h: Declare strerror_l.
7894         * string/Versions: Export strerror_l for GLIBC_2.6.
7895
7896 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7897
7898         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7899         as parameter.  Construct request record.  Try sending request
7900         before the first poll use, it usually succeeds.  Adjust all
7901         callers.
7902         * nscd/nscd-client.h: Define MAXKEYLEN.
7903         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7904
7905 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7906
7907         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7908         from return value.
7909         * nscd/nscd_helper.c: Include string.h.
7910         (__nscd_cache_search): Remove const qualifier from return value.
7911         On strict alignment architectures check hash entry and data head
7912         alignment.
7913         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7914         mmapped data during GC cycle contains garbage.  If
7915         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7916         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7917         dropped to 0.
7918         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7919         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7920         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7921         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7922         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7923
7924 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7925
7926         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7927
7928 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7929
7930         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7931         names not numbers in cfi_*.
7932
7933 2007-01-26  Andreas Jaeger  <aj@suse.de>
7934
7935         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7936         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7937         Correct values of PER_HPUX and PER_OSF4.
7938
7939 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7940
7941         * elf/dl-minimal.c: Undefine _itoa first.
7942         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7943         * malloc/mtrace.c: Revert last change.
7944         * posix/wordexp.c: Likewise.
7945
7946 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7947
7948         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7949         and __geode__ to the list of i486+ CPUs.
7950         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7951
7952 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7953
7954         * stdio-common/_itoa.c: Include <limits.h>.
7955         * stdio-common/_itowa.c: Likewise.
7956
7957 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7958
7959         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7960         platforms.
7961         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7962         64-bit platforms.
7963         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7964         possible.
7965         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7966         if possible.
7967
7968         [BZ #3902]
7969         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7970         * stdio-common/Makefile (tests): Add bug17.
7971         * stdio-common/bug17.c: New file.
7972
7973 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7974
7975         * iconvdata/brf.c: New file.
7976         * iconvdata/testdata/BRF: New file.
7977         * iconvdata/testdata/BRF..UTF8: New file.
7978         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7979         * iconvdata/Makefile: Add rules to build BRF.
7980         * iconvdata/TESTS: Add BRF entry.
7981         * iconvdata/gconv-modules: Likewise.
7982         * iconvdata/tst-tables.sh: Likewise.
7983
7984 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7985
7986         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7987         type `long long int', not `long int'.
7988         (wcstoq): Likewise.
7989
7990 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7991
7992         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7993         of values on 64-bit platforms which are too large.
7994
7995 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7996             Joe Kerian  <jkerian@us.us.ibm.com>
7997
7998         [BZ #2749]
7999         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8000         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8001         (__copysignl): Use signbit() for comparison.
8002         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8003         SET_LDOUBLE_WORDS64.
8004
8005         [BZ #2423, #2749]
8006         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8007         (__ceill): Remove calls to fegetround(), fesetround().
8008         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8009         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8010         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8011
8012 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8013
8014         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8015
8016         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8017
8018 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
8019
8020         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8021         demangle pointer.
8022         * csu/libc-start.c: Likewise.
8023
8024 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
8025
8026         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8027         really work anyway.
8028
8029 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8030
8031         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
8032         users.
8033         (handle_request): Remove unnecessary tests.
8034
8035         * nscd/cache.c (cache_add): Record the failure to add to the cache.
8036
8037 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
8038
8039         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8040         workbits in semi-raw fraction.
8041
8042         * math/test-misc.c: Add new tests.
8043
8044 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8045
8046         * math/basic-test.c: Include test-skeleton.c.
8047         (TEST_TRUNC): Define.
8048         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8049         (main): Rename to ...
8050         (do_test): ...this.  Run new tests.
8051         (TEST_FUNCTION): Define.
8052
8053 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
8054             Joe Kerian  <jkerian@us.us.ibm.com>
8055
8056         [BZ #2749]
8057         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8058         handling for high words.
8059         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8060         and overflow for infinity.
8061
8062 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8063
8064         * nscd/connections.c (handle_request): Add a __builtin_expect.
8065
8066         * nscd/connections.c (serv2db): Change type into structure which
8067         also says whether this is a request for data.  Renamed to
8068         servinfo.  All users changed.
8069         (handle_request): Much simpler test whether we should search the cache.
8070
8071         * nscd/connections.c (handle_request): Fix thinko in selinux test
8072         invocation.
8073
8074         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8075         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8076         it before getting dl_load_lock and then relock.
8077         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8078         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8079         case we unlocked the scope.
8080         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8081         _dl_lookup_symbol_x in case we locked the scope.
8082         (_dl_profile_fixup): Likewise.
8083         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8084         set DL_LOOKUP_SCOPE_LOCK.
8085
8086 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8087
8088         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8089         CFLAGS-getsrvbynpt_r.c.
8090         * nscd/getsrvbynm_r.c: New file.
8091         * nscd/getsrvbypt_r.c: New file.
8092         * nscd/nscd_getserv_r.c: New file.
8093         * nscd/servicescache.c: New file.
8094         * nscd/Makefile (routines): Add nscd_getserv_r.
8095         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8096         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8097         CFLAGS-getsrvbypt_r.c.
8098         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8099         table.  Add entries for services database.
8100         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8101         services database.
8102         (dbs): Add .reset_res and servdb initialization.
8103         (serv2db): Add entries for services database.
8104         (verify_persistent_db): Accept dbnr == servdb.
8105         (invalidate_cache): Rewrite database name recognition to use a table.
8106         Call res_init() if .reset_res is set for database.
8107         (handle_request): Add code to handle services database.
8108         * nscd/gai.c: Don't define __getservbyname_r.
8109         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8110         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8111         (serv_response_header): Define.
8112         (struct datahead): Add serv_response_header member.
8113         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8114         using table.
8115         * nscd/nscd.conf: Add entries for services database.
8116         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8117         Declare serv_iov_disabled.
8118         Declare addservbyname, readdservbyname, addservbyport, and
8119         readdservbyport.
8120         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8121         (find_db): Fix error message.
8122         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8123         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8124         * nscd/selinux.c (perms): Add entries for services database.
8125         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8126         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8127
8128         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8129         * nscd/hstcache.c: Likewise.
8130         * nscd/pwdcache.c: Likewise.
8131
8132         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8133         computation of keylen.
8134
8135         * include/string.h: Only redefine strndupa if this is really for
8136         libc code.
8137
8138 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8139
8140         * nscd/nscd_gethst_r.c: Minor cleanups.
8141
8142         * nscd/connections.c (handle_request): Check selinux permissions
8143         for all non-admin commands.
8144
8145         * sysdeps/i386/i486/bits/atomic.h: Define
8146         atomic_compare_and_exchange_val_acq,
8147         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8148         using __sync_* built-ins for gcc >= 4.1.
8149         * sysdeps/x86_64/bits/atomic.h: Likewise.
8150
8151         [BZ #3840]
8152         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8153         and .oS.d files.
8154
8155 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8156
8157         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8158         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8159         (do_test): Check errno and exit(0) if ENOSYS.
8160
8161 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8162
8163         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8164         thousands separators.
8165         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8166         * stdlib/tst-strtod4.c: New test.
8167
8168         [BZ #3855]
8169         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8170         hexadecimal digit should accept just the initial 0.
8171         * stdlib/tst-strtod2.c (tests): New variable.
8172         (do_test): Run several tests rather than just one.
8173
8174 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8175
8176         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8177         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8178
8179 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8180
8181         * io/fts.c: Make sure fts_cur is always valid after return from
8182         fts_read.
8183         Patch by Miloslav Trmac <mitr@redhat.com>.
8184
8185 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8186
8187         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8188         (R_MIPS_NUM): Bump by 1.
8189
8190 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8191
8192         * posix/execvp.c: Include alloca.h.
8193         (allocate_scripts_argv): Renamed to...
8194         (scripts_argv): ... this.  Don't allocate buffer here nor count
8195         arguments.
8196         (execvp): Use alloca if possible.
8197         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8198         * posix/tst-vfork3.c: New test.
8199
8200 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8201
8202         * string/Makefile (tst-strxfrm2-ENV): Define.
8203         * stdlib/Makefile (tst-strtod3-ENV): Define.
8204
8205 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8206
8207         * posix/getconf.c: Update copyright year.
8208         * nss/getent.c: Likewise.
8209         * iconv/iconvconfig.c: Likewise.
8210         * iconv/iconv_prog.c: Likewise.
8211         * elf/ldconfig.c: Likewise.
8212         * catgets/gencat.c: Likewise.
8213         * csu/version.c: Likewise.
8214         * elf/ldd.bash.in: Likewise.
8215         * elf/sprof.c (print_version): Likewise.
8216         * locale/programs/locale.c: Likewise.
8217         * locale/programs/localedef.c: Likewise.
8218         * nscd/nscd.c (print_version): Likewise.
8219         * debug/xtrace.sh: Likewise.
8220         * malloc/memusage.sh: Likewise.
8221         * malloc/mtrace.pl: Likewise.
8222         * debug/catchsegv.sh: Likewise.
8223
8224 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8225
8226         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8227         attempts.
8228
8229 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8230
8231         * posix/wordexp.c: Remove some unnecessary tests.
8232
8233 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8234
8235         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8236         blacklist the group till after we look it up.
8237
8238 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8239
8240         * include/atomic.h (atomic_forced_read): New macro.
8241
8242 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8243
8244         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8245
8246 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8247
8248         * nss/getXXbyYY_r.c: Include atomic.h.
8249         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8250         add atomic_write_barrier () in between.
8251
8252         * stdlib/Makefile (tests): Add tst-makecontext.
8253         * stdlib/tst-makecontext.c: New test.
8254
8255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8256         (__makecontext): Don't realign uc_mcontext.uc_regs.
8257
8258 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8259
8260         * elf/dl-support.c: Include dl-procinfo.h.
8261         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8262         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8263         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8264         Define.
8265         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8266         hardcoded constants.
8267         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8268         PPC_PLATFORM_* macros for array designators.
8269
8270 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8271
8272         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8273         names to the beginning.
8274         (_dl_powerpc_platforms): Add "power6x".
8275         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8276         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8277         (_DL_PLATFORMS_COUNT): Increase.
8278         (_dl_string_platform): Handle power6x case.
8279         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8280         PPC_FEATURE_POWER6_EXT): Define.
8281         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8282
8283 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8284
8285         [BZ #3747]
8286         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8287         [-2^31 .. 2^31) range.
8288         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8289         targets.
8290         * stdlib/tst-rand48-2.c: New test.
8291         * stdlib/Makefile (tests): Add tst-rand48-2.
8292
8293 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8294
8295         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8296
8297 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8298
8299         * misc/tst-pselect.c (do_test): Make sure the helper process is
8300         terminating when the test is aborted.
8301
8302 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8303
8304         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8305         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8306         Handle relatime mount option.
8307
8308         [BZ #2337]
8309         * libio/Makefile (tests): Add tst-setvbuf1.
8310         * libio/tst-setvbuf1.c: New file.
8311
8312 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8313
8314         [BZ #2337]
8315         * libio/genops.c (__uflow): Fix a typo.
8316         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8317         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8318         the narrow buffer size.
8319
8320 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8321
8322         [BZ #2337]
8323         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8324         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8325         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8326         in _flags.
8327         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8328         _IO_wstr_finish): Likewise.
8329         * libio/wmemstream.c (open_wmemstream): Likewise.
8330         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8331         even for wide streams.
8332
8333 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8334
8335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8336         kernel-features.h.
8337
8338 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8339
8340         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8341         separators also if no non-zero digits found.
8342         * stdlib/Makefile (tests): Add tst-strtod3.
8343
8344 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8345
8346         [BZ #3632]
8347         * include/features.h: Fix comment about default value for
8348         _POSIX_C_SOURCE.
8349
8350         [BZ #3664]
8351         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8352         empty parsed strings.
8353         * stdlib/Makefile (tests): Add tst-strtod2.
8354         * stdlib/tst-strtod2.c: New file.
8355
8356         [BZ #3673]
8357         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8358         computation.
8359         * stdlib/Makefile (tests): Add tst-atof2.
8360         * stdlib/tst-atof2.c: New file.
8361
8362         [BZ #3674]
8363         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8364         correctly if removing trailing zero of hex-float.
8365         * stdlib/Makefile (tests): Add tst-atof1.
8366         * stdlib/tst-atof1.c: New file.
8367
8368 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8369
8370         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8371         Start searching for next comma at p rather than rest.
8372         * misc/Makefile (tests): Add tst-mntent2.
8373         * misc/tst-mntent2.c: New test.
8374
8375         * misc/getusershell.c (initshells): Check for integer overflows.
8376         Make strings buffer one bigger as fgets always succeeds when second
8377         argument is 1.  Don't use calloc for shells array.  Disallow
8378         / as shell.
8379
8380 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8381
8382         * malloc/memusage.c: Handle realloc with new size of zero and
8383         non-NULL pointer correctly.
8384         (me): Really write first record twice.
8385         (struct entry): Make format bi-arch safe.
8386         (dest): Write out more realloc statistics.
8387         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8388
8389 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8390
8391         * nis/nis_subr.c (nis_getnames): Revert last change.
8392
8393 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8394
8395         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8396         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8397         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8398         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8399         ENOTTY.
8400         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8401         * io/tst-ttyname_r.c: New test.
8402
8403 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8404
8405         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8406
8407 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8408
8409         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8410         jump table entries.
8411
8412 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8413
8414         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8415         `clone' function to ensure proper unwinding stop of gdb.
8416         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8417
8418 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8419
8420         * nscd/nscd.init: Remove obsolete and commented-out -S option
8421         handling.
8422
8423 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8424
8425         [BZ #3514]
8426         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8427
8428         [BZ #3515]
8429         * manual/string.texi (strtok): Remove duplicate paragraph.
8430
8431 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8432
8433         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8434         libgcc not supporting `rflags' unwinding (register # >= 17).
8435
8436 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8437
8438         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8439         succeeded.
8440
8441 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8442             Jakub Jelinek  <jakub@redhat.com>
8443             Jan Kratochvil  <jan.kratochvil@redhat.com>
8444
8445         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8446         unwind information.
8447         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8448         'restore_rt' even in the 'signal' directory.
8449         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8450
8451 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8452
8453         [BZ #3559]
8454         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8455         malloc crashed.  Don't allocate memory unnecessarily in each
8456         loop.
8457
8458 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8459
8460         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8461
8462 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8463
8464         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8465
8466 2006-11-18  Bruno Haible  <bruno@clisp.org>
8467
8468         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8469         __sysconf only after having tried to call getgroups32.
8470
8471 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8472
8473         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8474         addresses for IPv4 queries if they can be mapped.
8475
8476 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8477
8478         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8479         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8480         (signmask): Add .size directive.
8481         (othermask): Add .type directive.
8482
8483 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8484
8485         * po/nl.po: Update from translation team.
8486
8487         * timezone/zdump.c: Redo fix for BZ #3137.
8488
8489 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8490
8491         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8492         to first_unused after parsing :include: file.
8493
8494 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8495
8496         * timezone/africa: Update from tzdata2006o.
8497         * timezone/antarctica: Likewise.
8498         * timezone/asia: Likewise.
8499         * timezone/australasia: Likewise.
8500         * timezone/backward: Likewise.
8501         * timezone/europe: Likewise.
8502         * timezone/iso3166.tab: Likewise.
8503         * timezone/northamerica: Likewise.
8504         * timezone/southamerica: Likewise.
8505         * timezone/zone.tab: Likewise.
8506
8507         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8508         on machines with 64-bit time_t.
8509
8510         * timezone/checktab.awk: Update from tzcode2006o.
8511         * timezone/ialloc.c: Likewise.
8512         * timezone/private.h: Likewise.
8513         * timezone/scheck.c: Likewise.
8514         * timezone/tzfile.h: Likewise.
8515         * timezone/tzselect.ksh: Likewise.
8516         * timezone/zdump.c: Likewise.
8517         * timezone/zic.c: Likewise.
8518
8519         [BZ #3483]
8520         * elf/ldconfig.c (main): Call setlocale and textdomain.
8521         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8522
8523         [BZ #3480]
8524         * manual/argp.texi: Fix typos.
8525         * manual/charset.texi: Likewise.
8526         * manual/errno.texi: Likewise.
8527         * manual/filesys.texi: Likewise.
8528         * manual/lang.texi: Likewise.
8529         * manual/maint.texi: Likewise.
8530         * manual/memory.texi: Likewise.
8531         * manual/message.texi: Likewise.
8532         * manual/resource.texi: Likewise.
8533         * manual/search.texi: Likewise.
8534         * manual/signal.texi: Likewise.
8535         * manual/startup.texi: Likewise.
8536         * manual/stdio.texi: Likewise.
8537         * manual/sysinfo.texi: Likewise.
8538         * manual/syslog.texi: Likewise.
8539         * manual/time.texi: Likewise.
8540         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8541
8542         [BZ #3465]
8543         * sunrpc/clnt_raw.c: Minimal message improvements.
8544         * sunrpc/pm_getmaps.c: Likewise.
8545         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8546         * nis/nis_print_group_entry.c: Likewise.
8547         * locale/programs/repertoire.c: Likewise.
8548         * locale/programs/charmap.c: Likewise.
8549         * malloc/memusage.sh: Likewise.
8550         * elf/dl-deps.c: Likewise.
8551         * locale/programs/ld-collate.c: Likewise.
8552         * libio/vswprintf.c: Likewise.
8553         * malloc/memusagestat.c: Likewise.
8554         * sunrpc/auth_unix.c: Likewise.
8555         * sunrpc/rpc_main.c: Likewise.
8556         * nscd/cache.c: Likewise.
8557         * locale/programs/repertoire.c: Unify output messages.
8558         * locale/programs/charmap.c: Likewise.
8559         * locale/programs/ld-ctype.c: Likewise.
8560         * locale/programs/ld-monetary.c: Likewise.
8561         * locale/programs/ld-numeric.c: Likewise.
8562         * locale/programs/ld-time.c: Likewise.
8563         * elf/ldconfig.c: Likewise.
8564         * nscd/selinux.c: Likewise.
8565         * elf/cache.c: Likewise.
8566         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8567
8568         [BZ #3451]
8569         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8570         change atomic.
8571         (ceil): Likewise.
8572
8573 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8574
8575         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8576         if N is one bigger than return value.
8577         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8578         and l1 last arguments, if buf is defined, verify the return value
8579         equals to strlen (buf) and verify no byte beyond passed length
8580         is modified.
8581
8582 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8583
8584         * po/sv.po: Update from translation team.
8585
8586 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8587
8588         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8589         noinline attribute.
8590
8591 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8592
8593         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8594         noinline attribute.
8595
8596         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8597         Use __new_sys_siglist instead of _sys_siglist_internal as
8598         second macro argument.
8599         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8600         strong_alias.
8601
8602 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8603
8604         [BZ #3493]
8605         * posix/unistd.h (sysconf): Remove const attribute.
8606
8607         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8608         temporary or deprecated addresses.
8609         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8610
8611         * string/Makefile (tests): Add tst-strxfrm2.
8612         * string/tst-strxfrm2.c: New file.
8613
8614 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8615
8616         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8617         rather than r->r_brk.
8618
8619 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8620
8621         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8622         optimization even if needed > n.
8623
8624         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8625         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8626         return false, otherwise return true.
8627         (cache_rpath): Return decompose_rpath return value.
8628
8629 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8630
8631         * include/libc-symbols.h (declare_symbol): Rename to...
8632         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8633         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8634         .size directive.
8635         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8636         changes.
8637         * sysdeps/gnu/siglist.c: Likewise.
8638
8639 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8640
8641         * sysdeps/powerpc/fpu/bits/mathinline.h
8642         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8643         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8644
8645 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8646
8647         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8648         Update handling of cache descriptor 0x49 for new models.
8649         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8650         Likewise.
8651
8652 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8653
8654         * malloc/memusage.c (dest): Reset not_me back to false after
8655         printing statistics.
8656
8657 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8658
8659         * configure.in: Work around ld --help change and avoid -z relro
8660         test completely if the architecture doesn't care about security.
8661
8662 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8663
8664         * po/sv.po: Update from translation team.
8665
8666 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8667
8668         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8669         generate compatibility version.
8670
8671 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8672
8673         * configure.in: Relax -z relro requirement a bit.
8674
8675         * po/sv.po: Update from translation team.
8676
8677 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8678
8679         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8680         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8681         * elf/dl-close.c (_dl_close_worker): Likewise.
8682         * elf/dl-open.c (_dl_open_worker): Likewise.
8683         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8684
8685 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8686
8687         * configure.in: Require assembler support for visibility, compiler
8688         support for visibility and aliases, linker support for various -z
8689         options.
8690         * Makeconfig: Remove conditional code which now is unnecessary.
8691         * config.h.in: Likewise.
8692         * config.make.in: Likewise.
8693         * dlfcn/Makefile: Likewise.
8694         * elf/Makefile: Likewise.
8695         * elf/dl-load.c: Likewise.
8696         * elf/rtld.c: Likewise.
8697         * include/libc-symbols.h: Likewise.
8698         * include/stdio.h: Likewise.
8699         * io/Makefile: Likewise.
8700         * io/fstat.c: Likewise.
8701         * io/fstat64.c: Likewise.
8702         * io/fstatat.c: Likewise.
8703         * io/fstatat64.c: Likewise.
8704         * io/lstat.c: Likewise.
8705         * io/lstat64.c: Likewise.
8706         * io/mknod.c: Likewise.
8707         * io/mknodat.c: Likewise.
8708         * io/stat.c: Likewise.
8709         * io/stat64.c: Likewise.
8710         * libio/stdio.c: Likewise.
8711         * nscd/Makefile: Likewise.
8712         * stdlib/Makefile: Likewise.
8713         * stdlib/atexit.c: Likewise.
8714         * sysdeps/generic/ldsodefs.h: Likewise.
8715         * sysdeps/i386/dl-machine.h: Likewise.
8716         * sysdeps/i386/sysdep.h: Likewise.
8717         * sysdeps/i386/i686/memcmp.S: Likewise.
8718         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8719         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8720         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8721
8722         * Makerules: USE_TLS support is now default.
8723         * tls.make.c: Likewise.
8724         * csu/Versions: Likewise.
8725         * csu/libc-start.c: Likewise.
8726         * csu/libc-tls.c: Likewise.
8727         * csu/version.c: Likewise.
8728         * dlfcn/dlinfo.c: Likewise.
8729         * elf/dl-addr.c: Likewise.
8730         * elf/dl-cache.c: Likewise.
8731         * elf/dl-close.c: Likewise.
8732         * elf/dl-iteratephdr.c: Likewise.
8733         * elf/dl-load.c: Likewise.
8734         * elf/dl-lookup.c: Likewise.
8735         * elf/dl-object.c: Likewise.
8736         * elf/dl-open.c: Likewise.
8737         * elf/dl-reloc.c: Likewise.
8738         * elf/dl-support.c: Likewise.
8739         * elf/dl-sym.c: Likewise.
8740         * elf/dl-sysdep.c: Likewise.
8741         * elf/dl-tls.c: Likewise.
8742         * elf/ldconfig.c: Likewise.
8743         * elf/rtld.c: Likewise.
8744         * elf/tst-tls-dlinfo.c: Likewise.
8745         * elf/tst-tls1.c: Likewise.
8746         * elf/tst-tls10.h: Likewise.
8747         * elf/tst-tls14.c: Likewise.
8748         * elf/tst-tls2.c: Likewise.
8749         * elf/tst-tls3.c: Likewise.
8750         * elf/tst-tls4.c: Likewise.
8751         * elf/tst-tls5.c: Likewise.
8752         * elf/tst-tls6.c: Likewise.
8753         * elf/tst-tls7.c: Likewise.
8754         * elf/tst-tls8.c: Likewise.
8755         * elf/tst-tls9.c: Likewise.
8756         * elf/tst-tlsmod1.c: Likewise.
8757         * elf/tst-tlsmod13.c: Likewise.
8758         * elf/tst-tlsmod13a.c: Likewise.
8759         * elf/tst-tlsmod14a.c: Likewise.
8760         * elf/tst-tlsmod2.c: Likewise.
8761         * elf/tst-tlsmod3.c: Likewise.
8762         * elf/tst-tlsmod4.c: Likewise.
8763         * elf/tst-tlsmod5.c: Likewise.
8764         * elf/tst-tlsmod6.c: Likewise.
8765         * include/errno.h: Likewise.
8766         * include/link.h: Likewise.
8767         * include/tls.h: Likewise.
8768         * locale/global-locale.c: Likewise.
8769         * locale/localeinfo.h: Likewise.
8770         * malloc/arena.c: Likewise.
8771         * malloc/hooks.c: Likewise.
8772         * malloc/malloc.c: Likewise.
8773         * resolv/Versions: Likewise.
8774         * sysdeps/alpha/dl-machine.h: Likewise.
8775         * sysdeps/alpha/libc-tls.c: Likewise.
8776         * sysdeps/generic/ldsodefs.h: Likewise.
8777         * sysdeps/generic/tls.h: Likewise.
8778         * sysdeps/i386/dl-machine.h: Likewise.
8779         * sysdeps/ia64/dl-machine.h: Likewise.
8780         * sysdeps/ia64/libc-tls.c: Likewise.
8781         * sysdeps/mach/hurd/fork.c: Likewise.
8782         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8783         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8784         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8785         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8786         * sysdeps/s390/libc-tls.c: Likewise.
8787         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8788         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8789         * sysdeps/sh/dl-machine.h: Likewise.
8790         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8791         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8792         * sysdeps/x86_64/dl-machine.h: Likewise.
8793
8794         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8795         split out locking and parameter checking.
8796         (_dl_close): Call _dl_close_worker after locking and checking.
8797         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8798         _dl_close.
8799         * elf/Makefile: Add rules to build and run tst-thrlock.
8800         * elf/tst-thrlock.c:  New file.
8801
8802         [BZ #3426]
8803         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8804         reality.
8805
8806         [BZ #3429]
8807         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8808         we are sure we do not need it anymore for _dl_close.  Also move
8809         the asserts inside the lock region.
8810         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8811
8812 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8813
8814         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8815         argument.
8816         (_dl_lookup_symbol_x): Adjust caller.
8817
8818         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8819         _ns_global_scope.
8820         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8821
8822         * elf/dl-libc.c: Revert l_scope name changes.
8823         * elf/dl-load.c: Likewise.
8824         * elf/dl-object.c: Likewise.
8825         * elf/rtld.c: Likewise.
8826         * elf/dl-close.c (_dl_close): Likewise.
8827         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8828         always use __rtld_mrlock_{change,done}.  Always free old scope list
8829         here if not l_scope_mem.
8830         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8831         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8832         the lookup and __rtld_mrlock_unlock it after the lookup.
8833         * elf/dl-sym.c: Likewise.
8834         * include/link.h (struct r_scoperec): Remove.
8835         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8836         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8837
8838 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8839
8840         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8841
8842 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8843
8844         * configure.in: Disable building profile libraries by default.
8845
8846 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8847
8848         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8849         as signed longs, check for x_base + pos overflow.
8850         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8851         * sunrpc/tst-xdrmem2.c: New test.
8852
8853 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8854
8855         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8856         _dl_lookup_symbol_x code.
8857
8858 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8859
8860         * elf/dl-runtime.c: Include sysdep-cancel.h.
8861         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8862         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8863         instead of catomic_* macros.
8864         * elf/dl-sym.c: Include sysdep-cancel.h.
8865         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8866         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8867         * elf/dl-close.c: Include sysdep-cancel.h.
8868         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8869         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8870         * elf/dl-open.c: Include sysdep-cancel.h.
8871         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8872         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8873
8874 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8875
8876         [BZ #3313]
8877         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8878         fastbin rather than end of fastbin array.
8879
8880 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8881
8882         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8883         body macro.
8884         * sysdeps/x86_64/bits/atomic.h
8885         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8886         (catomic_decrement): Use correct body macro.
8887
8888 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8889
8890         * include/atomic.h: Add a unique prefix to all local variables
8891         in macros.
8892         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8893
8894 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8895
8896         [BZ #3369]
8897         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8898         and 7.
8899
8900 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8901
8902         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8903
8904 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8905
8906         [BZ #3313]
8907         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8908         determine highest fast bin to consolidate, always look into all of
8909         them.
8910         (do_check_malloc_state): Only require for empty bins for large
8911         sizes in main arena.
8912
8913         * libio/stdio.h: Add more __wur attributes.
8914
8915         * elf/dl-minimal.c (realloc): Optimize last patch.
8916
8917 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8918
8919         [BZ #3352]
8920         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8921         and use memcpy() if it does.
8922
8923 2006-11-12  Andreas Jaeger  <aj@suse.de>
8924
8925         [BZ #2510]
8926         * manual/search.texi (Hash Search Function): Clarify.
8927         (Array Search Function): Clarify.
8928
8929 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8930
8931         [BZ #2830]
8932         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8933         shifting.
8934         * math/atest-exp2.c (read_mpn_hex): Likewise.
8935         * math/atest-sincos.c (main): Likewise.
8936
8937 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8938
8939         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8940         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8941         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8942         version GLIBC_2.6.
8943         * Versions.def: Add GLIBC_2.6 for libc.
8944
8945         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8946
8947         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8948
8949 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8950
8951         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8952
8953         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8954
8955         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8956         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8957
8958 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8959
8960         * include/atomic.c: Define catomic_* operations.
8961         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8962         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8963         * malloc/memusage.c: Likewise.
8964         * gmon/mcount.c: Likewise.
8965         * elf/dl-close.c: Likewise.
8966         * elf/dl-open.c: Likewise.
8967         * elf/dl-profile.c: Likewise.
8968         * elf/dl-sym.c: Likewise.
8969         * elf/dl-runtime.c: Likewise.
8970         * elf/dl-fptr.c: Likewise.
8971         * resolv/res_libc.c: Likewise.
8972
8973 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8974
8975         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8976         components which lack them.
8977
8978         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8979         at least one entry consisting of the parameter concatenated with
8980         the domain.
8981
8982 2006-10-10  Roland McGrath  <roland@frob.com>
8983
8984         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8985         * sysdeps/mach/hurd/futimes.c: Likewise.
8986         * sysdeps/mach/hurd/lutimes.c: Likewise.
8987
8988 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8989             Jakub Jelinek  <jakub@redhat.com>
8990
8991         Implement reference counting of scope records.
8992         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8993         from the list in objects which remain.  Always allocate new scope
8994         record.
8995         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8996         don't resize, allocate a new one.
8997         * elf/dl-runtime.c: Update reference counters before using a scope
8998         array.
8999         * elf/dl-sym.c: Likewise.
9000         * elf/dl-libc.c: Adjust for l_scope name change.
9001         * elf/dl-load.c: Likewise.
9002         * elf/dl-object.c: Likewise.
9003         * elf/rtld.c: Likewise.
9004         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9005         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9006         Add l_scoperec_lock.
9007         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9008         * sysdeps/generic/rtld-lowlevel.h: New file.
9009
9010         * include/atomic.h: Rename atomic_and to atomic_and_val and
9011         atomic_or to atomic_or_val.  Define new macros atomic_and and
9012         atomic_or which do not return values.
9013         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9014         Various cleanups.
9015         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9016
9017         * po/sv.po: Update from translation team.
9018
9019 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
9020
9021         * Versions.def: Add GLIBC_2.6 to libpthread.
9022
9023         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9024         (versioned_symbol): Likewise.
9025         (compat_symbol): Likewise.
9026
9027         * po/tr.po: Update from translation team.
9028
9029 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9030
9031         * nis/Banner: Removed.  It's been integral part forever and the
9032         author info is incomplete anyway.
9033         * libio/Banner: Likewise.
9034
9035         * nis/nis_table.c (nis_list): If __follow_path fails in the new
9036         code, make sure the nis_freeresult call doesn't crash and that the
9037         result is reported correctly.
9038
9039 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
9040
9041         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9042         when callback is NULL.
9043
9044         * nis/Versions (libnss_nisplus): Add
9045         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9046         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9047         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9048         _nss_create_tablename): Rename to...
9049         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9050         ... these.  No longer static.
9051         (internal_setgrent): Adjust users.
9052         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9053         Don't use locking around _nss_grp_create_tablename call.
9054         * nis/nss_nisplus/nisplus-initgroups.c: New file.
9055
9056 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9057
9058         * version.h (VERSION): Bump to 2.5.90 for new development tree.
9059
9060 2006-10-06  Andreas Jaeger  <aj@suse.de>
9061
9062         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9063
9064 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9065
9066         * po/pl.po: Update from translation team.
9067
9068         * nscd/nscd.c (main): Fix typo in message.
9069         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9070
9071 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9072
9073         [BZ #3291]
9074         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9075         errno.h, signal.h, unistd.h and sysdep-cancel.h.
9076         (__sigprocmask): Define.
9077
9078 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9079
9080         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9081         used.
9082
9083 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9084
9085         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9086         in oldtotal and newtotal calculation.
9087         * nscd/nscd-client.h (struct mapped_database): Add datasize
9088         field.
9089         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9090         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9091         increased.
9092         (__nscd_cache_search): Add checks to make sure we never reference
9093         data beyond the current mapping.
9094
9095 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9096
9097         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9098         variables const to avoid compiler warnings.
9099
9100         * io/fts.c (fts_close): Remove redundant checks.
9101         (fts_build): Likewise.
9102         (fts_palloc): Likewise.
9103
9104         * manual/message.texi (Advanced gettext functions,
9105         Using gettextized software): Fix typos.
9106
9107 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9108
9109         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9110         explain why there are no leaks.
9111
9112 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9113
9114         * libio/wmemstream.c: Include <wchar.h>.
9115         * libio/bug-wmemstream1.c: Likewise.
9116         * libio/tst-wmemstream1.c: Likewise.
9117         * libio/tst-wmemstream2.c: Likewise.
9118
9119         * version.h (RELEASE): Bump to 2.5.
9120         * README: Regenerated.
9121
9122         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9123
9124         [BZ #3273]
9125         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9126         found no group members.
9127         Patch by Petr Baudis.
9128
9129 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9130
9131         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9132         assert bootstrap_map.l_tls_modid is zero.
9133         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9134         if USE___THREAD.
9135
9136 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9137
9138         * libio/stdio.h: Move open_wmemstream prototype to ...
9139         * wcsmbs/wchar.h: ... here.
9140
9141 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9142
9143         [BZ #3252]
9144         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9145         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9146         __{,l}chown to handle the rest.
9147         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9148         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9149         __{,l}chown to handle the rest.
9150         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9151         i386/fchownat.c.
9152         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9153         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9154
9155         [BZ #3253]
9156         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9157         time, rather allocate increasingly bigger arrays of pointers, if
9158         possible with alloca, if too large with malloc.
9159
9160 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9161
9162         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9163
9164         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9165
9166 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9167
9168         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9169         home addresses.
9170         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9171         IFA_F_HOMEADDRESS flag for interfaces.
9172         * include/ifaddrs.h (struct in6addrinfo): Define
9173         in6ai_homeaddress.
9174
9175 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9176
9177         [BZ #3225]
9178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9179         PTR_DEMANGLE3): Define.
9180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9181         PTR_DEMANGLE3): Likewise.
9182         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9183         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9184         Likewise.
9185         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9186
9187 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9188
9189         * po/libc.pot: Regenerated.
9190         * po/be.po: Updated.
9191         * po/ca.po: Likewise.
9192         * po/cs.po: Likewise.
9193         * po/da.po: Likewise.
9194         * po/de.po: Likewise.
9195         * po/el.po: Likewise.
9196         * po/en_GB.po: Likewise.
9197         * po/es.po: Likewise.
9198         * po/fi.po: Likewise.
9199         * po/fr.po: Likewise.
9200         * po/gl.po: Likewise.
9201         * po/hr.po: Likewise.
9202         * po/hu.po: Likewise.
9203         * po/ja.po: Likewise.
9204         * po/ko.po: Likewise.
9205         * po/nb.po: Likewise.
9206         * po/nl.po: Likewise.
9207         * po/pl.po: Likewise.
9208         * po/pt_BR.po: Likewise.
9209         * po/ru.po: Likewise.
9210         * po/rw.po: Likewise.
9211         * po/sk.po: Likewise.
9212         * po/sv.po: Likewise.
9213         * po/tr.po: Likewise.
9214         * po/zh_CN.po: Likewise.
9215         * po/zh_TW.po: Likewise.
9216
9217         [BZ #3137]
9218         * iconv/iconv_prog.c (main): Fix spelling in error message.
9219         * iconv/iconvconfig.c (main): Likewise.
9220         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9221         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9222         * locale/programs/localedef.c (main): Likewise.
9223         * locale/programs/repertoire.c (repertoire_read): Likewise.
9224         * timezone/zdump.c (main): Likewise.
9225         * nscd/connections.c (handle_request): Fix spelling in log message.
9226         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9227
9228 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9229
9230         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9231         interfaces.
9232
9233 2006-09-20  Andreas Jaeger  <aj@suse.de>
9234
9235         * math/libm-test.inc (lrint_test_upward): Fix typo.
9236
9237 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9238
9239         [BZ #2592]
9240         * math/libm-test.inc (lrint_test_tonearest): New function.
9241         (lrint_test_towardzero): New function.
9242         (lrint_test_downward): New function.
9243         (lrint_test_upward): New function.
9244         (main): Run these new tests.
9245         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9246         of values near to 0.
9247         (two52): Use double not long double.
9248         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9249         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9250         (two23): Use float not double.
9251         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9252         (two23): Use float not double.
9253         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9254         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9255         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9256         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9257
9258 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9259
9260         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9261         Cast sp to unsigned long to avoid compiler warning.
9262         Use __makecontext_ret function instead of a trampoline on the stack.
9263         (__makecontext_ret): New function.
9264         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9265
9266 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9267
9268         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9269         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9270         bits.
9271
9272 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9273
9274         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9275         sure no reference to the unloaded map's search list remains in the
9276         dependency's scope.
9277
9278 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9279
9280         * elf/Makefile: Add rules to build and run unload7 test.
9281         * elf/unload7.c: New test.
9282         * elf/unload7mod1.c: New file.
9283         * elf/unload7mod2.c: New file.
9284
9285 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9286
9287         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9288         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9289         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9290         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9291         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9292         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9293         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9294         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9295         PTRACE_GETEVENTMSG): Likewise.
9296         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9297         values.
9298
9299 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9300
9301         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9302         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9303         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9304         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9305
9306 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9307
9308         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9309         write '\0' to the fd.
9310         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9311         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9312         Change regs to unsigned long pointer from unsigned int, fix fscr
9313         offset.
9314
9315 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9316
9317         * io/Makefile (CFLAGS-fstatat.c): Set.
9318         (CFLAGS-fstatat64.c): Likewise.
9319         (CFLAGS-mknodat.c): Likewise.
9320
9321         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9322         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9323         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9324         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9325
9326 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9327             Steven Munroe  <sjmunroe@us.ibm.com>
9328
9329         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9330         names to the beginning.  Rename "cell" to "cellbe".
9331         (_dl_powerpc_platforms): New.
9332         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9333         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9334         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9335         (_DL_HWCAP_PLATFORM): Define to new mask.
9336         (_dl_platform_string, _dl_string_platform): New functions.
9337         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9338         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9339
9340 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9341
9342         [BZ #2526]
9343         * README.libm: Fix a thinko in sqrt algorithm description.
9344
9345         [BZ #3143]
9346         * manual/string.texi (argz_delete): Fix prototype.
9347         Patch by <alpt@freaknet.org>.
9348
9349 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9350
9351         [BZ #3138]
9352         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9353         * io/tst-fcntl.c (do_prepare): Likewise.
9354         * posix/tst-exec.c (do_prepare): Likewise.
9355         * posix/tst-preadwrite.c (do_prepare): Likewise.
9356         * posix/tst-spawn.c (do_prepare): Likewise.
9357         * posix/tst-truncate.c (do_prepare): Likewise.
9358         * rt/tst-aio.c (do_prepare): Likewise.
9359         * rt/tst-aio64.c (do_prepare): Likewise.
9360         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9361         size_t.
9362
9363 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9364
9365         [BZ #2821]
9366         * time/mktime.c (guess_time_tm): Fix overflow detection.
9367         * time/Makefile (tests): Add bug-mktime1.
9368         * time/bug-mktime1.c: New file.
9369
9370         [BZ #3189, #3188]
9371         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9372         (mremap): Likewise.
9373
9374 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9375
9376         [BZ #1006]
9377         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9378         Ensure relocation doesn't clobber any bits outside of the
9379         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9380         R_SPARC_HI22 and R_SPARC_H44.
9381
9382         [BZ #2775]
9383         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9384         (long) (MINSIZE + nb - old_size) is positive.
9385
9386         * malloc/arena.c (grow_heap): When growing bail even if new_size
9387         is negative.
9388
9389         [BZ #3155]
9390         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9391         stack below r1.
9392
9393 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9394
9395         * posix/regex_internal.c (re_string_reconstruct): Handle
9396         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9397         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9398         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9399         re_string_context_at.
9400         * posix/Makefile: Add rules to build and run bug-regex26 test.
9401         * posix/bug-regex26.c: New test.
9402
9403         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9404         rather than col_sym_free.  Move seqp declaration earlier.
9405
9406         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9407
9408 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9409
9410         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9411         decl before first goto out.
9412
9413 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9414
9415         * Makerules (shlib.lds): If have-hash-style, put .hash section
9416         at the end of the RO segment.
9417
9418 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9419
9420         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9421         style hash table format is used.
9422
9423 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9424
9425         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9426         randomization rather than before.
9427         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9428
9429 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9430
9431         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9432
9433         * malloc/malloc.c (_int_malloc): Use full list insert and not
9434         shortcut which assumes the list is empty for large requests
9435         too.
9436
9437         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9438
9439 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9440
9441         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9442         and offout arguments to the prototype.
9443         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9444         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9445         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9446         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9447         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9448         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9449         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9450         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9451
9452 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9453
9454         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9455
9456         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9457         dlopen parameters.
9458
9459 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9460
9461         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9462         only if herrno is NETDB_INTERNAL.  Handle errors other than
9463         ERANGE outside of the loops, handle TRY_AGAIN.
9464
9465         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9466         if other's ctype category was missing.
9467         * locale/programs/ld-collate.c (collate_read): Return if
9468         copy_locale's collate category is missing.
9469
9470 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9471
9472         [BZ #2684]
9473         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9474         arenas if allocation failed.
9475         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9476
9477 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9478
9479         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9480         waste bins[0..1].
9481         (malloc_state): Reduce bins size by 2.
9482         (_int_malloc): Fix test for large enough buffer for early termination.
9483         When no unsorted block matches perfectly and an exiting block has
9484         to be split, use full list insert and not shortcut which assumes
9485         the list is empty.
9486
9487         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9488         failure.
9489
9490 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9491
9492         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9493         do anything.
9494
9495         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9496         symbol require exact match (these are PLTs).
9497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9498         (_dl_ppc64_addr_sym_match): Likewise.
9499
9500         [BZ #2683]
9501         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9502         If symbol has a value use it.
9503         * elf/tst-dladdr1.c: New file.
9504         * elf/Makefile: Add rules to build and run tst-addr1.
9505
9506 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9507
9508         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9509         keeps failing and heap growth or new heap creation isn't
9510         successful either.
9511         * malloc/tst-malloc.c (main): Add new tests.
9512
9513 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9514
9515         [BZ #2734]
9516         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9517         as in the x86-64 code to use bswap.
9518
9519 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9520
9521         [BZ #2680]
9522         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9523         __USE_UNIX98.
9524         * posix/bits/unistd.h: Likewise.
9525
9526 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9527
9528         [BZ #2751]
9529         * string/strchr.c: Add cast to avoid warning.
9530
9531 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9532
9533         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9534         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9535         limit is needed to avoid the exploding of the address space
9536         requirement for secondary heaps.
9537         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9538         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9539
9540 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9541
9542         [BZ #3018]
9543         * Makerules (depfiles): Handle extra-test-objs the same as
9544         extra-objs.
9545         (common-mostlyclean): Likewise.
9546         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9547         instead.
9548         * elf/Makefile (extra-objs): Likewise.
9549         * stdlib/Makefile (extra-objs): Likewise.
9550
9551 2006-08-14  Eric Blake  <ebb9@byu.net>
9552
9553         [BZ #3044]
9554         * misc/error.h: Assume C89 or better.
9555         * misc/error.c: Likewise.
9556
9557 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9558
9559         [BZ #3040]
9560         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9561         __ASSUME_ATFCTS is defined.
9562
9563 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9564
9565         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9566         to sort in each call.
9567
9568         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9569         is empty simply return and use next service.
9570         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9571
9572         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9573         tells us when not finding a charmap file is an error.
9574         * locale/programs/charmap.h: Adjust charmap_read prototype.
9575         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9576         cannot find a charmap.
9577         * locale/programs/localedef.c (main): Adjust charmap_read call.
9578
9579 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9580
9581         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9582         sysdeps/posix/pause.c implementation instead.
9583
9584 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9585
9586         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9587         to EPERM.
9588
9589 2006-08-13  Andreas Schwab  <schwab@suse.de>
9590
9591         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9592         Don't clobber caller's LRSAVE.
9593         (_dl_prof_resolve): Likewise.
9594
9595 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9596
9597         [BZ #1996]
9598         * libio/memstream.c (open_memstream): Allocate initial buffer with
9599         calloc.
9600         * libio/wmemstream.c (open_wmemstream): Likewise.
9601         * libio/strops.c: Pretty printing.
9602         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9603         (enlarge_userbuf): New function.
9604         (_IO_str_seekoff): Call it if seek position is larger than current
9605         buffer.
9606         * libio/wstrops.c: Likewise.
9607         * libio/vasprintf.c: Add comment as to why we do not have to use
9608         calloc instead of malloc to allocate initial buffer.
9609         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9610         * libio/bug-memstream1.c: New file.
9611         * libio/bug-wmemstream1.c: New file.
9612
9613 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9614
9615         * libio/wstrops.c: Remove dead macro definitions and comments.
9616         * libio/strops.c: Likewise.
9617
9618         [BZ #2764]
9619         * login/utmpname.c (__utmpname): Remove unnecessary test.
9620
9621 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9622
9623         [BZ #2832]
9624         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9625         0s from integers.
9626
9627 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9628
9629         [BZ #2987]
9630         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9631         for CPU clocks.
9632         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9633         setting of CPU clocks.
9634
9635 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9636
9637         [BZ #2841]
9638         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9639         since C99 requires the result to promote to 'int' when uint_least8_t
9640         and uint_least16_t promote to 'int'.
9641
9642 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9643
9644         [BZ #3013]
9645         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9646         lenght of one output field, correct bitmask creation.
9647         * locale/programs/ld-time.c: Add alignment.
9648
9649         [BZ #2997]
9650         * misc/error.c: Add space between program name and message if file
9651         name is missing.
9652
9653 2006-08-03  Eric Blake  <ebb9@byu.net>
9654
9655         [BZ #2998]
9656         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9657
9658 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9659
9660         * malloc/memusagestat.c: Silence warnings.
9661
9662         * malloc/malloc.c: Dynamically size mmap treshold if the program
9663         frees mmaped blocks.
9664         Patch by Valerie Henson and Arjan van de Ven.
9665
9666 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9667
9668         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9669         __USE_GNU.
9670
9671         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9672         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9673         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9674         Only provide var definitions in strtol_l (or for *ull*
9675         in strtoll_l).
9676
9677         * stdio-common/bug16.c (tests): New array.
9678         (do_tests): Allow the first hexadecimal digit
9679         to be 1, 2, 4 or 8.  Do 3 additional tests.
9680
9681         * sysdeps/s390/fpu/libm-test-ulps: Update.
9682
9683         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9684         fchownat syscall if available.
9685         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9686         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9687         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9688
9689 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9690
9691         * nis/nis_xdr.c: Avoid some function calls.
9692
9693 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9694             Ulrich Drepper  <drepper@redhat.com>
9695
9696         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9697         short cut if only one name component is stripped away.
9698
9699 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9700
9701         * nis/nis_call.c: Minor cleanups throughout.
9702         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9703         (first_shoot): Add search_parent_first parameter.  Only if it is set
9704         search parent server first.
9705         If directory for table found through cold start cache is not the same
9706         as referenced in the cache, don't use it.
9707         (__nisfind_server): Take additional parameter.  Pass it on to
9708         first_shoot.
9709         (__prepare_niscall): Adjust __nisfind_server call.
9710         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9711         * nis/nis_table.c: Adjust __nisfind_server call.
9712         * nis/nis_lookup.c: Likewise.
9713         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9714
9715 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9716
9717         [BZ #2182]
9718         * math/s_cacosh.c: Return values from positive branch.
9719         * math/s_cacoshf.c: Likewise.
9720         * math/s_cacoshl.c: Likewise.
9721
9722         [BZ #2883]
9723         * sysvipc/sys/msg.h: Change return value to ssize_t.
9724         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9725         * sysvipc/msgrcv.c: Likewise.
9726         * include/sys/msg.h: Likewise.
9727
9728         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9729         test introduced in patch for bz #661.
9730         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9731         element for NEWGROUPS.
9732
9733         [BZ #2908]
9734         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9735         'f', use '1' as leading digit not '\1'.
9736         * stdio-common/Makefile (tests): Add bug16.
9737         * stdio-common/bug16.c: New file.
9738
9739         [BZ #2914]
9740         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9741         and don't try to open it.  The patch introducing the macro
9742         contained a bug and used the same file name as the new file
9743         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9744         this out completely.
9745
9746         [BZ #2926]
9747         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9748         Patch by Jerry James <Jerry.James@usu.edu>.
9749
9750         * rt/Makefile (tests): Add tst-clock2.
9751         * rt/tst-clock2.c: New file.
9752
9753         [BZ #2978]
9754         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9755         function and its parameters and pass it to new thread.
9756         (__gai_notify): Add support for alternative waiting for completion.
9757         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9758         waiting for completion.
9759         * resolv/getaddrinfo_a.c: Likewise.
9760         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9761         waiting for completion is used.
9762         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9763         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9764         * resolv/gai_error.c: Likewise.
9765         * resolv/gai_sigqueue.c: Likewise.
9766
9767 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9768
9769         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9770         errno to EBADF and return MACH_PORT_NULL.
9771
9772 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9773
9774         [BZ #2980]
9775         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9776
9777 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9778
9779         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9780         walk them instead of the symbol table.
9781
9782 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9783
9784         [BZ #2098]
9785         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9786         status of NSS calls, not the number of returned entries.
9787
9788         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9789         request_key, keyctl.
9790
9791 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9792
9793         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9794
9795 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9796
9797         * elf/tst-auditmod1.c: Fix typo in #error.
9798
9799 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9800
9801         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9802
9803         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9804
9805 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9806
9807         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9808         that the directory is empty even on non-POSIX filesystems.
9809
9810 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9811
9812         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9813
9814         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9815         the backend NSS module.  If backend setgrent call failed, don't have
9816         internal_setgrent fail.  Just remember this until it is needed.
9817         * nis/nss_compat/compat-pwd.c: Likewise.
9818         * nis/nss_compat/compat-spwd.c: Likewise.
9819
9820 2006-07-30  Roland McGrath  <roland@redhat.com>
9821
9822         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9823         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9824         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9825         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9826
9827         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9828         (nanosleep_not_cancel): New macro.
9829         (sigsuspend_not_cancel): new macro.
9830         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9831         (do_sigsuspend): Define as inline.
9832         (__sigsuspend): Always use do_sigsuspend.
9833         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9834         * include/signal.h: Declare __sigsuspend_nocancel.
9835         * sysdeps/posix/pause.c
9836         [! NO_CANCELLATION] (__pause_nocancel): New function.
9837
9838         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9839         * include/time.h (__nanosleep_nocancel): Likewise.
9840
9841 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9842
9843         * locale/programs/localedef.c (add_to_readlist): Rename local
9844         variables to avoid confusion.
9845
9846         * locale/programs/charmap.c (charmap_read): Emit error message if
9847         charmap couldn't be found or read.
9848
9849 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9850
9851         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9852         __ASSUME_FUTEX_LOCK_PI.
9853         * include/time.h: Declare __nanosleep_nocancel.
9854         * include/unistd.h: Declare __pause_nocancel.
9855
9856         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9857         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9858         get the __stack_chk_fail_local definition when it's needed.
9859
9860 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9861
9862         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9863         * dlfcn/bug-atexit3.c: New file.
9864         * dlfcn/bug-atexit3-lib.cc: New file.
9865
9866         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9867         used when the namespace is not the base namespace.
9868
9869 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9870
9871         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9872         (__new_exitfn): Bump it in every successful call.
9873         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9874         more exit handlers, call them right away.
9875         * stdlib/exit.h: Declare __new_exitfn_called.
9876
9877 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9878
9879         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9880         calling registered handler.
9881
9882         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9883         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9884         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9885         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9887         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9888         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9889         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9890
9891 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9892
9893         * elf/dl-lookup.c (dl_new_hash): New functions.
9894         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9895         value here.  Compute new-style hash value.  Pass new hash value
9896         and reference to variable with the old value to do_lookup_x.
9897         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9898         old-style hash table.
9899         (_dl_debug_bindings): Pass new hash value and reference to variable
9900         with the old value to do_lookup_x.
9901         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9902         new-style hash value and change old-style hash value parameter to
9903         be a reference.  Reoganize functions to determine whether
9904         new-style hash table is available.  Only fall back on old-style
9905         table.  If old-style hash value is needed, compute it here.
9906         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9907         entry.
9908         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9909         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9910         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9911         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9912         * Makeconfig: If linker supports --hash-style option add it to all
9913         linker command lines to build DSOs.
9914         * config.make.in: Define have-hash-style.
9915         * configure.in: Test whether linker supports --hash-style option.
9916
9917         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9918         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9919
9920 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9921
9922         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9923         auditing.
9924
9925         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9926         RPATH of main map twice.
9927
9928 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9929
9930         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9931         look further, return original strings.
9932         (_nl_find_msg): Do not return found translation if the conversion
9933         failed.  Either signal the string is unusable or that something went
9934         wrong and the original should be used.
9935
9936 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9937
9938         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9939
9940 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9941
9942         [BZ #2766]
9943         * misc/insremque.c (insque): Handle prev == NULL.
9944         * misc/Makefile (tests): Add tst-insremque.
9945         * misc/tst-insremque.c: New test.
9946
9947 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9948
9949         [BZ #2792]
9950         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9951         conflict with DL_DST_REQUIRED.
9952
9953 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9954
9955         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9956         match what Solaris does.
9957
9958 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9959
9960         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9961         local_setegid instead of seteuid and setegid.
9962         * sysdeps/generic/local-setxid.h: New file.
9963         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9964
9965         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9966
9967         * string/Makefile (tests): Add bug-envz1.
9968         * string/bug-envz1.c: New file.
9969
9970 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9971
9972         * posix/regex_internal.c (re_string_skip_chars): If no character has
9973         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9974         to the byte which couldn't be converted.
9975         (re_string_reconstruct): Don't clear valid_raw_len before calling
9976         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9977         tip_context using re_string_context_at.
9978         * posix/Makefile: Add rules to build and run bug-regex25 test.
9979         * posix/bug-regex25.c: New test.
9980
9981 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9982
9983         [BZ #2703]
9984         * string/envz.c (envz_strip): Correct erroneously reversed src
9985         and dest parameters to memmove() invocation.
9986
9987 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9988
9989         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9990         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9991         to make sure the database has been already invalidated.
9992         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9993         after the cache has been invalidated.  Use pthread_mutex_lock rather
9994         than pthread_mutex_trylock if fd != -1.
9995         * nscd/connections.c (invalidate_cache): Add fd argument, write
9996         response to fd if not calling prune_cache, pass fd to prune_cache.
9997         (handle_request): Adjust invalidate_cache caller.
9998         (nscd_run): Pass -1 as fd to prune_cache.
9999
10000 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10001
10002         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10003         the correct place.
10004
10005 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10006
10007         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10008         * nscd/cache.c (prune_cache): Take prunelock before starting the
10009         work.  Just return in case it is already taken.
10010         * nscd/connections.c (dbs): Initialize .prunelock.
10011
10012 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10013
10014         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10015         copying.  No need to allocate new array for group members.  Just
10016         move the pointers and update the size.
10017
10018         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10019         Avoid memory leak in case realloc fails.  Simplification for
10020         better code generation.
10021
10022         Avoid deprecation warning because of libc_hidden_proto for
10023         inet6_option_alloc.
10024         * inet/inet6_option.c (option_alloc): Renamed from
10025         inet6_option_alloc.  Made static.
10026         (inet6_option_alloc): Now a simple wrapper around option_alloc.
10027         (inet6_option_append): Call option_alloc.
10028         * include/netinet/in.h: Remove libc_hidden_proto for
10029         inet6_option_alloc.
10030
10031         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10032         for cleanup when cb!=NULL [Coverity CID 233].
10033
10034 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
10035
10036         [BZ #2693]
10037         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10038         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10039         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10040         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10041         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10042         and inet6_rth_getaddr.
10043         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10044         array.
10045         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10046         Mark inet6_option_* interfaces as deprecated.
10047         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10048         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10049         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10050         inet6_rth_segments, and inet6_rth_getaddr.
10051         * inet/inet6_opt.c: New file.
10052         * inet/inet6_rth.c: New file.
10053
10054         * inet/netinet/icmp6.h: Pretty printing.
10055
10056         [BZ #2683]
10057         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10058
10059 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
10060
10061         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10062         doing it all here.  When server does not know the answer do not
10063         fail immediate, try parent first.
10064
10065         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10066         overflow test.
10067
10068 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
10069
10070         * nis/nis_call.c (__prepare_niscall): New function.  Split out
10071         from __do_niscall.
10072         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10073         and exported.
10074         (__follow_path): New function.  Split out from nis_list.
10075         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10076         _xdr_nis_result.
10077         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10078         _xdr_nis_result.
10079         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10080         and __follow_path.
10081         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10082         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10083         from libnsl for version GLIBC_PRIVATE.
10084         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10085         Remove entry parameter from _nss_nisplus_parse_pwent and
10086         _nss_nisplus_parse_grent.
10087         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10088         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10089         again.  Rewrite getpwent handling to not use nis_first_entry and
10090         nis_next_entry.  Roll out own niscall handling.
10091         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10092
10093         * sunrpc/xdr_rec.c: Fix typo in comment.
10094
10095 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10096
10097         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10098         handling.
10099
10100         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10101         to allocate memory for my_pollfd.  Better initialization of
10102         cb_is_running.  Use TEMP_FAILURE_RETRY.
10103
10104         * malloc/memusage.sh (memusageso): Add quotes.
10105         (memusagestat): Likewise.
10106         * debug/xtrace.sh (pcprofileso): Likewise.
10107         (pcprofiledump): Likewise.
10108         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10109         replacement.
10110         * malloc/Makefile ($(objpfx)memusage): Likewise.
10111
10112         * nis/nis_callback.c (__nis_create_callback): Calls to
10113         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10114         asprintf call fails.
10115
10116         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10117         no uninitialized memory is passed to sendto.
10118
10119 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10120
10121         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10122         of snprintf+strdup.  Handle OOM.
10123         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10124         cb->serv together.  Remove now obsolete free calls.
10125         (__nis_destroy_callback): Remove now obsolete free call.
10126
10127 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10128
10129         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10130         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10131         and ULA respectively). Set precedence for IPv4 address to 10 as
10132         defined in RFC3484 for preferring IPv6.
10133         * posix/gai.conf: Update to match the new default tables.
10134
10135 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10136
10137         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10138         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10139         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10140         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10141
10142         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10143         Removed.
10144         (init_nss_interface): Remove initialization of these variables.
10145
10146 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10147
10148         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10149         nis_free_directory forward to avoid duplication.
10150
10151 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10152
10153         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10154         rec_dirsearch returning NULL.
10155         (first_shoot): Handle __nis_finddirectory returning NULL.
10156         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10157
10158         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10159         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10160
10161 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10162
10163         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10164         pid changed.
10165
10166 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10167
10168         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10169
10170         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10171         * nscd/nscd_getgr_r.c: Likewise.
10172
10173         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10174
10175         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10176         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10177
10178         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10179
10180         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10181
10182         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10183
10184         * include/rpc/auth.h: Mark xdr_des_block_internal and
10185         xdr_opaque_auth_internal as hidden.
10186
10187         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10188         hidden.
10189
10190         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10191
10192         * misc/getusershell.c (okshells): Don't use static initializers,
10193         do it dynamically.
10194
10195         * stdlib/fmtmsg.c (keywords): Change type of len element to
10196         uint32_t to not waste space on 64bit machines.
10197
10198         * locale/setlocale.c: Change _nl_category_names into a string.
10199         Add new _nl_category_name_idxs.  Change all users.
10200         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10201         Declare _nl_category_name_idxs.
10202         * locale/findlocale.c: Adjust for _nl_category_names change.
10203         * locale/loadlocale.c: Likewise.
10204         * locale/newlocale.c: Likewise.
10205         * intl/dcigettext.c: Likewise.
10206
10207         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10208         (add_alias2): ...here.  New function.
10209         (__gconv_read_conf): Simplify builtin alias handling.
10210         (builtin_aliases): Convert to string to avoid relocations.
10211         * iconv/gconv_builtin.h: Add comment about correct formatting.
10212
10213 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10214
10215         * resolv/res_debug.c (loc_ntoa): Make error const.
10216
10217 2006-05-14  Andreas Schwab  <schwab@suse.de>
10218
10219         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10220
10221 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10222
10223         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10224         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10225         sizeof (cpu_set_t).
10226
10227 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10228
10229         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10230
10231         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10232
10233         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10234         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10235
10236         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10237         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10238
10239         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10240         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10241         xdr_cback_data.
10242
10243         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10244         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10245         xdr_ypupdate_args.
10246
10247         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10248         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10249
10250         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10251         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10252
10253         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10254         * include/rpcsvc/nis_callback.h: New file.
10255
10256         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10257         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10258
10259         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10260         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10261
10262         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10263         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10264
10265         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10266         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10267
10268         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10269         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10270         xdr_ypdelete_args.
10271
10272         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10273         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10274
10275         * nis/nis_error.c: Remove table of strings.  Use position
10276         independent mechanism.
10277         * nis/nis_error.h: New file.
10278
10279 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10280
10281         * locale/programs/ld-time.c (time_finish): If wide era name or
10282         format aren't provided, set both wname and wformat to L"".
10283
10284 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10285
10286         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10287         results if the call was succesful.
10288
10289         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10290
10291         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10292         as hidden.
10293
10294 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10295
10296         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10297
10298 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10299
10300         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10301         caller makes sure this is not the case.
10302         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10303
10304 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10305
10306         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10307         calls.
10308
10309         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10310         [Coverity CID 229, 230]
10311
10312         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10313         DGETTEXT calls.
10314         (hol_help): Likewise.  [Coverity CID 226, 227]
10315
10316         * string/argz-replace.c (__argz_replace): Unconditionally call
10317         free on SRC.  [Coverity CID 225]
10318
10319         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10320         the return value of __nis_default_owner and __nis_default_group,
10321         it has been especially allocated.  [Coverity CID 224]
10322
10323         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10324         searchgroup and searchowner.  Significantly simplified.
10325         (__nis_default_owner): Remove duplication.  Do not locally copy the
10326         string before duplicating it.
10327         (__nis_default_group): Likewise.
10328
10329         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10330         we must clear the variable before calling __nisfind_server.
10331
10332         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10333         nis_getnames.  [Coverity CID 223]
10334
10335         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10336         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10337
10338         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10339         allocate memory for the input to add_bytes.  [Coverity CID 221]
10340
10341         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10342         was allocated here.  [Coverity CID 219, 220]
10343
10344         * posix/getconf.c (print_all): Free confstr data after printing.
10345         [Coverity CID 218]
10346
10347         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10348         list allocation fails.  [Coverity CID 215]
10349
10350         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10351         [Coverity CID 213]
10352
10353         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10354         string is NULL.  [Coverity CID 212]
10355         * argp/Makefile: Add rules to build and run bug-argp1.
10356         * argp/bug-argp1.c: New file.
10357
10358         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10359         end of string.
10360         * stdlib/canonicalize.c (__realpath): Likewise.
10361
10362         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10363         pointer.  [Coverity CID 206]
10364
10365         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10366         in statically linked code.
10367         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10368         statically built code, be prepared to have no link map.
10369         [Coverity CID 205]
10370
10371         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10372         dgettext calls. [Coverity CID 204]
10373
10374         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10375         the one user.
10376         (uparam_names): Reduce size.  Avoid relative relocations.
10377         Moved to read-only segment.
10378         (fill_in_uparams): Update for new layout.
10379
10380         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10381         assumed to always be != NULL. [Coverity CID 202]
10382
10383         * argp/argp-help.c (hol_entry_help): Remove some dead code
10384         [Coverity CID 200].
10385
10386         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10387         away a few more unconditional yperr2nss calls.
10388         (_nss_nis_getservbyname_r): Likewise.
10389
10390 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10391
10392         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10393         architectures.
10394
10395         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10396         that unused memory passed to sendto is nevertheless initialized.
10397
10398         [BZ #2499]
10399         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10400         possibly unaligned memory accesses.
10401
10402         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10403         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10404         and __putlong respectively.  Correct buffer overflow check for
10405         NS_NOTIFY_OP.
10406
10407         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10408
10409         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10410         (send_dg): Rewrite error handling to be more compact and avoid
10411         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10412
10413         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10414
10415         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10416         instead of ns_get16.
10417         (res_queriesmatch): Likewise.  Minor optimization.
10418
10419         [BZ #2499]
10420         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10421         __libc_res_nsend might reallocate the buffer for the answer.  In
10422         this case we have to reload the HP pointer.
10423
10424 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10425
10426         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10427         some branch prediction hints.
10428
10429         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10430         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10431         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10432         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10433         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10434         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10435         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10436         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10437
10438 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10439
10440         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10441         by a GOT relocation to make Scrt1.o position independent.
10442         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10443
10444         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10445         six system call parameters.
10446         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10447
10448 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10449
10450         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10451         malloc&bzero.
10452
10453         * sunrpc/svc_udp.c (BZERO): Remove definition.
10454         (CALLOC): Define.
10455         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10456
10457         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10458         (des_SPtrans): Use uint32_t type.
10459         (des_skb): Likewise.
10460
10461         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10462
10463 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10464
10465         [BZ #2509]
10466         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10467         on 32-bit arches.
10468
10469 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10470
10471         * locale/programs/ld-address.c (address_finish): Fix one more
10472         place where the iso639 array might be accessed beyond the limits.
10473
10474 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10475
10476         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10477         filling it for the first time.
10478
10479         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10480         Adjust all callers.
10481         Free res object content before returning.
10482
10483         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10484
10485         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10486         client->cl_auth.
10487
10488         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10489         cleanup for initial thread, just the free call on TVP.
10490
10491         * nscd/gai.c (__getline): Define.
10492
10493
10494 See ChangeLog.16 for earlier changes.