* po/nl.po: Update from translation team.
[platform/upstream/glibc.git] / ChangeLog
1 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2
3         * po/nl.po: Update from translation team.
4
5 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
6
7         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
8         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14
15         * po/pl.po: Update from translation team.
16
17 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
18
19         [BZ #7083]
20         * sysdeps/unix/sysv/linux/fallocate.c: New file.
21         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
22         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
23         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
24         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
25         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
26         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
27         for GLIBC_2.10.
28         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
29         Add fallocate and fallocate64.
30
31         * io/fcntl.h: Pretty printing.
32
33 2009-03-02  Richard Guenther  <rguenther@suse.de>
34
35         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
36         attribute also for non-C99 inline semantics variant.
37
38 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
39
40         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
41         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
42         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
43         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
44         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
45         Likewise.
46         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
47         Likewise.
48
49 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
50
51         * po/cs.po: Update from translation team.
52
53 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
54
55         * po/bg.po: Update from translation team.
56         * po/sv.po: Likewise.
57         * po/fi.po: Likewise.
58         * po/vi.po: Likewise.
59
60 2009-02-27  Roland McGrath  <roland@redhat.com>
61
62         * Makeconfig (%.v.i): Depend on Makeconfig.
63         Exclude % lines from initial #-comment removal.
64
65 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
66
67         * po/ko.po: Update from translation team.
68
69 2009-02-26  Roland McGrath  <roland@redhat.com>
70
71         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
72         avoids unused warning.
73
74 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
75             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
76
77         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
78         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
79         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
80         and asm/user.h.  Include asm/ptrace.h.
81         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
82         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
83         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
84         Undefine.
85         (start_thread): Don't undefine.
86         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
87         Define.
88
89 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
90
91         * wctype/wctype.h: The *_l functions are in POSIX 2008.
92         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
93         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
94         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
95         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
96         200112L to 200809L.
97         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
98         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
99         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
100         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
101         _SC_THREAD_ROBUST_PRIO_PROTECT.
102         * posix/unistd.h: fexecve is in POSIX 2008.
103         * time/time.h: strftime_l is in POSIX 2008.
104         * io/sys/stat.h: futimens is in POSIX 2008.
105         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
106         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
107         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
108         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
109         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
110         open_memstream, and vdprintf are in POSIX 2008.
111
112 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
113
114         * include/features.h: Define macros for XPG7/POSIX 2008.
115         * ctype/ctype.h: The *_l functions are in POSIX 2008.
116         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
117         POSIX 2008.
118         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
119         * locale/xlocale.h: Define locale_t type.
120         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
121         in POSIX 2008.  Don't define locale_t here.
122         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
123         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
124         UTIME_OMIT only with __USE_ATFILE.
125         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
126         * stdio-common/psiginfo.c: New file.
127         * stdio-common/psiginfo-data.h: New file.
128         * stdio-common/psiginfo-define.h: New file.
129         * stdio-common/Makefile (routines): Add psiginfo.
130         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
131         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
132         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
133         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
134         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
135         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
136         * io/sys/stat.h: Move mknodat definition into same conditional as
137         mknod.
138         * time/sys/time.h: futimesat is not among the functions accepted
139         into the POSIX standard.
140
141         * include/features.h: If no feature selection given and we select
142         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
143         * posix/Versions: Export __posix_getopt.
144         * posix/getopt.c (_getopt_initialize): Take additional parameter.
145         Use it to alternatively initialize __posixly_correct.
146         (_getopt_internal_r): Take addition parameter.  Pass on to
147         _getopt_initialize.
148         (_getopt_internal): Take addition parameter.  Pass on to
149         _getopt_internal_r.
150         (getopt): Pass additional zero to _getopt_internal.
151         (__posix_getopt): New function.
152         * posix/getopt.h: Add redirection for getopt.
153         * posix/getopt1.c (getopt_long): Pass additional zero to
154         _getopt_internal.
155         (getopt_long_only): Likewise.
156         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
157         (_getopt_long_only_r): Likewise.
158         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
159         _getopt_internal_r.
160
161 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
162
163         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
164         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
165         * sysdeps/posix/sysconf.c (__sysconf): Handle
166         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
167         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
168
169 2009-02-24  Roland McGrath  <roland@redhat.com>
170
171         [BZ #9895]
172         * README.template: Reworded not to use substituted version number.
173         Renamed to ...
174         * README: ... here (no longer generated).
175         * Makefile (README): Target removed.
176
177 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
178
179         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
180         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
181         instead.
182
183         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
184
185         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
186
187 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
188
189         * po/bg.po: Update from translation team.
190
191 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
192
193         * stdlib/monetary.h: Uglify function parameter names.
194         * sunrpc/rpc/pmap_clnt.h: Likewise.
195         * sunrpc/rpc/svc.h: Likewise.
196         * sunrpc/rpc/xdr.h: Likewise.
197         * sunrpc/rpc/clnt.h: Likewise.
198         * resolv/netdb.h: Likewise.
199         * resolv/arpa/nameser.h: Likewise.
200         * resolv/resolv.h: Likewise.
201         * argp/argp.h: Likewise.
202         * locale/langinfo.h: Likewise.
203         * io/sys/stat.h: Likewise.
204         * posix/spawn.h: Likewise.
205         * nis/rpcsvc/nislib.h: Likewise.
206         * malloc/obstack.h: Likewise.
207         * sysdeps/ia64/bits/link.h: Likewise.
208         * sysdeps/i386/bits/link.h: Likewise.
209         * sysdeps/s390/bits/link.h: Likewise.
210         * sysdeps/powerpc/bits/link.h: Likewise.
211         * sysdeps/x86_64/bits/link.h: Likewise.
212         * sysdeps/sparc/bits/link.h: Likewise.
213         * sysdeps/sh/bits/link.h: Likewise.
214         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
215         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
216         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
217         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
218
219 2008-12-01  Fredrik Unger  <fred@tree.se>
220
221         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
222         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
223         _FP_UNPACK_RAW_2, fix up first argument.
224
225 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
226
227         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
228         (GET_NPROCS_PARSER): Change parameters and use next_line.
229         (__get_nprocs): Rewrite to not use stdio routines.
230         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
231         Change parameters and use next_line.
232
233 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
234
235         [BZ #5381]
236         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
237         Change mempool_alloc prototype.
238         * nscd/mem.c (gc): Don't handle mem_in_flight.
239         (mempool_alloc): Third parameter now only indicates whether this is the
240         first call (to allocate data) or not.  If it is, get db rdlock.
241         Release it on error.  Don't handle mem_in_flight.
242         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
243         Adjust third parameter of mempool_alloc calls.
244         Nothing to do here in case mempool_alloc fails.
245         Avoid local variable shadowing parameter.  No need to get db rdlock
246         before calling cache_add.
247         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
248         no mem_in_flight array anymore.
249         * nscd/connections.c: Remove definition and handling of mem_in_flight.
250         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
251         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
252         in case mempool_alloc fails. No need to get db rdlock before calling
253         cache_add.
254         * nscd/hstcache.c (cache_addhst): Likewise.
255         * nscd/initgrcache.c (addinitgroupsX): Likewise.
256         * nscd/servicescache.c (cache_addserv): Likewise.
257         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
258
259 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
260
261         * po/lt.po: Update from translation team.
262
263 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
264
265         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
266         defined, allow additional data to be added using the optional
267         MORE_ELF_HEADER_DATA macro.
268         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
269         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
270
271 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
272
273         * include/atomic.h: Define catomic_and if not already defined.
274         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
275         * sysdeps/i386/i486/bits/atomic.h: Likewise.
276
277 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
278
279         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
280         Change all callers.
281         (_int_realloc): Likewise.  Third argument is now padded size
282         All _int_* functions are now static.
283
284         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
285         * malloc/arena.c: Likewise.
286         * include/malloc.h: Remove now unnecessary declarations of the _int_*
287         functions.
288
289         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
290         easily.
291
292         * malloc/malloc.c: Add branch prediction for use of the hooks.
293
294         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
295
296 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
297
298         [BZ #7095]
299         * bits/confname.h: Add SUSv7 macros for getconf environments.
300         * bits/environments.h: Likewise.
301         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
302         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
303         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
304         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
305         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
306         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
307         * posix/getconf.c: Likewise.
308         * posix/sysconf.c: Likewise.
309         * sysdeps/posix/sysconf.c: Likewise.
310         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
311         environments.
312
313 2009-01-16  Petr Baudis  <pasky@suse.cz>
314
315         [BZ #9753]
316         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
317         even if we currently have zero nscount.
318
319 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
320
321         [BZ #9781]
322         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
323         the input line is too long.
324
325         * po/Makefile (libc.pot): Add f_print as function taking c-format
326         parameter.
327
328         * debug/xtrace.sh: Unify translatable messages.
329         * elf/ldd.bash.in: Likewise.
330         * elf/sprof.c: Likewise.
331         * locale/programs/locale.c: Likewise.
332         * malloc/memusage.sh: Likewise.
333         * nss/getent.c: Likewise.
334
335 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
336
337         * debug/pcprofiledump.c (print_version,
338         argp_program_version_hook): New function.
339         * elf/ldconfig.c (more_help): New function.
340         (argp): Use it.
341         * elf/sln.c (usage): New function.
342         (main): Support --help and --version.
343         * malloc/memusagestat.c (print_version): New function.
344         (argp_program_version_hook): New variable.
345         * nscd/nscd.c (more_help): New function.
346         (argp): Use it.
347         * posix/getconf.c (main): Send --version output to stdout.
348         Support --help.
349         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
350         arguments.  All callers changed.
351         (print_version): New function.
352         (parseargs): Support --help and --version.
353         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
354         changed.
355         (print_version): New function.
356         (main): Use getopt_long.  Support --help and --version.
357         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
358         --version.
359
360 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
361
362         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
363         (update_data): Fix handling of wrapping back
364         to the beginning of the buffer.
365
366         [BZ #9823]
367         * stdio-common/psignal.c (psignal): Fix test for empty string.
368
369 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
370
371         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
372         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
373         move _null_auth to .rodata.
374
375         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
376         value of 24.
377
378         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
379
380         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
381         today than when the original code was written.  Use larger
382         buffers.  This also makes it unnecessary to have stat information,
383         if this causes extra efforts.
384         (__opendir): In case O_DIRECTORY works, don't call fstat just for
385         __alloc_dir.
386
387 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
388
389         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
390         is set.
391         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
392         * sysdeps/sh/sh4/__longjmp.S: Likewise.
393         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
394         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
395         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
396         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
397
398 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
399
400         * po/ru.po: Update from translation team.
401
402 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
403
404         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
405         Add _tid slot to maintain consistency with kernel.
406
407 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
408
409         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
410         incomplete characters at end of input buffer.
411         * libio/Makefile (tests): Add tst-fgetwc.
412         * libio/tst-fgetwc.c: New file.
413         * libio/tst-fgetwc.input: New file.
414
415 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
416
417         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
418
419 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
420
421         [BZ #9793]
422         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
423         *OUTBUFSTART unless the whole output fit into the buffer.
424         * iconv/Makefile (tests): Add tst-iconv4.
425         * iconv/tst-iconv4.c: New file.
426
427 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
428
429         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
430         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
431
432 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
433
434         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
435         newer linker scripts.
436
437 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
438
439         [BZ #7040]
440         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
441         inotify_rm_watch should have type int.
442
443 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
444
445         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
446         Make aligned_restore_vmx a local symbol.
447         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
448         Likewise.
449
450 2009-01-30  Andreas Jaeger  <aj@suse.de>
451
452         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
453         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
454         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
455         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
456         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
457         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
458         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
459
460 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
461
462         [BZ #9726]
463         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
464         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
465
466 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
467
468         [BZ #9726]
469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
470         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
472         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
473
474 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
475
476         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
477         memcpy instead of memcmp.
478         (_dl_setup_pointer_guard): Likewise.
479
480 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
481
482         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
483         manipulated brk, use malloc_printerr.
484         * misc/sbrk.c (__sbrk): Better error handling for nonsense
485         requests.
486
487 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
488
489         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
490         rindex): For C++ add inlines so that they can be recognized as
491         builtins.
492         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
493
494 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
495             Jakub Jelinek  <jakub@redhat.com>
496
497         * string/string.h: Define correct C++ prototypes for gcc 4.4.
498         * wcsmbs/wchar.h: Likewise.
499
500 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
501
502         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
503         (stackinfo_sub_sp): Define.
504
505 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
506
507         [BZ #9750]
508         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
509         * include/alloca.h (alloca_account): Define.
510         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
511         (stackinfo_sub_sp): Define.
512
513         * nscd/connections.c (nscd_init): If database file access fails
514         check whether this is due to permission problems and bail in that
515         case.
516
517         [BZ #9741]
518         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
519         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
520
521 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
522
523         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
524         Add "t" to clobber list.
525         (INTERNAL_SYSCALL_NCS): Likewise.
526
527 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
528
529         * nss/getent.c (print_networks): Don't print comma between aliases.
530
531 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
532
533         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
534
535         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
536         the hash table.
537         * misc/Makefile (tests): Add bug-hsearch1.
538         * misc/bug-hsearch1.c: New file.
539
540 2009-01-22  Roland McGrath  <roland@redhat.com>
541
542         * Makeconfig (%.v.i): Strip trailing # comments,
543         not only whole-line comments.
544
545 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
546
547         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
548         one parameter.  If non-NULL use it to initialize return value.
549         (_dl_setup_pointer_guard): New function.
550         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
551         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
552         * elf/rtld.c (security_init): Pass _dl_random to
553         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
554         pointer_chk_guard.
555         * elf/dl-sysdep.c (_dl_random): New variable.
556         (_dl_sysdep_start): Handle AT_RANDOM.
557         (_dl_show_auxv): Likewise.
558         * elf/dl-support.c (_dl_random): New variable.
559         (_dl_aux_init): Handle AT_RANDOM.
560         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
561         to _dl_setup_stack_chk_guard.
562
563         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
564
565 2009-01-10  Roland McGrath  <roland@redhat.com>
566
567         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
568
569 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
570
571         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
572
573         [BZ #9706]
574         * nss/nss_files/files-parse.c (strtou32): New function.
575         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
576         across 32-bit and 64-bit platforms.
577         (INT_FIELD_MAYBE_NULL): Likewise.
578
579 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
580
581         [BZ #9720]
582         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
583         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
584         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
585         Likewise.
586
587 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
588
589         [BZ #697]
590         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
591         being NULL also if there are no backreferences.
592         * posix/rxspencer/tests: Add testcases.
593
594 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
595
596         [BZ #9697]
597         * posix/bug-regex17.c: Add testcases.
598         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
599         handling.
600
601 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
602
603         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
604         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
605         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
606         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
607         for elf subdir.
608         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
609         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
610         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
611         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
612         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
613         * sysdeps/unix/sysv/linux/s390/Versions: New file.
614
615 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
616
617         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
618         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
619         re_string_skip_chars, re_string_reconstruct): Likewise.
620         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
621
622 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
623
624         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
625         adjust the buffer alignment.
626
627 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
628
629         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
630         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
631         net/route.h.
632
633         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
634         flavor to description only when flavor is not NULL.
635
636         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
637         mutex after SIGIO/SIGURG lookup loop.
638
639 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
640
641         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
642
643 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
644
645         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
646         handling.
647
648 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
649
650         * sysdeps/unix/sysv/linux/kernel-features.h
651         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
652
653         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
654         if no output is written.
655
656         * version.h: Bump to 2.10 development.
657
658         * posix/getconf.c: Update copyright year.
659         * nss/getent.c: Likewise.
660         * iconv/iconvconfig.c: Likewise.
661         * iconv/iconv_prog.c: Likewise.
662         * elf/ldconfig.c: Likewise.
663         * catgets/gencat.c: Likewise.
664         * csu/version.c: Likewise.
665         * elf/ldd.bash.in: Likewise.
666         * elf/sprof.c (print_version): Likewise.
667         * locale/programs/locale.c: Likewise.
668         * locale/programs/localedef.c: Likewise.
669         * nscd/nscd.c (print_version): Likewise.
670         * debug/xtrace.sh: Likewise.
671         * malloc/memusage.sh: Likewise.
672         * malloc/mtrace.pl: Likewise.
673         * debug/catchsegv.sh: Likewise.
674
675 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
676
677         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
678         script.
679
680 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
681
682         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
683         gethostbyname4_r function call succeeded, just leave the loop.
684
685         [BZ #9694]
686         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
687         very end.
688         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
689         * wctype/Makefile (tests): Add bug-wctypeh.
690         * wctype/bug-wctypeh.c: New file.
691
692         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
693         LOCALDOMAIN is defined.
694         * nscd/nscd_getai.c (__nscd_getai): Likewise.
695
696         * sysdeps/x86_64/bits/select.h: New file.
697
698         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
699
700 2008-12-21  Bruno Haible  <bruno@clisp.org>
701
702         [BZ #9677]
703         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
704         if no output is written.
705
706 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
707
708         * login/utmp_file.c (pututline_file): Replace call to dup2 with
709         libc internal symbol __dup2 to avoid access through the PLT.
710
711 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
712
713         [BZ #6545]
714         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
715         available only for __USE_GNU.
716
717         * inet/Makefile (tests): Add tst-getni2.
718         * inet/tst-getni2.c: New file.
719
720         [BZ #7080]
721         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
722         NULL when NI_NAMEREQD is set.
723         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
724         * inet/Makefile (tests): Add tst-getni1.
725         * inet/tst-getni1.c: New file.
726
727 2008-12-03  Petr Baudis  <pasky@suse.cz>
728
729         [BZ #7067]
730         * nscd/connections.c (invalidate_cache): Use prune_run_lock
731         instead of prune_lock.
732         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
733         * nscd/nscd.h (database_dyn): Add prune_run_cache.
734
735 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
736
737         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
738         use.
739
740         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
741         handling.
742
743         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
744         after reading name server list.
745
746         [BZ #7058]
747         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
748         handling for host name aliases.
749
750 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
751
752         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
753         instead of doing things manually.
754
755 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
756
757         * posix/regex_internal.h (build_wcs_upper_buffer):
758         Return type is reg_error_t.
759
760 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
761
762         * posix/globtest.sh: Use mktemp to create temporary file and
763         directory.
764
765         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
766         sets correctly.
767         (__CPU_CLR_S): Likewise.
768         (__CPU_ISSET_S): Likewise.
769
770 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
771             Ulrich Drepper  <drepper@redhat.com>
772
773         * scripts/firstversion.awk: Use custom comparison function to compare
774         version numbers.
775         * scripts/versions.awk: Use sort invocation which can handle
776         multi-digit sub-version numbers.
777
778 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
779
780         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
781         * locale/iso-639.def: Add Chhattisgarhi entry.
782
783 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
784
785         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
786         ESRCH return value.
787         (_nss_dns_gethostbyname4_r): Likewise.
788         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
789         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
790         gethostbyname4_r, we don't have a separate IPv6 status, so copy
791         the no_data variable.
792
793         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
794         information at the correct index.
795
796         * socket/sys/socket.h: Declare accept4.
797         * socket/accept4.c: New file.
798         * sysdeps/unix/sysv/linux/accept4.c: New file.
799         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
800         * socket/Makefile (routines): Add accept4.
801         * socket/Versions: Export accept4 with version GLIBC_2.10.
802         * socket/paccept.c: Removed.
803         * sysdeps/unix/sysv/linux/paccept.c: Removed.
804         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
805         * Versions.def: Define GLIBC_2.10 for libc.
806         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
807
808         * nscd/connections.c: Use accept4.
809
810         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
811
812 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
813
814         * resolv/res_send.c (send_dg): Create sockets with non-blocking
815         flag already set.
816
817         * stdlib/setenv.c (unsetenv): Don't search environment if it does
818         not exist.
819         * stdlib/Makefile (tests): Add tst-unsetenv1.
820         * stdlib/tst-unsetenv1.c: New file.
821
822 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
823
824         * login/utmp_file.c (file_writable): New variable.
825         (setutent_file): Don't try to open file for writing.
826         (pututline_file): Before writing, make descriptor writable if
827         necessary.
828
829 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
830
831         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
832         to IPv4 or IPv6 if an interface has been found.
833
834 2008-11-26  Roland McGrath  <roland@redhat.com>
835
836         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
837         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
838
839         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
840         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
841         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
842
843         * elf/elf.h (NT_386_IOPERM): New macro.
844         (NT_PPC_VSX): New macro.
845
846 2008-11-25  Roland McGrath  <roland@redhat.com>
847
848         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
849         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
850         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
851         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
852         Subdirectories moved to ports repository.
853         * configure.in (base_machine): Remove alpha case.
854
855 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
856
857         * sysdeps/mach/strerror_l.c: New file.
858
859 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
860
861         [BZ #6411]
862         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
863         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
864         magic numbers.
865         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
866         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
867         (relax_fenv_state): Same as above.
868         (FPSCR_29): Reserve bit in ISA 2.05.
869         (FPSCR_NI): Provide define for compat.
870         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
871         magic numbers.
872         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
873         magic numbers.
874         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
875         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
876         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
877         access to hwcap to account for hwcap size increase to uint64_t.
878         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
879         Likewise.
880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
881         (*setcontext): Likewise.
882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
883         New file.
884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
885         New file.
886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
887         (*setcontext): dynamically select mtfsf insn based on
888         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
889         increase to uint64_t.
890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
891         (*swapcontext): 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/powerpc64/power6/fpu/setcontext.S:
895         New file.
896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
897         New file.
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
899         (*setcontext): dynamically select mtfsf insn based on
900         PPC_FEATURE_HAS_DFP.
901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
902         (*swapcontext): dynamically select mtfsf insn based on
903         PPC_FEATURE_HAS_DFP.
904
905 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
906
907         * version.h: Bump for 2.9 release.
908         * include/features.h (__GLIBC_MINOR__): Bump to 9.
909
910         [BZ #7029]
911         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
912         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
913         all the rounding.
914
915 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
916
917         [BZ #7009]
918         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
919         unknown request types for now.
920
921 2008-11-11  Roland McGrath  <roland@redhat.com>
922
923         * sysdeps/x86_64/configure: New file.
924
925         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
926         * configure: Regenerated.
927
928 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
929
930         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
931         correct instruction to remove the stack frame.
932
933 2008-11-03  Michael Matz  <matz@suse.de>
934
935         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
936         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
937
938 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
939
940         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
941         Remove.
942
943         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
944         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
945         of the thread variable instead of void *.
946         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
947         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
948         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
949         __libc_tsd_define arguments.
950         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
951         __libc_tsd_address arguments.  Remove union hack.
952         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
953         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
954         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
955         Adjust __libc_tsd_{set,get} arguments.
956         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
957         __libc_tsd_define arguments.
958         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
959         arguments.
960         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
961         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
962         (LOCALE): Adjust __libc_tsd_define arguments.
963         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
964         arguments.
965         (LOCALE): Adjust __libc_tsd_define arguments.
966         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
967         arguments.
968         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
969         arguments.
970
971 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
972
973         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
974         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
975
976 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
977
978         [BZ #6966]
979         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
980
981 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
982             Ulrich Drepper  <drepper@redhat.com>
983
984         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
985         definition for GCC 3.1 and later.
986
987 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
988
989         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
990         refetch dtv, as it might have changed.
991         * elf/Makefile: Add rules to build and run tst-tls18.
992         * elf/tst-tls18.c: New test.
993         * elf/tst-tlsmod18a.c: New file.
994
995 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
996
997         [BZ #6875]
998         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
999
1000 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1001
1002         [BZ #6867]
1003         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1004
1005         [BZ #6919]
1006         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1007         Fix length of copy operation.
1008
1009 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1010
1011         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1012         and fix its calling convention.
1013
1014 2008-10-07  Andreas Schwab  <schwab@suse.de>
1015
1016         [BZ #6942]
1017         * resolv/res_send.c (send_vc): Fix last change.
1018         (send_dg): Align here as well.
1019
1020 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1021
1022         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1023         return value in case rlimit is RLIM_INFINITY.
1024
1025         [BZ #6947]
1026         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1027         for UL_SETFSIZE.
1028         * resource/Makefile (tests): Add bug-ulimit1.
1029         * resource/bug-ulimit1.c: New file.
1030
1031         [BZ #6974]
1032         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1033         without dot.  Properly terminate the string with a null byte.
1034         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1035
1036         [BZ #6980]
1037         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1038         negative sizees.
1039         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1040         negative __size.
1041
1042         [BZ #6995]
1043         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1044
1045 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
1046
1047         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1048         abort if there is no initgroups_dyn function.
1049
1050         * resolv/res_send.c (send_dg): On timeout, only return nonzero
1051         result if any of the queries really provided an answer.
1052
1053 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
1054
1055         * po/lt.po: Update from translation team.
1056
1057 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
1058
1059         * po/id.po: Update from translation team.
1060
1061 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
1062
1063         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1064         Fix tests for existence of second reply.
1065
1066 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
1067
1068         * po/id.po: New file.
1069         Contributed by the Indonesian translation team.
1070
1071 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
1072
1073         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1074         initialization.
1075
1076 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1077
1078         * elf/Makefile: Add rules to build and run tst-tls17.
1079         * elf/tst-tls17.c: New test.
1080         * elf/tst-tlsmod17a.c: New file.
1081         * elf/tst-tlsmod17b.c: Likewise.
1082
1083 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1084
1085         * stdlib/divmod_1.c: Use correct type for dummy variable.
1086         * stdlib/mod_1.c: Likewise.
1087
1088 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1089
1090         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1091
1092 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1093
1094         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1095         __nonnull order for C++.
1096         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1097         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1098
1099 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1100
1101         * stdlib/longlong.h: Update from GCC.
1102
1103 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1104             David S. Miller  <davem@davemloft.net>
1105
1106         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1107         make sure any registers used with 64-bit 'branch-on-register'
1108         instructions have their top 32-bits clear.
1109         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1110         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1111
1112 2008-09-18  Andreas Schwab  <schwab@suse.de>
1113
1114         [BZ #6942]
1115         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1116         Properly handle partial reads.
1117
1118 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1119
1120         * elf/elf.h (STO_MIPS_PLT): New.
1121         (R_MIPS_COPY): New.
1122         (R_MIPS_JUMP_SLOT): New.
1123         (R_MIPS_NUM): Redefine to 128.
1124         (DT_MIPS_PLTGOT): New.
1125         (DT_MIPS_RWPLT): New.
1126         (DT_MIPS_NUM): Redefine to 0x35.
1127
1128 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1129
1130         * timezone/africa: Update from tzdata2008f.
1131         * timezone/asia: Likewise.
1132         * timezone/australasia: Likewise.
1133         * timezone/europe: Likewise.
1134         * timezone/leapseconds: Likewise.
1135         * timezone/northamerica: Likewise.
1136         * timezone/southamerica: Likewise.
1137         * timezone/zone.tab: Likewise.
1138
1139 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1140
1141         * nscd/connections.c: Disable use of paccept for now.
1142
1143 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * socket/Versions: Remove paccept export for GLIBC_2.9.
1146         * socket/Makefile (routines): Remove paccept.
1147         * socket/sys/socket.h: Remove paccept declaration.
1148
1149         * po/sv.po: Update from translation team.
1150
1151 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1152
1153         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1154         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1155
1156 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1157
1158         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1159         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1160
1161 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1162
1163         * sunrpc/rpc/svc.h: Declare svcfd_create.
1164         Patch by Michael Solberg <msolberg@redhat.com>.
1165
1166 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1167             Ulrich Drepper  <drepper@redhat.com>
1168
1169         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1170         _int_valloc fails.
1171         (public_pVALLOc): Likewise.
1172
1173 2008-09-02  Andreas Jaeger  <aj@suse.de>
1174
1175         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1176         commit.
1177
1178 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1179
1180         [BZ #6860]
1181         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1182
1183 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1184
1185         * Makefile (check-data): Check data directory in add-ons.
1186         * elf/Makefile (check-data): Likewise.
1187
1188 2008-08-18  Roland McGrath  <roland@redhat.com>
1189
1190         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1191         * configure: Regenerated.
1192         * config.make.in (cflags-cpu): New substituted variable.
1193         (with-cpu): Variable removed.
1194         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1195
1196 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1197
1198         [BZ #6845]
1199         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1200         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1201         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1202         redundant.  Functions which call floating point assembler operations
1203         should go into a sysdeps powerpc/fpu directory.
1204
1205 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1206
1207         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1208         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1209
1210 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1211
1212         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1213
1214         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1215         change related to AT_EXECFN.  We cannot use that string.
1216         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1217         _dl_execfn member.
1218         * elf/dl-support.c: Remove _dl_execfn variable.
1219         (_dl_aux_init): Remove handling of AT_EXECFN.
1220         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1221         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1222
1223 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1224
1225         [BZ #6544]
1226         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1227         byte gets added to writes and seeks from the end use the length of
1228         the buffer and not the currently terminating NUL byte.
1229
1230         [BZ #6634]
1231         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1232         Set to true if locking failed.
1233         (getutid_r_file): Adjust caller.
1234         (pututline_file): Likewise.  Return NULL in this case.
1235         Patch mostly by halesh.s@gmail.com.
1236
1237 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1238
1239         [BZ #6589]
1240         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1241         Define.
1242         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1243
1244 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1245
1246         [BZ #6839]
1247         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1248         macro since it is now available in elf/dynamic-link.h.
1249
1250 2008-08-12  Roland McGrath  <roland@frob.com>
1251
1252         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1253         in case used outside of libc.
1254         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1255
1256 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1257
1258         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1259         directly instead of going through dn_comp.
1260
1261 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1262
1263         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1264         Fix asm constraints.
1265
1266 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1267
1268         [BZ #6790]
1269         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1270         (IPV6_PMTUDISC_PROBE): Likewise.
1271
1272 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1273
1274         [BZ #6791]
1275         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1276
1277 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1278             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1279
1280         [BZ #6817]
1281         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1282         Added the members 'vsx' and 'arch_2_06'.
1283         (_dl_powerpc_platforms): Add the member 'power7'.
1284         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1285         to reflect the changes required by VSX and ISA 2.06.
1286         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1287         'power7'.
1288         Defined PPC_PLATFORM_POWER7.
1289         (_dl_string_platform): Add support for POWER7.
1290         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1291         capability and ISA 2.06.
1292
1293 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1294
1295         [BZ #6824]
1296         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1297         macro to detect use of 128 bit long double.
1298         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1299
1300 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1301
1302         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1303
1304         [BZ #5794]
1305         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1306         parameters.
1307         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1308         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1309
1310 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1311
1312         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1313         guaranteed to be large enough to read inotify event.  Ignore
1314         EAGAIN error.  Better error message.  Add branch predicition.
1315         (main_loop_epoll): Likewise.
1316
1317 2008-08-02  Roland McGrath  <roland@frob.com>
1318
1319         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1320         Add memory clobbers.
1321
1322 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1323
1324         * manual/arith.texi: Avoid @strong{Note:}.
1325         * manual/creature.texi: Likewise.
1326         * manual/filesys.texi: Likewise.
1327         * manual/math.texi: Likewise.
1328         * manual/memory.texi: Likewise.
1329         * manual/resource.texi: Likewise.
1330         * manual/syslog.texi: Likewise.
1331         * manual/time.texi: Likewise.
1332
1333         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1334         to prevent warning.
1335
1336 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1337
1338         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1339         new epoll_create1 interface.
1340         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1341         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1342         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1343
1344         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1345         (NS_GET32): Likewise.
1346
1347         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1348         syscalls, too.
1349
1350         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1351         use the AT_EXECFN value if it is no absolute path.
1352         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1353         __ASSUME_AT_EXECFN.
1354
1355         * Versions.def: Add GLIBC_2.9 to libresolv.
1356         * include/resolv.h: Remove hidden proto declarations for __ns_*
1357         functions.  Add them for __dn_count_labels and __p_secstodate.
1358         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1359         Define ns_msg_getflags macro here.
1360         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1361         and __p_secstodate.
1362         * resolv/Versions: Export functions from <arpa/nameser.h> from
1363         libresolv in version GLIBC_2.9.
1364         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1365         hidden definitions.
1366         * resolv/ns_netint.c: Likewise.
1367         * resolv/ns_parse.c: Likewise.
1368         * resolv/ns_print.c: Likewise.
1369         * resolv/ns_samedomain.c: Likewise.
1370         * resolv/ns_ttl.c: Likewise.
1371         * resolv/arpa/nameser_compat.h: Likewise.
1372         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1373         function calls.
1374         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1375         instead of ns_get16.
1376         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1377         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1378         (gaih_getanswer_slice): Likewise.
1379         * resolv/Makefile (libresolv-routines): Add ns_date.
1380         * resolv/ns_date.c: New file.
1381
1382         * elf/Makefile (check-localplt.out): Also check libresolv and
1383         libcrypt.
1384
1385 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1386
1387         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1388         __ASSUME_O_CLOEXEC.
1389
1390 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1391
1392         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1393         buffer passed to NSS functions.
1394
1395         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1396
1397         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1398         Define.
1399
1400         * misc/syslog.c (openlog_internal): Fix compile problem.
1401
1402 2008-07-28  Roland McGrath  <roland@redhat.com>
1403
1404         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1405
1406 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1407
1408         * io/ftw.c (add_object): Remove inline to avoid warning.
1409
1410         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1411
1412         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1413         Use it instead of locally defined resplen2 variable.
1414         (res_nsend): Adjust for __libc_res_nsend interface change.
1415         (send_vc): Initialize *resplen2 if necessary.  Read length of
1416         package into an appropriately aligned variable.  Store converted length
1417         in new variable and use it appropriately.
1418         Add branch prediction help.
1419         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1420         and pass it on to __libc_res_nsend.  Adjust all callers.
1421         (__libc_res_nsearch): Likewise.
1422         (__libc_res_nqeurydomain): Likewise.
1423         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1424         change.
1425         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1426         Define resplen2 variable and pass it to __libc_res_nsearch and then
1427         to gaih_getanswer.
1428         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1429         Add branch prediction.
1430         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1431         (gaih_getanswer): Don't decode second slice if first one failed due
1432         to a too small buffer.  Don't let not found status of second
1433         decoder shadow results of the first.
1434         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1435         and __libc_res_nquery interface changes
1436         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1437         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1438         __libc_res_nsearch, and __libc_res_nsend.
1439         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1440         change.
1441         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1442         __libc_res_nsearch interface changes.
1443
1444 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1447
1448         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1449         file descriptors with close-on-exec set.
1450         (exec_comm_child): Fix the case where the write end of the pipe is
1451         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1452
1453         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1454         * io/pipe2.c: Likewise.
1455         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1456         instead of __ASSUME_PACCEPT.
1457         * include/unistd.h: Declare __have_pipe2.
1458         * libio/iopopen.c: Implement "e" flag.
1459         * libio/Makefile (tests): Add tst-popen1.
1460         * libio/tst-popen1.c: New file.
1461
1462         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1463         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1464
1465 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1466
1467         [BZ #6771]
1468         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1469         success call of _IO_SEEKOFF or calls which failed because the
1470         descriptor is for a pipe.
1471
1472         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1473         magic number.
1474
1475         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1476
1477         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1478         F_SETFD use if we know fopen set the flag.
1479
1480         * login/utmp_file.c (setutent_file): Minor optimization in case
1481         O_CLOEXEC is available.
1482
1483 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1484
1485         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1486         * elf/Makefile: Use pie-ccflag variable.
1487         * nscd/Makefile: Likewise.
1488         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1489
1490 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1491
1492         [BZ #6724]
1493         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1494         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1495         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1496         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1497         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1498         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1499         utmp32, utmpx32 and login32.
1500         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1501         versions of struct utmp functions to libc and libutil.
1502         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1503         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1504         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1505         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1506         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1507         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1508         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1509         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1510         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1511         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1512         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1513         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1514         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1515         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1516         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1517         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1518         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1519         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1520         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1521         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1522         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1523         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1524
1525 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1526
1527         * scripts/gen-as-const.awk: Generate more widely usable code by
1528         using 64-bit arithmetic.
1529
1530         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1531         the same treatment as narrow output code in last patch.
1532
1533         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1534
1535         [BZ #6763]
1536         * elf/dl-load.c (local_strdup): Remove inline.
1537         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1538         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1539         part of the object.
1540
1541         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1542
1543 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1544
1545         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1546         the new syscalls, too.
1547
1548         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1549         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1550
1551         [BZ #6698]
1552         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1553         parameter for end of buffer.  If temporary copy is too large use
1554         malloc.
1555         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1556         interface change.
1557         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1558         string rewrite when allocating buffer.
1559
1560         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1561         syscalls, too.
1562
1563         * nscd/connections.c (nscd_init): Clean up fcntl call.
1564
1565         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1566         SOCK_NONBLOCK if possible.
1567
1568         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1569         SOCK_CLOEXEC if available.
1570
1571         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1572         __libc_clntudp_bufcreate_internal.
1573         * include/sys/socket.h: Declare __have_sock_cloexec.
1574         * socket/Makefile (aux): Add have_sock_cloexec.
1575         * socket/have_sock_cloexec.c: New file.
1576         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1577         __libc_clntudp_bufcreate.
1578         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1579         which takes an additional parameter.  Create socket with non-blocking
1580         mode and close-on-exec flag set, if wanted.
1581         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1582         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1583         instead of clntudp_create.  The socket has already the close-on-exec
1584         flag set if SOCK_CLOEXEC is defined.
1585
1586 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1587
1588         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1589         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1590         appropriate.
1591         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1592         non-blocking mode by using socket, paccept, and inotify_init1.
1593
1594         * Versions.def (glibc): Add GLIBC_2.9.
1595         * io/Makefile (routines): Add dup3 and pipe2.
1596         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1597         * io/dup3.c: New file.
1598         * io/pipe2.c: New file.
1599         * posix/unistd.h: Declare dup3 and pipe2.
1600         * socket/Makefile (routines): Add paccept.
1601         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1602         * socket/paccept.c: New file.
1603         * socket/sys/socket.h: Declare paccept.
1604         * sysdeps/unix/syscalls.list: Add entry for dup3.
1605         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1606         epoll_create2 and inotify_init1.
1607         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1608         * sysdeps/unix/sysv/linux/paccept.c: New file.
1609         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1610         possible.
1611         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1612         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1613         inotify_init1, and pipe2 entries.
1614         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1615         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1616         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1617         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1618         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1619         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1620         SOCK_NONBLOCK.
1621         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1622         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1623         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1624         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1625         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1626         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1627         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1628         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1629         EPOLL_NONBLOCK.  Declare epoll_create2.
1630         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1631         EFD_NONBLOCK.
1632         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1633         IN_NONBLOCK.  Declare inotify_init1.
1634         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1635         SFD_NONBLOCK.
1636         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1637         TFD_NONBLOCK.
1638
1639         * elf/elf.h: Define AT_EXECFN.
1640         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1641         LD_ORIGIN_PATH.
1642         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1643         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1644         if __ASSUME_AT_EXECFN is defined.
1645         (_dl_aux_init): Handle AT_EXECFN.
1646         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1647         for 2.6.27 and up.
1648         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1649         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1650         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1651         _dl_execfn if available and avoid compatibility code if
1652         __ASSUME_AT_EXECFN is defined.
1653
1654         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1655         _dl_discover_osversion only for older kernels.
1656
1657 2008-07-22  Roland McGrath  <roland@frob.com>
1658
1659         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1660
1661 2008-07-21  Roland McGrath  <roland@frob.com>
1662
1663         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1664         returned too much data out of line.
1665
1666 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1667
1668         * locale/setlocale.c (setname): Remove inline to avoid compiler
1669         warning.
1670
1671         [BZ #6712]
1672         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1673
1674 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1675
1676         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1677         doesn't manage to write anything, fail.
1678
1679         * malloc/hooks.c (__malloc_check_init): Remove printf.
1680
1681 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1682
1683         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1684
1685 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1686
1687         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1688         from inotify.
1689         (main_loop_epoll): Likewise.
1690
1691 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1692
1693         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1694
1695         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1696         if DEBUG is defined.
1697
1698         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1699         query.  Adjust buffer size computation for padding.
1700
1701 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1702
1703         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1704         * stdio-common/tst-setvbuf1.c: New file.
1705         * stdio-common/tst-setvbuf1.expect: New file.
1706
1707         [BZ #6719]
1708         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1709         when selecting fully-buffered stream.
1710         Patch by Wang Xin <wxinee@gmail.com>.
1711
1712 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1713
1714         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1715         (__open_2): New function.
1716         (__open64_2): New alias to __open_2.
1717         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1718         (__openat_2): New function.
1719         (__openat64_2): New alias to __openat_2.
1720
1721 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1722
1723         [BZ #6723]
1724         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1725
1726 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1727
1728         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1729         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1730         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1731         __hurd_dfail.
1732         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1733         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1734         * sysdeps/mach/hurd/send.c (__send): Likewise.
1735         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1736         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1737
1738 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1739
1740         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1741         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1742         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1743         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1744         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1745         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1746
1747 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1748
1749         [BZ #6657]
1750         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1751         of %EY.
1752         Patch by Petr Baudis.
1753
1754 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1755
1756         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1757         Patch by Peter Jones <pjones@redhat.com>.
1758
1759 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1760
1761         [BZ #6654]
1762         * stdlib/canonicalize.c (__realpath): readlink can write too much
1763         into the buffer on platforms without PATH_MAX.
1764
1765 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1766
1767         [BZ #6653]
1768         * posix/tst-regex.c (main): Rename to...
1769         (do_test): ... this. Remove cmdline option processing.
1770         (TIMEOUT): Define.
1771         (TEST_FUNCTION): Define.
1772         (CMDLINE_OPTIONS): Define.
1773
1774 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1775
1776         [BZ #5210]
1777         * configure.in: Add -Werror to -fstack-protector test to catch
1778         unsupported architectures.
1779         Patch by Gilles Esponasse <g.esp@free.fr>.
1780
1781 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1782
1783         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1784         getcontext returns ENOSYS.
1785
1786 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1787
1788         * nscd/connections.c (main_loop_poll): Fix test for read error.
1789         (main_loop_epoll): Likewise.
1790
1791 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1792
1793         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1794         better place so it is not called when nscd is used.
1795
1796         * nscd/connections.c: Also recognize and handle changes to the
1797         resolver configuration file.
1798
1799 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1800
1801         * time/strftime.c: Pass reference to tzset_called around to handle
1802         recursive calls.
1803
1804         [BZ #6612]
1805         * time/strftime.c (__strftime_internal): Call tzset() only
1806         when printing timezone-dependent values.
1807         Based on a patch by Petr Baudis <pasky@suse.cz>.
1808
1809         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1810         unconditionally use second gaih_getanswer_slice result.
1811
1812         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1813         (getaddrinfo): RES must always be non-NULL.
1814
1815 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1816
1817         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1818         cr[34] registers.
1819         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1820         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1821         Likewise.
1822         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1823         register.
1824
1825 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1826
1827         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1828         fields.
1829         * nscd/connections.c (inotify_fd): New variable.
1830         (nscd_init): Try to open an inotify descriptor.
1831         If successful, watch files for databases using inotify instead of
1832         having prune threads stat the files.
1833         (nscd_run_prune): Recognize clear_cache flag being set and call
1834         prune_cache appropriately.
1835         (main_loop_poll): Add inotify descriptor to wait set and handle the
1836         reported changes.
1837         (main_loop_epoll): Likewise.
1838         * nscd/cache.c (prune_cache): Don't stat files for databases if
1839         inotify is used.
1840         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1841         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1842
1843         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1844         fixed-size portion of the record.
1845         * nscd/servicescache.c (cache_addserv): Likewise.
1846         * nscd/pwdcache.c (cache_addpw): Likewise.
1847         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1848
1849 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1852         out we don't use uninitialized memory.
1853
1854         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1855         the client.
1856
1857 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1858
1859         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1860         ignore T_DNAME messages.
1861         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1862
1863 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1864
1865         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1866         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1867
1868 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1869
1870         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1871         instead of portstr to nscd_getserv_r.  Patch by
1872         Roman Kagan <rkagan@mail.ru>.
1873
1874 2008-05-26  Jim Meyering  <meyering@redhat.com>
1875
1876         Remove more useless "if" tests before "free".
1877         * include/inline-hashtab.h (htab_delete): Likewise.
1878         * libio/freopen.c (freopen): Likewise.
1879         * libio/freopen64.c (freopen64): Likewise.
1880         * locale/programs/ld-collate.c (collate_read): Likewise.
1881         * misc/fstab.c (libc_freeres_fn): Likewise.
1882         * posix/glob.c (globfree): Likewise.
1883
1884 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1885
1886         * string/Makefile (strop-tests): Add memmem.
1887         * string/test-memmem.c: New file.
1888         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1889         (test_init): Size buf1 according to BUF1PAGES.
1890
1891 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1892
1893         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1894         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1895         (CFLAGS-scanf17.c): New.
1896         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1897         * stdio-common/scanf15.c (main): Likewise.
1898         * stdio-common/scanf16.c: New file.
1899         * stdio-common/scanf17.c: New file.
1900
1901 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * resolv/res_send.c (send_dg): If we already have one of two
1904         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1905         use the one answer insted of failing.
1906
1907 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1908
1909         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1910         being executed on PowerPC as the expected result exceeds IBM
1911         long double 128 __LDBL_MAX__.
1912
1913 2008-05-21  Roland McGrath  <roland@redhat.com>
1914
1915         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1916
1917         * Makefile (check-data): Use $(abi-name) before other guesses.
1918         Look in $(add-ons) dirs before scripts/data/.
1919         * elf/Makefile (check-data): Likewise.
1920
1921         * scripts/soversions.awk: Grok ABI line.
1922         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1923         Emit definition for abi-name variable.
1924
1925 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1926
1927         * string/endian.h: Define new fixed-size hto* and *toh macros only
1928         if [__USE_BSD].
1929
1930         * iconvdata/Depend: Add localedata.
1931
1932 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1933
1934         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1935
1936 2008-05-08  David S. Miller  <davem@davemloft.net>
1937
1938         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1939         HIDDEN_JUMPTARGET.
1940         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1941         (__SYSCALL_CLOBBERS): Remove %g* registers.
1942         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1943         (__SYSCALL_CLOBBERS): Likewise.
1944         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1945         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1946
1947 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1950         (CALL_ERRNO_LOCATION): Define.
1951         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1952         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1953         (CALL_ERRNO_LOCATION): Define.
1954         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1955         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1956         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1957
1958 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1959
1960         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1961         variable.
1962
1963 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1964
1965         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1966         (FIRST_FRAME_POINTER): Define.
1967
1968 2008-05-09  David S. Miller  <davem@davemloft.net>
1969
1970         * sysdeps/sparc/sparc64/backtrace.c: New file.
1971
1972 2008-05-14  David S. Miller  <davem@davemloft.net>
1973
1974         * sysdeps/sparc/machine-gmon.h: New file.
1975         * sysdeps/sparc/sparc-mcount.S: Likewise.
1976         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1977         sysdep_routines in gmon directory.
1978
1979 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1980
1981         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1982
1983 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1984
1985         * resolv/res_query.c (__libc_res_nquery): In case one of two
1986         answer was too short don't try to read that answer's header.
1987
1988         * resolv/res_send.c (send_dg): In case of timeout and there are
1989         two queries and one has been answered, return value indicating
1990         success.
1991
1992 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1993
1994         * nscd/cache.c (cache_add): Take additional parameter specifying
1995         whether this is in response of a cache refill.  Check alignment
1996         of package data.  Revamp waking of pruning thread.
1997         (prune_cache): Small optimization.
1998         * nscd/nscd.h: Adjust cache_add prototypes.
1999         * nscd/aicache.c: Adjust cache_add calls.
2000         * nscd/grpcache.c: Likewise.
2001         * nscd/hstcache.c: Likewise.
2002         * nscd/initgrcache.c: Likewise.
2003         * nscd/pwdcache.c: Likewise.
2004         * nscd/servicescache.c: Likewise.
2005         * nscd/connections.c (restart): Really disable cache use before
2006         exec attempt.  If it fails, reenable cache.
2007         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2008         time to max to be able to notice concurrent cache additions.  Unlock
2009         prune_lock while performing gc.  Afterwards compute wakeup time with
2010         current wakeup_time value in mind.
2011
2012 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
2013
2014         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2015
2016         * nscd/mem.c (gc): Correctly determine highest used array element
2017         in mark.
2018
2019         * nscd/mem.c (markrange): Add assert to check entries are all
2020         aligned.  Small cleanup in bitmap use.
2021
2022         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2023         blockoff of type nscd_ssize_t.
2024         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2025         (mempoll_alloc): Record block offset and not address.
2026
2027         * nscd/mem.c (gc): Fix test for stack overuse.
2028
2029         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2030         more asserts.
2031
2032         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2033         entry is available, believe it.
2034
2035         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2036         no answers return NSS_STATUS_NOTFOUND.
2037         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2038         buffer does not have any content.
2039
2040 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
2041
2042         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2043
2044         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2045         lookup, don't assign canon unconditionally.
2046
2047 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2048
2049         * string/Makefile (distribute): Add str-two-way.h.
2050
2051 2008-03-29  Eric Blake  <ebb9@byu.net>
2052
2053         Rewrite string searches to O(n) rather than O(n^2).
2054         * string/str-two-way.h: New file.  For linear fixed-allocation
2055         string searching.
2056         * string/memmem.c: New implementation.
2057         * string/strstr.c: New implementation.
2058         * string/strcasestr.c: New implementation.
2059
2060 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
2061
2062         * posix/regcomp.c (optimize_utf8): Add a note on why we test
2063         opr.ctx_type.
2064         (calc_first): Initialize constraint field.
2065         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2066         Use search_duplicated_node to avoid loops.  Fix grammar.
2067         (duplicate_node): Merge constraint field for all node types.
2068         (calc_eclosure_iter): Look at constraint field for all node types.
2069         * posix/regex_internal.c (create_cd_newstate): Don't look at
2070         create_cd_newstate.
2071
2072 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2073
2074         [BZ #6428]
2075         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2076
2077         [BZ #6442]
2078         * string/endian.h: Add macros for fixed-size endian conversion.
2079         * bits/byteswap.h: Allow inclusion from <endian.h>.
2080         * sysdeps/i386/bits/byteswap.h: Likewise.
2081         * sysdeps/ia64/bits/byteswap.h: Likewise.
2082         * sysdeps/s390/bits/byteswap.h: Likewise.
2083         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2084         * string/Makefile (tests): Add tst-endian.
2085         * string/tst-endian.c: New file.
2086
2087         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2088         Patch by Reuben Thomas.
2089
2090 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2091
2092         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2093
2094 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2095
2096         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2097
2098         [BZ #6461]
2099         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2100         Add missing braces.
2101         (BODY for __gconv_transform_internal_ascii): Likewise.
2102
2103         [BZ #6472]
2104         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2105         to be treated like link-local addresses.
2106         (match_prefix): Don't treat IPv4 loopback address special when
2107         converting to v4 mapped addressed.
2108
2109         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2110         if necessary.
2111         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2112         * posix/tst-rfc3484-2.c: Likewise.
2113         * posix/tst-rfc3484-3.c: Likewise.
2114
2115         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2116         and SCTP.
2117
2118         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2119
2120         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2121
2122         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2123
2124 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2125
2126         * po/lt.po: New file.  From Lituanian translation team.
2127
2128 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2129
2130         Introduce TLS descriptors for i386 and x86_64.
2131         * include/inline-hashtab.h: New file, copied from 2005's
2132         libiberty, with fix for memory leak imported afterwards by
2133         Glauber de Oliveira Costa.
2134         * elf/tlsdeschtab.h: New file.
2135         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2136         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2137         (CHECK_STATIC_TLS): Move to...
2138         * elf/dynamic-link.h: ... this file.
2139         (TRY_STATIC_TLS): New macro.
2140         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2141         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2142         R_386_TLS_DESC): Define.
2143         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2144         binutils.
2145         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2146         R_X86_64_TLSDESC): Define.
2147         (R_386_NUM, R_X86_64_NUM): Adjust.
2148         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2149         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2150         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2151         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2152         release tlsdesc_table.
2153         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2154         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2155         (elf_machine_rel): Handle R_386_TLS_DESC.
2156         (elf_machine_rela): Likewise.
2157         (elf_machine_lazy_rel): Likewise.
2158         (elf_machine_lazy_rela): Likewise.
2159         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2160         * sysdeps/i386/dl-tlsdesc.S: New file.
2161         * sysdeps/i386/dl-tlsdesc.h: New file.
2162         * sysdeps/i386/tlsdesc.c: New file.
2163         * sysdeps/i386/tlsdesc.sym: New file.
2164         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2165         tlsdesc_table.
2166         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2167         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2168         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2169         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2170         release tlsdesc_table.
2171         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2172         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2173         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2174         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2175         (elf_machine_rela): Likewise.
2176         (elf_machine_lazy_rel): Likewise.
2177         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2178         (__tls_get_addr): Do not declare for non-shared compiles.
2179         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2180         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2181         * sysdeps/x86_64/tlsdesc.c: New file.
2182         * sysdeps/x86_64/tlsdesc.sym: New file.
2183         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2184         tlsdesc_table for both 32- and 64-bit structs.
2185
2186 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2187
2188         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2189         its own function.  This reduces the frame setup costs and more.
2190
2191 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2192
2193         [BZ #3406]
2194         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2195         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2196
2197 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2198
2199         * io/openat.c (__openat_2): Also pass fd to __openat.
2200         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2201         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2202
2203         * string/tester.c (test_memcmp): Add a few more tests.
2204         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2205
2206 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2207
2208         * nscd/cache.c (cache_add): Before returning with failure and this
2209         is the first use of the record, mark it as unusable.
2210         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2211         reporting a failure.
2212         * nscd/grpcache.c: Likewise
2213         * nscd/hstcache.c: Likewise.
2214         * nscd/initgrcache.c: Likewise.
2215         * nscd/pwdcache.c: Likewise.
2216         * nscd/servicescache.c: Likewise.
2217
2218 2008-05-10  Roland McGrath  <roland@redhat.com>
2219
2220         [BZ #6505]
2221         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2222
2223 2008-05-08  David S. Miller  <davem@davemloft.net>
2224
2225         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2226
2227         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2228         (__ieee754_y0l): Likewise.
2229         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2230         (__ieee754_y1l): Likewise.
2231         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2232         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2233         frexpl and ldexpl.  math_private.h provides them and the latter
2234         is not even used.
2235         (__log1pl): Use __frexpl.
2236
2237 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2238
2239         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2240         prototypes.
2241         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2242         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2243         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2244         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2245         af==AF_UNSPEC.
2246         (_nss_nis_gethostbyname4_r): New function.
2247         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2248         Change to also handle af==AF_UNSPEC.
2249         (get_tablename): New function.  Use it to avoid duplication.
2250         (_nss_nisplus_gethostbyname4_r): New function.
2251         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2252         available.
2253         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2254         * nss/nss.h: Define struct gaih_addrtuple.
2255         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2256         af==AF_UNSPEC.
2257         (_nss_files_gethostbyname4_r): New function.
2258         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2259         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2260         calls.
2261         * resolv/res_query.c (__libc_res_nquery): Take two additional
2262         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2263         look up IPv4 and IPv6.
2264         Change all callers.
2265         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2266         for an additional query and answer buffer.  Pass to send_vc and
2267         send_dg.
2268         (send_vc): Send possibly two requests and receive two answers.
2269         (send_dg): Likewise.
2270         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2271         __libc_res_nquery.
2272         (_nss_dns_gethostbyname4_r): New function.
2273         (gaih_getanswer_slice): Likewise.
2274         (gaih_getanswer): Likewise.
2275         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2276         __libc_res_nquery call.
2277         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2278         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2279         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2280         available.
2281
2282 2008-05-05  David S. Miller  <davem@davemloft.net>
2283
2284         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2285         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2286
2287 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2288
2289         Fix termios bit macros.
2290         Move *DLY definitions where they belong, in termios.h.
2291         Add *[0-3] definitions.
2292         Fixes confusion between VT and FF.
2293         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2294         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2295         are already defined to avoid collision with termios.h.
2296         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2297         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2298         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2299         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2300         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2301         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2302         VTDLY, VT0, VT1): New macros.
2303         [__USE_GNU] (OLCUC): Change value of macro.
2304         [__USE_XOPEN] (OFILL): New macro.
2305         [__USE_BSD] (CRTSCTS): Change value.
2306         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2307         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2308         (B7200, B14400, B28800, B76800): New macros.
2309
2310 2008-05-01  David S. Miller  <davem@davemloft.net>
2311
2312         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2313         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2314         (gen-as-const-headers): Add it.
2315         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2316         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2317         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2318         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2319
2320         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2321         six system call parameters.
2322         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2323
2324 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2325
2326         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2327         RUSAGE_LWP.
2328         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2329         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2330
2331 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2332
2333         * stdlib/tst-setcontext.c: Include unistd.h.
2334
2335 2008-04-25  David S. Miller  <davem@davemloft.net>
2336
2337         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2338         Pass "union semun" properly in to sys_ipc, it must be passed
2339         by value, not by reference.
2340
2341 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2342
2343         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2344         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2345         * nscd/connections.c (mem_in_flight): Likewise.
2346
2347         * nscd/nscd.h (dbs): Make hidden.
2348
2349         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2350         Avoid returning -1, return 0 instead.
2351
2352 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2353
2354         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2355
2356 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2357
2358         [BZ #5209]
2359         * sysdeps/unix/sysv/linux/times.c: New file.
2360
2361         [BZ #5381]
2362         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2363         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2364         prototype.
2365         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2366         appropriate mem_in_flight element.
2367         (gc): Take allocations which have not yet been committed to the
2368         database into account.
2369         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2370         Reset mem_in_flight before returning.
2371         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2372         cue it up in mem_in_flight_list.
2373         * nscd/aicache.c: Adjust mempool_alloc call.
2374         * nscd/grpcache.c: Likewise.
2375         * nscd/hstcache.c: Likewise.
2376         * nscd/initgrcache.c: Likewise.
2377         * nscd/pwdcache.c: Likewise.
2378         * nscd/servicescache.c: Likewise.
2379         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2380         of -fpie.
2381
2382         * nscd/connections.c (handle_request): Provide better error message
2383         in case SELinux forbids the service.
2384
2385         * version.h (VERSION): Bump to 2.8.90.
2386
2387 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2388
2389         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2390
2391 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2392
2393         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2394         Also use for 32-bit.
2395         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2396         __nextafter instead of nextafter to avoid local PLT.
2397         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2398         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2399
2400         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2401
2402         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2403         __fe_nomask_env.
2404         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2405         <fenv_libc.h> instead of <fenv.h>.
2406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2408
2409         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2410
2411         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2412         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2413         function from fegetexcept and make old name weak alias.
2414         * include/fenv.h: Declare __fegetexcept.
2415         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2416         fegetexcept.
2417         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2418         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2419         to fetestexcept.
2420         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2421         instead of frexpl to avoid local PLT.
2422         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2423         ilogbl to avoid local PLT.
2424         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2425         instead of ldexpl to avoid local PLT.
2426         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2427         __roundl not roundl to avoid local PLT.
2428         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2429         local PLTs.  Use __sincosl instead of separate sinl and cosl
2430         calls.
2431         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2432
2433         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2434         version for ppc64 to 2.4.21 since without it makecontext will fail.
2435
2436         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2437         to the ABI in use.
2438         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2439         .__tls_get_addr.
2440         [__powerpc64__] (TLS_GD): Likewise.
2441
2442 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2443
2444         [BZ #4997]
2445         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2446         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2447         mantissa.
2448         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2449         Likewise.  Also account for when x is an odd number between 2^52
2450         and 2^53-1.
2451         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2452         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2453         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2454         detect aforementioned erroneous conditions.
2455
2456 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2457
2458         * configure.in: Check for -fno-section-anchors in addition to
2459         -fno-toplevel-reorder.
2460
2461 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2462
2463         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2464
2465         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2466         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2467         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2468         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2469         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2470         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2471
2472 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2473
2474         [BZ #5443]
2475         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2476         * time/alt_digit.c: Likewise.
2477         * wcsmbs/wcsmbsload.c: Likewise.
2478
2479 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * version.h (VERSION): Bump to 2.8.
2482
2483         * timzeone/asia: Update from tzdata2008b.
2484         * timezone/backward: Likewise.
2485         * timezone/europe: Likewise.
2486         * timezone/northamerica: Likewise.
2487         * timezone/southamerica: Likewise.
2488         * timezone/iso3166.tab: Likewise.
2489         * timezone/leapseconds: Likewise.
2490         * timezone/zone.tab: Likewise.
2491         * timezone/private.h: Update from tzcode2008a.
2492         * timezone/zdump.c: Likewise.
2493         * timezone/zic.c: Likewise.
2494
2495 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2496
2497         [BZ #5741]
2498         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2499         Define additonal Data Cache Block instruction macros.
2500         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2501         Replace dcbst with dcbf and sync with sync/isync.
2502
2503 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2504
2505         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2506         Always set ELF_RTYPE_CLASS_PLT.
2507         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2508
2509 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2510
2511         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2512         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2513         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2514         For ISA 2.01 and later replace mftb with mfspr 268.
2515
2516 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2517
2518         [BZ #5768]
2519         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2520         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2521
2522 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2523
2524         [BZ #5768]
2525         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2526         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2527         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2528         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2529
2530 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2531
2532         * stdlib/tst-makecontext.c (othervar): New variable.
2533         (cf): Test sign extending the argument to long.
2534
2535 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2536
2537         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2538         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2539         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2540         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2541         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2542         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2543         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2544
2545 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2546
2547         * elf/Makefile (tests): Substitute tests-vis-yes here.
2548         (tests-vis-yes): Delete.
2549         (modules-name, modules-vis-yes): Similarly.
2550
2551 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2552
2553         [BZ #4407]
2554         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2555         Preserve sign in signgamp when x is zero.
2556
2557 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2558
2559         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2560         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2561         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2562         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2563         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2564         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2565
2566 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2567
2568         [BZ #4314]
2569         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2570         buffers.
2571
2572         [BZ #5209]
2573         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2574         a reserved error value.
2575
2576         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2577         value to check for correct sign extension.
2578
2579         [BZ #5436]
2580         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2581         Copy 64-bit parameter values even though this is not required in
2582         the standard.
2583
2584         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2585         PC save.
2586
2587 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2588
2589         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2590         PC save.
2591
2592 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2593
2594         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2595
2596 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2597
2598         [BZ #5998]
2599         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2600         in line-buffered stream failed.
2601         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2602
2603 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2604
2605         [BZ #6024]
2606         * scripts/abi-versions.awk: If the version specified by
2607         --enable-oldest-abi is older than the first version for this
2608         architecture, use the default version.
2609
2610         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2611         as well when ignoring the whole category.
2612
2613 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2614
2615         [BZ #6042]
2616         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2617         ETHERTYPE_* definitions.
2618         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2619
2620 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2621
2622         * stdlib/mbtowc.c (__no_r_state): Remove.
2623         (mbtowc): New static state variable.  Use it instead of
2624         __no_r_state.
2625         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2626         (__wctomb_state): New hidden variable.
2627         (wctomb): Use __wctomb_state instead of __no_r_state.
2628         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2629         (__wctomb_state): New extern decl.
2630         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2631
2632 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2633
2634         [BZ #5475]
2635         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2636
2637 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2638
2639         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2640
2641 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2642
2643         * po/nl.po: Update from translation team.
2644
2645 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2646
2647         [BZ #6007]
2648         * string/strfry.c: Handle empty strings again.
2649
2650 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2651
2652         [BZ #5443]
2653         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2654         before looking for translation.
2655         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2656         * locale/freelocale.c: Likewise.
2657         * locale/newlocale.c: Likewise.
2658         * locale/setlocale.c: Likewise.
2659         Based partially on a patch by ryo@np.css.fujitsu.com.
2660
2661 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2662
2663         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2664         acquiring wrlock.  Do conv_tab allocation while holding lock.
2665         * intl/Makefile: Add rules to build and run tst-gettext6.
2666         * intl/tst-gettext6.c: New test.
2667         * intl/tst-gettext6.sh: New file.
2668
2669 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2670
2671         * po/nl.po: Update from translation team.
2672
2673         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2674         provided through st_blksize, try the default size before giving up.
2675
2676 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2677
2678         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2679
2680         [BZ #5939]
2681         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2682
2683         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2684         error message.  POSIX today does not require the messages to be in
2685         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2686
2687         [BZ #5979]
2688         * sunrpc/auth_unix.c: Unify printed strings.
2689         * sunrpc/clnt_tcp.c: Likewise.
2690         * sunrpc/clnt_udp.c: Likewise.
2691         * sunrpc/clnt_unix.c: Likewise.
2692         * sunrpc/svc_tcp.c: Likewise.
2693         * sunrpc/svc_udp.c: Likewise.
2694         * sunrpc/svc_unix.c: Likewise.
2695         * sunrpc/xdr.c: Likewise.
2696         * sunrpc/xdr_array.c: Likewise.
2697         * sunrpc/xdr_rec.c: Likewise.
2698         * sunrpc/xdr_ref.c: Likewise.
2699         * locale/programs/ld-time.c (time_finish): Unify messages.
2700         * locale/programs/locfile.c (handle_copy): Fix typo.
2701         * nscd/nscd.c (options): Fix typo.
2702
2703         [BZ #5995]
2704         * stdlib/strtod_l.c: Use correct sign for result in one more
2705         underflow case.
2706         Patch by Eric Blake <ebb9@byu.net>.
2707
2708 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2709
2710         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2711         and creat system calls.
2712         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2713         call.
2714         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2715         system calls.
2716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2717         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2718         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2719
2720 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2721
2722         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2723         <linux/limits.h> has defined it.
2724         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2725         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2726         headers.
2727         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2728         it instead of ARG_MAX.
2729
2730 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2731
2732         * posix/gai.conf: Fix comment for scope nullbits.
2733         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2734         default to 128 bits for v4 mapped addresses.
2735
2736 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2737
2738         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2739         ptrace call to get the ieee_instruction_pointer from the kernel.
2740         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2741         ptrace call to set the ieee_instructtion_pointer.
2742         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2743         Add comment that ieee_instruction_pointer is always 0.
2744
2745 2008-03-09  Andreas Jaeger  <aj@suse.de>
2746
2747         [BZ #5857]
2748         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2749         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2750         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2751
2752         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2753         (rint_test): Likewise.
2754
2755 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2756
2757         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2758         call.
2759         (__nisfind_server): Similar for open readColdStartFile call.
2760         Patch partially by Jim Meyering.
2761         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2762         around internal_setent call.
2763
2764         * po/vi.po: New Vietnamese translation.
2765
2766         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2767         ADJ_OFFSET_SS_READ.
2768
2769         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2770         remove CLONE_STOPPED.
2771
2772 2008-02-10  Jim Meyering  <meyering@redhat.com>
2773
2774         Remove useless "if" before "free":
2775         * elf/ldconfig.c (parse_conf_include): Likewise.
2776         * gmon/gmon.c (weak_alias): Likewise.
2777         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2778         * inet/rcmd.c (__validuser2_sa): Likewise.
2779         * intl/bindtextdom.c (set_binding_values): Likewise.
2780         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2781         * libio/genops.c (save_for_backup): Likewise.
2782         * libio/wgenops.c (save_for_wbackup): Likewise.
2783         * locale/programs/ld-collate.c (collate_read): Likewise.
2784         * locale/programs/linereader.c (get_string): Likewise.
2785         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2786         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2787         * resolv/res_debug.c (do_section): Likewise.
2788         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2789         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2790         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2791         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2792         * time/tzset.c (tzset_internal): Likewise.
2793
2794 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2795
2796         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2797         of ASSEMBLER.
2798
2799 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2800
2801         [BZ #5903]
2802         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2803         not stream for output file.  Open output file here.
2804         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2805         and output file name.
2806         (process_fd): Likewise.
2807         (process_file): Likewise.
2808         (main): Adjust callers of changed functions.
2809         * iconv/iconv_prog.h: Adjust prototype.
2810
2811 2008-03-09  Andreas Jaeger  <aj@suse.de>
2812
2813         [BZ #5753]
2814         * sysdeps/ia64/ieee754.h: Use protected namespace
2815         __BIG_ENDIAN/__LITTLE_ENDIAN.
2816         * sysdeps/ieee754/ieee754.h: Likewise.
2817         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2818
2819 2008-03-08  Roland McGrath  <roland@frob.com>
2820
2821         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2822         ignore a signal that came from a machine exception, treat it as a
2823         fatal core-dump signal instead.
2824         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2825
2826         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2827         Clear DF bit in thread state's eflags.
2828         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2829
2830 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2831
2832         [BZ #5774]
2833         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2834         of NAN(...) sequence.
2835         * stdlib/Makefile (tests): Add tst-strtod6.
2836         * stdlib/tst-strtod6.c: New file.
2837
2838         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2839
2840         [BZ #5762]
2841         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2842         putting offending option character in quotes.  Clean up error
2843         messages.
2844         * po/be.po: Adjust msgstr in translation file.
2845         * po/bg.po: Likewise.
2846         * po/ca.po: Likewise.
2847         * po/cs.po: Likewise.
2848         * po/da.po: Likewise.
2849         * po/de.po: Likewise.
2850         * po/es.po: Likewise.
2851         * po/fr.po: Likewise.
2852         * po/hr.po: Likewise.
2853         * po/ko.po: Likewise.
2854         * po/nl.po: Likewise.
2855         * po/rw.po: Likewise.
2856         * po/sk.po: Likewise.
2857         * po/sv.po: Likewise.
2858         * po/tr.po: Likewise.
2859         * po/zh_CN.po: Likewise.
2860         * po/zh_TW.po: Likewise.
2861
2862         [BZ #5760]
2863         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2864         Patch by Roland Bless <roland@bless.de>.
2865
2866         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2867         .o file.
2868         * elf/Makefile (routines): Add dl-sysdep.
2869         (elide-routines.os): Likewise.
2870
2871 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2872
2873         [BZ #5786]
2874         * elf/dl-sysdep.c: Undefine ROUND after use.
2875         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2876         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2877         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2878         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2879         to ...
2880         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2881         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2882         if necessary.
2883         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2884
2885         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2886         _dl_tls_get_addr_soft element.
2887         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2888         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2889         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2890         GLRO.
2891         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2892         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2893         of internal_function.
2894
2895         * stdlib/Makefile (aux): Add tens_in_limb.
2896         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2897         * stdlib/tens_in_limb.c: ...here.  New file.
2898
2899         [BZ #5778]
2900         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2901         __statfs_chown_restricted.
2902         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2903         for _PC_CHOWN_RESTRICTED.
2904         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2905         Implement __statfs_chown_restricted.
2906         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2907         _POSIX_CHOWN_RESTRICTED value to zero.
2908         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2909         defined to zero.
2910
2911         * sysdeps/x86_64/rtld-memset.c: New file.
2912
2913 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2914
2915         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2916
2917         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2918         Barcelona machine.  Make default fall through branch of
2919         __x86_64_preferred_memory_instruction check as the integer code path.
2920
2921 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2922
2923         * sysdeps/x86_64/cacheinfo.c
2924         (__x86_64_preferred_memory_instruction): New variable.
2925         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2926
2927         * sysdeps/x86_64/memset.S: Rewrite.
2928
2929 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2930
2931         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2932         __obstack_printf_chk): New prototypes.
2933         (__vasprintf_chk, __vdprintf_chk,
2934         __obstack_vprintf_chk): Likewise.
2935         Add libc_hidden_proto.
2936         * libio/obprintf.c
2937         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2938         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2939         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2940         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2941         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2942         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2943         __obstack_vprintf_chk): New prototypes.
2944         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2945         obstack_vprintf): New inlines.
2946         * debug/dprintf_chk.c: New file.
2947         * debug/vdprintf_chk.c: New file.
2948         * debug/asprintf_chk.c: New file.
2949         * debug/vasprintf_chk.c: New file.
2950         * debug/obprintf_chk.c: New file.
2951         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2952         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2953         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2954         @@GLIBC_2.8.
2955         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2956         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2957         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2958         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2959         libc_hidden_proto.
2960         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2961         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2962         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2963         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2964         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2965         @@GLIBC_2.8.
2966         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2967         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2968         obstack_vprintf_chk.
2969         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2970         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2971         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2972         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2973         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2974         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2975
2976 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2977
2978         [BZ #5779]
2979         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2980         Patch by Roy Marples <roy@marples.name>.
2981
2982         [BZ #5736]
2983         * malloc/malloc.c: Fix typo in comment.
2984
2985         [BZ #5627]
2986         * locale/iso-639.def: Add Shuswap.
2987
2988 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2989
2990         [BZ #5790]
2991         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2992         overwrite *h_errnop/*errnop values from getanswer_r in case of
2993         failure.
2994
2995 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2996
2997         [BZ #5818]
2998         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2999         (verify_persistent_db): Remove one unnecessary test and add a new one
3000         for bad configuration.
3001         (nscd_init): Improve error reported when persistent database cannot
3002         be reused.
3003         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3004         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3005         .suggested_module and .max_db_size and case config file says the
3006         values are zero.
3007         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3008
3009         [BZ #5854]
3010         * nis/ypclnt.c (yp_order): Fix handling of return value of
3011         do_ypcall_tr call.
3012         Patch by Jeff Moyer <jmoyer@redhat.com>.
3013
3014         * po/fr.po: Update from translation team.
3015
3016 2008-02-22  Andreas Jaeger  <aj@suse.de>,
3017             Carlos O'Donell <carlos@systemhalted.org>
3018
3019         [BZ #5012]
3020         * FAQ.in: Describe why glibc needs to be compiled with
3021         optimization.
3022
3023 2008-02-19  Roland McGrath  <roland@redhat.com>
3024
3025         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3026
3027 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
3028
3029         [BZ #5737]
3030         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3031         __USE_MISC is defined.
3032
3033 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
3034
3035         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3036         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3037         sys/timerfd.h.
3038         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3039         timerfd_gettime, timerfd_settime.
3040         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3041         timerfd_gettime, timerfd_settime for GLIBC_2.8.
3042
3043 2008-02-08  Roland McGrath  <roland@redhat.com>
3044
3045         * elf/elf.h (NT_PPC_SPE): New macro.
3046
3047 2008-02-06  Roland McGrath  <roland@redhat.com>
3048
3049         * Makerules ($(common-objpfx)sysd-rules):
3050         Depend on $(sysdep-makeconfigs).
3051
3052 2008-01-31  Roland McGrath  <roland@redhat.com>
3053
3054         [BZ #5442]
3055         * configure.in: Use -print-file-name if it yields a directory,
3056         for each of include and include-fixed.
3057         * configure: Regenerated.
3058
3059         * Makeconfig (sysd-rules-targets): New variable.
3060         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3061         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3062
3063 2008-01-30  Roland McGrath  <roland@redhat.com>
3064
3065         * manual/libc.texinfo: Update back-cover text.
3066
3067         * elf/elf.h (NT_386_TLS): New macro.
3068
3069 2008-01-29  Roland McGrath  <roland@redhat.com>
3070
3071         * Makeconfig (sysd-rules-patterns): New variable.
3072         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3073         (check-inhibit-asm): New canned sequence, replaces ...
3074         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3075         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3076         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3077         (CFLAGS-rtld): Variable removed.
3078
3079 2008-01-24  Roland McGrath  <roland@redhat.com>
3080
3081         * configure.in: Let configure fragments set base_os.
3082         * configure: Regenerated.
3083
3084 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3085
3086         * po/ko.po: Update from translation team.
3087
3088 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3089
3090         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3091
3092 2008-01-12  Andreas Jaeger  <aj@suse.de>
3093
3094         [BZ #5040]
3095         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3096         Add EPOLLRDHUP.
3097
3098 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3099
3100         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3101         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3102         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3103
3104 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3105
3106         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3107         * elf/dl-close.c (_dl_close): Check for it.
3108         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3109         (_dl_allocate_static_tls): Likewise.
3110         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3111         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3112         to it.
3113         * elf/tst-tls16.c: New file.
3114         * elf/tst-tlsmod16a.c: New file.
3115         * elf/tst-tlsmod16b.c: New file.
3116         * elf/Makefile: Add rules to build and run tst-tls16.
3117
3118 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3119
3120         [BZ #5628]
3121         * bits/shm.h: Fix comment describing shmid_ds.
3122         * sysdeps/gnu/bits/shm.h: Likewise.
3123         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3124         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3125         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3126         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3127         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3128         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3129         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3130         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3131         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3132
3133         [BZ #5607]
3134         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3135         prototypes.
3136         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3137         additional suffixes.
3138         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3139         Add optional functions mq_timedreceive and mq_timedsend.
3140         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3141         * conform/data/pthread.h-data: Fix prototype of
3142         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3143         * conform/data/semaphore.h-data: Allow time.h definitions.
3144         * conform/data/signal.h-data: Likewise.
3145         * conform/data/stdio.h-data: getw and putw are not required in v6.
3146         * conform/data/stdlib.h-data: Change setstate prototype.
3147         * conform/data/string.h-data: Fix strerror_r prototype.
3148         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3149         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3150         Fix readlink prototype.
3151         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3152         in6addr_loopback.
3153         * inet/netinet/in.h: Cleanup namespace.
3154         * posix/regex.h: Likewise.
3155         * resolv/netdb.h: Likewise.
3156         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3157         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3158         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3159         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3160         of names of in in6_addr.
3161         (default_precedence): Likewise.
3162         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3163         NULL definition.
3164
3165 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3166
3167         * conform/data/fmtmsg.h-data: Add missing allows.
3168         * conform/data/ftw.h-data: Likewise.
3169         * conform/data/inttypes.h-data: Likewise.
3170         * conform/data/math.h-data: Likewise.
3171         * conform/data/signal.h-data: Likewise.
3172         * conform/data/net/if.h-data: Likewise.
3173         * conform/data/netinet/in.h-data: Likewise.
3174         * conform/data/sys/socket.h-data: Likewise.
3175
3176         [BZ #5614]
3177         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3178         (__strtok_r): Simplify.
3179         * string/tester.c (test_strtok_r): Add test case for futile search
3180         with single-character seach string.
3181
3182 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3183
3184         * po/ko.po: Update from translation team.
3185
3186 2008-01-11  Andreas Jaeger  <aj@suse.de>
3187
3188         [BZ #5600]
3189         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3190         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3191         kernel header.
3192
3193 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3194
3195         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3196         native interface lookup in all the relevant places.
3197
3198 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3199             Ulrich Drepper  <drepper@redhat.com>
3200
3201         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3202         field.  Use sockaddr_in6 for source_addr.
3203         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3204         (match_prefix): Likewise.
3205         (get_label): Likewise.
3206         (get_precedence): Likewise.
3207         (rfc3484_sort): Change to use indirect access to results array.
3208         Adjust to use of sockaddr_in6.  Replace service_order test with
3209         simple index comparison.
3210         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3211         service_order field.  Adjust qsort_t calls.  Access sorted result
3212         array indirectly through order array.
3213         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3214         * posix/tst-rfc3484-2.c: Likewise.
3215         * posix/tst-rfc3484-3.c: Likewise.
3216
3217 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3218
3219         [BZ #5541]
3220         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3221         pollfd structures.
3222         Patch by André Cruz.
3223
3224         [BZ #5545]
3225         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3226         (clnt_spcreateerror): Likewise.
3227
3228         [BZ #5553]
3229         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3230         (public_mEMALIGn): Likewise.
3231         Patch mostly by Daniel Jacobowitz.
3232
3233 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3234
3235         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3236         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3237         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3238         * stdlib/tst-makecontext2.c: New test.
3239
3240 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3241
3242         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3243         defined.
3244         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3245         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3246         transliteration hooks and REINIT_PARAMS afterwards.
3247         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3248         status.
3249         (REINIT_PARAMS): Define.
3250         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3251         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3252         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3253         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3254         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3255         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3256         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3257         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3258         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3259         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3260         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3261         * iconvdata/tst-iconv7.c: New test.
3262
3263 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3264
3265         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3266
3267 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3268
3269         [BZ #5112]
3270         * nscd/connections.c (restart): Fix condition.
3271
3272 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3273
3274         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3275         __ctype_toupper_loc): Add __THROW.
3276
3277 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3280         recognition of interface family.
3281
3282         * posix/getconf.c: Update copyright year.
3283         * nss/getent.c: Likewise.
3284         * iconv/iconvconfig.c: Likewise.
3285         * iconv/iconv_prog.c: Likewise.
3286         * elf/ldconfig.c: Likewise.
3287         * catgets/gencat.c: Likewise.
3288         * csu/version.c: Likewise.
3289         * elf/ldd.bash.in: Likewise.
3290         * elf/sprof.c (print_version): Likewise.
3291         * locale/programs/locale.c: Likewise.
3292         * locale/programs/localedef.c: Likewise.
3293         * nscd/nscd.c (print_version): Likewise.
3294         * debug/xtrace.sh: Likewise.
3295         * malloc/memusage.sh: Likewise.
3296         * malloc/mtrace.pl: Likewise.
3297         * debug/catchsegv.sh: Likewise.
3298
3299 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3300
3301         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3302         second lookup.
3303
3304 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3305
3306         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3307         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3308
3309 2007-12-17  Roland McGrath  <roland@redhat.com>
3310
3311         * inet/ether_line.c (ether_line): Remove unused variable.
3312
3313 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3314
3315         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3316         and winp.
3317         * login/openpty.c (openpty): Likewise.
3318         * login/pty.h (openpty, forkpty): Likewise.
3319         * manual/terminal.texi (openpty, forkpty): Likewise.
3320
3321 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3322
3323         * malloc/malloc.c (public_cALLOc): For arenas other than
3324         main_arena, count all bytes inside the mprotect_size range of the
3325         heap as uninitialized.
3326
3327 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3328
3329         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3330         executable stacks.
3331
3332         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3333         mTRIm for all of them.
3334         (mTRIm): Additionally iterate over all free blocks and use madvise
3335         to free memory for all those blocks which contain at least one
3336         memory page.
3337         * malloc/tst-trim1.c: New file.
3338         * malloc/Makefile (tests): Add tst-trim1.
3339
3340         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3341
3342 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3343
3344         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3345         First cast argument to long
3346         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3347         Return long.
3348         (__vdso_clock_gettime): Likewise.
3349         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3350         return long.
3351
3352 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3353
3354         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3355         * locale/nl_langinfo_l.c: Real implementation, copied from
3356         nl_langinfo.c.
3357         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3358
3359 2007-12-01  Jim Meyering  <meyering@redhat.com>
3360
3361         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3362         that would inhibit utf8-optimization of a regexp containing line-
3363         or buffer-anchors, e.g., `^', `$'.
3364
3365 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3366
3367         * time/bug-getdate1.c (do_test): Don't use century values which
3368         aren't valid on 32-bit systems.
3369
3370 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3371
3372         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3373         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3374         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3375         __strcat_g, __strncat_g): Add __asm__.
3376
3377 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3378
3379         [BZ #5477]
3380         * io/fchmodat.c: Fix typo in stub_warning use.
3381         Patch by Petr Salinger.
3382
3383 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3384
3385         * iconvdata/hp-thai8.c: New file.
3386         * iconvdata/Makefile: Add rules for hp-thai8.c.
3387         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3388         * iconvdata/gconv-modules: Likewise.
3389
3390         [BZ #5464]
3391         * iconvdata/hp-greek8.c: New file.
3392         * iconvdata/Makefile: Add rules for hp-greek8.c.
3393         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3394         * iconvdata/gconv-modules: Likewise.
3395
3396         [BZ #5463]
3397         * iconvdata/hp-turkish8.c: New file.
3398         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3399         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3400         * iconvdata/gconv-modules: Likewise.
3401
3402         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3403         (shrink_heap): ... this new function.
3404         (heap_trim): Call shrink_heap instead of grow_heap.
3405
3406         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3407         case don't call alloc_perturb.
3408
3409 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3410
3411         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3412         possible.
3413         * sysdeps/unix/sysv/linux/kernel-features.h
3414         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3415         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3416
3417 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3418
3419         [BZ #5424]
3420         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3421         * stdio-common/Makefile (tests): Add bug22.
3422         * stdio-common/bug22.c: New file.
3423
3424         [BZ #5451]
3425         * time/getdate.c: Fix filling in default values.
3426         * time/bug-getdate1.c: New file.
3427         * time/Makefile: Add rules to build and run bug-getdate1.
3428
3429         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3430         * iconvdata/ebcdic-es.c: Likewise.
3431         * iconvdata/ebcdic-es-a.c: Likewise.
3432         * iconvdata/ebcdic-uk.c: Likewise.
3433         * iconvdata/iso8859-16.c: Likewise.
3434         * iconvdata/viscii.c: Likewise.
3435         * iconvdata/iso8859-9e.c: Likewise.
3436         * iconvdata/Makefile: Adjust appropriately.
3437
3438         [BZ #5428]
3439         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3440         __need_wint_t.
3441
3442 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3443
3444         [BZ #5427]
3445         * iconvdata/hp-roman9.c: New file.
3446         * iconvdata/Makefile: Add rules for hp-roman9.c.
3447         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3448         * iconvdata/gconv-modules: Likewise.
3449
3450         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3451         * iconvdata/Makefile: Adjust appropriately.
3452
3453         [BZ #5441]
3454         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3455         structure, it's allocated with alloca.
3456         * stdio-common/Makefile (tests): Add bug21.
3457         * stdio-common/bug21.c: New file.
3458
3459 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3460
3461         [BZ #5452]
3462         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3463         keyword for gcc's braced-groups.
3464
3465 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3466
3467         [BZ #5454]
3468         * inet/ether_line.c: Strip hostname of whitespaces.
3469         * inet/Makefile (tests): Add tst-ether_line.
3470         * inet/tst-ether_line.c: New file.
3471
3472 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3473
3474         [BZ #5439]
3475         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3476
3477         [BZ #5435]
3478         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3479
3480         * stdlib/tst-setcontext.c: Catch the case where the links gets
3481         messed up and we do not reach main again.
3482
3483         * po/ca.po: Update from translation team.
3484
3485 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3486
3487         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3488         * posix/regex.h (REG_ENOSYS): Likewise.
3489         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3490
3491 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3492
3493         * nscd/nscd.h (MAX_STACK_USE): Define.
3494         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3495         (gc): Initialize stack_used based on allocation in prune_cache.
3496         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3497         Clear array before use.
3498
3499         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3500         memory allocation failed.
3501         * nscd/hstcache.c (cache_addhst): Likewise.
3502         * nscd/grpcache.c (cache_addgr): Likewise.
3503         * nscd/servicescache.c (cache_addserv): Likewise.
3504         * nscd/pwdcache.c (cache_addpw): Likewise.
3505         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3506
3507 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3508
3509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3510         and creat system calls.
3511
3512         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3513
3514 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3515
3516         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3517         Add netiucv/iucv.h.
3518         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3519         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3520         protocol.
3521         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3522         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3523         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3524
3525 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3526
3527         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3528         strncat): Define as macros to avoid compile errors.
3529
3530         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3531         creat entries.
3532
3533 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3534
3535         [BZ #5382]
3536         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3537         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3538         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3539         overflow it.
3540         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3541
3542         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3543         Return zero in case the thread library is not NPTL.
3544
3545         [BZ #5375]
3546         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3547         initializing interface list.
3548
3549         [BZ #5378]
3550         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3551         use result of nss_getgrgid_r if nothing was found.  For other
3552         error return with a failure.
3553         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3554
3555         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3556         macro name.
3557
3558 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3559
3560         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3561         (get_scope): For IPv4 scope, use scopes table.
3562         (fini): Free scopes table if necessary.
3563         (free_scopelist): New function.
3564         (scopecmp): New function.
3565         (gaiconf_init): Also handle scopev4 entries.
3566         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3567         * posix/tst-rfc3484-2.c (do_test): Likewise.
3568         * posix/gai.conf: Document scopev4 defaults.
3569         * posix/Makefile (tests): Add tst-rfc3484-3.
3570         * posix/tst-rfc3484-3.c: New file.
3571
3572         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3573         Teredo tunnels.
3574         * posix/gai.conf: Update for current default tables.
3575
3576 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3577
3578         * po/tr.po: Update from translation team.
3579
3580 2007-11-18  Roland McGrath  <roland@frob.com>
3581
3582         * manual/arith.texi (Remainder Functions): Spelling fix.
3583         From Shaun Silk <genix@mysoul.com.au>.
3584
3585         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3586
3587 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3588
3589         * po/zh_CN.po: Update from translation team.
3590
3591         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3592         Add sys/signalfd.h and sys/eventfd.h.
3593
3594 2007-11-15  Bruno Haible  <bruno@clisp.org>
3595
3596         [BZ #5346]
3597         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3598         union.
3599         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3600         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3601         it needs only fixed stack space. Delay the initialization of
3602         msgid_len until it is needed.
3603
3604 2007-11-15  Andreas Jaeger  <aj@suse.de>
3605
3606         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3607         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3608
3609 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3610
3611         * po/ko.po: Update from translation team.
3612
3613 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3614
3615         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3616         significantly.  The device type is also part of the ifinfomsg data.
3617
3618         * po/sv.po: Update from translation team.
3619         * po/nl.po: Likewise.
3620
3621         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3622         to wake up in 24 hours.
3623
3624         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3625
3626 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3627
3628         * po/cs.po: Update from translation team.
3629         * po/pl.po: Likewise.
3630
3631         * include/ifaddrs.h: Remove in6ai_temporary.
3632         (struct in6addrinfo): Add index element.
3633         Declare __check_native.
3634         * inet/Makefile (aux): Add check_native.
3635         * sysdeps/unix/sysv/linux/check_native.c: New file.
3636         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3637         IFA_F_TEMPORARY.  Pass back ifa_index.
3638         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3639         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3640         call __check_native if necessary.
3641         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3642         to sort addresses.  Pass information about the results.
3643         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3644         of rfc3484_sort interface.
3645         * posix/tst-rfc3484-2.c: Likewise.
3646
3647         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3648         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3649         for _quicksort.
3650         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3651         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3652         on as third parameter to compare function and _quicksort.
3653         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3654         to the compare function.
3655         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3656         * Versions.def: Add GLIBC_2.8 for libc.
3657
3658         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3659         * posix/tst-rfc3484-2.c: Likewise.
3660
3661         * include/kernel-features.h: Moved to...
3662         * sysdeps/mach/hurd/kernel-features.h: ...here.
3663
3664 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3665
3666         * sysdeps/i386/i586/memcpy_chk.S: New file.
3667         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3668         * sysdeps/i386/i586/memset_chk.S: Likewise.
3669
3670 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3671
3672         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3673         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3674         list of interfaces.  Also store prefix length.
3675         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3676         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3677         prefix if source and destination address are in the same subnet.
3678         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3679         Always look for matching record in in6ai list.
3680         Correct source_addr_len value for IPv6->IPv4 converted records.
3681
3682 2007-11-11  Roland McGrath  <roland@frob.com>
3683
3684         * include/kernel-features.h: New file.
3685
3686 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3689         complications for 64-bit platforms.
3690
3691         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3692         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3693         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3694         open64_2.
3695         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3696         entries.
3697         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3698         * sysdeps/wordsize-64/alphasort.c: New file.
3699         * sysdeps/wordsize-64/alphasort64.c: New file.
3700         * sysdeps/wordsize-64/fseeko.c: New file.
3701         * sysdeps/wordsize-64/fseeko64.c: New file.
3702         * sysdeps/wordsize-64/ftello.c: New file.
3703         * sysdeps/wordsize-64/ftello64.c: New file.
3704         * sysdeps/wordsize-64/ftw.c: New file.
3705         * sysdeps/wordsize-64/ftw64.c: New file.
3706         * sysdeps/wordsize-64/iofgetpos.c: New file.
3707         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3708         * sysdeps/wordsize-64/iofopen.c: New file.
3709         * sysdeps/wordsize-64/iofopen64.c: New file.
3710         * sysdeps/wordsize-64/iofsetpos.c: New file.
3711         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3712         * sysdeps/wordsize-64/lockf.c: New file.
3713         * sysdeps/wordsize-64/lockf64.c: New file.
3714         * sysdeps/wordsize-64/mkostemp.c: New file.
3715         * sysdeps/wordsize-64/mkostemp64.c: New file.
3716         * sysdeps/wordsize-64/mkstemp.c: New file.
3717         * sysdeps/wordsize-64/mkstemp64.c: New file.
3718         * sysdeps/wordsize-64/scandir.c: New file.
3719         * sysdeps/wordsize-64/scandir64.c: New file.
3720         * sysdeps/wordsize-64/tmpfile.c: New file.
3721         * sysdeps/wordsize-64/tmpfile64.c: New file.
3722         * sysdeps/wordsize-64/versionsort.c: New file.
3723         * sysdeps/wordsize-64/versionsort64.c: New file.
3724         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3725         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3726         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3727         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3728         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3729         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3730         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3731         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3732         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3733         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3734         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3735         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3736
3737         * crypt/sha256-crypt.c: Fix a comment.
3738         * crypt/sha512-crypt.c: Likewise.
3739
3740 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3741
3742         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3743
3744 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3745
3746         [BZ #5277]
3747         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3748         because output buffer is too small break, don't loop.
3749         * iconvdata/Makefile (tests): Add bug-iconv6.
3750         * iconvdata/bug-iconv6.c: New file.
3751
3752 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3753
3754         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3755         with size_t type.
3756         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3757         size_t.  Add casts where needed.
3758
3759         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3760         old headers, don't call avc_has_perm if we don't have the
3761         permission information.
3762
3763 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3764
3765         * elf/rtld.c (dl_main): Use the page size to find the map start.
3766
3767 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3768
3769         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3770         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3771
3772         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3773         when the lookup call failed.
3774
3775         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3776         Add prune_cond and wakeup_time.
3777         (CACHE_PRUNE_INTERNAL): Define.
3778         Update declarations of prune_cache and setup_thread.
3779         * nscd/connections.c (dbs): Update initializers.
3780         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3781         (nscd_init): Default number of threads is now 4.
3782         (invalidate_cache): Take lock before calling prune_cache.
3783         (handle_request): If SELinux forbids the request, say so.
3784         (readylist_cond): Use static initializer.
3785         (nscd_run_prune): New function.  Used only by pruning threads.
3786         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3787         here.
3788         (fd_ready): Update nscd_run reference.
3789         (start_threads): No need to initialize readylist_cond.
3790         Start pruning threads separately.
3791         * nscd/nscd_setup_thread.c: Change return value type to int and always
3792         return 0.
3793         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3794         to int and return nonzero value if we can use the TID address hack.
3795         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3796         the database is later than the new entry's timeout, update the
3797         wakeup time and wake the cleanup thread.
3798         (prune_cache): Return seconds the next entry in the database is still
3799         valid.  Remove locking for pruning here.
3800         * nscd/nscd.conf: Document default number of threads.
3801
3802 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3803
3804         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3805         stack is properly aligned for the target function.
3806         Correct unwind info.
3807
3808         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3809         when using auditing libraries.
3810
3811 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3812
3813         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3814         _nss_dns_getnetbyaddr2_r.
3815         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3816         extra parameter to getanswer_r.
3817         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3818         _nss_dns_getnetbyaddr2_r.
3819
3820         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3821         gethstbynm3_r.
3822         * nscd/gethstbynm2_r.c: Remove.
3823         * nscd/gethstbynm3_r.c: New file.
3824         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3825         __gethostbyaddr_r.
3826         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3827         __gethostbyaddr_r compatibility wrapper.
3828         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3829         determining timeout of entry.
3830         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3831         __gethostbyaddr2_r.
3832         (addhstbyX): Pass reference to variable for TTL to lookup and
3833         cache_addhst.
3834         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3835         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3836         and __nss_next2.  Remove __nss_services_lookup.
3837         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3838         Add compat wrapper.
3839         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3840         __nss_next2.
3841         * nss/getXXent_r.c: Likewise.
3842         * nss/getnssent_r.c: Likewise.
3843         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3844         does not exist in module, try the optional second name.
3845         (__nss_next2): New function.
3846         (__nss_next): Now wrapper around __nss_next2.
3847         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3848         Declare __nss_next2.
3849         Adjust definition of db_lookup_function type.
3850         * nss/service-lookup.c: Define NO_COMPAT.
3851         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3852         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3853         * inet/ether_ntoh.c: Likewise.
3854         * sunrpc/netname.c: Likewise.
3855         * sunrpc/publickey.c: Likewise.
3856         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3857         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3858         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3859         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3860         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3861
3862         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3863
3864         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3865
3866 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3867
3868         [BZ #5204]
3869         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3870         * crypt/sha512c-test.c: Likewise.
3871
3872         [BZ #5225]
3873         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3874         to keep track of end of %[ format string element.
3875         * stdio-common/Makefile (tests): Add bug20.
3876         * stdio-common/bug20.c: New file.
3877
3878         [BZ #5222]
3879         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3880         path elements in counting mode.
3881
3882 2007-10-27  Andreas Jaeger  <aj@suse.de>
3883
3884         [BZ #5040]
3885         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3886
3887         [BZ #3112]
3888         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3889         (__cleanup): Free shared library when exiting.
3890         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3891         (__cleanup): Free shared library when exiting.
3892
3893 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3894
3895         [BZ #2549]
3896         * math/libm-test.inc (check_float_internal): Support
3897         denormalized return.
3898
3899 2007-10-23  Andreas Jaeger  <aj@suse.de>
3900
3901         [BZ #5208]
3902         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3903         __LONG_LONG_PAIR to handle little endian byte order.
3904         Suggested by abhishekrai@google.com
3905
3906 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3907
3908         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3909
3910 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * nscd/cache.c (prune_cache): Move test for modified file outside
3913         of locking.
3914
3915 2007-10-21  Andreas Jaeger  <aj@suse.de>
3916
3917         * manual/texinfo.tex: Update to latest version.
3918
3919         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3920
3921         * manual/arith.texi (Status bit operations): Fix formatting.
3922
3923         * manual/errno.texi (Error Messages): Fix formatting.
3924
3925         * manual/sysinfo.texi (System Parameters): Fix formatting.
3926
3927         * manual/libc.texinfo: Update VERSION and UPDATED.
3928
3929 2007-10-19  Roland McGrath  <roland@redhat.com>
3930
3931         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3932
3933 2007-10-06  David S. Miller  <davem@davemloft.net>
3934
3935         * configure.in: Add sparcv9v2 and sparc64v2.
3936         * scripts/config.sub: Likewise.
3937         * configure: Regenerate.
3938         * elf/elf.h (HWCAP_SPARC_N2): New.
3939         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3940         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3941         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3942         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3943         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3944         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3945         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3946
3947 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3948
3949         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3950         even if the poll result indicates there is data to read.
3951         Patch by Jeff Moyer <jmoyer@redhat.com>.
3952
3953 2007-10-18  Roland McGrath  <roland@redhat.com>
3954
3955         * elf/elf.h (NT_PPC_VMX): New macro.
3956
3957 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3958
3959         * version.h (VERSION): Set to 2.7.90.
3960
3961 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3962
3963         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3964         weak_alias.
3965
3966 2007-10-17  Roland McGrath  <roland@frob.com>
3967
3968         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3969         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3970
3971 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3972
3973         * version.h (VERSION): Bump to 2.7.
3974         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3975
3976         [BZ #5186]
3977         * time/tzset.c (__tz_convert): Don't force testing for a change of
3978         TZ if not called from localtime.  But then also see whether the
3979         file changed, in case __use_tzfile is set.
3980
3981         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3982         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3983         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3984         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3985         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3987         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3988         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3989
3990 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3991
3992         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3993         and admin selects to be able to replace the gai.conf file, lock
3994         data structures around the qsort call.
3995
3996 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3997
3998         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3999         new memset.
4000         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4001         too high for the improvements.  Implement bzero unconditionally for
4002         use in libc.
4003
4004 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4005             Jakub Jelinek  <jakub@redhat.com>
4006
4007         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4008         even when time_t is 32-bit.
4009         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4010         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4011         always set after the search.
4012
4013 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4014
4015         * time/tzfile.c (__tzfile_read): Help the compiler recognize
4016         unreachable code on 32-bit machines.
4017
4018 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4019
4020         [BZ #5184]
4021         * time/strftime_l.c: Include stdbool.h.
4022         (my_strftime): New wrapper, old function renamed to...
4023         (__strftime_internal): ... new function.  Add tzset_called
4024         argument, pass it down to recursive calls, don't call tzset ()
4025         if already true, set to true after call to tzset ().
4026
4027 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4028
4029         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4030         into account when copying TZ string.
4031
4032 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4033
4034         * time/tzfile.c (__tzfile_compute): For use_last case set i to
4035         num_transition rather than num_transitions - 1.
4036
4037 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4038
4039         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4040         PIC indirect jump.
4041
4042         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4043         a local label rather than HIDDEN_JUMPTARGET.
4044
4045 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4046
4047         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4048         (init_cacheinfo): Initialize it.
4049         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4050         Always define bzero.
4051         Remove non-glibc code.
4052         * sysdeps/x86_64/bzero.S: Make an empty file.
4053
4054 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4055
4056         * sysdeps/x86_64/cacheinfo.c
4057         (__x86_64_preferred_memory_instruction): New.
4058         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4059
4060         * sysdeps/x86_64/memset.S: Rewrite.
4061
4062 2007-10-15  Roland McGrath  <roland@redhat.com>
4063
4064         * po/libc.pot: Regenerated.
4065
4066 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4067
4068         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4069         pointers.
4070
4071         [BZ #3425]
4072         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4073         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4074         address record to T_A/T_AAAA requests.
4075
4076 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4077
4078         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4079
4080         * posix/glob.c: Add some branch prediction throughout.
4081
4082         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4083         read from nscd.
4084
4085         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4086         service_order.
4087         (rfc3484_sort): Make sure that even if qsort doesn't support
4088         stable sorting out sorting here is stable by comparing service_order.
4089         (getaddrinfo): Initialize service_order.
4090         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4091         service_order field to sorting structure.
4092         * posix/tst-rfc3484-2.c (do_test): Likewise.
4093
4094         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4095         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4096         __tzset_parse_tz and updating of daylight, timezone, tzname into
4097         update_vars.
4098         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4099         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4100         happens in __tz_compute.
4101         * time/tzfile.c (__tzfile_read): Also read TZ string.
4102         (find_transition): Fold into __tzfile_compute.
4103         (__tzfile_compute): For times beyond the last transition try to
4104         use the TZ string.
4105         * timezone/tst-timezone.c: Information in daylight and tzname does
4106         change for Asia/Tokyo timezone with more concrete information.
4107         Remove the test.
4108
4109         * include/stdio.h: Add libc_hidden_proto for ftello.
4110         * libio/ftello.c: Add libc_hidden_def.
4111
4112         [BZ #1140]
4113         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4114         on the specified time and not the last entries in the file.  Move
4115         code to determine tzname[] to...
4116         (find_transition): ...here.  Add ugly guess for times before the
4117         first transition.
4118
4119 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4120
4121         [BZ #3195]
4122         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4123         no entry.
4124         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4125         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4126         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4127         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4128
4129         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4130         read mechanism when there are no group members and avoid no-op
4131         read syscall in this case.
4132
4133         [BZ #3242]
4134         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4135         (__readall): If reading failed due to EAGAIN error wait a bit
4136         and possibly try again.
4137         (__readvall): Likewise.
4138
4139 2007-10-13  Bruno Haible  <bruno@clisp.org>
4140
4141         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4142         when we cannot recode the message.
4143
4144 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4145
4146         [BZ #4359]
4147         * libio/__freading.c (__freading): Don't return true for
4148         write-only streams.  For read/write streams, check whether we
4149         performed a read operation already.
4150         * libio/Makefile (tests): Add tst-ext2.
4151         * libio/tst-ext2.c: New file.
4152
4153 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4154
4155         * locale/programs/repertoire.c (repertoire_read): Always free
4156         memory for repertoire file name [Coverity CID 270].
4157
4158         * elf/cache.c (save_aux_cache): Free memory allocated for
4159         temporary file name [Coverity CID 267].
4160
4161 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4162
4163         * misc/Makefile (headers): Add bits/error.h.
4164
4165 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4166
4167         * posix/fnmatch_loop.c: Take rule index returned as part of
4168         findidx return value into account when accessing weights.
4169         * posix/regcomp.c: Likewise.
4170         * posix/regexec.c: Likewise.
4171
4172         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4173         (skip_to): Fix problems with parameter of elifdef/elifndef.
4174
4175 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4176
4177         * iconv/gconv_simple.c: Add some branch prediction.
4178
4179 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4180
4181         * locale/programs/ld-collate.c (collate_read): If ignore_content
4182         and nowtok is tok_define, eat any tok_eol tokens.
4183
4184 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4185
4186         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4187         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4188
4189         * inet/netinet/in.h: Don't include bits/socket.h.
4190         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4191         macro.
4192         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4193
4194 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4195
4196         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4197         and tok_elifndef.
4198         * locale/programs/locfile-kw.gperf: Likewise.
4199         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4200
4201 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4202
4203         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4204         (__find_specwc): Change into __extern_always_inline function.
4205         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4206         (__parse_one_specmb): Remove ps argument.
4207         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4208         Adjust __find_specmb and __parse_one_specmb callers.
4209         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4210         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4211         Removed.
4212         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4213         caller.
4214
4215 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4216
4217         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4218         with some Pentium Ds.
4219
4220 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4221
4222         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4223         __read not read.
4224         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4225         __write not write.
4226
4227 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4228
4229         [BZ #181]
4230         * locale/C-time.c: Set week_1stday data to 19971201.
4231         * locale/programs/ld-time.c (time_finish): Default for
4232         first_workday is Monday.
4233
4234         [BZ #2633]
4235         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4236
4237         [BZ #5103]
4238         * posix/glob.c (glob): Recognize patterns starting \/.
4239         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4240         (main): Add test for pattern starting \/.
4241
4242         * misc/error.h: Use __const instead of const.
4243         * misc/bits/error.h: Likewise.
4244
4245 2007-10-07  Andreas Jaeger  <aj@suse.de>
4246
4247         * include/bits/error.h: New file.
4248
4249         * misc/bits/error.h (error_at_line): Fix prototype.
4250
4251 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4252
4253         [BZ #3924]
4254         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4255         more little bugs in creating the stack frame when pltexit has to
4256         be called.
4257
4258         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4259         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4260
4261         [BZ #4407]
4262         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4263         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4264         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4265         * math/libm-test.inc: Add test for this case.
4266
4267         [BZ #5010]
4268         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4269         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4270         map service succeeded.
4271         (svc_is_mapped): New function.
4272         (svc_unregister): Use it before trying to unmap service.
4273
4274 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4275
4276         * timezone/zic.c: Update from tzcode2007h.
4277
4278         [BZ #5063]
4279         * timezone/africa: Update from tzdata2007h.
4280         * timezone/antarctica: Likewise.
4281         * timezone/asia: Likewise.
4282         * timezone/australasia: Likewise.
4283         * timezone/europe: Likewise.
4284         * timezone/leapseconds: Likewise.
4285         * timezone/northamerica: Likewise.
4286         * timezone/southamerica: Likewise.
4287         * timzeone/zone.tab: Likewise.
4288
4289         [BZ #5104]
4290         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4291
4292         [BZ #5113]
4293         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4294         avoid warning with -Wconversion.
4295         (__strndup): Likewise.
4296         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4297
4298         [BZ #5112]
4299         * nscd/connections.c (restart): Don't resync if database is
4300         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4301
4302         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4303         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4304
4305         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4306         evetnfd_read, eventfd_write.
4307         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4308         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4309         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4310         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4311         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4312         eventfd_write for GLIBC_2.7.
4313
4314         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4315         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4316         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4317         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4318
4319 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4320
4321         * stdlib/msort.c: Include stdint.h.
4322         (struct msort_param): New type.
4323         (msort_with_tmp): Use struct msort_param pointer for unchanging
4324         parameters.  Add optimized handling for several common sizes
4325         and indirect sorting mode.
4326         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4327         sorting.
4328         Suggested by Belazougui Djamel .
4329
4330         * stdlib/Makefile (tests): Add tst-qsort2.
4331         * stdlib/tst-qsort2.c: New test.
4332
4333 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4334
4335         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4336         for dup2 in case another thread races with the current one.  Retry
4337         in this case.
4338
4339         * misc/error.h: Remove support for use outside of libc.  We have to
4340         include <features.h> now.  Include <bits/error.h> if possible.
4341         * misc/bits/error.h: New file.
4342
4343 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4344
4345         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4346         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4347         __extern_always_inline functions unconditionally, drop macros.
4348
4349         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4350         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4351         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4352
4353         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4354         add __artificial__ attribute.
4355
4356 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4357
4358         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4359         backward to forward direction.
4360
4361         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4362
4363         [BZ #645]
4364         * locale/programs/ld-collate.c (collate_finish): Compare against last
4365         used section which is known to have rules defined.
4366         (collate_read): After order_start, correctly record order of sections
4367         and queue sections up.
4368
4369 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4370
4371         [BZ #5071]
4372         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4373         the same number of pages.
4374         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4375
4376         * locale/programs/ld-collate.c (collate_read): After initial copy
4377         statement, continue in state 0.
4378
4379         * include/stdio_ext.h (__fsetlocking): Define as macro.
4380
4381 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4382
4383         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4384         of section order.
4385
4386         * po/pt_BR.po: Fix typo.
4387
4388 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4389
4390         * iconvdata/Makefile (modules): Add ISO8859-9E.
4391         (distribute): Add iso8859-9e.c.
4392         (gen-8bit-gap-modules): Add iso8859-9e.
4393         * iconvdata/iso8859-9e.c: New file.
4394         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4395         * iconvdata/TESTS: Likewise.
4396         * iconvdata/tst-tables.sh: Likewise.
4397
4398         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4399
4400         * locale/iso-639.def: Add several new entries.
4401
4402 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4403
4404         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4405         void * pointers instead of struct link_map **.
4406         (_dl_scope_free): Change argument type to void *.
4407         * include/link.h (struct link_map): Change type of l_reldeps
4408         to struct link_map_reldeps, move l_reldepsact into that
4409         struct too.
4410         * elf/dl-deps.c: Include atomic.h.
4411         (_dl_map_object_deps): Only change l->l_initfini when it is
4412         fully populated, use _dl_scope_free for freeing it.  Optimize
4413         removal of libs from reldeps by using l_reserved flag, when
4414         some removal is needed, allocate a new list instead of
4415         reallocating and free the old with _dl_scope_free.  Adjust
4416         for l_reldeps and l_reldepsact changes.
4417         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4418         searching in l_initfini and l_reldeps without holding dl_load_lock.
4419         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4420         l_reldepsact changes.
4421         * elf/dl-close.c (_dl_close_worker): Likewise.
4422         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4423
4424 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4425
4426         * iconvdata/Makefile (modules): Add KOI8-RU.
4427         (distribute): Add koi8-ru.c.
4428         (gen-8bit-gap-modules): Add koi8-ru.
4429         * iconvdata/koi8-ru.c: New file.
4430         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4431         * iconvdata/TESTS: Likewise.
4432         * iconvdata/tst-tables.sh: Likewise.
4433
4434         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4435
4436 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4437
4438         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4439         with __warning__/__error__ attributes.
4440         (__warnattr): Define.
4441         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4442         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4443         __warnattr.
4444         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4445         of __*_chk if compile time detectable overflow is found.
4446         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4447         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4448         with __warnattr.
4449         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4450         instead of __*_chk if compile time detectable overflow is found.
4451         (__gets_alias): Rename to...
4452         (__gets_warn): ... this.  Add __warnattr.
4453         (gets): Call __gets_warn instead of __gets_alias.
4454         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4455         aliases with __warnattr.
4456         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4457         time detectable overflow is found.
4458         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4459         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4460         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4461         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4462         __getdomainname_chk_warn): New aliases with __warnattr.
4463         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4464         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4465         __*_chk_warn instead of __*_chk if compile time detectable overflow
4466         is found.
4467         (__getgroups_chk): Rename argument to __listlen from listlen.
4468         (__getwd_alias): Rename to...
4469         (__getwd_warn): ... this.  Add __warnattr.
4470         (getwd): Call __getwd_warn instead of __getwd_alias.
4471         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4472         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4473         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4474         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4475         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4476         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4477         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4478         compile time detectable overflow is found.
4479         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4480         to use __*_chk or not.
4481         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4482         in comparisons which function should be called and in __*_chk*
4483         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4484         detectable overflow is found.
4485         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4486         __*_chk argument.
4487         * debug/tst-chk1.c (do_test): Add a few more tests.
4488
4489 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4490
4491         [BZ #5058]
4492         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4493         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4494         (_nl_unload_domain): Finalize conversions_lock.
4495         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4496         handling table of known conversions.
4497
4498 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4499
4500         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4501         close_not_cancel_no_status instead of close.
4502
4503 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4504
4505         [BZ #5028]
4506         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4507         nrules != 0 for multibyte chars.
4508
4509 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4510
4511         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4512         Provide better error message in case the type is unknown.
4513
4514         [BZ #4963]
4515         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4516         * string/stratcliff.c: Make usable to test wide char functions.
4517         * wcsmbs/wcsatcliff.c: New file.
4518         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4519
4520         [BZ #4972]
4521         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4522         (distribute): Add mac-centraleurope.c.
4523         (gen-8bit-gap-modules): Add mac-centraleurope.
4524         * iconvdata/mac-centraleurope.c: New file.
4525         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4526         * iconvdata/TESTS: Likewise.
4527         * iconvdata/tst-tables.sh: Likewise.
4528
4529         [BZ #5043]
4530         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4531
4532 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4533
4534         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4535         from __x86_64_core_cache_size_half.
4536         (init_cacheinfo): Compute shared cache size for AMD processors with
4537         shared L3 correctly.
4538         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4539         name change.
4540         Patch in large parts by Evandro Menezes.
4541
4542 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4543
4544         * elf/dl-lookup.c (add_dependency): Handle failing memory
4545         allocation for dependency list.  Remove unnecessary check.
4546
4547         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4548         open/close when determining source addresses.
4549
4550         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4551         sha512-crypt, and sha512.
4552         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4553         (distribute): Add sha256.h and sha512.h.
4554         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4555         and call the appropriate code.
4556         * crypt/sha256-crypt.c: New file.
4557         * crypt/sha256.c: New file.
4558         * crypt/sha256.h: New file.
4559         * crypt/sha256c-test.c: New file.
4560         * crypt/sha256test.c: New file.
4561         * crypt/sha512-crypt.c: New file.
4562         * crypt/sha512.c: New file.
4563         * crypt/sha512.h: New file.
4564         * crypt/sha512c-test.c: New file.
4565         * crypt/sha512test.c: New file.
4566
4567 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4568
4569         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4570         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4571         __syslog_chk.
4572
4573 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4574
4575         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4576         %as in fscanf format strings.
4577
4578         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4579         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4580         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4581         Likewise.
4582         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4583         Likewise.
4584
4585         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4586         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4587         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4588         * elf/dl-sym.c (do_sym): Likewise.
4589         * include/link.h (struct link_map): Add l_serial field.
4590         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4591         * elf/dl-lookup.c (add_dependency): Add flags argument.
4592         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4593         flags, use THREAD_GSCOPE_RESET_FLAG before and
4594         THREAD_GSCOPE_SET_FLAG after
4595         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4596         Don't dereference map until it has been found on some list.
4597         If map->l_serial changed, return -1.
4598
4599 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4600
4601         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4602         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4603         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4604         libc_hidden_proto.
4605         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4606         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4607         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4608         add libc_hidden_proto.
4609         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4610         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4611         conformance requested.
4612         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4613         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4614         conformance requested.
4615         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4616         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4617         conformance requested.
4618         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4619         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4620         ISO C99 or POSIX conformance requested.
4621         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4622         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4623         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4624         and __isoc99_vsscanf@@GLIBC_2.7.
4625         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4626         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4627         (tests): Add scanf14.
4628         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4629         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4630         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4631         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4632         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4633         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4634         from using internal headers.
4635         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4636         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4637         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4638         and __isoc99_vswscanf@@GLIBC_2.7.
4639         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4640         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4641         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4642         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4643         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4644         * stdio-common/isoc99_scanf.c: New file.
4645         * stdio-common/isoc99_vsscanf.c: New file.
4646         * stdio-common/isoc99_vscanf.c: New file.
4647         * stdio-common/isoc99_vfscanf.c: New file.
4648         * stdio-common/isoc99_fscanf.c: New file.
4649         * stdio-common/isoc99_sscanf.c: New file.
4650         * wcsmbs/isoc99_fwscanf.c: New file.
4651         * wcsmbs/isoc99_vswscanf.c: New file.
4652         * wcsmbs/isoc99_swscanf.c: New file.
4653         * wcsmbs/isoc99_wscanf.c: New file.
4654         * wcsmbs/isoc99_vwscanf.c: New file.
4655         * wcsmbs/isoc99_vfwscanf.c: New file.
4656         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4657         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4658         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4659         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4660         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4661         * stdio-common/scanf14.c: New test.
4662         * stdio-common/scanf15.c: New test.
4663         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4664         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4665         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4666         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4667         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4668         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4669         __nldbl___isoc99_scanf@@GLIBC_2.7,
4670         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4671         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4672         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4673         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4674         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4675         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4676         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4677         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4678         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4679         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4680         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4681         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4682         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4683         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4684         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4685         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4686         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4687         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4688         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4689         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4690         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4691         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4692         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4693         functions.
4694         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4695         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4696         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4697         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4698         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4699         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4700         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4701         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4702         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4703         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4704         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4705         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4706
4707         * stdio-common/Makefile (tests): Add scanf13.
4708         (scanf13-ENV): New.
4709         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4710         m modifier followed by l.
4711         (STRING_ARG): Add width argument.
4712         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4713         <case L_('C')>: Handle %mlc and %mC.
4714         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4715         arguments.
4716         * stdio-common/scanf13.c: New test.
4717
4718         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4719         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4720
4721 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4722
4723         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4724         type and __THROW marker of splice, vmsplice, and tee.
4725         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4726         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4728         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4729         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4730         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4731         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4732         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4733         as cancellation points.
4734
4735 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4736
4737         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4738         parse more than three parts of the version number.
4739
4740 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4741
4742         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4743         modifier.  Patch by Jakub Jelinek.
4744
4745 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4746
4747         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4748         call_fallocate in misc subdir.
4749         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4750         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4751         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4752         instead of __fallocate64.
4753         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4754
4755 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4756
4757         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4758         * rt/Makefile (headers): Add bits/mqueue2.h.
4759         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4760         optimizing with GCC and __va_arg_pack_len is defined.
4761         * rt/bits/mqueue2.h: New file.
4762         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4763         (mq_open): New strong_alias.
4764         (__mq_open_2): New function.
4765         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4766         (mq_open): New strong_alias.
4767         (__mq_open_2): New function.
4768         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4769         * Versions.def (librt): Add GLIBC_2.7 version.
4770         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4771         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4772
4773         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4774         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4775         is defined rather than when not C++.
4776         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4777         __openat64_alias): New redirects.
4778         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4779         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4780         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4781         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4782         functions instead of function-like macros.
4783
4784 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4785
4786         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4787         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4788         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4789
4790 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4791
4792         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4793         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4794
4795 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4796
4797         * inet/tst-network.c: Increment ERRORS for failing tests.
4798
4799 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4800
4801         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4802         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4803         implement as __extern_always_inline function.
4804         (vsyslog): Define as __extern_always_inline function unconditionally.
4805         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4806         When __va_arg_pack is defined, implement as __extern_always_inline
4807         functions.
4808         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4809         __extern_always_inline functions unconditionally.
4810         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4811         bits/stdio2.h will be included.
4812         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4813         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4814         implement as __extern_always_inline functions.
4815         (vswprintf, vwprintf, vfwprintf): Define as
4816         __extern_always_inline functions unconditionally.
4817         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4818
4819 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4820
4821         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4822         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4823         attribute.
4824         * include/features.h (__USE_EXTERN_INLINES): Define only when
4825         __extern_inline is defined.
4826         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4827         is defined instead of when not __cplusplus.
4828         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4829         is defined instead of when not __cplusplus.
4830         * socket/sys/socket.h: Include bits/socket2.h when
4831         __extern_always_inline is defined instead of when not __cplusplus.
4832         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4833         is defined instead of when not __cplusplus.
4834         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4835         is defined instead of when not __cplusplus.
4836         * string/string.h: Include bits/string3.h when __extern_always_inline
4837         is defined instead of when not __cplusplus.
4838         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4839         is defined instead of when not __cplusplus.
4840         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4841         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4842         is not defined.
4843         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4844         defined __extern_always_inline instead of !defined __cplusplus.
4845         * libio/bits/stdio-ldbl.h: Likewise.
4846         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4847         * misc/bits/syslog.h (syslog): Don't define for C++.
4848         (vsyslog): Use __extern_always_inline function for C++ instead of
4849         a macro.
4850         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4851         whenever that macro is defined.
4852         (vprintf): Don't provide the inline for C++.
4853         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4854         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4855         define the macros for C++.
4856         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4857         __extern_always_inline functions for C++.
4858         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4859         stat64, lstat64, fstat64, fstatat64): Don't define if not
4860         __USE_EXTERN_INLINES.
4861         * wcsmbs/bits/wchar2.h: Fix #error message.
4862         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4863         (vswprintf, vwprintf, vfwprintf): Define using
4864         __extern_always_inline functions for C++.
4865         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4866         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4867         strncpy, strcat, strncat): Define as __extern_always_inline
4868         functions instead of macros for C++.
4869         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4870         defined __extern_inline.
4871         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4872         to __extern_inline whenever that macro is defined.
4873         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4874         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4875         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4876         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4877         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4878         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4879         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4880         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4881         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4882         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4883         prototypes.  Only provide __extern_inline routines if
4884         __USE_EXTERN_INLINES.
4885         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4886         tests.
4887         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4888         For now avoid some *printf tests in C++.  Skip all testing
4889         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4890         is not.
4891         * debug/tst-chk4.cc: New file.
4892         * debug/tst-chk5.cc: New file.
4893         * debug/tst-chk6.cc: New file.
4894         * debug/tst-lfschk4.cc: New file.
4895         * debug/tst-lfschk5.cc: New file.
4896         * debug/tst-lfschk6.cc: New file.
4897         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4898         prototypes in C++.
4899         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4900         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4901         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4902
4903 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4904
4905         * po/cs.po: Update from translation team.
4906
4907 2007-09-11  Roland McGrath  <roland@redhat.com>
4908
4909         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4910         compiling.
4911
4912 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4913
4914         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4915
4916 2007-09-05  Roland McGrath  <roland@redhat.com>
4917
4918         * manual/signal.texi (Signaling Another Process): Typo fix.
4919         From Karl Berry <karl@freefriends.org>.
4920
4921 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4922
4923         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4924         zero if not defined.
4925         (make_request): Recognize optimistic addresses and treat them like
4926         deprecated addresses.
4927         Reported by Neil Horman <nhorman@redhat.com>.
4928
4929 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4930
4931         * nscd/connections.c (send_ro_fd): Also transfer file size.
4932         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4933         file size don't call fstat.
4934
4935         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4936         ahead and map the file.  This should always be correct and we can
4937         catch problems later.
4938
4939 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4940
4941         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4942         prototypes.
4943         (__fread_alias, __fread_unlocked_alias): New aliases.
4944         (fread): New extern inline.
4945         (fread_unlocked): Likewise.  Undef macro before definition of
4946         the inline function.
4947         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4948         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4949         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4950         and __fread_unlocked_chk@@GLIBC_2.7.
4951         * debug/fread_chk.c: New file.
4952         * debug/fread_u_chk.c: New file.
4953         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4954
4955 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4956
4957         * sysdeps/unix/sysv/linux/syscalls.list
4958         (personality): Change caller to EXTRA.
4959
4960 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4961
4962         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4963         to keep gcc quiet.
4964         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4965
4966         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4967         NDEBUG is defined.
4968
4969         * Makerules: Use -p option with mkdir.
4970
4971         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4972         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4973         (_xdr_directory_obj): Likewise.
4974         (xdr_entry_obj): Likewise.
4975         (xdr_group_obj): Likewise.
4976         (xdr_link_obj): Likewise.
4977         (xdr_table_obj): Likewise.
4978         (_xdr_nis_result): Likewise.
4979         (_xdr_ns_request): Likewise.
4980         (_xdr_ib_request): Likewise.
4981         (_xdr_nis_taglist): Likewise.
4982         (xdr_cback_data): Likewise.
4983         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4984         (xdr_ypresp_maplist): Likewise.
4985
4986         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4987
4988         * posix/regex_internal.h: Prevent some declarations and definitions
4989         to be seen when used in tests.
4990
4991         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4992         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4993
4994         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4995
4996         * config.make.in (datarootdir): Add to shut up configure.
4997
4998         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4999         associativity for fully-associative caches.
5000
5001         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5002         requests.  Fill on more associativity values for L2.
5003         Patch mostly by Evandro Menezes.
5004
5005 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5006
5007         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5008         (_libc_vdso_platform_setup): Avoid using exported variable by using
5009         alias.
5010
5011         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5012
5013         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5014         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
5015         defined.
5016
5017 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
5018
5019         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5020         align stack for call if pltexit is to be used.
5021
5022         [BZ #3924]
5023         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5024         align for function call in case pltexit has to be called later.
5025
5026         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5027         implicit atomic operation when storing function pointer.
5028         (_dl_runtime_profile): Likewise.
5029
5030 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5031
5032         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5033         NIS_NOTFOUND.
5034
5035 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5036
5037         [BZ #4566]
5038         * string/strtok.c: Fix typo in comment.
5039
5040         [BZ #4582]
5041         * debug/segfault.c: Fix typos in comments.
5042
5043         [BZ #4588]
5044         * stdio-common/tempnam.c: Fix comment, it is not checked that
5045         TMPDIR points to a writable directory.
5046
5047         [BZ #4726]
5048         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5049         memory allocated for the name server address.
5050
5051         [BZ #4946]
5052         * nscd/connections.c (handle_request): Using sendfile always
5053         requires that mmap is used for the database.
5054         Patch by Petr Baudis <pasky@suse.cz>.
5055
5056         [BZ #4905]
5057         * nscd/hstcache.c (cache_addhst): When reloading an entry which
5058         suddenly has two or more addresses, ignore it and remove the old
5059         entry.
5060
5061         [BZ #4814]
5062         * resolv/res_hconf.c: Prepare for compiling outside libc.
5063         * nscd/res_hconf.c: New file.
5064         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
5065         the new file.
5066         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5067         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5068
5069         * nscd/hstcache.c (cache_addhst): Minimal optimization.
5070
5071         [BZ #4925]
5072         * debug/pcprofiledump.c: Turn on internationalization by calling
5073         setlocale.  Patch mostly by Benno Schulenberg.
5074
5075         [BZ #4936]
5076         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5077         the state.
5078         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5079         * iconvdata/bug-iconv5.c: New file.
5080
5081 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5082
5083         [BZ #4896]
5084         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5085         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5086         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5087         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5088         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5089         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5090         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5091         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5092
5093 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5094
5095         [BZ #4937]
5096         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5097         lookup loop.  Suggested by John Reiser.
5098
5099 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5100
5101         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5102
5103 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5104
5105         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5106         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5107         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5108         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5109         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5110         to...
5111         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5112
5113 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5114
5115         * po/nl.po: Update from translation team.
5116
5117 2007-08-16  Andreas Jaeger  <aj@suse.de>
5118
5119         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5120         Reported by Peter Festner <peter.festner@ewetel.net>.
5121
5122 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5123
5124         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5125
5126 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5127
5128         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5129         to check for undefined symbols.
5130
5131         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5132         If the syscall fails, set errno to the actual returned error number
5133         rather than EINVAL.
5134         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5135         arguments are incorrect, set errno to EINVAL, if the syscall
5136         fails, set errno to the actual returned error number.
5137
5138         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5139         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5140
5141         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5142         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5143         file.
5144         (ASI_PNF, ASI_BLK_P): Don't define.
5145         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5146         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5147         file.
5148         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5149         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5150         file.
5151
5152 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5153
5154         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5155         FE_UNDERFLOW on Niagara CPUs.
5156
5157         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5158         exceptions.
5159
5160 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5161
5162         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5163         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5164         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5165         flush should be used or not inside of the function.
5166         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5167
5168         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5169         __thread_start): Use HIDDEN_JUMPTARGET.
5170         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5171         __thread_start): Likewise.
5172         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5173
5174         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5175         Add libc_hidden_proto.
5176         (STRTOF): Add libc_hidden_proto.
5177         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5178         (strtold_l, wcstold_l): Use them as second argument for
5179         long_double_symbol.
5180
5181 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5182
5183         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5184
5185 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5186
5187         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5188
5189 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5190
5191         * po/bg.po: New file.  From the translation team.
5192
5193 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5194
5195         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5196         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5197         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5198         when each feature was introduced.
5199
5200         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5201         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5202         (CHECK_HASH): New macro.
5203         (PREPARE_VERSION): Use it.
5204
5205         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5206         prototype if not __ASSUME_PSELECT.
5207         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5208         prototype if not __ASSUME_PPOLL.
5209
5210         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5211
5212         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5213         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5214         is defined.
5215
5216 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5217
5218         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5219         (_libc_vdso_platform_setup): If vDSO is not available point
5220         __vdso_gettimeofday to the vsyscall.
5221         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5222         __vdso_gettimeofday instead of vsyscall.
5223
5224 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5225
5226         * nscd/servicescache.c: Include kernel-features.h.
5227         * nscd/gai.c: Likewise.
5228         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5229         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5230         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5231         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5232         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5233         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5234         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5235         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5236         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5237
5238 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5239
5240         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5241         and _dl_get_origin defines anymore.
5242
5243         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5244         Build fix for systems which might lack POSIX timer support.
5245
5246         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5247         (_libc_vdso_platform_setup): Mangle function pointers before storing
5248         them.
5249         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5250         Demangle vdso pointer before use.
5251         (INTERNAL_VSYSCALL): Likewise.
5252
5253         * elf/cache.c (primes): Mark as const.
5254         Noted by Roland McGrath.
5255
5256 2007-08-01  Andreas Jaeger  <aj@suse.de>
5257             Jakub Jelinek  <jakub@redhat.com>
5258
5259         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5260         (options): Add option.
5261         (parse_opt): Handle option.
5262         (manual_link): Adjust process_file caller.  Call implicit_soname.
5263         (search_dir): Formatting.  Use and populate auxiliary cache.
5264         (main): Load and save auxiliary cache.
5265         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5266         stat64 from fstat64 to caller.
5267         (implicit_soname): New function.
5268         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5269         leave *soname as NULL.
5270         * elf/cache.c: Include libgen.h.
5271         (print_entry, print_cache, compare, save_cache, add_to_cache):
5272         Formatting and cleanups.
5273         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5274         aux_cache_file): New structures.
5275         (AUX_CACHEMAGIC): Define.
5276         (primes): New array.
5277         (aux_hash_size, aux_hash): New variables.
5278         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5279         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5280         load_aux_cache, save_aux_cache): New functions.
5281         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5282         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5283         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5284         (process_file): Adjust prototype.
5285
5286 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5287
5288         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5289         with __need_size_t.
5290
5291 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5292
5293         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5294         r_found_version structure as second parameter.
5295         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5296         (_dl_vdso_vsym): Change type of second parameter accordingly.
5297         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5298         (_libc_vdso_platform_setup): Adjust.
5299         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5300         (_libc_vdso_platform_setup): Likewise.
5301
5302         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5303         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5304         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5305         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5306         * csu/libc-start.c: Pretty printing.
5307         Use VDSO_SETUP if defined.
5308         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5309         and let generic code call into _libc_vdso_platform_setup.
5310         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5311         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5312         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5313         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5314         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5315         for GLIBC_PRIVATE.
5316         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5317         (sysdep_rountines): Add dl-vdso.
5318
5319         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5320         of routines.
5321
5322         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5323         attribute_hidden to __vdso_gettimeofday prototype.
5324
5325 2007-08-12  Roland McGrath  <roland@redhat.com>
5326
5327         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5328         From: Karl Berry <karl@freefriends.org>.
5329
5330 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5331
5332         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5333         an atime update for the files we read.
5334
5335 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5336
5337         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5338
5339         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5340         instead of mkstemp.
5341
5342         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5343         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5344         * misc/mkostemp.c: New file.
5345         * misc/mkostemp64.c: New file.
5346         * stdlib/stdlib.h: Declare the new functions.
5347         * sysdeps/posix/tempname.c: Add new parameter which is added to
5348         the flags for open.  Remove __GT_BIGFILE handling.
5349         * stdio-common/tempname.c: Likewise.
5350         * include/stdio.h: Adjust __gen_tempname prototype.
5351         Renumber __GT_* constants.
5352         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5353         * misc/mkdtemp.c: Likewise.
5354         * misc/mkstemp.c: Likewise.
5355         * misc/mkstemp64.c: Likewise.
5356         * misc/mktemp.c: Likewise.
5357         * stdio-common/tempnam.c: Likewise.
5358         * stdio-common/tmpfile.c: Likewise.
5359         * stdio-common/tmpfile64.c: Likewise.
5360         * stdio-common/tmpnam.c: Likewise.
5361         * stdio-common/tmpnam_r.c: Likewise.
5362
5363 2007-08-10  Roland McGrath  <roland@frob.com>
5364
5365         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5366         New macros.
5367         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5368         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5369
5370 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5371
5372         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5373         possible.
5374         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5375         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5376         * nss/nss_files/files-have_o_cloexec.c: New file.
5377
5378         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5379         available.
5380
5381 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5382
5383         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5384         ___new_wcstold_l): New weak aliases.
5385         (strtold_l, wcstold_l): Use them as second argument for
5386         long_double_symbol.
5387
5388 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5389
5390         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5391         register in test for error.
5392
5393         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5394         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5395
5396         * po/sv.po: Update from translation team.
5397
5398 2007-08-06  Roland McGrath  <roland@redhat.com>
5399
5400         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5401         Remove __strto*_l inlines.
5402         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5403         * stdlib/strtod.c: Add libc_hidden_def.
5404         * stdlib/strtod_l.c: Likewise.
5405         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5406         for __new_strtold and __new_wcstold.
5407         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5408         __STRTOF, STRTOF.
5409         * stdlib/strtol.c: Add libc_hidden_def.
5410         * stdlib/strtol_l.c: Likewise.
5411         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5412         strtoq.
5413
5414         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5415
5416         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5417         * scripts/data/localplt-generic.data: ... here.
5418         * elf/Makefile (check-data): Get generic file if no other.
5419         ($(objpfx)check-localplt.out): Make target unconditional.
5420
5421         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5422         Use ElfW(Nhdr).
5423
5424 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5425
5426         * po/zh_CN.po: Updated translation from translation team.
5427
5428 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5429
5430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5431         Don't use CGOTSETUP and CGOTRESTORE macros.
5432
5433 2007-08-04  Roland McGrath  <roland@redhat.com>
5434
5435         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5436
5437 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5438
5439         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5440         __extension__ around the whole statement expression.
5441
5442 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5443
5444         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5445         elements during initialization.
5446
5447         * po/pl.po: Updated translation from translation team.
5448         * po/tr.po: Likewise.
5449         * po/nl.po: Likewise.
5450
5451 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5452
5453         * rt/aio.h: Add __nonnull attributes.
5454
5455 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5456
5457         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5458         * stdlib/Makefile (tests): Add tst-strtod5.
5459         (tst-strtod5-ENV): New.
5460         * stdlib/tst-strtod5.c: New file.
5461
5462         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5463         failed.
5464         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5465         on failure.
5466
5467         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5468         allocated.
5469
5470 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5471
5472         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5473         numbers.
5474
5475 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5476
5477         * io/Makefile (aux): Add have_o_cloexec.
5478         * include/fcntl.h: Declare __have_o_cloexec.
5479         * io/have_o_cloexec.c: New file.
5480         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5481         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5482         fcntl call if not necessary.
5483         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5484         of local variable.
5485
5486         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5487         Avoid memset, add explicit initialization.
5488         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5489         to the end and change into zero-sized array.
5490         Move lock member to fill a hole on 64-bit platforms.
5491
5492         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5493         inline functions.
5494         * include/stdlib.h: Add __strto*_internal prototypes here.
5495         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5496         inline functions.
5497         * include/wchar.h: Add __wcsto*_internal prototypes.
5498         * sysdeps/generic/inttypes.h: No need to protect the declaration
5499         of the __strto*_internal and __wcsto*_internal members here.
5500
5501         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5502
5503 2007-08-02  Roland McGrath  <roland@redhat.com>
5504
5505         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5506         $(inst_bindir)/getconf if possible.
5507
5508         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5509         (generated): Add it.
5510         ($(inst_libexecdir)/getconf): Use it.
5511
5512 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5513
5514         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5515         /proc is faster and sufficient.  /sys is still needed for
5516         __get_nprocs_conf.
5517
5518 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5519
5520         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5521         syscall as __fallocate64.
5522         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5523         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5524
5525 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5526
5527         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5528         value.
5529
5530         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5531         if off_t is different rank from size_t.
5532
5533         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5534         uw_frame_state_for): Avoid type punning warnings.
5535         * sysdeps/generic/unwind-dw2-fde-glibc.c
5536         (_Unwind_IteratePhdrCallback): Likewise.
5537         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5538         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5539         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5540         pointers.
5541
5542 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5543
5544         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5545         total processors using sysfs.
5546         (__get_nprocs): Use sysfs to determine which processors are online.
5547
5548 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5549
5550         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5551         syscall arguments count.
5552
5553         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5554
5555 2007-07-30  Roland McGrath  <roland@redhat.com>
5556
5557         * manual/libc.texinfo: Update copyrights, formatting magic, and
5558         @dircategory.  From Karl Berry <karl@freefriends.org>.
5559
5560 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5561
5562         [BZ #4860]
5563         * io/Makefile (headers): Add bits/fcntl2.h.
5564
5565         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5566         using gcc builtin.
5567         (__CPU_EQUAL_S): Likewise.
5568
5569         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5570         (tests): Add tst-cpuset.
5571         * posix/sched_cpualloc.c: New file.
5572         * posix/sched_cpufree.c: New file.
5573         * posix/tst-cpuset.c: New file.
5574         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5575         GLIBC_2.7.
5576         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5577         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5578         macros.  Define CPU_*_S macros.
5579
5580 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5581
5582         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5583         entry.
5584
5585         [BZ #4858]
5586         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5587         #.0g and value rounded to 1.0.
5588         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5589
5590 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5591
5592         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5593         for int_frac_digits and frac_digits.
5594
5595         * login/logout.c (logout): Avoid aliasing violation.
5596         * login/logwtmp.c (logwtmp): Likewise.
5597
5598         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5599
5600         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5601         to avoid warning.
5602         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5603         warning.
5604         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5605         warning.
5606         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5607         to avoid warnings.
5608
5609         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5610         void **.
5611         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5612
5613         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5614         char * to avoid warning.
5615         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5616
5617         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5618
5619         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5620         allocate_arrays): Cast second argument to charmap_find_symbol
5621         to char * to avoid warnings.
5622
5623         * locale/programs/repertoire.c (repertoire_new_char): Change
5624         from_nr, to_nr and cnt to unsigned long, adjust printf format
5625         string.
5626
5627         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5628         Cast second argument to new_element to char * to avoid warnings.
5629
5630         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5631
5632         * intl/gettextP.h (struct loaded_domain): Change plural to const
5633         struct expression *.
5634         * intl/plural-eval.c (plural_eval): Change first argument to
5635         const struct expression *.
5636         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5637         argument to const struct expression **.
5638         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5639         prototypes.
5640         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5641         in call to __gettext_free_exp.
5642
5643         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5644         unitialized wstring/wpattern var warnings.
5645
5646         * posix/runtests.c (struct a_test): Make data field const char *.
5647
5648         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5649         vars if not LDBL_MANT_DIG >= 106.
5650
5651         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5652
5653         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5654         __find_specmb to avoid warning.
5655
5656         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5657
5658         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5659         to avoid warnings.
5660
5661         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5662         initializer.
5663
5664         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5665         tv var when it will be actually used.
5666
5667         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5668         to avoid warnings.
5669
5670         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5671         char array resp. pointer.
5672         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5673         char array.
5674         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5675         to const unsigned char **.
5676         (ucs4_to_cns11643): Change second argument to unsigned char *.
5677         * iconvdata/euc-tw.c (BODY): Change endp type to
5678         const unsigned char *.
5679         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5680         to unsigned char *.
5681         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5682         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5683         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5684         types to unsigned char pointers/arrays instead of char.
5685         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5686         to unsigned char *.
5687         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5688         * iconvdata/jis0212.h: Include assert.h.
5689         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5690         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5691         of trying to handle that.
5692         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5693         shut up a warning.
5694         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5695         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5696         two dimensional const unsigned char arrays.
5697         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5698         Initialize endp to inptr to shut up a warning.
5699
5700 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5701
5702         [BZ #4772]
5703         * time/strptime_l.c (__strptime_internal): Silently ignore
5704         strftime modifiers and field width in recursive calls.
5705
5706         * include/time.h (enum ptime_locale_status): Remove.
5707         (__strptime_internal): Remove decided and era_cnt arguments,
5708         add statep argument.
5709         * time/strptime_l.c (__strptime_internal): Remove decided
5710         and era_cnt arguments, add statep argument.  Don't recompute
5711         any fields in recursive calls, only update caller's tm
5712         and state, if recursive call fails, don't change tm nor
5713         any state.
5714         (get_alt_number): Adjust.
5715         (recursive): Adjust caller.
5716         (strptime): Likewise.
5717         * time/strptime.c (strptime): Likewise.
5718
5719 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5720
5721         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5722         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5723         if from and to charsets are the same.
5724         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5725         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5726         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5727
5728 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5729
5730         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5731         Don't define wint_t when __need_mbstate_t unless it
5732         is necessary.
5733         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5734         in the typedef if possible.
5735         * wctype/wctype.h (wint_t): Define by including
5736         wchar.h with __need_wint_t instead of including stddef.h
5737         with __need_wint_t and as fallback definining it ourselves.
5738         * iconv/gconv.h (__need_wint_t): Define before including
5739         wchar.h.
5740         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5741         or _GLIBCPP_USE_WCHAR_T.
5742         (__need_wchar_t): Don't define
5743         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5744         (__need_wint_t): Don't define before including stddef.h,
5745         define before including wchar.h only if _LIBC or
5746         _GLIBCPP_USE_WCHAR_T.
5747         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5748         * sysdeps/mach/hurd/_G_config.h: Likewise.
5749         * sysdeps/generic/_G_config.h: Likewise.
5750         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5751         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5752         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5753         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5754
5755 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5756
5757         * sysdeps/posix/posix_fallocate64.c: Undefine
5758         __posix_fallocate64_l64 before alias handling.
5759         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5760         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5761         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5762         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5763
5764         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5765
5766 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5767
5768         * locale/programs/ld-collate.c (atwc): New variable.
5769         (add_to_tablewc): New toplevel function, moved from collate_output.
5770         (collate_output): Remove add_to_tablewc nested function.
5771
5772         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5773         (name_insert): New function.
5774         (write_output): Remove hash_table and hash_size vars and name_insert
5775         nested function.
5776
5777 2007-07-24  Roland McGrath  <roland@redhat.com>
5778
5779         * Makerules (install-others-programs-nosubdir): New target.
5780         (install-no-libc.a-nosubdir): Depend on it.
5781
5782         * iconv/Makefile (install-others-programs): Set this instead of
5783         install-others.
5784         * login/Makefile (install-others-programs): Likewise.
5785         * posix/Makefile (install-others-programs): Likewise.
5786
5787         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5788         dependencies.
5789
5790 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5791
5792         * io/Makefile (tests): Add tst-posix_fallocate.
5793         * io/tst-posix_fallocate.c: New file.
5794
5795         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5796         __ASSUME_FALLOCATE.
5797
5798 2007-07-22  Roland McGrath  <roland@frob.com>
5799
5800         * hurd/getdport.c: Add missing copyright year update.
5801
5802         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5803         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5804
5805 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5806
5807         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5808
5809         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5810         O_CLOEXEC is needed.
5811         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5812         Avoid additional fcntl to set O_CLOEXEC if not needed.
5813         * nis/nss_compat/compat-initgroups.c: Likewise.
5814         * nis/nss_compat/compat-pwd.c: Likewise.
5815         * nis/nss_compat/compat-spwd.c: Likewise.
5816
5817 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5818
5819         [BZ #3665]
5820         * manual/errno.texi: Change ECANCELED value to 119.
5821
5822         [BZ #4610]
5823         * mach/lock-intern.h: Include <sys/cdefs.h>.
5824
5825         [BZ #4178]
5826         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5827         reading A.
5828
5829         [BZ #4126]
5830         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5831         to __sigsuspend.
5832
5833         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5834
5835 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5836
5837         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5838         `__ASSEMBLER__'.
5839         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5840
5841 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5842
5843         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5844         descriptor received from nscd.
5845
5846         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5847
5848         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5849         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5850         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5851         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5852         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5853         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5854
5855 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5856
5857         [BZ #4816]
5858         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5859
5860         [BZ #4813]
5861         * login/forkpty.c (forkpty): Close master and slave fds on
5862         fork failure.  Patch by
5863         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5864
5865 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5866
5867         * include/features.h (__USE_ISOC95): New define.
5868         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5869         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5870         for -std=iso9899:199409.
5871         * CONFORMANCE: Remove comments about unsupported AMD1.
5872
5873 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5874
5875         * sysdeps/ia64/sched_cpucount.c: New file.
5876         * sysdeps/powerpc/sched_cpucount.c: New file.
5877
5878         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5879         __BEGIN_DECLS/__END_DECLS around the prototype.
5880         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5881         pointer to const cpu_set_t.
5882
5883         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5884         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5885         __need_size_t and include stddef.h.
5886         * sysvipc/sys/msg.h: Likewise.
5887         * posix/sched.h: Likewise.
5888         * hurd/hurd/signal.h (__need_size_t): Define.
5889
5890         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5891         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5892         no longer defines wint_t or wchar_t.
5893
5894         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5895         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5896         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5897         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5898         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5899         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5900         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5901         * debug/printf_chk.c (__printf_chk): Likewise.
5902         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5903         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5904
5905         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5906         Define.
5907
5908         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5909         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5910
5911 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5912
5913         [BZ #4792]
5914         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5915         * malloc/malloc.h (realloc): Likewise.
5916
5917         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5918         if one of proc_file_chain streams has that fileno.
5919         * stdio-common/Makefile (tests): Add tst-popen2.
5920         * stdio-common/tst-popen2.c: New test.
5921
5922 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5923
5924         * elf/ldconfig.c: Allow GPLv2 or any later version.
5925         * elf/readlib.c: Likewise.
5926         * elf/chroot_canon.c: Likewise.
5927         * elf/cache.c: Likewise.
5928         * nscd/mem.c: Likewise.
5929         * nscd/getpwuid_r.c: Likewise.
5930         * nscd/grpcache.c: Likewise.
5931         * nscd/aicache.c: Likewise.
5932         * nscd/getsrvbynm_r.c: Likewise.
5933         * nscd/nscd.c: Likewise.
5934         * nscd/servicescache.c: Likewise.
5935         * nscd/getsrvbypt_r.c: Likewise.
5936         * nscd/initgrcache.c: Likewise.
5937         * nscd/gethstbyad_r.c: Likewise.
5938         * nscd/gethstbynm2_r.c: Likewise.
5939         * nscd/getgrnam_r.c: Likewise.
5940         * nscd/nscd_setup_thread.c: Likewise.
5941         * nscd/getpwnam_r.c: Likewise.
5942         * nscd/gai.c: Likewise.
5943         * nscd/connections.c: Likewise.
5944         * nscd/dbg_log.c: Likewise.
5945         * nscd/cache.c: Likewise.
5946         * nscd/hstcache.c: Likewise.
5947         * nscd/nscd_conf.c: Likewise.
5948         * nscd/getgrgid_r.c: Likewise.
5949         * nscd/pwdcache.c: Likewise.
5950         * catgets/gencat.c: Likewise.
5951         * locale/programs/linereader.h: Likewise.
5952         * locale/programs/locarchive.c: Likewise.
5953         * locale/programs/ld-paper.c: Likewise.
5954         * locale/programs/locfile-kw.h: Likewise.
5955         * locale/programs/ld-address.c: Likewise.
5956         * locale/programs/xmalloc.c: Likewise.
5957         * locale/programs/ld-time.c: Likewise.
5958         * locale/programs/localedef.c: Likewise.
5959         * locale/programs/simple-hash.c: Likewise.
5960         * locale/programs/xstrdup.c: Likewise.
5961         * locale/programs/ld-numeric.c: Likewise.
5962         * locale/programs/locfile-kw.gperf: Likewise.
5963         * locale/programs/ld-collate.c: Likewise.
5964         * locale/programs/charmap-kw.gperf: Likewise.
5965         * locale/programs/charmap.h: Likewise.
5966         * locale/programs/charmap-kw.h: Likewise.
5967         * locale/programs/config.h: Likewise.
5968         * locale/programs/locfile.c: Likewise.
5969         * locale/programs/ld-ctype.c: Likewise.
5970         * locale/programs/charmap.c: Likewise.
5971         * locale/programs/ld-messages.c: Likewise.
5972         * locale/programs/repertoire.h: Likewise.
5973         * locale/programs/locale.c: Likewise.
5974         * locale/programs/ld-name.c: Likewise.
5975         * locale/programs/linereader.c: Likewise.
5976         * locale/programs/locfile.h: Likewise.
5977         * locale/programs/3level.h: Likewise.
5978         * locale/programs/ld-monetary.c: Likewise.
5979         * locale/programs/ld-measurement.c: Likewise.
5980         * locale/programs/charmap-dir.c: Likewise.
5981         * locale/programs/ld-identification.c: Likewise.
5982         * locale/programs/localedef.h: Likewise.
5983         * locale/programs/charmap-dir.h: Likewise.
5984         * locale/programs/repertoire.c: Likewise.
5985         * locale/programs/simple-hash.h: Likewise.
5986         * locale/programs/ld-telephone.c: Likewise.
5987         * locale/programs/locale-spec.c: Likewise.
5988         * locale/programs/locfile-token.h: Likewise.
5989         * posix/getconf.c: Likewise.
5990         * iconv/dummy-repertoire.c: Likewise.
5991         * iconv/iconv_charmap.c: Likewise.
5992         * iconv/iconvconfig.c: Likewise.
5993         * iconv/iconv_prog.c: Likewise.
5994         * malloc/memusagestat.c: Likewise.
5995         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5996
5997 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5998
5999         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6000         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6001         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6002         check for the first argument.
6003
6004 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6005
6006         [BZ #4775]
6007         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6008         (__tgmath_real_type): Fix if expr is const int or other const
6009         qualified integral type.
6010         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6011         expressions and handle const qualified arguments.
6012         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6013         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6014         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6015         statement expressions.
6016         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6017         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6018         (__TGMATH_UNARY_IMAG): Define.
6019         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6020         * math/Makefile (tests): Add test-tgmath2.
6021         (CFLAGS-test-tgmath2.c): Add.
6022         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6023         count_cfloat, count_cldouble): New variables.
6024         (NCCALLS): Define.
6025         (main): Check number of complex calls as well.
6026         (F(compile_test)): Add complex tests and tests with const qualified
6027         arguments.
6028         (y, z, ccount): Define.
6029         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6030         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6031         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6032         F(cproj)): New functions.
6033         * math/test-tgmath2.c: New test.
6034
6035 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
6036
6037         [BZ #4776]
6038         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6039         RPATH etc. as "/" rather than "", don't segfault on empty paths,
6040         instead output ".".
6041         * dlfcn/Makefile (distribute): Add glreflib3.c.
6042         (module-names): Add glreflib3.
6043         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6044         glreflib1.so.
6045         (LDFLAGS_glreflib3.so): New.
6046         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6047         glreflib1.so.
6048         * dlfcn/glreflib3.c: New file.
6049
6050         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6051         returned -1, return NULL.
6052         * intl/explodename.c (_nl_explode_name): Return -1 if
6053         _nl_normalize_codeset failed.
6054
6055 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
6056
6057         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6058         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
6059         and avoid branch misspredicts for > 31 bytes memset case.
6060         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6061         Remove toc ref to __cache_line_size.
6062
6063         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6064         to get ISA-V2.0 branch hints.
6065         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6066         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6067         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6068         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6069         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6070         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6071         Remove toc ref to __cache_line_size.
6072
6073         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6074         Include math_ldbl_opt.h.
6075
6076 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6077
6078         [BZ #4773]
6079         * time/strptime_l.c (__strptime_internal): Implement greedy
6080         matching of weekday and month names.
6081
6082 2007-07-09  Roland McGrath  <roland@redhat.com>
6083
6084         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6085         (ELF_NOTE_ABI): Use it.
6086         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6087
6088 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6089
6090         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6091         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6092
6093 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6094
6095         [BZ #4745]
6096         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6097         in loop to look for conversion specifier to avoid testing of
6098         wrong errno value.
6099         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6100         * stdio-common/bug18.c: New file.
6101         * stdio-common/bug18a.c: New file.
6102         * stdio-common/bug19.c: New file.
6103         * stdio-common/bug19a.c: New file.
6104
6105 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6106
6107         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6108         running awk script.
6109
6110 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6111
6112         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6113         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6114         Return NULL if mmap failed instead of asserting it does not.
6115         (calloc): Check for integer overflow.
6116
6117         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6118         than LONG_MAX / 10.
6119
6120 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6121
6122         [BZ #4702]
6123         * nis/nss-default.c: Include errno.h.
6124         (init): Preserve errno.
6125
6126 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6127
6128         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6129
6130 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6131
6132         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6133
6134 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6135
6136         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6137
6138 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6139
6140         * sysdeps/s390/dl-procinfo.c: New file.
6141         * sysdeps/s390/dl-procinfo.h: New file.
6142         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6143
6144 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6145
6146         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6147         in PT_NOTE segments with multiple notes.
6148         * elf/readelflib.c (process_elf_file): Likewise.
6149
6150 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6151
6152         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6153         ISO C compliant.
6154
6155 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6156
6157         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6158
6159 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6160
6161         * include/link.h: Don't include rtld-lowlevel.h.
6162         (struct link_map): Remove l_scope_lock.
6163         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6164         (_dl_scope_free_list): New field (variable) in _rtld_global.
6165         (DL_LOOKUP_SCOPE_LOCK): Remove.
6166         (_dl_scope_free): New prototype.
6167         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6168         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6169         (_dl_profile_fixup): Likewise.
6170         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6171         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6172         THREAD_GSCOPE_RESET_FLAG around it.
6173         * elf/dl-close.c (_dl_close_worker): Don't use
6174         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6175         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6176         scopes were queued or if l_scope_mem has been abandoned.
6177         * elf/dl-open.c (_dl_scope_free): New function.
6178         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6179         * elf/dl-support.c (_dl_scope_free_list): New variable.
6180         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6181         Remove DL_LOOKUP_SCOPE_LOCK handling.
6182         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6183         handling.
6184         * elf/dl-object.c (_dl_new_object): Don't use
6185         __rtld_mrlock_initialize.
6186
6187 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6188
6189         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6190         to fill in holes
6191         (rtld_global_ro): Likewise.
6192
6193 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6194
6195         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6196         Move PT_LOAD checking to...
6197         (_dl_addr_inside_object): ... here, new function.
6198         * elf/dl-sym.c (do_sym): If not l_contiguous,
6199         call _dl_addr_inside_object.
6200         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6201         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6202         * elf/dl-open.c (dl_open_worker): Likewise.
6203         (_dl_addr_inside_object): New function if IS_IN_rtld.
6204         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6205         holes are present or are PROT_NONE protected.
6206         * include/link.h (struct link_map): Add l_contiguous field.
6207         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6208
6209 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6210             Tomas Janousek  <tjanouse@redhat.com>
6211             Ulrich Drepper  <drepper@redhat.com>
6212
6213         [BZ #4647]
6214         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6215         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6216         socket.
6217         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6218         unused member a bitmap.
6219         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6220         servers are configured.
6221
6222 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6223
6224         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6225
6226 2007-06-17  Andreas Schwab  <schwab@suse.de>
6227
6228         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6229
6230 2007-06-16  Andreas Jaeger  <aj@suse.de>
6231
6232         [BZ #4125]
6233         * sysdeps/unix/sysv/linux/sys/ptrace.h
6234         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6235         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6236         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6237         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6238         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6239         Define.
6240         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6241         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6242         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6243         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6244
6245 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6246
6247         [BZ #4599]
6248         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6249         determining whether there are IPv4/IPv6 addresses, ignore loopback
6250         addresses.
6251
6252 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6253
6254         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6255         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6256         as the return type.  Change type of "r" variable to CMPtype.
6257         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6258         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6259         * soft-fp/gedf2.c (__gedf2): Likewise.
6260         * soft-fp/gesf2.c (__gesf2): Likewise.
6261         * soft-fp/getf2.c (__getf2): Likewise.
6262         * soft-fp/ledf2.c (__ledf2): Likewise.
6263         * soft-fp/lesf2.c (__lesf2): Likewise.
6264         * soft-fp/letf2.c (__letf2): Likewise.
6265         * soft-fp/unorddf2 (__unorddf2): Likewise.
6266         * soft-fp/unordsf2 (__unordsf2): Likewise.
6267         * soft-fp/unordtf2 (__unordtf2): Likewise.
6268
6269 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6270
6271         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6272         make sure gcc doesn't mess around with this.
6273
6274 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6275
6276         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6277
6278 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6279
6280         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6281         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6282         at most once per _dl_close_worker.
6283
6284 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6285
6286         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6287         __sched_cpucount as const.
6288         * posix/sched_cpucount.c: Adjust.
6289
6290         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6291         instruction for counting bits.
6292         * sysdeps/x86_64/sched_cpucount.c: New file.
6293
6294 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6295
6296         * configure.in: Avoid variable named BASH.
6297         * config.make.in: Likewise.
6298         Patch in part by Mike Frysinger.
6299
6300 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6301
6302         [BZ #4586]
6303         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6304         pseudo-zeros as zero.
6305         * sysdeps/x86_64/ldbl2mpn.c: New file.
6306         * sysdeps/ia64/ldbl2mpn.c: New file.
6307
6308 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6309
6310         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6311         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6312         Remove unreachable code at the end.
6313
6314 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6315
6316         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6317         ldbl-128ibm in comment.
6318         (fpclassifyl): Correct classification of denormals.
6319         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6320         return value for MIN denormal. Rewrite using long double math too
6321         correctly handle denormals and canonicalize the results.
6322
6323 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6324
6325         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6326         (__mpn_construct_long_double): Fix conversion where result ought
6327         to be smaller than __LDBL_MIN__, or the low double should be
6328         denormal.  Fix decision where to negate low double - honor round
6329         to even rules.
6330         * stdio-common/tst-sprintf2.c: Include string.h.
6331         (COMPARE_LDBL): Define.
6332         (TEST): Also test whether a string hexadecimal float representation
6333         can be parsed back to the number.
6334         (main): Add a couple of further tests.
6335
6336 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6337
6338         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6339         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6340         is non-zero, but smaller than 2 * __DBL_MIN__.
6341         * stdio-common/tst-sprintf2.c: New test.
6342         * stdio-common/Makefile (tests): Add tst-sprintf2.
6343
6344         * math/test-misc.c (main): Don't run last batch of tests with
6345         IBM long double format.
6346
6347 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6348
6349         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6350         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6351         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6352         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6353         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6354         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6355         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6356         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6357         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6358         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6361         New file.
6362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6363         New file.
6364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6365         New file.
6366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6367         New file.
6368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6369         New file.
6370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6372         New file.
6373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6374         New file.
6375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6376         New file.
6377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6378         New file.
6379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6380         New file.
6381
6382 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6383
6384         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6385         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6386         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6387         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6388         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6389         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6390         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6391         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6392
6393 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6394
6395         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6396         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6397         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6398         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6399         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6400         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6401         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6402         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6403
6404 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6405
6406         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6407         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6408         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6409         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6410
6411 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6412
6413         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6414         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6415
6416 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6417
6418         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6419         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6420         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6421         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6422
6423 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6424
6425         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6426         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6427
6428 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6429
6430         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6431         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6432
6433         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6434         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6435         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6436         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6437
6438 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6439
6440         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6441         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6442         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6443         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6444
6445 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6446
6447         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6448         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6449         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6450         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6451         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6452         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6453
6454 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6455
6456         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6457         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6458         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6459         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6460
6461 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6462
6463         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6464         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6465         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6466         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6467         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6468         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6469         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6470         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6471         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6472         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6473         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6474         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6475         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6476         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6477         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6478         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6479
6480 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6481
6482         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6483         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6484
6485 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6486
6487         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6488         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6489
6490 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6491
6492         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6493         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6494         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6495         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6496         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6497         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6498         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6499         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6500         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6501         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6502
6503 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6504
6505         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6506
6507 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6508
6509         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6510         branch miss-predicts. Ensure that cache line crossing does not impact
6511         dispatch grouping.
6512
6513 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6514
6515         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6516         "../../powerpc32/power4/memcopy.h".
6517         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6518         "../../powerpc32/power4/wordcopy.c".
6519
6520 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6521
6522         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6523         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6524         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6525         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6526         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6527         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6528
6529 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6530
6531         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6532
6533 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6534
6535         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6536         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6537         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6538         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6539         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6540         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6541         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6542         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6543
6544 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6545
6546         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6547
6548 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6549
6550         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6551         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6552         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6553         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6554         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6555         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6556         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6557
6558 2007-05-29  Roland McGrath  <roland@redhat.com>
6559
6560         * po/Makefile (po-sed-cmd): New variable.
6561         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6562
6563 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6564
6565         * crypt/md5-crypt.c: Fix comment.
6566
6567         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6568         of crashing.  When this is the case or if the reply is malformed,
6569         don't try to close the new file descriptor since it does not
6570         exist.
6571         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6572
6573 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6574
6575         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6576         if __NR_utimensat is not defined.
6577
6578 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6579
6580         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6581
6582 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6583
6584         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6585         (open): Fix comment typos.  Don't call __open_2 if flags
6586         is a compile time constant without O_CREAT.
6587         (__open64_2): Add nonnull attribute.
6588         (open64): Fix comment typos.  Don't call __open64_2 if flags
6589         is a compile time constant without O_CREAT.
6590         (__openat_2): Add nonnull attribute, fix nonnull attribute
6591         on redirect.
6592         (openat): Fix comment typos.  Don't call __openat_2 if flags
6593         is a compile time constant without O_CREAT.
6594         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6595         on redirect.
6596         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6597         is a compile time constant without O_CREAT.
6598
6599 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6600
6601         * Makerules (sysd-rules): Define PTW for ptw-* files.
6602         * Versions: Define GLIBC_2.7 for libc.
6603         * include/stdio.h: Declare __fortify_fail.
6604         * debug/fortify_fail.c: New file.
6605         * debug/Makefile (routines): Add fortify_fail.
6606         * debug/chk_fail.c: Use __fortify_fail.
6607         * debug/stack_chk_fail.c: Likewise.
6608         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6609         __openat64_2 for GLIBC_2.7.
6610         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6611         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6612         and fails if necessary.
6613         * io/open64.c: Likewise.
6614         * io/openat.c: Likewise.
6615         * io/openat64.c: Likewise.
6616         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6617         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6618         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6619         * io/bits/fcntl2.h: New file.
6620         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6621         __openat64_2.
6622         * include/bits/fcntl2.h: New file.
6623         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6624         Add open_2.
6625         * sysdeps/unix/sysv/linux/open_2.c: New file.
6626
6627 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6628
6629         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6630         as second parameter to handle_intel.
6631
6632         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6633         the entry.
6634
6635         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6636         handling to ...
6637         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6638         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6639         cacheinfo.
6640         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6641         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6642         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6643
6644         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6645
6646 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6647
6648         [BZ #4525]
6649         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6650         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6651         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6652
6653         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6654
6655         [BZ #4514]
6656         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6657         reinitialize workend at the start of each do_positional format spec
6658         loop, free workstart before do_positional loops.
6659         (printf_unknown): Fix size of work_buffer.
6660         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6661
6662         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6663         (public_sET_STATe): If ms->version < 3, put all chunks into
6664         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6665         chunks.
6666
6667         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6668         * malloc/hooks.c: Likewise.
6669         * malloc/arena.c: Likewise.
6670         * malloc/malloc.c (do_check_malloc_state): Don't assert
6671         n_mmaps is not greater than n_mmaps_max.  This removes the need
6672         for the previous change.
6673
6674         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6675         2007-05-07 commit.
6676
6677 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6678
6679         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6680         Define for kernel >= 2.6.22.
6681
6682 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6683
6684         * elf/dl-close.c (_dl_close_worker): When removing object from
6685         global scope, wait for all lookups to finish afterwards.
6686         * elf/dl-open.c (add_to_global): When global scope array must
6687         grow, allocate a new one and free old array only after all
6688         lookups finish.
6689         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6690         (_dl_lookup_symbol_x): Likewise.
6691         * elf/dl-support.c: Define _dl_wait_lookup_done.
6692         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6693         _dl_wait_lookup_done.
6694
6695         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6696         not overlapping with arena.
6697
6698         * malloc/mcheck.c (reallochook): If size==0, free the block.
6699
6700         * rt/tst-shm.c: Use fstat64 instead of fstat.
6701
6702         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6703         __NR_sync_file_range is not defined.
6704
6705 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6706
6707         Dummy files to prevent stub versions from being used.
6708         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6709         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6710         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6711         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6712
6713         * version.h (VERSION): Set to 2.6.90.
6714
6715 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6716
6717         * version.h (VERSION): Define to 2.6.
6718         * include/features.h (__GLIBC_MINOR__): Define to 6.
6719
6720         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6721
6722         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6723         sizes.
6724
6725 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6726
6727         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6728         number of mmaps.  n_mmaps_max is the target.
6729         * malloc/hooks.c: Likewise.
6730         * malloc/arena.c: Likewise.
6731
6732 2007-05-12  Andreas Jaeger  <aj@suse.de>
6733
6734         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6735         getpid.
6736
6737 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6738
6739         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6740         adding new variables.
6741
6742         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6743         optimize.  Completely extend global scope array before making the
6744         new entries visible.
6745
6746 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6747
6748         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6749         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6750         tst-getcpu.
6751
6752         * include/link.h: Move l_version and l_nversion members around to
6753         fill gaps.
6754
6755         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6756
6757         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6758         (__sched_setaffinity_new): If syscall was successful and
6759         RESET_VGETCPU_CACHE is defined, use it before returning.
6760         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6761
6762         * io/sys/stat.h: Make sure struct timespec is defined for
6763         __USE_ATFILE.
6764
6765         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6766         UTIME_OMIT.
6767         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6768         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6769         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6770         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6771         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6772         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6773         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6774         * io/sys/stat.h: Declare utimensat, futimens.
6775         * io/utimensat.c: New file.
6776         * io/futimens.c: New file.
6777         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6778         * sysdeps/unix/sysv/linux/futimens.c: New file.
6779         * io/Makefile (routines): Add utimensat, futimens.
6780         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6781         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6782         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6783         available.
6784
6785         * include/sys/cdefs.h: Redefine __nonnull so that test for
6786         incorrect parameters in the libc code itself are not omitted.
6787
6788 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6789
6790         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6791         exception in addition to inexact when asked to raise only FE_INEXACT.
6792
6793         [BZ #3427]
6794         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6795         in *envp.
6796
6797 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6798
6799         [BZ #4403]
6800         * string/strfry.c (strfry): Make result more random.
6801
6802 2007-05-07  Richard Henderson  <rth@redhat.com>
6803
6804         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6805         if __NO_LONG_DOUBLE_MATH.
6806         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6807         available in the compiler, add .arch directive to the assembly.
6808
6809 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6810
6811         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6812         compat_symbol to GLIBC_2_1.
6813         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6814         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6815         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6816         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6817         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6818         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6819         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6820         libc, not libm.
6821         (__isnanl): New compat_symbol.
6822
6823 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6824             Jakub Jelinek  <jakub@redhat.com>
6825
6826         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6827         (new_heap): Initialize mprotect_size.
6828         (grow_heap): When growing, only mprotect from mprotect_size till
6829         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6830         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6831
6832 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6833             Peter Bergner  <bergner@us.ibm.com>
6834
6835         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6836         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6837         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6838         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6839         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6840         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6841         Call __fe_mask_env() if all FP exceptions disabled.
6842         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6843         from old FPSCR to new fenv to propagate DFP rounding modes.
6844         Call __fe_mask_env() if FP exceptions previously enabled.
6845         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6846         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6847         transitioning from all exceptions disabled to any exception enabled
6848         or visa versa.
6849         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6850         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6851         when transitioning from all exceptions disabled to any exception
6852         enabled or visa versa.
6853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6859
6860 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6861
6862         [BZ #4465]
6863         * posix/unistd.h: Remove __THROW from fdatasync.
6864
6865 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6866
6867         [BZ #4465]
6868         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6869
6870 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6871
6872         * stdio-common/vfprintf.c (process_string_arg): Optimize
6873         ridiculous precision in wide char code printing multi-byte string.
6874         Reported by Jim Meyering <jim@meyering.net>.
6875
6876         [BZ #4131]
6877         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6878         boundaries to work around systems with overlapping binary loading.
6879         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6880
6881 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6882
6883         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6884         __mbsnrtowcs after last change.
6885
6886         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6887         (get_ident): Likewise.
6888
6889 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6890
6891         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6892         with setting the sticky bit.
6893         * math/test-misc.c (main): Add more truncation tests.
6894
6895 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6896
6897         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6898         double in the function declaration.
6899         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6900         double in the function declaration.
6901         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6902         float in the function declaration.
6903         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6904         float in the function declaration.
6905
6906         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6907         denormal operands.  Do not generate FP_EX_DENORM exception.
6908         (FP_UNPACK_RAW_EP): Ditto.
6909         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6910         undefined _FP_UNPACK_RAW_E.
6911         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6912         undefined _FP_UNPACK_RAW_EP.
6913         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6914         undefined _FP_PACK_RAW_E.
6915         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6916         undefined _FP_PACK_RAW_EP.
6917
6918         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6919         _FP_FRAC_COPY_2.
6920         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6921         _FP_FRAC_COPY_4.
6922
6923 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6924             Jakub Jelinek  <jakub@redhat.com>
6925
6926         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6927         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6928         this case.
6929         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6930
6931 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6932
6933         * math/test-misc.c (main): Add tests for rounding long double
6934         values close to smallest double denormalized value to double.
6935
6936 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6937
6938         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6939         condition for truncating to 0.  Set sticky bit for such
6940         truncation.
6941
6942 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6943
6944         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6945         fixed length array for ignore.
6946
6947 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6948
6949         [BZ #4438]
6950         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6951         stack for large precisions.
6952         * stdio-common/test-vfprintf.c (main): Add test for large
6953         precision.
6954
6955 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6956
6957         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6958         for exponent 0.
6959         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6960
6961         [BZ #4439]
6962         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6963         account in the size check.
6964         * resolv/tst-inet_ntop.c: New test.
6965         * resolv/Makefile (tests): Add tst-inet_ntop.
6966
6967 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6968             Jakub Jelinek  <jakub@redhat.com>
6969
6970         [BZ #4349]
6971         * malloc/malloc.c: Keep separate list for first blocks on the bin
6972         lists with a given size.  This helps skipping over list elements
6973         we know won't fit in two places.
6974         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6975
6976 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6977
6978         [BZ #4102]
6979         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6980         label to Teredo tunnel addresses 2001://32.
6981
6982 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6983
6984         * locale/programs/ld-collate.c (collate_read): Allow order_start
6985         after copy.
6986
6987         * locale/programs/ld-collate.c (collate_read): Fix printing of
6988         error message.
6989
6990         [BZ #3213]
6991         * locale/C-translit.h.in: Add entry for U2044.
6992
6993         [BZ #4342]
6994         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6995         hexa-decimal floats without exponent.
6996         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6997
6998 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6999
7000         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7001         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7002         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7003         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7004         GLIBC_2.6.
7005         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7006         Add sched_getcpu.
7007
7008 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7009
7010         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7011         of 0 after the out_fail label.
7012
7013 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7014
7015         [BZ #4406]
7016         * iconv/gconv_charset.h (strip): Allow ':'.
7017         * iconv/iconv_open.c (iconv_open): Adjust comment.
7018
7019 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7020
7021         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7022         version.
7023
7024 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7025
7026         [BZ #4381]
7027         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7028         alignment of buffer and tmp_buffer.
7029         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7030         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7031         alignment of buffer.
7032         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
7033         bigger than INT_MAX.
7034         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
7035         h_errnop arguments.  Fail if buflen is too small.
7036         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7037
7038 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7039
7040         [BZ #4405]
7041         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7042         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
7043
7044 2007-04-22  Roland McGrath  <roland@redhat.com>
7045
7046         * elf/elf.h (NT_PRXFPREG): New macro.
7047
7048 2007-04-19  Andreas Jaeger  <aj@suse.de>
7049
7050         [BZ #3905]
7051         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7052         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7053         Added.
7054
7055 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
7056
7057         * include/sys/mman.h: Mark madvise hidden.
7058         * misc/madvise.c: Add libc_hidden_def.
7059
7060 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
7061
7062         * nis/nis_domain_of.c (__nis_domain_of): New function.
7063         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7064         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7065         * nis/nis_call.c (rec_dirsearch): Likewise.
7066         (first_shoot): Likewise.  Remove search_parent_first argument.
7067         (struct nis_server_cache): Rename search_parent_first field
7068         to search_parent.
7069         (nis_server_cache_search, nis_server_cache_add): Rename
7070         search_parent_first argument to search_parent.
7071         (__nisfind_server): Likewise.  If search_parent, call
7072         __nis_domain_of.
7073
7074 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7075
7076         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7077
7078 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7079
7080         [BZ #4368]
7081         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7082
7083 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7084
7085         [BZ #4364]
7086         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7087
7088 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7089
7090         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7091         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7092         current number of locales in SUPPORTED.
7093         (create_archive): Initialize serial.
7094         (enlarge_archive): Preserve aliases rather than duplicating
7095         their locrecs.
7096
7097 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7098
7099         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7100         after _IO_un_link, not before it.
7101
7102         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7103         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7104         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7105
7106 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7107
7108         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7109         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7110         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7111         Remove __THROW.
7112         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7113         _IO_file_xsgetn_maybe_mmap): Likewise.
7114         * libio/oldfileops.c (old_do_write): Likewise.
7115         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7116         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7117         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7118         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7119         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7120         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7121         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7122         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7123         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7124         _IO_file_underflow, _IO_file_underflow_mmap,
7125         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7126         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7127         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7128         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7129         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7130         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7131         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7132         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7133         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7134         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7135         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7136         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7137         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7138         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7139         _IO_adjust_column_internal, _IO_default_uflow_internal,
7140         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7141         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7142         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7143         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7144         _IO_file_close_it_internal, _IO_file_underflow_internal,
7145         _IO_file_overflow_internal, _IO_file_attach_internal,
7146         _IO_file_fopen_internal, _IO_file_sync_internal,
7147         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7148         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7149         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7150         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7151         _IO_seekpos_unlocked): Likewise.
7152         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7153         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7154
7155 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7156
7157         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7158         argument in xmalloc size computation.
7159
7160 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7161
7162         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7163         math_opt_barrier and math_force_eval macros.
7164
7165 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7166
7167         [BZ #3306]
7168         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7169         * sysdeps/i386/fpu/math_private.h: New file.
7170         * sysdeps/x86_64/fpu/math_private.h: New file.
7171         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7172         math_force_eval macros.  Use "+m" constraint on asm rather than
7173         "=m" and "m".
7174         * math/s_nextafter.c (__nextafter): Likewise.
7175         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7176         Likewise.
7177         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7178         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7179         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7180         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7181         math_opt_barrier and math_force_eval macros.
7182         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7183         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7184         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7185         (__nexttoward): Use math_opt_barrier and
7186         math_force_eval macros.  Use "+m" constraint on asm rather than
7187         "=m" and "m".  Only use asm to force double result if
7188         FLT_EVAL_METHOD is 2.
7189         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7190         (__nexttowardf): Use math_opt_barrier and
7191         math_force_eval macros.  Use "+m" constraint on asm rather than
7192         "=m" and "m".  Only use asm to force double result if
7193         FLT_EVAL_METHOD is not 0.
7194         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7195         (__nexttowardf): Use math_opt_barrier and
7196         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7197         x to float using asm.
7198         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7199         (__nldbl_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-96/s_nexttowardf.c: Include float.h.
7203         (__nexttowardf): Use math_opt_barrier and math_force_eval
7204         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7205         * math/bug-nextafter.c (zero, inf): New variables.
7206         (main): Add new tests.
7207         * math/bug-nexttoward.c (zero, inf): New variables.
7208         (main): Add new tests.
7209
7210 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7211
7212         [BZ #3427]
7213         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7214         exceptions both in SW and MXCSR.
7215         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7216         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7217         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7218         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7219         in MXCSR if SSE is available.
7220         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7221         and ldsodefs.h.
7222         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7223         Fix comment typo.
7224         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7225         Return 0 rather than 1.
7226         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7227         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7228         * math/test-fenv.c (feholdexcept_tests): New function.
7229         (main): Call it.
7230
7231 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7232
7233         [BZ #3427]
7234         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7235         in SW.
7236
7237 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7238
7239         [BZ #4344]
7240         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7241         Reported by David Anderson <davea42@earthlink.net>.
7242
7243 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7244
7245         * posix/sys/wait.h: Remove unnecessary forward declaration.
7246
7247 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7248
7249         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7250         with obj->do_servers after first_shoot.
7251
7252 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7253
7254         * posix/Makefile (routines): Add sched_cpucount.
7255         (tests): Add tst-cpucount.
7256         * posix/sched_cpucount.c: New file.
7257         * posix/tst-cpucount.c: New file.
7258         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7259         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7260         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7261         * posix/sched.h: Define CPU_COUNT.
7262
7263 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7264
7265         * posix/fnmatch.c (STRUCT): Define.
7266         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7267         * posix/fnmatch_loop.c (struct STRUCT): New type.
7268         (FCT): Add ends argument.  If ends != NULL and normal * is
7269         seen in the pattern, store current pattern and string pointers
7270         and return.  Adjust recursive calls.
7271         (EXT): Adjust FCT callers.
7272         (STRUCT): Undef at the end of the file.
7273         * posix/Makefile (tests): Add tst-fnmatch2.
7274         * posix/tst-fnmatch2.c: New test.
7275
7276 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7277
7278         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7279         and 1 on failure.
7280
7281         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7282         Change last argument to unsigned int.
7283
7284 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7285
7286         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7287
7288 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7289
7290         * config.h.in (HAVE_LIBCAP): Add.
7291         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7292         sys/capabilities.h.
7293         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7294         free_caps.  Cast away const from 4th cap_set_flag argument.
7295
7296 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7297
7298         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7299         GLIBC_2.6.
7300         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7301         Add sync_file_range.
7302         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7303
7304 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7305
7306         * sysdeps/powerpc/bits/atomic.h
7307         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7308         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7309         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7310         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7311         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7312         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7313         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7314         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7315         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7316         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7317         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
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         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7322         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7323         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7324         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7325         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7326         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7327
7328 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7329
7330         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7331         (__cache_line_size): Define the variable here.  Add
7332         attribute_hidden, remove weak_extern.
7333         (__libc_start_main): Set __cache_line_size
7334         unconditionally.
7335         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7336         (__cache_line_size): Define the variable here.  Add
7337         attribute_hidden, remove weak_extern.
7338         (DL_PLATFORM_AUXV): Set __cache_line_size
7339         unconditionally.
7340         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7341         weak_extern, add attribute_hidden.
7342         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7343         defined in ld.so.
7344         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7345         definition.
7346         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7347
7348 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7349
7350         [BZ #4276]
7351         * timezone/africa: Update from tzdata2007d.
7352         * timezone/asia: Likewise.
7353         * timezone/australasia: Likewise.
7354         * timezone/backward: Likewise.
7355         * timezone/europe: Likewise.
7356         * timezone/iso3166.tab: Likewise.
7357         * timezone/leapseconds: Likewise.
7358         * timezone/northamerica: Likewise.
7359         * timezone/southamerica: Likewise.
7360         * timezone/zone.tab: Likewise.
7361
7362         * timezone/private.h: Update from tzcode2007d.
7363         * timezone/zdump.c: Likewise.
7364         * timezone/zic.c: Likewise.
7365
7366 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7367
7368         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7369         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7370         variables.
7371         (nis_server_cache_search, nis_server_cache_add): New functions.
7372         (__nisfind_server): Use them.  Add dbp and flags argument, if
7373         call __nisbind_create.
7374         (__nisbind_create): Add server_used and current_ep arguments,
7375         only call __nis_findfastest if server_used is ~0.
7376         (__do_niscall2, __prepare_niscall): Adjust callers.
7377         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7378         ckey_cache_euid, ckey_cache_lock): New variables.
7379         (get_ckey): New function.
7380         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7381         __pmap_getnisport.  Save __pmap_getnisport result in
7382         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7383         key.
7384         * nis/nis_lookup.c (nis_lookup): Likewise.
7385         * nis/nis_table.c (nis_list): Likewise.
7386         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7387         prototypes.
7388
7389         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7390         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7391         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7392         _nss_nisplus_getservbyport_r): Likewise.
7393         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7394         _nss_nisplus_getnetbyaddr_r): Likewise.
7395         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7396         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7397         _nss_nisplus_getntohost_r): Likewise.
7398         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7399         _nss_nisplus_getrpcbynumber_r): Likewise.
7400
7401 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7402
7403         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7404         * configure: Rebuilt.
7405
7406         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7407         bit-fields.
7408         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7409
7410 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7411
7412         [BZ #2831]
7413         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7414         bit-fields.
7415
7416 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7417
7418         * nscd/gai.c: Include alloca.h.
7419         (__libc_use_alloca): Define.
7420
7421 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7422
7423         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7424         smaller scopes.
7425         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7426         (DL_DST_REQUIRED): Adjust user.
7427
7428         * include/dlfcn.h (struct link_map): New forward decl.
7429
7430         * inet/getnameinfo.c: Include stddef.h.
7431         (getnameinfo): Use offsetof.
7432
7433         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7434
7435         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7436
7437         * string/strerror_l.c: Include stdlib.h.
7438
7439         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7440         * config.make.in (gnu89-inline-CFLAGS): New variable.
7441         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7442         -std=gnu99.
7443         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7444         * argp/argp.h: Use it.
7445         * bits/mathinline.h: Likewise.
7446         * bits/sigset.h: Likewise.
7447         * bits/string.h: Likewise.
7448         * ctype/ctype.h: Likewise.
7449         * hurd/hurd.h: Likewise.
7450         * hurd/hurd/fd.h: Likewise.
7451         * hurd/hurd/port.h: Likewise.
7452         * hurd/hurd/signal.h: Likewise.
7453         * hurd/hurd/threadvar.h: Likewise.
7454         * hurd/hurd/userlink.h: Likewise.
7455         * io/sys/stat.h: Likewise.
7456         * libio/bits/stdio.h: Likewise.
7457         * libio/bits/stdio2.h: Likewise.
7458         * mach/lock-intern.h: Likewise.
7459         * mach/mach/mig_support.h: Likewise.
7460         * math/bits/cmathcalls.h: Likewise.
7461         * posix/bits/unistd.h: Likewise.
7462         * socket/bits/socket2.h: Likewise.
7463         * stdlib/bits/stdlib.h: Likewise.
7464         * stdlib/stdlib.h: Likewise.
7465         * string/argz.h: Likewise.
7466         * string/bits/string2.h: Likewise.
7467         * string/bits/string3.h: Likewise.
7468         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7469         * sysdeps/generic/inttypes.h: Likewise.
7470         * sysdeps/generic/machine-lock.h: Likewise.
7471         * sysdeps/generic/machine-sp.h: Likewise.
7472         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7473         * sysdeps/i386/i486/bits/string.h: Likewise.
7474         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7475         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7476         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7477         * sysdeps/mach/i386/machine-lock.h: Likewise.
7478         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7479         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7480         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7481         * sysdeps/s390/bits/string.h: Likewise.
7482         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7483         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7484         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7485         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7486         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7487         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7488         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7489         * wcsmbs/bits/wchar2.h: Likewise.
7490         * wcsmbs/wchar.h: Likewise.
7491         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7492         __extern_inline definition.
7493
7494 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7495
7496         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7497         NULL.
7498
7499         [BZ #3919]
7500         * math/libm-test.inc (log_test): Test -Inf and NaN.
7501         (log10_test, log1p_test, log2_test): Test -Inf.
7502         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7503         FE_INVALID when argument is qNaN.
7504         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7505         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7506         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7507         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7508         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7509         testb $4, %ah and jump if non-zero.
7510         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7511         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7512
7513         [BZ #4101]
7514         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7515         ancestors with the same depths.
7516         Patch by Niels Moeller <nisse@lysator.liu.se>.
7517         (filter_doc): Don't crash if argp is NULL.
7518         * argp/Makefile (tests): Add tst-argp2.
7519         * argp/tst-argp2.c: New test.
7520
7521         [BZ #4130]
7522         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7523         open_not_cancel_2.
7524         (updwtmp_file): Likewise.
7525
7526         [BZ #4181]
7527         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7528         (inet6_opt_append): Don't check extlen is big enough if extbuf
7529         is NULL.
7530         (inet6_opt_finish): Likewise.
7531         * inet/Makefile (tests): Add test-inet6_opt.
7532         * inet/test-inet6_opt.c: New test.
7533
7534         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7535         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7536         NLMSG_ERR.  Instead use a page sized buffer.
7537         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7538         buffer.
7539
7540 2007-03-14  Richard Henderson  <rth@redhat.com>
7541
7542         * sysdeps/alpha/fpu/s_llround.c: New file.
7543         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7544         * sysdeps/alpha/fpu/s_lround.c: New file.
7545         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7546         * sysdeps/alpha/fpu/s_round.c: New file.
7547         * sysdeps/alpha/fpu/s_roundf.c: New file.
7548         * sysdeps/alpha/fpu/s_trunc.c: New file.
7549         * sysdeps/alpha/fpu/s_truncf.c: New file.
7550
7551         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7552         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7553         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7554         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7555         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7556         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7557
7558         * sysdeps/alpha/fpu/s_fmax.S: New file.
7559         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7560         * sysdeps/alpha/fpu/s_fmin.S: New file.
7561         * sysdeps/alpha/fpu/s_fminf.S: New file.
7562         * sysdeps/alpha/fpu/s_isnan.c: New file.
7563         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7564         * sysdeps/alpha/fpu/s_llrint.c: New file.
7565         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7566         * sysdeps/alpha/fpu/s_lrint.c: New file.
7567         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7568         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7569         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7570
7571         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7572         (__fdimf, fdimf, __fdim, fdim): Remove.
7573         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7574         (__isnanf, __isnan, __isnanl): New.
7575
7576 2007-03-13  Richard Henderson  <rth@redhat.com>
7577
7578         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7579
7580 2007-03-13  Richard Henderson  <rth@redhat.com>
7581
7582         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7583         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7584         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7585         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7586         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7587         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7588
7589 2007-03-13  Richard Henderson  <rth@redhat.com>
7590
7591         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7592         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7593         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7594         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7595         Move to dl-auxv.h; initialize instead of extern weak.
7596         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7597         weak symbol.
7598         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7599         Extern instead of initialized.
7600
7601 2007-03-13  Richard Henderson  <rth@redhat.com>
7602
7603         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7604         __sigsuspend_nocancel.
7605
7606 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7607
7608         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7609         172.16/12 address range.
7610
7611 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7612
7613         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7614         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7615         message.
7616
7617 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7618
7619         [BZ #4069]
7620         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7621         earlier.
7622         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7623
7624         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7625         for x qNaN and y either +-inf or non-integer value.
7626         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7627         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7628         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7629
7630 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7631
7632         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7633         from sysdep_headers.
7634
7635 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7636
7637         * time/tzfile.c (find_transition): Instead of a linear search try to
7638         guess the transition index, use a linear search if the result is at
7639         most 10 transitions away from the guess or binary search otherwise.
7640
7641 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7642
7643         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7644         memory reallocation.
7645
7646 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7647
7648         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7649         and fix some typos.
7650         Optimize use of TOLOWER.
7651
7652         [BZ #3325]
7653         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7654         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7655         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7656
7657         [BZ #3458]
7658         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7659         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7660
7661         [BZ #4076]
7662         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7663         (open_dir_stream): Likewise.
7664         * io/Makefile (tests): Add bug-ftw5.
7665         * io/bug-ftw5.c: New file.
7666
7667         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7668         * nscd/servicescache.c (cache_addserv): Likewise.
7669
7670         * nscd/grpcache.c (cache_addgr): In case a record changed on
7671         refresh, adjust key_copy.
7672
7673         [BZ #4074]
7674         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7675         refresh, adjust key_copy.
7676
7677         [BZ #4070]
7678         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7679         special cases.
7680         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7681
7682 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7683
7684         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7685         optimization.
7686
7687         * stdio-common/vfscanf.c: Small cleanups throughout.
7688
7689 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7690
7691         [BZ #3325]
7692         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7693         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7694         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7695         Patch by Jared Casper <jaredcasper@gmail.com>.
7696
7697         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7698         * sysdeps/unix/opendir.c: Likewise.
7699         * sysdeps/unix/readdir.c: Likewise.
7700
7701         [BZ #2211]
7702         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7703         point numbers.
7704         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7705
7706         * stdio-common/vfscanf.c: Fix problems in width accounting.
7707         * stdio-common/tst-sscanf.c (double_tests): New tests.
7708         (main): Hook them up.
7709
7710         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7711         More simplifications of floating-point reader.
7712
7713         * stdio-common/Makefile (tests): Add tst-swscanf.
7714         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7715         testing.
7716         * stdio-common/tst-swscanf.c: New file.
7717
7718 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7719
7720         [BZ #2633]
7721         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7722         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7723         Remove using for __jmp_buf_tag.
7724         * locale/locale.h (struct lconv): Also define in std namespace.
7725         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7726
7727         [BZ #3842]
7728         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7729         using __libc_enable_secure.
7730
7731         [BZ #3818]
7732         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7733
7734         [BZ #3745]
7735         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7736         of names for ellipsises.
7737
7738         [BZ #3348]
7739         * malloc/memusage.sh: Cleanups.
7740         * debug/xtrace.sh: Quoting and trap changes.
7741
7742 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7743
7744         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7745
7746         * locale/iso-3166.def: Update entry for Serbia.
7747         * locale/iso-4217.def: Define RSD, remove CSD.
7748
7749         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7750         and 64-bit operations.
7751
7752         [BZ #4040]
7753         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7754         16-bit operations.
7755
7756         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7757         of writev.
7758
7759 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7760
7761         [BZ #3991]
7762         * assert/assert.h (assert): Simplify.
7763         (assert_perror): Likewise.
7764         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7765
7766         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7767         reqdata.
7768
7769         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7770         change: don't pass NULL in place of an integer.
7771
7772 2007-02-02  Bruno Haible  <bruno@clisp.org>
7773
7774         [BZ #3954]
7775         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7776         Add mapping for U+327E.
7777         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7778         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7779         mapping of 0xD9 0xE8.
7780         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7781         mapping of U+327E.
7782         Reported by Jungshik Shin <jungshik@google.com>.
7783
7784         [BZ #3955]
7785         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7786         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7787         Reported by Jungshik Shin <jungshik@google.com>.
7788
7789 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7790
7791         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7792         byte variants.
7793
7794         [BZ #4040]
7795         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7796         byte variants.  Patch mostly be tom@tommay.net.
7797
7798 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7799
7800         [BZ #3996]
7801         * posix/glob.c (attribute_hidden): Define if not defined.
7802         (glob): Unescape dirname, filename or username when needed and not
7803         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7804         is NULL.  Handle unescaped [ in pattern without closing ].
7805         Don't pass GLOB_CHECK down to recursive glob for directories.
7806         (__glob_pattern_type): New function.
7807         (__glob_pattern_p): Implement using __glob_pattern_type.
7808         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7809         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7810         Remove unreachable code.
7811         * posix/globtest.sh: Add a couple of new tests.
7812
7813 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7814
7815         * po/ru.po: Update from translation team.
7816
7817 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7818
7819         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7820         to the list of i486+ CPUs.
7821         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7822
7823 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7824
7825         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7826         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7827         references.
7828
7829 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7830
7831         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7832
7833         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7834         * resolv/res_mkquery.c: Define __res_nopt.
7835         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7836         try adding EDNS0 record.
7837         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7838         EDNS0 record was send make sure we don't try it again.
7839         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7840         * include/resolv.h: Declare __res_nopt.
7841
7842 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7843
7844         [BZ #3944]
7845         * time/strptime_l.c (__strptime_internal): Set have_mon for
7846         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7847         have been computed from tm_yday and tm_year.  Don't crash
7848         in day_of_the_week or day_of_the_year if not have_mon
7849         and tm_mon contains bogus value.
7850         * time/Makefile (tests): Add tst-strptime3.
7851         * time/tst-strptime3.c: New test.
7852
7853 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7854
7855         [BZ #3957]
7856         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7857         bit for RE_HAT_LISTS_NOT_NEWLINE.
7858         (build_charclass_op): Remove bogus comment.
7859         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7860         * posix/bug-regex27.c: New test.
7861         * posix/bug-regex28.c: New test.
7862
7863 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7864
7865         * po/sv.po: Update from translation team.
7866
7867 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7868
7869         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7870
7871 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7872
7873         * include/locale.h (__uselocale): Add libc_hidden_proto.
7874         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7875
7876         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7877         gettimeofday.
7878
7879 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7880
7881         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7882         returning.
7883         (PTR_DEMANGLE): Real definition now that it's not the same as
7884         PRT_MANGLE anymore.
7885         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7886
7887         * string/strerror_l.c: New file.
7888         * string/Makefile (routines): Add strerror_l.
7889         * string/string.h: Declare strerror_l.
7890         * string/Versions: Export strerror_l for GLIBC_2.6.
7891
7892 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7893
7894         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7895         as parameter.  Construct request record.  Try sending request
7896         before the first poll use, it usually succeeds.  Adjust all
7897         callers.
7898         * nscd/nscd-client.h: Define MAXKEYLEN.
7899         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7900
7901 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7902
7903         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7904         from return value.
7905         * nscd/nscd_helper.c: Include string.h.
7906         (__nscd_cache_search): Remove const qualifier from return value.
7907         On strict alignment architectures check hash entry and data head
7908         alignment.
7909         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7910         mmapped data during GC cycle contains garbage.  If
7911         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7912         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7913         dropped to 0.
7914         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7915         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7916         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7917         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7918         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7919
7920 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7921
7922         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7923
7924 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7925
7926         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7927         names not numbers in cfi_*.
7928
7929 2007-01-26  Andreas Jaeger  <aj@suse.de>
7930
7931         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7932         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7933         Correct values of PER_HPUX and PER_OSF4.
7934
7935 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7936
7937         * elf/dl-minimal.c: Undefine _itoa first.
7938         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7939         * malloc/mtrace.c: Revert last change.
7940         * posix/wordexp.c: Likewise.
7941
7942 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7943
7944         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7945         and __geode__ to the list of i486+ CPUs.
7946         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7947
7948 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7949
7950         * stdio-common/_itoa.c: Include <limits.h>.
7951         * stdio-common/_itowa.c: Likewise.
7952
7953 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7954
7955         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7956         platforms.
7957         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7958         64-bit platforms.
7959         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7960         possible.
7961         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7962         if possible.
7963
7964         [BZ #3902]
7965         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7966         * stdio-common/Makefile (tests): Add bug17.
7967         * stdio-common/bug17.c: New file.
7968
7969 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7970
7971         * iconvdata/brf.c: New file.
7972         * iconvdata/testdata/BRF: New file.
7973         * iconvdata/testdata/BRF..UTF8: New file.
7974         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7975         * iconvdata/Makefile: Add rules to build BRF.
7976         * iconvdata/TESTS: Add BRF entry.
7977         * iconvdata/gconv-modules: Likewise.
7978         * iconvdata/tst-tables.sh: Likewise.
7979
7980 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7981
7982         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7983         type `long long int', not `long int'.
7984         (wcstoq): Likewise.
7985
7986 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7987
7988         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7989         of values on 64-bit platforms which are too large.
7990
7991 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7992             Joe Kerian  <jkerian@us.us.ibm.com>
7993
7994         [BZ #2749]
7995         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7996         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7997         (__copysignl): Use signbit() for comparison.
7998         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7999         SET_LDOUBLE_WORDS64.
8000
8001         [BZ #2423, #2749]
8002         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8003         (__ceill): Remove calls to fegetround(), fesetround().
8004         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8005         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8006         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8007
8008 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8009
8010         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8011
8012         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8013
8014 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
8015
8016         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8017         demangle pointer.
8018         * csu/libc-start.c: Likewise.
8019
8020 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
8021
8022         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8023         really work anyway.
8024
8025 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8026
8027         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
8028         users.
8029         (handle_request): Remove unnecessary tests.
8030
8031         * nscd/cache.c (cache_add): Record the failure to add to the cache.
8032
8033 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
8034
8035         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8036         workbits in semi-raw fraction.
8037
8038         * math/test-misc.c: Add new tests.
8039
8040 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8041
8042         * math/basic-test.c: Include test-skeleton.c.
8043         (TEST_TRUNC): Define.
8044         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8045         (main): Rename to ...
8046         (do_test): ...this.  Run new tests.
8047         (TEST_FUNCTION): Define.
8048
8049 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
8050             Joe Kerian  <jkerian@us.us.ibm.com>
8051
8052         [BZ #2749]
8053         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8054         handling for high words.
8055         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8056         and overflow for infinity.
8057
8058 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8059
8060         * nscd/connections.c (handle_request): Add a __builtin_expect.
8061
8062         * nscd/connections.c (serv2db): Change type into structure which
8063         also says whether this is a request for data.  Renamed to
8064         servinfo.  All users changed.
8065         (handle_request): Much simpler test whether we should search the cache.
8066
8067         * nscd/connections.c (handle_request): Fix thinko in selinux test
8068         invocation.
8069
8070         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8071         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8072         it before getting dl_load_lock and then relock.
8073         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8074         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8075         case we unlocked the scope.
8076         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8077         _dl_lookup_symbol_x in case we locked the scope.
8078         (_dl_profile_fixup): Likewise.
8079         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8080         set DL_LOOKUP_SCOPE_LOCK.
8081
8082 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8083
8084         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8085         CFLAGS-getsrvbynpt_r.c.
8086         * nscd/getsrvbynm_r.c: New file.
8087         * nscd/getsrvbypt_r.c: New file.
8088         * nscd/nscd_getserv_r.c: New file.
8089         * nscd/servicescache.c: New file.
8090         * nscd/Makefile (routines): Add nscd_getserv_r.
8091         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8092         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8093         CFLAGS-getsrvbypt_r.c.
8094         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8095         table.  Add entries for services database.
8096         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8097         services database.
8098         (dbs): Add .reset_res and servdb initialization.
8099         (serv2db): Add entries for services database.
8100         (verify_persistent_db): Accept dbnr == servdb.
8101         (invalidate_cache): Rewrite database name recognition to use a table.
8102         Call res_init() if .reset_res is set for database.
8103         (handle_request): Add code to handle services database.
8104         * nscd/gai.c: Don't define __getservbyname_r.
8105         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8106         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8107         (serv_response_header): Define.
8108         (struct datahead): Add serv_response_header member.
8109         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8110         using table.
8111         * nscd/nscd.conf: Add entries for services database.
8112         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8113         Declare serv_iov_disabled.
8114         Declare addservbyname, readdservbyname, addservbyport, and
8115         readdservbyport.
8116         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8117         (find_db): Fix error message.
8118         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8119         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8120         * nscd/selinux.c (perms): Add entries for services database.
8121         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8122         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8123
8124         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8125         * nscd/hstcache.c: Likewise.
8126         * nscd/pwdcache.c: Likewise.
8127
8128         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8129         computation of keylen.
8130
8131         * include/string.h: Only redefine strndupa if this is really for
8132         libc code.
8133
8134 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8135
8136         * nscd/nscd_gethst_r.c: Minor cleanups.
8137
8138         * nscd/connections.c (handle_request): Check selinux permissions
8139         for all non-admin commands.
8140
8141         * sysdeps/i386/i486/bits/atomic.h: Define
8142         atomic_compare_and_exchange_val_acq,
8143         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8144         using __sync_* built-ins for gcc >= 4.1.
8145         * sysdeps/x86_64/bits/atomic.h: Likewise.
8146
8147         [BZ #3840]
8148         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8149         and .oS.d files.
8150
8151 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8152
8153         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8154         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8155         (do_test): Check errno and exit(0) if ENOSYS.
8156
8157 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8158
8159         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8160         thousands separators.
8161         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8162         * stdlib/tst-strtod4.c: New test.
8163
8164         [BZ #3855]
8165         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8166         hexadecimal digit should accept just the initial 0.
8167         * stdlib/tst-strtod2.c (tests): New variable.
8168         (do_test): Run several tests rather than just one.
8169
8170 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8171
8172         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8173         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8174
8175 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8176
8177         * io/fts.c: Make sure fts_cur is always valid after return from
8178         fts_read.
8179         Patch by Miloslav Trmac <mitr@redhat.com>.
8180
8181 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8182
8183         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8184         (R_MIPS_NUM): Bump by 1.
8185
8186 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8187
8188         * posix/execvp.c: Include alloca.h.
8189         (allocate_scripts_argv): Renamed to...
8190         (scripts_argv): ... this.  Don't allocate buffer here nor count
8191         arguments.
8192         (execvp): Use alloca if possible.
8193         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8194         * posix/tst-vfork3.c: New test.
8195
8196 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8197
8198         * string/Makefile (tst-strxfrm2-ENV): Define.
8199         * stdlib/Makefile (tst-strtod3-ENV): Define.
8200
8201 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8202
8203         * posix/getconf.c: Update copyright year.
8204         * nss/getent.c: Likewise.
8205         * iconv/iconvconfig.c: Likewise.
8206         * iconv/iconv_prog.c: Likewise.
8207         * elf/ldconfig.c: Likewise.
8208         * catgets/gencat.c: Likewise.
8209         * csu/version.c: Likewise.
8210         * elf/ldd.bash.in: Likewise.
8211         * elf/sprof.c (print_version): Likewise.
8212         * locale/programs/locale.c: Likewise.
8213         * locale/programs/localedef.c: Likewise.
8214         * nscd/nscd.c (print_version): Likewise.
8215         * debug/xtrace.sh: Likewise.
8216         * malloc/memusage.sh: Likewise.
8217         * malloc/mtrace.pl: Likewise.
8218         * debug/catchsegv.sh: Likewise.
8219
8220 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8221
8222         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8223         attempts.
8224
8225 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8226
8227         * posix/wordexp.c: Remove some unnecessary tests.
8228
8229 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8230
8231         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8232         blacklist the group till after we look it up.
8233
8234 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8235
8236         * include/atomic.h (atomic_forced_read): New macro.
8237
8238 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8239
8240         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8241
8242 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8243
8244         * nss/getXXbyYY_r.c: Include atomic.h.
8245         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8246         add atomic_write_barrier () in between.
8247
8248         * stdlib/Makefile (tests): Add tst-makecontext.
8249         * stdlib/tst-makecontext.c: New test.
8250
8251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8252         (__makecontext): Don't realign uc_mcontext.uc_regs.
8253
8254 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8255
8256         * elf/dl-support.c: Include dl-procinfo.h.
8257         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8258         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8259         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8260         Define.
8261         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8262         hardcoded constants.
8263         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8264         PPC_PLATFORM_* macros for array designators.
8265
8266 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8267
8268         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8269         names to the beginning.
8270         (_dl_powerpc_platforms): Add "power6x".
8271         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8272         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8273         (_DL_PLATFORMS_COUNT): Increase.
8274         (_dl_string_platform): Handle power6x case.
8275         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8276         PPC_FEATURE_POWER6_EXT): Define.
8277         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8278
8279 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8280
8281         [BZ #3747]
8282         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8283         [-2^31 .. 2^31) range.
8284         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8285         targets.
8286         * stdlib/tst-rand48-2.c: New test.
8287         * stdlib/Makefile (tests): Add tst-rand48-2.
8288
8289 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8290
8291         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8292
8293 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8294
8295         * misc/tst-pselect.c (do_test): Make sure the helper process is
8296         terminating when the test is aborted.
8297
8298 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8299
8300         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8301         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8302         Handle relatime mount option.
8303
8304         [BZ #2337]
8305         * libio/Makefile (tests): Add tst-setvbuf1.
8306         * libio/tst-setvbuf1.c: New file.
8307
8308 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8309
8310         [BZ #2337]
8311         * libio/genops.c (__uflow): Fix a typo.
8312         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8313         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8314         the narrow buffer size.
8315
8316 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8317
8318         [BZ #2337]
8319         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8320         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8321         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8322         in _flags.
8323         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8324         _IO_wstr_finish): Likewise.
8325         * libio/wmemstream.c (open_wmemstream): Likewise.
8326         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8327         even for wide streams.
8328
8329 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8330
8331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8332         kernel-features.h.
8333
8334 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8335
8336         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8337         separators also if no non-zero digits found.
8338         * stdlib/Makefile (tests): Add tst-strtod3.
8339
8340 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8341
8342         [BZ #3632]
8343         * include/features.h: Fix comment about default value for
8344         _POSIX_C_SOURCE.
8345
8346         [BZ #3664]
8347         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8348         empty parsed strings.
8349         * stdlib/Makefile (tests): Add tst-strtod2.
8350         * stdlib/tst-strtod2.c: New file.
8351
8352         [BZ #3673]
8353         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8354         computation.
8355         * stdlib/Makefile (tests): Add tst-atof2.
8356         * stdlib/tst-atof2.c: New file.
8357
8358         [BZ #3674]
8359         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8360         correctly if removing trailing zero of hex-float.
8361         * stdlib/Makefile (tests): Add tst-atof1.
8362         * stdlib/tst-atof1.c: New file.
8363
8364 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8365
8366         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8367         Start searching for next comma at p rather than rest.
8368         * misc/Makefile (tests): Add tst-mntent2.
8369         * misc/tst-mntent2.c: New test.
8370
8371         * misc/getusershell.c (initshells): Check for integer overflows.
8372         Make strings buffer one bigger as fgets always succeeds when second
8373         argument is 1.  Don't use calloc for shells array.  Disallow
8374         / as shell.
8375
8376 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8377
8378         * malloc/memusage.c: Handle realloc with new size of zero and
8379         non-NULL pointer correctly.
8380         (me): Really write first record twice.
8381         (struct entry): Make format bi-arch safe.
8382         (dest): Write out more realloc statistics.
8383         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8384
8385 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8386
8387         * nis/nis_subr.c (nis_getnames): Revert last change.
8388
8389 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8390
8391         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8392         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8393         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8394         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8395         ENOTTY.
8396         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8397         * io/tst-ttyname_r.c: New test.
8398
8399 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8400
8401         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8402
8403 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8404
8405         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8406         jump table entries.
8407
8408 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8409
8410         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8411         `clone' function to ensure proper unwinding stop of gdb.
8412         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8413
8414 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8415
8416         * nscd/nscd.init: Remove obsolete and commented-out -S option
8417         handling.
8418
8419 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8420
8421         [BZ #3514]
8422         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8423
8424         [BZ #3515]
8425         * manual/string.texi (strtok): Remove duplicate paragraph.
8426
8427 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8428
8429         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8430         libgcc not supporting `rflags' unwinding (register # >= 17).
8431
8432 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8433
8434         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8435         succeeded.
8436
8437 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8438             Jakub Jelinek  <jakub@redhat.com>
8439             Jan Kratochvil  <jan.kratochvil@redhat.com>
8440
8441         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8442         unwind information.
8443         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8444         'restore_rt' even in the 'signal' directory.
8445         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8446
8447 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8448
8449         [BZ #3559]
8450         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8451         malloc crashed.  Don't allocate memory unnecessarily in each
8452         loop.
8453
8454 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8455
8456         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8457
8458 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8459
8460         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8461
8462 2006-11-18  Bruno Haible  <bruno@clisp.org>
8463
8464         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8465         __sysconf only after having tried to call getgroups32.
8466
8467 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8468
8469         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8470         addresses for IPv4 queries if they can be mapped.
8471
8472 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8473
8474         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8475         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8476         (signmask): Add .size directive.
8477         (othermask): Add .type directive.
8478
8479 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8480
8481         * po/nl.po: Update from translation team.
8482
8483         * timezone/zdump.c: Redo fix for BZ #3137.
8484
8485 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8486
8487         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8488         to first_unused after parsing :include: file.
8489
8490 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8491
8492         * timezone/africa: Update from tzdata2006o.
8493         * timezone/antarctica: Likewise.
8494         * timezone/asia: Likewise.
8495         * timezone/australasia: Likewise.
8496         * timezone/backward: Likewise.
8497         * timezone/europe: Likewise.
8498         * timezone/iso3166.tab: Likewise.
8499         * timezone/northamerica: Likewise.
8500         * timezone/southamerica: Likewise.
8501         * timezone/zone.tab: Likewise.
8502
8503         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8504         on machines with 64-bit time_t.
8505
8506         * timezone/checktab.awk: Update from tzcode2006o.
8507         * timezone/ialloc.c: Likewise.
8508         * timezone/private.h: Likewise.
8509         * timezone/scheck.c: Likewise.
8510         * timezone/tzfile.h: Likewise.
8511         * timezone/tzselect.ksh: Likewise.
8512         * timezone/zdump.c: Likewise.
8513         * timezone/zic.c: Likewise.
8514
8515         [BZ #3483]
8516         * elf/ldconfig.c (main): Call setlocale and textdomain.
8517         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8518
8519         [BZ #3480]
8520         * manual/argp.texi: Fix typos.
8521         * manual/charset.texi: Likewise.
8522         * manual/errno.texi: Likewise.
8523         * manual/filesys.texi: Likewise.
8524         * manual/lang.texi: Likewise.
8525         * manual/maint.texi: Likewise.
8526         * manual/memory.texi: Likewise.
8527         * manual/message.texi: Likewise.
8528         * manual/resource.texi: Likewise.
8529         * manual/search.texi: Likewise.
8530         * manual/signal.texi: Likewise.
8531         * manual/startup.texi: Likewise.
8532         * manual/stdio.texi: Likewise.
8533         * manual/sysinfo.texi: Likewise.
8534         * manual/syslog.texi: Likewise.
8535         * manual/time.texi: Likewise.
8536         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8537
8538         [BZ #3465]
8539         * sunrpc/clnt_raw.c: Minimal message improvements.
8540         * sunrpc/pm_getmaps.c: Likewise.
8541         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8542         * nis/nis_print_group_entry.c: Likewise.
8543         * locale/programs/repertoire.c: Likewise.
8544         * locale/programs/charmap.c: Likewise.
8545         * malloc/memusage.sh: Likewise.
8546         * elf/dl-deps.c: Likewise.
8547         * locale/programs/ld-collate.c: Likewise.
8548         * libio/vswprintf.c: Likewise.
8549         * malloc/memusagestat.c: Likewise.
8550         * sunrpc/auth_unix.c: Likewise.
8551         * sunrpc/rpc_main.c: Likewise.
8552         * nscd/cache.c: Likewise.
8553         * locale/programs/repertoire.c: Unify output messages.
8554         * locale/programs/charmap.c: Likewise.
8555         * locale/programs/ld-ctype.c: Likewise.
8556         * locale/programs/ld-monetary.c: Likewise.
8557         * locale/programs/ld-numeric.c: Likewise.
8558         * locale/programs/ld-time.c: Likewise.
8559         * elf/ldconfig.c: Likewise.
8560         * nscd/selinux.c: Likewise.
8561         * elf/cache.c: Likewise.
8562         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8563
8564         [BZ #3451]
8565         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8566         change atomic.
8567         (ceil): Likewise.
8568
8569 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8570
8571         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8572         if N is one bigger than return value.
8573         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8574         and l1 last arguments, if buf is defined, verify the return value
8575         equals to strlen (buf) and verify no byte beyond passed length
8576         is modified.
8577
8578 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8579
8580         * po/sv.po: Update from translation team.
8581
8582 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8583
8584         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8585         noinline attribute.
8586
8587 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8588
8589         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8590         noinline attribute.
8591
8592         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8593         Use __new_sys_siglist instead of _sys_siglist_internal as
8594         second macro argument.
8595         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8596         strong_alias.
8597
8598 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8599
8600         [BZ #3493]
8601         * posix/unistd.h (sysconf): Remove const attribute.
8602
8603         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8604         temporary or deprecated addresses.
8605         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8606
8607         * string/Makefile (tests): Add tst-strxfrm2.
8608         * string/tst-strxfrm2.c: New file.
8609
8610 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8611
8612         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8613         rather than r->r_brk.
8614
8615 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8616
8617         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8618         optimization even if needed > n.
8619
8620         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8621         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8622         return false, otherwise return true.
8623         (cache_rpath): Return decompose_rpath return value.
8624
8625 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8626
8627         * include/libc-symbols.h (declare_symbol): Rename to...
8628         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8629         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8630         .size directive.
8631         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8632         changes.
8633         * sysdeps/gnu/siglist.c: Likewise.
8634
8635 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8636
8637         * sysdeps/powerpc/fpu/bits/mathinline.h
8638         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8639         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8640
8641 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8642
8643         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8644         Update handling of cache descriptor 0x49 for new models.
8645         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8646         Likewise.
8647
8648 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8649
8650         * malloc/memusage.c (dest): Reset not_me back to false after
8651         printing statistics.
8652
8653 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8654
8655         * configure.in: Work around ld --help change and avoid -z relro
8656         test completely if the architecture doesn't care about security.
8657
8658 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8659
8660         * po/sv.po: Update from translation team.
8661
8662 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8663
8664         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8665         generate compatibility version.
8666
8667 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8668
8669         * configure.in: Relax -z relro requirement a bit.
8670
8671         * po/sv.po: Update from translation team.
8672
8673 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8674
8675         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8676         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8677         * elf/dl-close.c (_dl_close_worker): Likewise.
8678         * elf/dl-open.c (_dl_open_worker): Likewise.
8679         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8680
8681 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8682
8683         * configure.in: Require assembler support for visibility, compiler
8684         support for visibility and aliases, linker support for various -z
8685         options.
8686         * Makeconfig: Remove conditional code which now is unnecessary.
8687         * config.h.in: Likewise.
8688         * config.make.in: Likewise.
8689         * dlfcn/Makefile: Likewise.
8690         * elf/Makefile: Likewise.
8691         * elf/dl-load.c: Likewise.
8692         * elf/rtld.c: Likewise.
8693         * include/libc-symbols.h: Likewise.
8694         * include/stdio.h: Likewise.
8695         * io/Makefile: Likewise.
8696         * io/fstat.c: Likewise.
8697         * io/fstat64.c: Likewise.
8698         * io/fstatat.c: Likewise.
8699         * io/fstatat64.c: Likewise.
8700         * io/lstat.c: Likewise.
8701         * io/lstat64.c: Likewise.
8702         * io/mknod.c: Likewise.
8703         * io/mknodat.c: Likewise.
8704         * io/stat.c: Likewise.
8705         * io/stat64.c: Likewise.
8706         * libio/stdio.c: Likewise.
8707         * nscd/Makefile: Likewise.
8708         * stdlib/Makefile: Likewise.
8709         * stdlib/atexit.c: Likewise.
8710         * sysdeps/generic/ldsodefs.h: Likewise.
8711         * sysdeps/i386/dl-machine.h: Likewise.
8712         * sysdeps/i386/sysdep.h: Likewise.
8713         * sysdeps/i386/i686/memcmp.S: Likewise.
8714         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8715         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8716         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8717
8718         * Makerules: USE_TLS support is now default.
8719         * tls.make.c: Likewise.
8720         * csu/Versions: Likewise.
8721         * csu/libc-start.c: Likewise.
8722         * csu/libc-tls.c: Likewise.
8723         * csu/version.c: Likewise.
8724         * dlfcn/dlinfo.c: Likewise.
8725         * elf/dl-addr.c: Likewise.
8726         * elf/dl-cache.c: Likewise.
8727         * elf/dl-close.c: Likewise.
8728         * elf/dl-iteratephdr.c: Likewise.
8729         * elf/dl-load.c: Likewise.
8730         * elf/dl-lookup.c: Likewise.
8731         * elf/dl-object.c: Likewise.
8732         * elf/dl-open.c: Likewise.
8733         * elf/dl-reloc.c: Likewise.
8734         * elf/dl-support.c: Likewise.
8735         * elf/dl-sym.c: Likewise.
8736         * elf/dl-sysdep.c: Likewise.
8737         * elf/dl-tls.c: Likewise.
8738         * elf/ldconfig.c: Likewise.
8739         * elf/rtld.c: Likewise.
8740         * elf/tst-tls-dlinfo.c: Likewise.
8741         * elf/tst-tls1.c: Likewise.
8742         * elf/tst-tls10.h: Likewise.
8743         * elf/tst-tls14.c: Likewise.
8744         * elf/tst-tls2.c: Likewise.
8745         * elf/tst-tls3.c: Likewise.
8746         * elf/tst-tls4.c: Likewise.
8747         * elf/tst-tls5.c: Likewise.
8748         * elf/tst-tls6.c: Likewise.
8749         * elf/tst-tls7.c: Likewise.
8750         * elf/tst-tls8.c: Likewise.
8751         * elf/tst-tls9.c: Likewise.
8752         * elf/tst-tlsmod1.c: Likewise.
8753         * elf/tst-tlsmod13.c: Likewise.
8754         * elf/tst-tlsmod13a.c: Likewise.
8755         * elf/tst-tlsmod14a.c: Likewise.
8756         * elf/tst-tlsmod2.c: Likewise.
8757         * elf/tst-tlsmod3.c: Likewise.
8758         * elf/tst-tlsmod4.c: Likewise.
8759         * elf/tst-tlsmod5.c: Likewise.
8760         * elf/tst-tlsmod6.c: Likewise.
8761         * include/errno.h: Likewise.
8762         * include/link.h: Likewise.
8763         * include/tls.h: Likewise.
8764         * locale/global-locale.c: Likewise.
8765         * locale/localeinfo.h: Likewise.
8766         * malloc/arena.c: Likewise.
8767         * malloc/hooks.c: Likewise.
8768         * malloc/malloc.c: Likewise.
8769         * resolv/Versions: Likewise.
8770         * sysdeps/alpha/dl-machine.h: Likewise.
8771         * sysdeps/alpha/libc-tls.c: Likewise.
8772         * sysdeps/generic/ldsodefs.h: Likewise.
8773         * sysdeps/generic/tls.h: Likewise.
8774         * sysdeps/i386/dl-machine.h: Likewise.
8775         * sysdeps/ia64/dl-machine.h: Likewise.
8776         * sysdeps/ia64/libc-tls.c: Likewise.
8777         * sysdeps/mach/hurd/fork.c: Likewise.
8778         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8779         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8780         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8781         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8782         * sysdeps/s390/libc-tls.c: Likewise.
8783         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8784         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8785         * sysdeps/sh/dl-machine.h: Likewise.
8786         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8787         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8788         * sysdeps/x86_64/dl-machine.h: Likewise.
8789
8790         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8791         split out locking and parameter checking.
8792         (_dl_close): Call _dl_close_worker after locking and checking.
8793         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8794         _dl_close.
8795         * elf/Makefile: Add rules to build and run tst-thrlock.
8796         * elf/tst-thrlock.c:  New file.
8797
8798         [BZ #3426]
8799         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8800         reality.
8801
8802         [BZ #3429]
8803         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8804         we are sure we do not need it anymore for _dl_close.  Also move
8805         the asserts inside the lock region.
8806         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8807
8808 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8809
8810         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8811         argument.
8812         (_dl_lookup_symbol_x): Adjust caller.
8813
8814         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8815         _ns_global_scope.
8816         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8817
8818         * elf/dl-libc.c: Revert l_scope name changes.
8819         * elf/dl-load.c: Likewise.
8820         * elf/dl-object.c: Likewise.
8821         * elf/rtld.c: Likewise.
8822         * elf/dl-close.c (_dl_close): Likewise.
8823         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8824         always use __rtld_mrlock_{change,done}.  Always free old scope list
8825         here if not l_scope_mem.
8826         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8827         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8828         the lookup and __rtld_mrlock_unlock it after the lookup.
8829         * elf/dl-sym.c: Likewise.
8830         * include/link.h (struct r_scoperec): Remove.
8831         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8832         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8833
8834 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8835
8836         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8837
8838 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8839
8840         * configure.in: Disable building profile libraries by default.
8841
8842 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8843
8844         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8845         as signed longs, check for x_base + pos overflow.
8846         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8847         * sunrpc/tst-xdrmem2.c: New test.
8848
8849 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8850
8851         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8852         _dl_lookup_symbol_x code.
8853
8854 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8855
8856         * elf/dl-runtime.c: Include sysdep-cancel.h.
8857         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8858         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8859         instead of catomic_* macros.
8860         * elf/dl-sym.c: Include sysdep-cancel.h.
8861         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8862         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8863         * elf/dl-close.c: Include sysdep-cancel.h.
8864         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8865         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8866         * elf/dl-open.c: Include sysdep-cancel.h.
8867         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8868         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8869
8870 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8871
8872         [BZ #3313]
8873         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8874         fastbin rather than end of fastbin array.
8875
8876 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8877
8878         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8879         body macro.
8880         * sysdeps/x86_64/bits/atomic.h
8881         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8882         (catomic_decrement): Use correct body macro.
8883
8884 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8885
8886         * include/atomic.h: Add a unique prefix to all local variables
8887         in macros.
8888         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8889
8890 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8891
8892         [BZ #3369]
8893         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8894         and 7.
8895
8896 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8897
8898         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8899
8900 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8901
8902         [BZ #3313]
8903         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8904         determine highest fast bin to consolidate, always look into all of
8905         them.
8906         (do_check_malloc_state): Only require for empty bins for large
8907         sizes in main arena.
8908
8909         * libio/stdio.h: Add more __wur attributes.
8910
8911         * elf/dl-minimal.c (realloc): Optimize last patch.
8912
8913 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8914
8915         [BZ #3352]
8916         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8917         and use memcpy() if it does.
8918
8919 2006-11-12  Andreas Jaeger  <aj@suse.de>
8920
8921         [BZ #2510]
8922         * manual/search.texi (Hash Search Function): Clarify.
8923         (Array Search Function): Clarify.
8924
8925 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8926
8927         [BZ #2830]
8928         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8929         shifting.
8930         * math/atest-exp2.c (read_mpn_hex): Likewise.
8931         * math/atest-sincos.c (main): Likewise.
8932
8933 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8934
8935         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8936         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8937         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8938         version GLIBC_2.6.
8939         * Versions.def: Add GLIBC_2.6 for libc.
8940
8941         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8942
8943         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8944
8945 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8946
8947         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8948
8949         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8950
8951         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8952         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8953
8954 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8955
8956         * include/atomic.c: Define catomic_* operations.
8957         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8958         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8959         * malloc/memusage.c: Likewise.
8960         * gmon/mcount.c: Likewise.
8961         * elf/dl-close.c: Likewise.
8962         * elf/dl-open.c: Likewise.
8963         * elf/dl-profile.c: Likewise.
8964         * elf/dl-sym.c: Likewise.
8965         * elf/dl-runtime.c: Likewise.
8966         * elf/dl-fptr.c: Likewise.
8967         * resolv/res_libc.c: Likewise.
8968
8969 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8970
8971         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8972         components which lack them.
8973
8974         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8975         at least one entry consisting of the parameter concatenated with
8976         the domain.
8977
8978 2006-10-10  Roland McGrath  <roland@frob.com>
8979
8980         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8981         * sysdeps/mach/hurd/futimes.c: Likewise.
8982         * sysdeps/mach/hurd/lutimes.c: Likewise.
8983
8984 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8985             Jakub Jelinek  <jakub@redhat.com>
8986
8987         Implement reference counting of scope records.
8988         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8989         from the list in objects which remain.  Always allocate new scope
8990         record.
8991         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8992         don't resize, allocate a new one.
8993         * elf/dl-runtime.c: Update reference counters before using a scope
8994         array.
8995         * elf/dl-sym.c: Likewise.
8996         * elf/dl-libc.c: Adjust for l_scope name change.
8997         * elf/dl-load.c: Likewise.
8998         * elf/dl-object.c: Likewise.
8999         * elf/rtld.c: Likewise.
9000         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9001         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9002         Add l_scoperec_lock.
9003         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9004         * sysdeps/generic/rtld-lowlevel.h: New file.
9005
9006         * include/atomic.h: Rename atomic_and to atomic_and_val and
9007         atomic_or to atomic_or_val.  Define new macros atomic_and and
9008         atomic_or which do not return values.
9009         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9010         Various cleanups.
9011         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9012
9013         * po/sv.po: Update from translation team.
9014
9015 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
9016
9017         * Versions.def: Add GLIBC_2.6 to libpthread.
9018
9019         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9020         (versioned_symbol): Likewise.
9021         (compat_symbol): Likewise.
9022
9023         * po/tr.po: Update from translation team.
9024
9025 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9026
9027         * nis/Banner: Removed.  It's been integral part forever and the
9028         author info is incomplete anyway.
9029         * libio/Banner: Likewise.
9030
9031         * nis/nis_table.c (nis_list): If __follow_path fails in the new
9032         code, make sure the nis_freeresult call doesn't crash and that the
9033         result is reported correctly.
9034
9035 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
9036
9037         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9038         when callback is NULL.
9039
9040         * nis/Versions (libnss_nisplus): Add
9041         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9042         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9043         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9044         _nss_create_tablename): Rename to...
9045         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9046         ... these.  No longer static.
9047         (internal_setgrent): Adjust users.
9048         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9049         Don't use locking around _nss_grp_create_tablename call.
9050         * nis/nss_nisplus/nisplus-initgroups.c: New file.
9051
9052 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9053
9054         * version.h (VERSION): Bump to 2.5.90 for new development tree.
9055
9056 2006-10-06  Andreas Jaeger  <aj@suse.de>
9057
9058         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9059
9060 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9061
9062         * po/pl.po: Update from translation team.
9063
9064         * nscd/nscd.c (main): Fix typo in message.
9065         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9066
9067 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9068
9069         [BZ #3291]
9070         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9071         errno.h, signal.h, unistd.h and sysdep-cancel.h.
9072         (__sigprocmask): Define.
9073
9074 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9075
9076         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9077         used.
9078
9079 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9080
9081         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9082         in oldtotal and newtotal calculation.
9083         * nscd/nscd-client.h (struct mapped_database): Add datasize
9084         field.
9085         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9086         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9087         increased.
9088         (__nscd_cache_search): Add checks to make sure we never reference
9089         data beyond the current mapping.
9090
9091 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9092
9093         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9094         variables const to avoid compiler warnings.
9095
9096         * io/fts.c (fts_close): Remove redundant checks.
9097         (fts_build): Likewise.
9098         (fts_palloc): Likewise.
9099
9100         * manual/message.texi (Advanced gettext functions,
9101         Using gettextized software): Fix typos.
9102
9103 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9104
9105         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9106         explain why there are no leaks.
9107
9108 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9109
9110         * libio/wmemstream.c: Include <wchar.h>.
9111         * libio/bug-wmemstream1.c: Likewise.
9112         * libio/tst-wmemstream1.c: Likewise.
9113         * libio/tst-wmemstream2.c: Likewise.
9114
9115         * version.h (RELEASE): Bump to 2.5.
9116         * README: Regenerated.
9117
9118         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9119
9120         [BZ #3273]
9121         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9122         found no group members.
9123         Patch by Petr Baudis.
9124
9125 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9126
9127         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9128         assert bootstrap_map.l_tls_modid is zero.
9129         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9130         if USE___THREAD.
9131
9132 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9133
9134         * libio/stdio.h: Move open_wmemstream prototype to ...
9135         * wcsmbs/wchar.h: ... here.
9136
9137 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9138
9139         [BZ #3252]
9140         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9141         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9142         __{,l}chown to handle the rest.
9143         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9144         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9145         __{,l}chown to handle the rest.
9146         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9147         i386/fchownat.c.
9148         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9149         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9150
9151         [BZ #3253]
9152         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9153         time, rather allocate increasingly bigger arrays of pointers, if
9154         possible with alloca, if too large with malloc.
9155
9156 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9157
9158         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9159
9160         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9161
9162 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9163
9164         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9165         home addresses.
9166         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9167         IFA_F_HOMEADDRESS flag for interfaces.
9168         * include/ifaddrs.h (struct in6addrinfo): Define
9169         in6ai_homeaddress.
9170
9171 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9172
9173         [BZ #3225]
9174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9175         PTR_DEMANGLE3): Define.
9176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9177         PTR_DEMANGLE3): Likewise.
9178         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9179         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9180         Likewise.
9181         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9182
9183 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9184
9185         * po/libc.pot: Regenerated.
9186         * po/be.po: Updated.
9187         * po/ca.po: Likewise.
9188         * po/cs.po: Likewise.
9189         * po/da.po: Likewise.
9190         * po/de.po: Likewise.
9191         * po/el.po: Likewise.
9192         * po/en_GB.po: Likewise.
9193         * po/es.po: Likewise.
9194         * po/fi.po: Likewise.
9195         * po/fr.po: Likewise.
9196         * po/gl.po: Likewise.
9197         * po/hr.po: Likewise.
9198         * po/hu.po: Likewise.
9199         * po/ja.po: Likewise.
9200         * po/ko.po: Likewise.
9201         * po/nb.po: Likewise.
9202         * po/nl.po: Likewise.
9203         * po/pl.po: Likewise.
9204         * po/pt_BR.po: Likewise.
9205         * po/ru.po: Likewise.
9206         * po/rw.po: Likewise.
9207         * po/sk.po: Likewise.
9208         * po/sv.po: Likewise.
9209         * po/tr.po: Likewise.
9210         * po/zh_CN.po: Likewise.
9211         * po/zh_TW.po: Likewise.
9212
9213         [BZ #3137]
9214         * iconv/iconv_prog.c (main): Fix spelling in error message.
9215         * iconv/iconvconfig.c (main): Likewise.
9216         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9217         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9218         * locale/programs/localedef.c (main): Likewise.
9219         * locale/programs/repertoire.c (repertoire_read): Likewise.
9220         * timezone/zdump.c (main): Likewise.
9221         * nscd/connections.c (handle_request): Fix spelling in log message.
9222         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9223
9224 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9225
9226         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9227         interfaces.
9228
9229 2006-09-20  Andreas Jaeger  <aj@suse.de>
9230
9231         * math/libm-test.inc (lrint_test_upward): Fix typo.
9232
9233 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9234
9235         [BZ #2592]
9236         * math/libm-test.inc (lrint_test_tonearest): New function.
9237         (lrint_test_towardzero): New function.
9238         (lrint_test_downward): New function.
9239         (lrint_test_upward): New function.
9240         (main): Run these new tests.
9241         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9242         of values near to 0.
9243         (two52): Use double not long double.
9244         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9245         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9246         (two23): Use float not double.
9247         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9248         (two23): Use float not double.
9249         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9250         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9251         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9252         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9253
9254 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9255
9256         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9257         Cast sp to unsigned long to avoid compiler warning.
9258         Use __makecontext_ret function instead of a trampoline on the stack.
9259         (__makecontext_ret): New function.
9260         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9261
9262 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9263
9264         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9265         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9266         bits.
9267
9268 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9269
9270         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9271         sure no reference to the unloaded map's search list remains in the
9272         dependency's scope.
9273
9274 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9275
9276         * elf/Makefile: Add rules to build and run unload7 test.
9277         * elf/unload7.c: New test.
9278         * elf/unload7mod1.c: New file.
9279         * elf/unload7mod2.c: New file.
9280
9281 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9282
9283         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9284         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9285         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9286         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9287         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9288         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9289         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9290         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9291         PTRACE_GETEVENTMSG): Likewise.
9292         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9293         values.
9294
9295 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9296
9297         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9298         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9299         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9300         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9301
9302 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9303
9304         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9305         write '\0' to the fd.
9306         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9307         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9308         Change regs to unsigned long pointer from unsigned int, fix fscr
9309         offset.
9310
9311 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9312
9313         * io/Makefile (CFLAGS-fstatat.c): Set.
9314         (CFLAGS-fstatat64.c): Likewise.
9315         (CFLAGS-mknodat.c): Likewise.
9316
9317         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9318         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9319         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9320         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9321
9322 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9323             Steven Munroe  <sjmunroe@us.ibm.com>
9324
9325         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9326         names to the beginning.  Rename "cell" to "cellbe".
9327         (_dl_powerpc_platforms): New.
9328         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9329         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9330         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9331         (_DL_HWCAP_PLATFORM): Define to new mask.
9332         (_dl_platform_string, _dl_string_platform): New functions.
9333         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9334         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9335
9336 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9337
9338         [BZ #2526]
9339         * README.libm: Fix a thinko in sqrt algorithm description.
9340
9341         [BZ #3143]
9342         * manual/string.texi (argz_delete): Fix prototype.
9343         Patch by <alpt@freaknet.org>.
9344
9345 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9346
9347         [BZ #3138]
9348         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9349         * io/tst-fcntl.c (do_prepare): Likewise.
9350         * posix/tst-exec.c (do_prepare): Likewise.
9351         * posix/tst-preadwrite.c (do_prepare): Likewise.
9352         * posix/tst-spawn.c (do_prepare): Likewise.
9353         * posix/tst-truncate.c (do_prepare): Likewise.
9354         * rt/tst-aio.c (do_prepare): Likewise.
9355         * rt/tst-aio64.c (do_prepare): Likewise.
9356         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9357         size_t.
9358
9359 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9360
9361         [BZ #2821]
9362         * time/mktime.c (guess_time_tm): Fix overflow detection.
9363         * time/Makefile (tests): Add bug-mktime1.
9364         * time/bug-mktime1.c: New file.
9365
9366         [BZ #3189, #3188]
9367         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9368         (mremap): Likewise.
9369
9370 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9371
9372         [BZ #1006]
9373         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9374         Ensure relocation doesn't clobber any bits outside of the
9375         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9376         R_SPARC_HI22 and R_SPARC_H44.
9377
9378         [BZ #2775]
9379         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9380         (long) (MINSIZE + nb - old_size) is positive.
9381
9382         * malloc/arena.c (grow_heap): When growing bail even if new_size
9383         is negative.
9384
9385         [BZ #3155]
9386         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9387         stack below r1.
9388
9389 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9390
9391         * posix/regex_internal.c (re_string_reconstruct): Handle
9392         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9393         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9394         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9395         re_string_context_at.
9396         * posix/Makefile: Add rules to build and run bug-regex26 test.
9397         * posix/bug-regex26.c: New test.
9398
9399         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9400         rather than col_sym_free.  Move seqp declaration earlier.
9401
9402         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9403
9404 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9405
9406         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9407         decl before first goto out.
9408
9409 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9410
9411         * Makerules (shlib.lds): If have-hash-style, put .hash section
9412         at the end of the RO segment.
9413
9414 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9415
9416         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9417         style hash table format is used.
9418
9419 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9420
9421         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9422         randomization rather than before.
9423         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9424
9425 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9426
9427         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9428
9429         * malloc/malloc.c (_int_malloc): Use full list insert and not
9430         shortcut which assumes the list is empty for large requests
9431         too.
9432
9433         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9434
9435 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9436
9437         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9438         and offout arguments to the prototype.
9439         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9440         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9441         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9442         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9443         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9444         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9445         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9446         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9447
9448 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9449
9450         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9451
9452         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9453         dlopen parameters.
9454
9455 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9456
9457         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9458         only if herrno is NETDB_INTERNAL.  Handle errors other than
9459         ERANGE outside of the loops, handle TRY_AGAIN.
9460
9461         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9462         if other's ctype category was missing.
9463         * locale/programs/ld-collate.c (collate_read): Return if
9464         copy_locale's collate category is missing.
9465
9466 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9467
9468         [BZ #2684]
9469         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9470         arenas if allocation failed.
9471         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9472
9473 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9474
9475         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9476         waste bins[0..1].
9477         (malloc_state): Reduce bins size by 2.
9478         (_int_malloc): Fix test for large enough buffer for early termination.
9479         When no unsorted block matches perfectly and an exiting block has
9480         to be split, use full list insert and not shortcut which assumes
9481         the list is empty.
9482
9483         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9484         failure.
9485
9486 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9487
9488         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9489         do anything.
9490
9491         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9492         symbol require exact match (these are PLTs).
9493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9494         (_dl_ppc64_addr_sym_match): Likewise.
9495
9496         [BZ #2683]
9497         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9498         If symbol has a value use it.
9499         * elf/tst-dladdr1.c: New file.
9500         * elf/Makefile: Add rules to build and run tst-addr1.
9501
9502 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9503
9504         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9505         keeps failing and heap growth or new heap creation isn't
9506         successful either.
9507         * malloc/tst-malloc.c (main): Add new tests.
9508
9509 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9510
9511         [BZ #2734]
9512         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9513         as in the x86-64 code to use bswap.
9514
9515 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9516
9517         [BZ #2680]
9518         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9519         __USE_UNIX98.
9520         * posix/bits/unistd.h: Likewise.
9521
9522 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9523
9524         [BZ #2751]
9525         * string/strchr.c: Add cast to avoid warning.
9526
9527 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9528
9529         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9530         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9531         limit is needed to avoid the exploding of the address space
9532         requirement for secondary heaps.
9533         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9534         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9535
9536 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9537
9538         [BZ #3018]
9539         * Makerules (depfiles): Handle extra-test-objs the same as
9540         extra-objs.
9541         (common-mostlyclean): Likewise.
9542         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9543         instead.
9544         * elf/Makefile (extra-objs): Likewise.
9545         * stdlib/Makefile (extra-objs): Likewise.
9546
9547 2006-08-14  Eric Blake  <ebb9@byu.net>
9548
9549         [BZ #3044]
9550         * misc/error.h: Assume C89 or better.
9551         * misc/error.c: Likewise.
9552
9553 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9554
9555         [BZ #3040]
9556         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9557         __ASSUME_ATFCTS is defined.
9558
9559 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9560
9561         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9562         to sort in each call.
9563
9564         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9565         is empty simply return and use next service.
9566         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9567
9568         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9569         tells us when not finding a charmap file is an error.
9570         * locale/programs/charmap.h: Adjust charmap_read prototype.
9571         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9572         cannot find a charmap.
9573         * locale/programs/localedef.c (main): Adjust charmap_read call.
9574
9575 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9576
9577         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9578         sysdeps/posix/pause.c implementation instead.
9579
9580 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9581
9582         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9583         to EPERM.
9584
9585 2006-08-13  Andreas Schwab  <schwab@suse.de>
9586
9587         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9588         Don't clobber caller's LRSAVE.
9589         (_dl_prof_resolve): Likewise.
9590
9591 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9592
9593         [BZ #1996]
9594         * libio/memstream.c (open_memstream): Allocate initial buffer with
9595         calloc.
9596         * libio/wmemstream.c (open_wmemstream): Likewise.
9597         * libio/strops.c: Pretty printing.
9598         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9599         (enlarge_userbuf): New function.
9600         (_IO_str_seekoff): Call it if seek position is larger than current
9601         buffer.
9602         * libio/wstrops.c: Likewise.
9603         * libio/vasprintf.c: Add comment as to why we do not have to use
9604         calloc instead of malloc to allocate initial buffer.
9605         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9606         * libio/bug-memstream1.c: New file.
9607         * libio/bug-wmemstream1.c: New file.
9608
9609 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9610
9611         * libio/wstrops.c: Remove dead macro definitions and comments.
9612         * libio/strops.c: Likewise.
9613
9614         [BZ #2764]
9615         * login/utmpname.c (__utmpname): Remove unnecessary test.
9616
9617 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9618
9619         [BZ #2832]
9620         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9621         0s from integers.
9622
9623 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9624
9625         [BZ #2987]
9626         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9627         for CPU clocks.
9628         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9629         setting of CPU clocks.
9630
9631 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9632
9633         [BZ #2841]
9634         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9635         since C99 requires the result to promote to 'int' when uint_least8_t
9636         and uint_least16_t promote to 'int'.
9637
9638 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9639
9640         [BZ #3013]
9641         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9642         lenght of one output field, correct bitmask creation.
9643         * locale/programs/ld-time.c: Add alignment.
9644
9645         [BZ #2997]
9646         * misc/error.c: Add space between program name and message if file
9647         name is missing.
9648
9649 2006-08-03  Eric Blake  <ebb9@byu.net>
9650
9651         [BZ #2998]
9652         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9653
9654 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9655
9656         * malloc/memusagestat.c: Silence warnings.
9657
9658         * malloc/malloc.c: Dynamically size mmap treshold if the program
9659         frees mmaped blocks.
9660         Patch by Valerie Henson and Arjan van de Ven.
9661
9662 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9663
9664         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9665         __USE_GNU.
9666
9667         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9668         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9669         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9670         Only provide var definitions in strtol_l (or for *ull*
9671         in strtoll_l).
9672
9673         * stdio-common/bug16.c (tests): New array.
9674         (do_tests): Allow the first hexadecimal digit
9675         to be 1, 2, 4 or 8.  Do 3 additional tests.
9676
9677         * sysdeps/s390/fpu/libm-test-ulps: Update.
9678
9679         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9680         fchownat syscall if available.
9681         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9682         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9683         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9684
9685 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9686
9687         * nis/nis_xdr.c: Avoid some function calls.
9688
9689 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9690             Ulrich Drepper  <drepper@redhat.com>
9691
9692         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9693         short cut if only one name component is stripped away.
9694
9695 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9696
9697         * nis/nis_call.c: Minor cleanups throughout.
9698         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9699         (first_shoot): Add search_parent_first parameter.  Only if it is set
9700         search parent server first.
9701         If directory for table found through cold start cache is not the same
9702         as referenced in the cache, don't use it.
9703         (__nisfind_server): Take additional parameter.  Pass it on to
9704         first_shoot.
9705         (__prepare_niscall): Adjust __nisfind_server call.
9706         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9707         * nis/nis_table.c: Adjust __nisfind_server call.
9708         * nis/nis_lookup.c: Likewise.
9709         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9710
9711 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9712
9713         [BZ #2182]
9714         * math/s_cacosh.c: Return values from positive branch.
9715         * math/s_cacoshf.c: Likewise.
9716         * math/s_cacoshl.c: Likewise.
9717
9718         [BZ #2883]
9719         * sysvipc/sys/msg.h: Change return value to ssize_t.
9720         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9721         * sysvipc/msgrcv.c: Likewise.
9722         * include/sys/msg.h: Likewise.
9723
9724         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9725         test introduced in patch for bz #661.
9726         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9727         element for NEWGROUPS.
9728
9729         [BZ #2908]
9730         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9731         'f', use '1' as leading digit not '\1'.
9732         * stdio-common/Makefile (tests): Add bug16.
9733         * stdio-common/bug16.c: New file.
9734
9735         [BZ #2914]
9736         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9737         and don't try to open it.  The patch introducing the macro
9738         contained a bug and used the same file name as the new file
9739         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9740         this out completely.
9741
9742         [BZ #2926]
9743         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9744         Patch by Jerry James <Jerry.James@usu.edu>.
9745
9746         * rt/Makefile (tests): Add tst-clock2.
9747         * rt/tst-clock2.c: New file.
9748
9749         [BZ #2978]
9750         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9751         function and its parameters and pass it to new thread.
9752         (__gai_notify): Add support for alternative waiting for completion.
9753         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9754         waiting for completion.
9755         * resolv/getaddrinfo_a.c: Likewise.
9756         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9757         waiting for completion is used.
9758         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9759         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9760         * resolv/gai_error.c: Likewise.
9761         * resolv/gai_sigqueue.c: Likewise.
9762
9763 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9764
9765         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9766         errno to EBADF and return MACH_PORT_NULL.
9767
9768 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9769
9770         [BZ #2980]
9771         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9772
9773 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9774
9775         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9776         walk them instead of the symbol table.
9777
9778 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9779
9780         [BZ #2098]
9781         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9782         status of NSS calls, not the number of returned entries.
9783
9784         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9785         request_key, keyctl.
9786
9787 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9788
9789         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9790
9791 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9792
9793         * elf/tst-auditmod1.c: Fix typo in #error.
9794
9795 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9796
9797         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9798
9799         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9800
9801 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9802
9803         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9804         that the directory is empty even on non-POSIX filesystems.
9805
9806 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9807
9808         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9809
9810         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9811         the backend NSS module.  If backend setgrent call failed, don't have
9812         internal_setgrent fail.  Just remember this until it is needed.
9813         * nis/nss_compat/compat-pwd.c: Likewise.
9814         * nis/nss_compat/compat-spwd.c: Likewise.
9815
9816 2006-07-30  Roland McGrath  <roland@redhat.com>
9817
9818         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9819         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9820         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9821         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9822
9823         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9824         (nanosleep_not_cancel): New macro.
9825         (sigsuspend_not_cancel): new macro.
9826         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9827         (do_sigsuspend): Define as inline.
9828         (__sigsuspend): Always use do_sigsuspend.
9829         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9830         * include/signal.h: Declare __sigsuspend_nocancel.
9831         * sysdeps/posix/pause.c
9832         [! NO_CANCELLATION] (__pause_nocancel): New function.
9833
9834         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9835         * include/time.h (__nanosleep_nocancel): Likewise.
9836
9837 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9838
9839         * locale/programs/localedef.c (add_to_readlist): Rename local
9840         variables to avoid confusion.
9841
9842         * locale/programs/charmap.c (charmap_read): Emit error message if
9843         charmap couldn't be found or read.
9844
9845 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9846
9847         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9848         __ASSUME_FUTEX_LOCK_PI.
9849         * include/time.h: Declare __nanosleep_nocancel.
9850         * include/unistd.h: Declare __pause_nocancel.
9851
9852         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9853         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9854         get the __stack_chk_fail_local definition when it's needed.
9855
9856 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9857
9858         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9859         * dlfcn/bug-atexit3.c: New file.
9860         * dlfcn/bug-atexit3-lib.cc: New file.
9861
9862         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9863         used when the namespace is not the base namespace.
9864
9865 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9866
9867         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9868         (__new_exitfn): Bump it in every successful call.
9869         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9870         more exit handlers, call them right away.
9871         * stdlib/exit.h: Declare __new_exitfn_called.
9872
9873 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9874
9875         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9876         calling registered handler.
9877
9878         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9879         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9880         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9881         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9882         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9883         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9884         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9885         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9886
9887 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9888
9889         * elf/dl-lookup.c (dl_new_hash): New functions.
9890         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9891         value here.  Compute new-style hash value.  Pass new hash value
9892         and reference to variable with the old value to do_lookup_x.
9893         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9894         old-style hash table.
9895         (_dl_debug_bindings): Pass new hash value and reference to variable
9896         with the old value to do_lookup_x.
9897         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9898         new-style hash value and change old-style hash value parameter to
9899         be a reference.  Reoganize functions to determine whether
9900         new-style hash table is available.  Only fall back on old-style
9901         table.  If old-style hash value is needed, compute it here.
9902         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9903         entry.
9904         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9905         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9906         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9907         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9908         * Makeconfig: If linker supports --hash-style option add it to all
9909         linker command lines to build DSOs.
9910         * config.make.in: Define have-hash-style.
9911         * configure.in: Test whether linker supports --hash-style option.
9912
9913         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9914         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9915
9916 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9917
9918         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9919         auditing.
9920
9921         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9922         RPATH of main map twice.
9923
9924 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9925
9926         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9927         look further, return original strings.
9928         (_nl_find_msg): Do not return found translation if the conversion
9929         failed.  Either signal the string is unusable or that something went
9930         wrong and the original should be used.
9931
9932 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9933
9934         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9935
9936 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9937
9938         [BZ #2766]
9939         * misc/insremque.c (insque): Handle prev == NULL.
9940         * misc/Makefile (tests): Add tst-insremque.
9941         * misc/tst-insremque.c: New test.
9942
9943 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9944
9945         [BZ #2792]
9946         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9947         conflict with DL_DST_REQUIRED.
9948
9949 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9950
9951         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9952         match what Solaris does.
9953
9954 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9955
9956         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9957         local_setegid instead of seteuid and setegid.
9958         * sysdeps/generic/local-setxid.h: New file.
9959         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9960
9961         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9962
9963         * string/Makefile (tests): Add bug-envz1.
9964         * string/bug-envz1.c: New file.
9965
9966 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9967
9968         * posix/regex_internal.c (re_string_skip_chars): If no character has
9969         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9970         to the byte which couldn't be converted.
9971         (re_string_reconstruct): Don't clear valid_raw_len before calling
9972         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9973         tip_context using re_string_context_at.
9974         * posix/Makefile: Add rules to build and run bug-regex25 test.
9975         * posix/bug-regex25.c: New test.
9976
9977 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9978
9979         [BZ #2703]
9980         * string/envz.c (envz_strip): Correct erroneously reversed src
9981         and dest parameters to memmove() invocation.
9982
9983 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9984
9985         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9986         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9987         to make sure the database has been already invalidated.
9988         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9989         after the cache has been invalidated.  Use pthread_mutex_lock rather
9990         than pthread_mutex_trylock if fd != -1.
9991         * nscd/connections.c (invalidate_cache): Add fd argument, write
9992         response to fd if not calling prune_cache, pass fd to prune_cache.
9993         (handle_request): Adjust invalidate_cache caller.
9994         (nscd_run): Pass -1 as fd to prune_cache.
9995
9996 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9997
9998         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9999         the correct place.
10000
10001 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10002
10003         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10004         * nscd/cache.c (prune_cache): Take prunelock before starting the
10005         work.  Just return in case it is already taken.
10006         * nscd/connections.c (dbs): Initialize .prunelock.
10007
10008 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10009
10010         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10011         copying.  No need to allocate new array for group members.  Just
10012         move the pointers and update the size.
10013
10014         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10015         Avoid memory leak in case realloc fails.  Simplification for
10016         better code generation.
10017
10018         Avoid deprecation warning because of libc_hidden_proto for
10019         inet6_option_alloc.
10020         * inet/inet6_option.c (option_alloc): Renamed from
10021         inet6_option_alloc.  Made static.
10022         (inet6_option_alloc): Now a simple wrapper around option_alloc.
10023         (inet6_option_append): Call option_alloc.
10024         * include/netinet/in.h: Remove libc_hidden_proto for
10025         inet6_option_alloc.
10026
10027         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10028         for cleanup when cb!=NULL [Coverity CID 233].
10029
10030 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
10031
10032         [BZ #2693]
10033         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10034         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10035         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10036         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10037         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10038         and inet6_rth_getaddr.
10039         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10040         array.
10041         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10042         Mark inet6_option_* interfaces as deprecated.
10043         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10044         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10045         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10046         inet6_rth_segments, and inet6_rth_getaddr.
10047         * inet/inet6_opt.c: New file.
10048         * inet/inet6_rth.c: New file.
10049
10050         * inet/netinet/icmp6.h: Pretty printing.
10051
10052         [BZ #2683]
10053         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10054
10055 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
10056
10057         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10058         doing it all here.  When server does not know the answer do not
10059         fail immediate, try parent first.
10060
10061         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10062         overflow test.
10063
10064 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
10065
10066         * nis/nis_call.c (__prepare_niscall): New function.  Split out
10067         from __do_niscall.
10068         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10069         and exported.
10070         (__follow_path): New function.  Split out from nis_list.
10071         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10072         _xdr_nis_result.
10073         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10074         _xdr_nis_result.
10075         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10076         and __follow_path.
10077         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10078         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10079         from libnsl for version GLIBC_PRIVATE.
10080         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10081         Remove entry parameter from _nss_nisplus_parse_pwent and
10082         _nss_nisplus_parse_grent.
10083         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10084         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10085         again.  Rewrite getpwent handling to not use nis_first_entry and
10086         nis_next_entry.  Roll out own niscall handling.
10087         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10088
10089         * sunrpc/xdr_rec.c: Fix typo in comment.
10090
10091 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10092
10093         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10094         handling.
10095
10096         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10097         to allocate memory for my_pollfd.  Better initialization of
10098         cb_is_running.  Use TEMP_FAILURE_RETRY.
10099
10100         * malloc/memusage.sh (memusageso): Add quotes.
10101         (memusagestat): Likewise.
10102         * debug/xtrace.sh (pcprofileso): Likewise.
10103         (pcprofiledump): Likewise.
10104         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10105         replacement.
10106         * malloc/Makefile ($(objpfx)memusage): Likewise.
10107
10108         * nis/nis_callback.c (__nis_create_callback): Calls to
10109         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10110         asprintf call fails.
10111
10112         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10113         no uninitialized memory is passed to sendto.
10114
10115 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10116
10117         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10118         of snprintf+strdup.  Handle OOM.
10119         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10120         cb->serv together.  Remove now obsolete free calls.
10121         (__nis_destroy_callback): Remove now obsolete free call.
10122
10123 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10124
10125         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10126         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10127         and ULA respectively). Set precedence for IPv4 address to 10 as
10128         defined in RFC3484 for preferring IPv6.
10129         * posix/gai.conf: Update to match the new default tables.
10130
10131 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10132
10133         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10134         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10135         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10136         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10137
10138         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10139         Removed.
10140         (init_nss_interface): Remove initialization of these variables.
10141
10142 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10143
10144         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10145         nis_free_directory forward to avoid duplication.
10146
10147 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10148
10149         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10150         rec_dirsearch returning NULL.
10151         (first_shoot): Handle __nis_finddirectory returning NULL.
10152         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10153
10154         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10155         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10156
10157 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10158
10159         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10160         pid changed.
10161
10162 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10163
10164         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10165
10166         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10167         * nscd/nscd_getgr_r.c: Likewise.
10168
10169         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10170
10171         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10172         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10173
10174         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10175
10176         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10177
10178         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10179
10180         * include/rpc/auth.h: Mark xdr_des_block_internal and
10181         xdr_opaque_auth_internal as hidden.
10182
10183         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10184         hidden.
10185
10186         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10187
10188         * misc/getusershell.c (okshells): Don't use static initializers,
10189         do it dynamically.
10190
10191         * stdlib/fmtmsg.c (keywords): Change type of len element to
10192         uint32_t to not waste space on 64bit machines.
10193
10194         * locale/setlocale.c: Change _nl_category_names into a string.
10195         Add new _nl_category_name_idxs.  Change all users.
10196         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10197         Declare _nl_category_name_idxs.
10198         * locale/findlocale.c: Adjust for _nl_category_names change.
10199         * locale/loadlocale.c: Likewise.
10200         * locale/newlocale.c: Likewise.
10201         * intl/dcigettext.c: Likewise.
10202
10203         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10204         (add_alias2): ...here.  New function.
10205         (__gconv_read_conf): Simplify builtin alias handling.
10206         (builtin_aliases): Convert to string to avoid relocations.
10207         * iconv/gconv_builtin.h: Add comment about correct formatting.
10208
10209 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10210
10211         * resolv/res_debug.c (loc_ntoa): Make error const.
10212
10213 2006-05-14  Andreas Schwab  <schwab@suse.de>
10214
10215         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10216
10217 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10218
10219         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10220         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10221         sizeof (cpu_set_t).
10222
10223 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10224
10225         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10226
10227         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10228
10229         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10230         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10231
10232         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10233         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10234
10235         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10236         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10237         xdr_cback_data.
10238
10239         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10240         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10241         xdr_ypupdate_args.
10242
10243         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10244         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10245
10246         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10247         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10248
10249         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10250         * include/rpcsvc/nis_callback.h: New file.
10251
10252         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10253         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10254
10255         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10256         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10257
10258         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10259         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10260
10261         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10262         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10263
10264         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10265         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10266         xdr_ypdelete_args.
10267
10268         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10269         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10270
10271         * nis/nis_error.c: Remove table of strings.  Use position
10272         independent mechanism.
10273         * nis/nis_error.h: New file.
10274
10275 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10276
10277         * locale/programs/ld-time.c (time_finish): If wide era name or
10278         format aren't provided, set both wname and wformat to L"".
10279
10280 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10281
10282         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10283         results if the call was succesful.
10284
10285         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10286
10287         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10288         as hidden.
10289
10290 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10291
10292         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10293
10294 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10295
10296         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10297         caller makes sure this is not the case.
10298         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10299
10300 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10301
10302         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10303         calls.
10304
10305         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10306         [Coverity CID 229, 230]
10307
10308         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10309         DGETTEXT calls.
10310         (hol_help): Likewise.  [Coverity CID 226, 227]
10311
10312         * string/argz-replace.c (__argz_replace): Unconditionally call
10313         free on SRC.  [Coverity CID 225]
10314
10315         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10316         the return value of __nis_default_owner and __nis_default_group,
10317         it has been especially allocated.  [Coverity CID 224]
10318
10319         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10320         searchgroup and searchowner.  Significantly simplified.
10321         (__nis_default_owner): Remove duplication.  Do not locally copy the
10322         string before duplicating it.
10323         (__nis_default_group): Likewise.
10324
10325         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10326         we must clear the variable before calling __nisfind_server.
10327
10328         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10329         nis_getnames.  [Coverity CID 223]
10330
10331         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10332         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10333
10334         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10335         allocate memory for the input to add_bytes.  [Coverity CID 221]
10336
10337         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10338         was allocated here.  [Coverity CID 219, 220]
10339
10340         * posix/getconf.c (print_all): Free confstr data after printing.
10341         [Coverity CID 218]
10342
10343         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10344         list allocation fails.  [Coverity CID 215]
10345
10346         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10347         [Coverity CID 213]
10348
10349         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10350         string is NULL.  [Coverity CID 212]
10351         * argp/Makefile: Add rules to build and run bug-argp1.
10352         * argp/bug-argp1.c: New file.
10353
10354         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10355         end of string.
10356         * stdlib/canonicalize.c (__realpath): Likewise.
10357
10358         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10359         pointer.  [Coverity CID 206]
10360
10361         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10362         in statically linked code.
10363         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10364         statically built code, be prepared to have no link map.
10365         [Coverity CID 205]
10366
10367         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10368         dgettext calls. [Coverity CID 204]
10369
10370         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10371         the one user.
10372         (uparam_names): Reduce size.  Avoid relative relocations.
10373         Moved to read-only segment.
10374         (fill_in_uparams): Update for new layout.
10375
10376         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10377         assumed to always be != NULL. [Coverity CID 202]
10378
10379         * argp/argp-help.c (hol_entry_help): Remove some dead code
10380         [Coverity CID 200].
10381
10382         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10383         away a few more unconditional yperr2nss calls.
10384         (_nss_nis_getservbyname_r): Likewise.
10385
10386 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10387
10388         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10389         architectures.
10390
10391         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10392         that unused memory passed to sendto is nevertheless initialized.
10393
10394         [BZ #2499]
10395         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10396         possibly unaligned memory accesses.
10397
10398         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10399         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10400         and __putlong respectively.  Correct buffer overflow check for
10401         NS_NOTIFY_OP.
10402
10403         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10404
10405         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10406         (send_dg): Rewrite error handling to be more compact and avoid
10407         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10408
10409         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10410
10411         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10412         instead of ns_get16.
10413         (res_queriesmatch): Likewise.  Minor optimization.
10414
10415         [BZ #2499]
10416         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10417         __libc_res_nsend might reallocate the buffer for the answer.  In
10418         this case we have to reload the HP pointer.
10419
10420 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10421
10422         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10423         some branch prediction hints.
10424
10425         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10426         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10427         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10428         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10429         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10430         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10431         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10432         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10433
10434 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10435
10436         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10437         by a GOT relocation to make Scrt1.o position independent.
10438         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10439
10440         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10441         six system call parameters.
10442         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10443
10444 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10445
10446         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10447         malloc&bzero.
10448
10449         * sunrpc/svc_udp.c (BZERO): Remove definition.
10450         (CALLOC): Define.
10451         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10452
10453         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10454         (des_SPtrans): Use uint32_t type.
10455         (des_skb): Likewise.
10456
10457         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10458
10459 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10460
10461         [BZ #2509]
10462         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10463         on 32-bit arches.
10464
10465 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10466
10467         * locale/programs/ld-address.c (address_finish): Fix one more
10468         place where the iso639 array might be accessed beyond the limits.
10469
10470 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10471
10472         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10473         filling it for the first time.
10474
10475         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10476         Adjust all callers.
10477         Free res object content before returning.
10478
10479         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10480
10481         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10482         client->cl_auth.
10483
10484         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10485         cleanup for initial thread, just the free call on TVP.
10486
10487         * nscd/gai.c (__getline): Define.
10488
10489
10490 See ChangeLog.16 for earlier changes.