19019da1485de1880180087899ca9040def9fd12
[platform/upstream/glibc.git] / ChangeLog
1 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3
4         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
5         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
6         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
7         and asm/user.h.  Include asm/ptrace.h.
8         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
9         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
10         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
11         Undefine.
12         (start_thread): Don't undefine.
13         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
14         Define.
15
16 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
17
18         * wctype/wctype.h: The *_l functions are in POSIX 2008.
19         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
20         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
21         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
22         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
23         200112L to 200809L.
24         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
25         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
26         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
27         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
28         _SC_THREAD_ROBUST_PRIO_PROTECT.
29         * posix/unistd.h: fexecve is in POSIX 2008.
30         * time/time.h: strftime_l is in POSIX 2008.
31         * io/sys/stat.h: futimens is in POSIX 2008.
32         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
33         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
34         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
35         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
36         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
37         open_memstream, and vdprintf are in POSIX 2008.
38
39 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
40
41         * include/features.h: Define macros for XPG7/POSIX 2008.
42         * ctype/ctype.h: The *_l functions are in POSIX 2008.
43         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
44         POSIX 2008.
45         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
46         * locale/xlocale.h: Define locale_t type.
47         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
48         in POSIX 2008.  Don't define locale_t here.
49         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
50         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
51         UTIME_OMIT only with __USE_ATFILE.
52         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
53         * stdio-common/psiginfo.c: New file.
54         * stdio-common/psiginfo-data.h: New file.
55         * stdio-common/psiginfo-define.h: New file.
56         * stdio-common/Makefile (routines): Add psiginfo.
57         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
58         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
59         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
60         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
61         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
62         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
63         * io/sys/stat.h: Move mknodat definition into same conditional as
64         mknod.
65         * time/sys/time.h: futimesat is not among the functions accepted
66         into the POSIX standard.
67
68         * include/features.h: If no feature selection given and we select
69         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
70         * posix/Versions: Export __posix_getopt.
71         * posix/getopt.c (_getopt_initialize): Take additional parameter.
72         Use it to alternatively initialize __posixly_correct.
73         (_getopt_internal_r): Take addition parameter.  Pass on to
74         _getopt_initialize.
75         (_getopt_internal): Take addition parameter.  Pass on to
76         _getopt_internal_r.
77         (getopt): Pass additional zero to _getopt_internal.
78         (__posix_getopt): New function.
79         * posix/getopt.h: Add redirection for getopt.
80         * posix/getopt1.c (getopt_long): Pass additional zero to
81         _getopt_internal.
82         (getopt_long_only): Likewise.
83         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
84         (_getopt_long_only_r): Likewise.
85         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
86         _getopt_internal_r.
87
88 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
89
90         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
91         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
92         * sysdeps/posix/sysconf.c (__sysconf): Handle
93         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
94         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
95
96 2009-02-24  Roland McGrath  <roland@redhat.com>
97
98         [BZ #9895]
99         * README.template: Reworded not to use substituted version number.
100         Renamed to ...
101         * README: ... here (no longer generated).
102         * Makefile (README): Target removed.
103
104 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
105
106         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
107         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
108         instead.
109
110         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
111
112         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
113
114 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
115
116         * po/bg.po: Update from translation team.
117
118 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
119
120         * stdlib/monetary.h: Uglify function parameter names.
121         * sunrpc/rpc/pmap_clnt.h: Likewise.
122         * sunrpc/rpc/svc.h: Likewise.
123         * sunrpc/rpc/xdr.h: Likewise.
124         * sunrpc/rpc/clnt.h: Likewise.
125         * resolv/netdb.h: Likewise.
126         * resolv/arpa/nameser.h: Likewise.
127         * resolv/resolv.h: Likewise.
128         * argp/argp.h: Likewise.
129         * locale/langinfo.h: Likewise.
130         * io/sys/stat.h: Likewise.
131         * posix/spawn.h: Likewise.
132         * nis/rpcsvc/nislib.h: Likewise.
133         * malloc/obstack.h: Likewise.
134         * sysdeps/ia64/bits/link.h: Likewise.
135         * sysdeps/i386/bits/link.h: Likewise.
136         * sysdeps/s390/bits/link.h: Likewise.
137         * sysdeps/powerpc/bits/link.h: Likewise.
138         * sysdeps/x86_64/bits/link.h: Likewise.
139         * sysdeps/sparc/bits/link.h: Likewise.
140         * sysdeps/sh/bits/link.h: Likewise.
141         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
142         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
143         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
144         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
145
146 2008-12-01  Fredrik Unger  <fred@tree.se>
147
148         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
149         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
150         _FP_UNPACK_RAW_2, fix up first argument.
151
152 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
153
154         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
155         (GET_NPROCS_PARSER): Change parameters and use next_line.
156         (__get_nprocs): Rewrite to not use stdio routines.
157         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
158         Change parameters and use next_line.
159
160 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
161
162         [BZ #5381]
163         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
164         Change mempool_alloc prototype.
165         * nscd/mem.c (gc): Don't handle mem_in_flight.
166         (mempool_alloc): Third parameter now only indicates whether this is the
167         first call (to allocate data) or not.  If it is, get db rdlock.
168         Release it on error.  Don't handle mem_in_flight.
169         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
170         Adjust third parameter of mempool_alloc calls.
171         Nothing to do here in case mempool_alloc fails.
172         Avoid local variable shadowing parameter.  No need to get db rdlock
173         before calling cache_add.
174         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
175         no mem_in_flight array anymore.
176         * nscd/connections.c: Remove definition and handling of mem_in_flight.
177         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
178         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
179         in case mempool_alloc fails. No need to get db rdlock before calling
180         cache_add.
181         * nscd/hstcache.c (cache_addhst): Likewise.
182         * nscd/initgrcache.c (addinitgroupsX): Likewise.
183         * nscd/servicescache.c (cache_addserv): Likewise.
184         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
185
186 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
187
188         * po/lt.po: Update from translation team.
189
190 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
191
192         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
193         defined, allow additional data to be added using the optional
194         MORE_ELF_HEADER_DATA macro.
195         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
196         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
197
198 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
199
200         * include/atomic.h: Define catomic_and if not already defined.
201         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
202         * sysdeps/i386/i486/bits/atomic.h: Likewise.
203
204 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
205
206         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
207         Change all callers.
208         (_int_realloc): Likewise.  Third argument is now padded size
209         All _int_* functions are now static.
210
211         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
212         * malloc/arena.c: Likewise.
213         * include/malloc.h: Remove now unnecessary declarations of the _int_*
214         functions.
215
216         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
217         easily.
218
219         * malloc/malloc.c: Add branch prediction for use of the hooks.
220
221         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
222
223 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
224
225         [BZ #7095]
226         * bits/confname.h: Add SUSv7 macros for getconf environments.
227         * bits/environments.h: Likewise.
228         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
229         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
230         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
231         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
232         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
233         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
234         * posix/getconf.c: Likewise.
235         * posix/sysconf.c: Likewise.
236         * sysdeps/posix/sysconf.c: Likewise.
237         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
238         environments.
239
240 2009-01-16  Petr Baudis  <pasky@suse.cz>
241
242         [BZ #9753]
243         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
244         even if we currently have zero nscount.
245
246 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
247
248         [BZ #9781]
249         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
250         the input line is too long.
251
252         * po/Makefile (libc.pot): Add f_print as function taking c-format
253         parameter.
254
255         * debug/xtrace.sh: Unify translatable messages.
256         * elf/ldd.bash.in: Likewise.
257         * elf/sprof.c: Likewise.
258         * locale/programs/locale.c: Likewise.
259         * malloc/memusage.sh: Likewise.
260         * nss/getent.c: Likewise.
261
262 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
263
264         * debug/pcprofiledump.c (print_version,
265         argp_program_version_hook): New function.
266         * elf/ldconfig.c (more_help): New function.
267         (argp): Use it.
268         * elf/sln.c (usage): New function.
269         (main): Support --help and --version.
270         * malloc/memusagestat.c (print_version): New function.
271         (argp_program_version_hook): New variable.
272         * nscd/nscd.c (more_help): New function.
273         (argp): Use it.
274         * posix/getconf.c (main): Send --version output to stdout.
275         Support --help.
276         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
277         arguments.  All callers changed.
278         (print_version): New function.
279         (parseargs): Support --help and --version.
280         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
281         changed.
282         (print_version): New function.
283         (main): Use getopt_long.  Support --help and --version.
284         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
285         --version.
286
287 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
288
289         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
290         (update_data): Fix handling of wrapping back
291         to the beginning of the buffer.
292
293         [BZ #9823]
294         * stdio-common/psignal.c (psignal): Fix test for empty string.
295
296 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
297
298         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
299         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
300         move _null_auth to .rodata.
301
302         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
303         value of 24.
304
305         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
306
307         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
308         today than when the original code was written.  Use larger
309         buffers.  This also makes it unnecessary to have stat information,
310         if this causes extra efforts.
311         (__opendir): In case O_DIRECTORY works, don't call fstat just for
312         __alloc_dir.
313
314 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
315
316         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
317         is set.
318         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
319         * sysdeps/sh/sh4/__longjmp.S: Likewise.
320         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
321         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
322         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
323         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
324
325 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
326
327         * po/ru.po: Update from translation team.
328
329 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
330
331         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
332         Add _tid slot to maintain consistency with kernel.
333
334 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
335
336         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
337         incomplete characters at end of input buffer.
338         * libio/Makefile (tests): Add tst-fgetwc.
339         * libio/tst-fgetwc.c: New file.
340         * libio/tst-fgetwc.input: New file.
341
342 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
343
344         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
345
346 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
347
348         [BZ #9793]
349         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
350         *OUTBUFSTART unless the whole output fit into the buffer.
351         * iconv/Makefile (tests): Add tst-iconv4.
352         * iconv/tst-iconv4.c: New file.
353
354 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
355
356         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
357         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
358
359 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
360
361         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
362         newer linker scripts.
363
364 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
365
366         [BZ #7040]
367         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
368         inotify_rm_watch should have type int.
369
370 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
371
372         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
373         Make aligned_restore_vmx a local symbol.
374         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
375         Likewise.
376
377 2009-01-30  Andreas Jaeger  <aj@suse.de>
378
379         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
380         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
381         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
382         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
383         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
384         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
385         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
386
387 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
388
389         [BZ #9726]
390         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
391         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
392
393 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
394
395         [BZ #9726]
396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
397         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
399         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
400
401 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
402
403         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
404         memcpy instead of memcmp.
405         (_dl_setup_pointer_guard): Likewise.
406
407 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
408
409         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
410         manipulated brk, use malloc_printerr.
411         * misc/sbrk.c (__sbrk): Better error handling for nonsense
412         requests.
413
414 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
415
416         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
417         rindex): For C++ add inlines so that they can be recognized as
418         builtins.
419         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
420
421 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
422             Jakub Jelinek  <jakub@redhat.com>
423
424         * string/string.h: Define correct C++ prototypes for gcc 4.4.
425         * wcsmbs/wchar.h: Likewise.
426
427 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
428
429         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
430         (stackinfo_sub_sp): Define.
431
432 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
433
434         [BZ #9750]
435         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
436         * include/alloca.h (alloca_account): Define.
437         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
438         (stackinfo_sub_sp): Define.
439
440         * nscd/connections.c (nscd_init): If database file access fails
441         check whether this is due to permission problems and bail in that
442         case.
443
444         [BZ #9741]
445         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
446         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
447
448 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
449
450         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
451         Add "t" to clobber list.
452         (INTERNAL_SYSCALL_NCS): Likewise.
453
454 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
455
456         * nss/getent.c (print_networks): Don't print comma between aliases.
457
458 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
459
460         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
461
462         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
463         the hash table.
464         * misc/Makefile (tests): Add bug-hsearch1.
465         * misc/bug-hsearch1.c: New file.
466
467 2009-01-22  Roland McGrath  <roland@redhat.com>
468
469         * Makeconfig (%.v.i): Strip trailing # comments,
470         not only whole-line comments.
471
472 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
473
474         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
475         one parameter.  If non-NULL use it to initialize return value.
476         (_dl_setup_pointer_guard): New function.
477         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
478         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
479         * elf/rtld.c (security_init): Pass _dl_random to
480         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
481         pointer_chk_guard.
482         * elf/dl-sysdep.c (_dl_random): New variable.
483         (_dl_sysdep_start): Handle AT_RANDOM.
484         (_dl_show_auxv): Likewise.
485         * elf/dl-support.c (_dl_random): New variable.
486         (_dl_aux_init): Handle AT_RANDOM.
487         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
488         to _dl_setup_stack_chk_guard.
489
490         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
491
492 2009-01-10  Roland McGrath  <roland@redhat.com>
493
494         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
495
496 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
497
498         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
499
500         [BZ #9706]
501         * nss/nss_files/files-parse.c (strtou32): New function.
502         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
503         across 32-bit and 64-bit platforms.
504         (INT_FIELD_MAYBE_NULL): Likewise.
505
506 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
507
508         [BZ #9720]
509         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
510         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
511         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
512         Likewise.
513
514 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
515
516         [BZ #697]
517         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
518         being NULL also if there are no backreferences.
519         * posix/rxspencer/tests: Add testcases.
520
521 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
522
523         [BZ #9697]
524         * posix/bug-regex17.c: Add testcases.
525         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
526         handling.
527
528 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
529
530         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
531         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
532         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
533         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
534         for elf subdir.
535         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
536         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
537         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
538         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
539         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
540         * sysdeps/unix/sysv/linux/s390/Versions: New file.
541
542 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
543
544         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
545         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
546         re_string_skip_chars, re_string_reconstruct): Likewise.
547         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
548
549 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
550
551         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
552         adjust the buffer alignment.
553
554 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
555
556         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
557         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
558         net/route.h.
559
560         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
561         flavor to description only when flavor is not NULL.
562
563         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
564         mutex after SIGIO/SIGURG lookup loop.
565
566 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
567
568         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
569
570 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
571
572         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
573         handling.
574
575 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
576
577         * sysdeps/unix/sysv/linux/kernel-features.h
578         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
579
580         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
581         if no output is written.
582
583         * version.h: Bump to 2.10 development.
584
585         * posix/getconf.c: Update copyright year.
586         * nss/getent.c: Likewise.
587         * iconv/iconvconfig.c: Likewise.
588         * iconv/iconv_prog.c: Likewise.
589         * elf/ldconfig.c: Likewise.
590         * catgets/gencat.c: Likewise.
591         * csu/version.c: Likewise.
592         * elf/ldd.bash.in: Likewise.
593         * elf/sprof.c (print_version): Likewise.
594         * locale/programs/locale.c: Likewise.
595         * locale/programs/localedef.c: Likewise.
596         * nscd/nscd.c (print_version): Likewise.
597         * debug/xtrace.sh: Likewise.
598         * malloc/memusage.sh: Likewise.
599         * malloc/mtrace.pl: Likewise.
600         * debug/catchsegv.sh: Likewise.
601
602 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
603
604         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
605         script.
606
607 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
608
609         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
610         gethostbyname4_r function call succeeded, just leave the loop.
611
612         [BZ #9694]
613         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
614         very end.
615         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
616         * wctype/Makefile (tests): Add bug-wctypeh.
617         * wctype/bug-wctypeh.c: New file.
618
619         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
620         LOCALDOMAIN is defined.
621         * nscd/nscd_getai.c (__nscd_getai): Likewise.
622
623         * sysdeps/x86_64/bits/select.h: New file.
624
625         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
626
627 2008-12-21  Bruno Haible  <bruno@clisp.org>
628
629         [BZ #9677]
630         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
631         if no output is written.
632
633 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
634
635         * login/utmp_file.c (pututline_file): Replace call to dup2 with
636         libc internal symbol __dup2 to avoid access through the PLT.
637
638 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
639
640         [BZ #6545]
641         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
642         available only for __USE_GNU.
643
644         * inet/Makefile (tests): Add tst-getni2.
645         * inet/tst-getni2.c: New file.
646
647         [BZ #7080]
648         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
649         NULL when NI_NAMEREQD is set.
650         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
651         * inet/Makefile (tests): Add tst-getni1.
652         * inet/tst-getni1.c: New file.
653
654 2008-12-03  Petr Baudis  <pasky@suse.cz>
655
656         [BZ #7067]
657         * nscd/connections.c (invalidate_cache): Use prune_run_lock
658         instead of prune_lock.
659         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
660         * nscd/nscd.h (database_dyn): Add prune_run_cache.
661
662 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
663
664         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
665         use.
666
667         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
668         handling.
669
670         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
671         after reading name server list.
672
673         [BZ #7058]
674         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
675         handling for host name aliases.
676
677 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
678
679         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
680         instead of doing things manually.
681
682 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
683
684         * posix/regex_internal.h (build_wcs_upper_buffer):
685         Return type is reg_error_t.
686
687 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
688
689         * posix/globtest.sh: Use mktemp to create temporary file and
690         directory.
691
692         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
693         sets correctly.
694         (__CPU_CLR_S): Likewise.
695         (__CPU_ISSET_S): Likewise.
696
697 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
698             Ulrich Drepper  <drepper@redhat.com>
699
700         * scripts/firstversion.awk: Use custom comparison function to compare
701         version numbers.
702         * scripts/versions.awk: Use sort invocation which can handle
703         multi-digit sub-version numbers.
704
705 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
706
707         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
708         * locale/iso-639.def: Add Chhattisgarhi entry.
709
710 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
711
712         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
713         ESRCH return value.
714         (_nss_dns_gethostbyname4_r): Likewise.
715         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
716         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
717         gethostbyname4_r, we don't have a separate IPv6 status, so copy
718         the no_data variable.
719
720         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
721         information at the correct index.
722
723         * socket/sys/socket.h: Declare accept4.
724         * socket/accept4.c: New file.
725         * sysdeps/unix/sysv/linux/accept4.c: New file.
726         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
727         * socket/Makefile (routines): Add accept4.
728         * socket/Versions: Export accept4 with version GLIBC_2.10.
729         * socket/paccept.c: Removed.
730         * sysdeps/unix/sysv/linux/paccept.c: Removed.
731         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
732         * Versions.def: Define GLIBC_2.10 for libc.
733         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
734
735         * nscd/connections.c: Use accept4.
736
737         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
738
739 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
740
741         * resolv/res_send.c (send_dg): Create sockets with non-blocking
742         flag already set.
743
744         * stdlib/setenv.c (unsetenv): Don't search environment if it does
745         not exist.
746         * stdlib/Makefile (tests): Add tst-unsetenv1.
747         * stdlib/tst-unsetenv1.c: New file.
748
749 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
750
751         * login/utmp_file.c (file_writable): New variable.
752         (setutent_file): Don't try to open file for writing.
753         (pututline_file): Before writing, make descriptor writable if
754         necessary.
755
756 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
757
758         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
759         to IPv4 or IPv6 if an interface has been found.
760
761 2008-11-26  Roland McGrath  <roland@redhat.com>
762
763         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
764         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
765
766         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
767         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
768         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
769
770         * elf/elf.h (NT_386_IOPERM): New macro.
771         (NT_PPC_VSX): New macro.
772
773 2008-11-25  Roland McGrath  <roland@redhat.com>
774
775         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
776         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
777         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
778         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
779         Subdirectories moved to ports repository.
780         * configure.in (base_machine): Remove alpha case.
781
782 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
783
784         * sysdeps/mach/strerror_l.c: New file.
785
786 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
787
788         [BZ #6411]
789         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
790         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
791         magic numbers.
792         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
793         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
794         (relax_fenv_state): Same as above.
795         (FPSCR_29): Reserve bit in ISA 2.05.
796         (FPSCR_NI): Provide define for compat.
797         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
798         magic numbers.
799         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
800         magic numbers.
801         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
802         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
803         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
804         access to hwcap to account for hwcap size increase to uint64_t.
805         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
806         Likewise.
807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
808         (*setcontext): Likewise.
809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
810         New file.
811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
812         New file.
813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
814         (*setcontext): dynamically select mtfsf insn based on
815         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
816         increase to uint64_t.
817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
818         (*swapcontext): dynamically select mtfsf insn based on
819         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
820         increase to uint64_t.
821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
822         New file.
823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
824         New file.
825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
826         (*setcontext): dynamically select mtfsf insn based on
827         PPC_FEATURE_HAS_DFP.
828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
829         (*swapcontext): dynamically select mtfsf insn based on
830         PPC_FEATURE_HAS_DFP.
831
832 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
833
834         * version.h: Bump for 2.9 release.
835         * include/features.h (__GLIBC_MINOR__): Bump to 9.
836
837         [BZ #7029]
838         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
839         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
840         all the rounding.
841
842 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
843
844         [BZ #7009]
845         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
846         unknown request types for now.
847
848 2008-11-11  Roland McGrath  <roland@redhat.com>
849
850         * sysdeps/x86_64/configure: New file.
851
852         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
853         * configure: Regenerated.
854
855 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
856
857         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
858         correct instruction to remove the stack frame.
859
860 2008-11-03  Michael Matz  <matz@suse.de>
861
862         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
863         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
864
865 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
866
867         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
868         Remove.
869
870         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
871         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
872         of the thread variable instead of void *.
873         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
874         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
875         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
876         __libc_tsd_define arguments.
877         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
878         __libc_tsd_address arguments.  Remove union hack.
879         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
880         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
881         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
882         Adjust __libc_tsd_{set,get} arguments.
883         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
884         __libc_tsd_define arguments.
885         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
886         arguments.
887         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
888         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
889         (LOCALE): Adjust __libc_tsd_define arguments.
890         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
891         arguments.
892         (LOCALE): Adjust __libc_tsd_define arguments.
893         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
894         arguments.
895         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
896         arguments.
897
898 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
899
900         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
901         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
902
903 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
904
905         [BZ #6966]
906         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
907
908 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
909             Ulrich Drepper  <drepper@redhat.com>
910
911         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
912         definition for GCC 3.1 and later.
913
914 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
915
916         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
917         refetch dtv, as it might have changed.
918         * elf/Makefile: Add rules to build and run tst-tls18.
919         * elf/tst-tls18.c: New test.
920         * elf/tst-tlsmod18a.c: New file.
921
922 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
923
924         [BZ #6875]
925         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
926
927 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
928
929         [BZ #6867]
930         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
931
932         [BZ #6919]
933         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
934         Fix length of copy operation.
935
936 2008-10-02  Pierre Habouzit <madcoder@debian.org>
937
938         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
939         and fix its calling convention.
940
941 2008-10-07  Andreas Schwab  <schwab@suse.de>
942
943         [BZ #6942]
944         * resolv/res_send.c (send_vc): Fix last change.
945         (send_dg): Align here as well.
946
947 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
948
949         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
950         return value in case rlimit is RLIM_INFINITY.
951
952         [BZ #6947]
953         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
954         for UL_SETFSIZE.
955         * resource/Makefile (tests): Add bug-ulimit1.
956         * resource/bug-ulimit1.c: New file.
957
958         [BZ #6974]
959         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
960         without dot.  Properly terminate the string with a null byte.
961         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
962
963         [BZ #6980]
964         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
965         negative sizees.
966         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
967         negative __size.
968
969         [BZ #6995]
970         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
971
972 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
973
974         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
975         abort if there is no initgroups_dyn function.
976
977         * resolv/res_send.c (send_dg): On timeout, only return nonzero
978         result if any of the queries really provided an answer.
979
980 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
981
982         * po/lt.po: Update from translation team.
983
984 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
985
986         * po/id.po: Update from translation team.
987
988 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
989
990         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
991         Fix tests for existence of second reply.
992
993 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
994
995         * po/id.po: New file.
996         Contributed by the Indonesian translation team.
997
998 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
999
1000         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1001         initialization.
1002
1003 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1004
1005         * elf/Makefile: Add rules to build and run tst-tls17.
1006         * elf/tst-tls17.c: New test.
1007         * elf/tst-tlsmod17a.c: New file.
1008         * elf/tst-tlsmod17b.c: Likewise.
1009
1010 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1011
1012         * stdlib/divmod_1.c: Use correct type for dummy variable.
1013         * stdlib/mod_1.c: Likewise.
1014
1015 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1016
1017         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1018
1019 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1020
1021         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1022         __nonnull order for C++.
1023         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1024         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1025
1026 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1027
1028         * stdlib/longlong.h: Update from GCC.
1029
1030 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1031             David S. Miller  <davem@davemloft.net>
1032
1033         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1034         make sure any registers used with 64-bit 'branch-on-register'
1035         instructions have their top 32-bits clear.
1036         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1037         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1038
1039 2008-09-18  Andreas Schwab  <schwab@suse.de>
1040
1041         [BZ #6942]
1042         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1043         Properly handle partial reads.
1044
1045 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1046
1047         * elf/elf.h (STO_MIPS_PLT): New.
1048         (R_MIPS_COPY): New.
1049         (R_MIPS_JUMP_SLOT): New.
1050         (R_MIPS_NUM): Redefine to 128.
1051         (DT_MIPS_PLTGOT): New.
1052         (DT_MIPS_RWPLT): New.
1053         (DT_MIPS_NUM): Redefine to 0x35.
1054
1055 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1056
1057         * timezone/africa: Update from tzdata2008f.
1058         * timezone/asia: Likewise.
1059         * timezone/australasia: Likewise.
1060         * timezone/europe: Likewise.
1061         * timezone/leapseconds: Likewise.
1062         * timezone/northamerica: Likewise.
1063         * timezone/southamerica: Likewise.
1064         * timezone/zone.tab: Likewise.
1065
1066 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1067
1068         * nscd/connections.c: Disable use of paccept for now.
1069
1070 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1071
1072         * socket/Versions: Remove paccept export for GLIBC_2.9.
1073         * socket/Makefile (routines): Remove paccept.
1074         * socket/sys/socket.h: Remove paccept declaration.
1075
1076         * po/sv.po: Update from translation team.
1077
1078 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1079
1080         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1081         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1082
1083 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1084
1085         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1086         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1087
1088 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1089
1090         * sunrpc/rpc/svc.h: Declare svcfd_create.
1091         Patch by Michael Solberg <msolberg@redhat.com>.
1092
1093 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1094             Ulrich Drepper  <drepper@redhat.com>
1095
1096         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1097         _int_valloc fails.
1098         (public_pVALLOc): Likewise.
1099
1100 2008-09-02  Andreas Jaeger  <aj@suse.de>
1101
1102         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1103         commit.
1104
1105 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1106
1107         [BZ #6860]
1108         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1109
1110 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1111
1112         * Makefile (check-data): Check data directory in add-ons.
1113         * elf/Makefile (check-data): Likewise.
1114
1115 2008-08-18  Roland McGrath  <roland@redhat.com>
1116
1117         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1118         * configure: Regenerated.
1119         * config.make.in (cflags-cpu): New substituted variable.
1120         (with-cpu): Variable removed.
1121         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1122
1123 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1124
1125         [BZ #6845]
1126         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1127         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1128         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1129         redundant.  Functions which call floating point assembler operations
1130         should go into a sysdeps powerpc/fpu directory.
1131
1132 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1133
1134         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1135         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1136
1137 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1138
1139         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1140
1141         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1142         change related to AT_EXECFN.  We cannot use that string.
1143         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1144         _dl_execfn member.
1145         * elf/dl-support.c: Remove _dl_execfn variable.
1146         (_dl_aux_init): Remove handling of AT_EXECFN.
1147         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1148         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1149
1150 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1151
1152         [BZ #6544]
1153         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1154         byte gets added to writes and seeks from the end use the length of
1155         the buffer and not the currently terminating NUL byte.
1156
1157         [BZ #6634]
1158         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1159         Set to true if locking failed.
1160         (getutid_r_file): Adjust caller.
1161         (pututline_file): Likewise.  Return NULL in this case.
1162         Patch mostly by halesh.s@gmail.com.
1163
1164 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1165
1166         [BZ #6589]
1167         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1168         Define.
1169         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1170
1171 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1172
1173         [BZ #6839]
1174         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1175         macro since it is now available in elf/dynamic-link.h.
1176
1177 2008-08-12  Roland McGrath  <roland@frob.com>
1178
1179         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1180         in case used outside of libc.
1181         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1182
1183 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1184
1185         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1186         directly instead of going through dn_comp.
1187
1188 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1189
1190         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1191         Fix asm constraints.
1192
1193 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1194
1195         [BZ #6790]
1196         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1197         (IPV6_PMTUDISC_PROBE): Likewise.
1198
1199 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1200
1201         [BZ #6791]
1202         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1203
1204 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1205             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1206
1207         [BZ #6817]
1208         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1209         Added the members 'vsx' and 'arch_2_06'.
1210         (_dl_powerpc_platforms): Add the member 'power7'.
1211         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1212         to reflect the changes required by VSX and ISA 2.06.
1213         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1214         'power7'.
1215         Defined PPC_PLATFORM_POWER7.
1216         (_dl_string_platform): Add support for POWER7.
1217         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1218         capability and ISA 2.06.
1219
1220 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1221
1222         [BZ #6824]
1223         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1224         macro to detect use of 128 bit long double.
1225         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1226
1227 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1228
1229         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1230
1231         [BZ #5794]
1232         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1233         parameters.
1234         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1235         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1236
1237 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1238
1239         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1240         guaranteed to be large enough to read inotify event.  Ignore
1241         EAGAIN error.  Better error message.  Add branch predicition.
1242         (main_loop_epoll): Likewise.
1243
1244 2008-08-02  Roland McGrath  <roland@frob.com>
1245
1246         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1247         Add memory clobbers.
1248
1249 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1250
1251         * manual/arith.texi: Avoid @strong{Note:}.
1252         * manual/creature.texi: Likewise.
1253         * manual/filesys.texi: Likewise.
1254         * manual/math.texi: Likewise.
1255         * manual/memory.texi: Likewise.
1256         * manual/resource.texi: Likewise.
1257         * manual/syslog.texi: Likewise.
1258         * manual/time.texi: Likewise.
1259
1260         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1261         to prevent warning.
1262
1263 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1264
1265         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1266         new epoll_create1 interface.
1267         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1268         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1269         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1270
1271         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1272         (NS_GET32): Likewise.
1273
1274         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1275         syscalls, too.
1276
1277         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1278         use the AT_EXECFN value if it is no absolute path.
1279         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1280         __ASSUME_AT_EXECFN.
1281
1282         * Versions.def: Add GLIBC_2.9 to libresolv.
1283         * include/resolv.h: Remove hidden proto declarations for __ns_*
1284         functions.  Add them for __dn_count_labels and __p_secstodate.
1285         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1286         Define ns_msg_getflags macro here.
1287         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1288         and __p_secstodate.
1289         * resolv/Versions: Export functions from <arpa/nameser.h> from
1290         libresolv in version GLIBC_2.9.
1291         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1292         hidden definitions.
1293         * resolv/ns_netint.c: Likewise.
1294         * resolv/ns_parse.c: Likewise.
1295         * resolv/ns_print.c: Likewise.
1296         * resolv/ns_samedomain.c: Likewise.
1297         * resolv/ns_ttl.c: Likewise.
1298         * resolv/arpa/nameser_compat.h: Likewise.
1299         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1300         function calls.
1301         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1302         instead of ns_get16.
1303         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1304         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1305         (gaih_getanswer_slice): Likewise.
1306         * resolv/Makefile (libresolv-routines): Add ns_date.
1307         * resolv/ns_date.c: New file.
1308
1309         * elf/Makefile (check-localplt.out): Also check libresolv and
1310         libcrypt.
1311
1312 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1313
1314         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1315         __ASSUME_O_CLOEXEC.
1316
1317 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1318
1319         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1320         buffer passed to NSS functions.
1321
1322         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1323
1324         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1325         Define.
1326
1327         * misc/syslog.c (openlog_internal): Fix compile problem.
1328
1329 2008-07-28  Roland McGrath  <roland@redhat.com>
1330
1331         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1332
1333 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1334
1335         * io/ftw.c (add_object): Remove inline to avoid warning.
1336
1337         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1338
1339         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1340         Use it instead of locally defined resplen2 variable.
1341         (res_nsend): Adjust for __libc_res_nsend interface change.
1342         (send_vc): Initialize *resplen2 if necessary.  Read length of
1343         package into an appropriately aligned variable.  Store converted length
1344         in new variable and use it appropriately.
1345         Add branch prediction help.
1346         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1347         and pass it on to __libc_res_nsend.  Adjust all callers.
1348         (__libc_res_nsearch): Likewise.
1349         (__libc_res_nqeurydomain): Likewise.
1350         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1351         change.
1352         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1353         Define resplen2 variable and pass it to __libc_res_nsearch and then
1354         to gaih_getanswer.
1355         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1356         Add branch prediction.
1357         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1358         (gaih_getanswer): Don't decode second slice if first one failed due
1359         to a too small buffer.  Don't let not found status of second
1360         decoder shadow results of the first.
1361         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1362         and __libc_res_nquery interface changes
1363         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1364         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1365         __libc_res_nsearch, and __libc_res_nsend.
1366         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1367         change.
1368         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1369         __libc_res_nsearch interface changes.
1370
1371 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1372
1373         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1374
1375         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1376         file descriptors with close-on-exec set.
1377         (exec_comm_child): Fix the case where the write end of the pipe is
1378         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1379
1380         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1381         * io/pipe2.c: Likewise.
1382         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1383         instead of __ASSUME_PACCEPT.
1384         * include/unistd.h: Declare __have_pipe2.
1385         * libio/iopopen.c: Implement "e" flag.
1386         * libio/Makefile (tests): Add tst-popen1.
1387         * libio/tst-popen1.c: New file.
1388
1389         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1390         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1391
1392 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1393
1394         [BZ #6771]
1395         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1396         success call of _IO_SEEKOFF or calls which failed because the
1397         descriptor is for a pipe.
1398
1399         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1400         magic number.
1401
1402         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1403
1404         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1405         F_SETFD use if we know fopen set the flag.
1406
1407         * login/utmp_file.c (setutent_file): Minor optimization in case
1408         O_CLOEXEC is available.
1409
1410 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1411
1412         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1413         * elf/Makefile: Use pie-ccflag variable.
1414         * nscd/Makefile: Likewise.
1415         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1416
1417 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1418
1419         [BZ #6724]
1420         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1421         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1422         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1423         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1424         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1425         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1426         utmp32, utmpx32 and login32.
1427         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1428         versions of struct utmp functions to libc and libutil.
1429         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1430         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1431         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1432         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1433         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1434         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1435         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1436         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1437         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1438         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1439         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1440         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1441         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1442         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1443         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1444         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1445         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1446         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1447         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1448         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1449         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1450         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1451
1452 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1453
1454         * scripts/gen-as-const.awk: Generate more widely usable code by
1455         using 64-bit arithmetic.
1456
1457         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1458         the same treatment as narrow output code in last patch.
1459
1460         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1461
1462         [BZ #6763]
1463         * elf/dl-load.c (local_strdup): Remove inline.
1464         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1465         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1466         part of the object.
1467
1468         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1469
1470 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1471
1472         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1473         the new syscalls, too.
1474
1475         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1476         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1477
1478         [BZ #6698]
1479         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1480         parameter for end of buffer.  If temporary copy is too large use
1481         malloc.
1482         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1483         interface change.
1484         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1485         string rewrite when allocating buffer.
1486
1487         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1488         syscalls, too.
1489
1490         * nscd/connections.c (nscd_init): Clean up fcntl call.
1491
1492         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1493         SOCK_NONBLOCK if possible.
1494
1495         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1496         SOCK_CLOEXEC if available.
1497
1498         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1499         __libc_clntudp_bufcreate_internal.
1500         * include/sys/socket.h: Declare __have_sock_cloexec.
1501         * socket/Makefile (aux): Add have_sock_cloexec.
1502         * socket/have_sock_cloexec.c: New file.
1503         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1504         __libc_clntudp_bufcreate.
1505         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1506         which takes an additional parameter.  Create socket with non-blocking
1507         mode and close-on-exec flag set, if wanted.
1508         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1509         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1510         instead of clntudp_create.  The socket has already the close-on-exec
1511         flag set if SOCK_CLOEXEC is defined.
1512
1513 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1514
1515         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1516         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1517         appropriate.
1518         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1519         non-blocking mode by using socket, paccept, and inotify_init1.
1520
1521         * Versions.def (glibc): Add GLIBC_2.9.
1522         * io/Makefile (routines): Add dup3 and pipe2.
1523         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1524         * io/dup3.c: New file.
1525         * io/pipe2.c: New file.
1526         * posix/unistd.h: Declare dup3 and pipe2.
1527         * socket/Makefile (routines): Add paccept.
1528         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1529         * socket/paccept.c: New file.
1530         * socket/sys/socket.h: Declare paccept.
1531         * sysdeps/unix/syscalls.list: Add entry for dup3.
1532         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1533         epoll_create2 and inotify_init1.
1534         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1535         * sysdeps/unix/sysv/linux/paccept.c: New file.
1536         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1537         possible.
1538         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1539         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1540         inotify_init1, and pipe2 entries.
1541         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1542         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1543         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1544         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1545         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1546         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1547         SOCK_NONBLOCK.
1548         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1549         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1550         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1551         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1552         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1553         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1554         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1555         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1556         EPOLL_NONBLOCK.  Declare epoll_create2.
1557         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1558         EFD_NONBLOCK.
1559         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1560         IN_NONBLOCK.  Declare inotify_init1.
1561         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1562         SFD_NONBLOCK.
1563         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1564         TFD_NONBLOCK.
1565
1566         * elf/elf.h: Define AT_EXECFN.
1567         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1568         LD_ORIGIN_PATH.
1569         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1570         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1571         if __ASSUME_AT_EXECFN is defined.
1572         (_dl_aux_init): Handle AT_EXECFN.
1573         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1574         for 2.6.27 and up.
1575         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1576         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1577         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1578         _dl_execfn if available and avoid compatibility code if
1579         __ASSUME_AT_EXECFN is defined.
1580
1581         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1582         _dl_discover_osversion only for older kernels.
1583
1584 2008-07-22  Roland McGrath  <roland@frob.com>
1585
1586         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1587
1588 2008-07-21  Roland McGrath  <roland@frob.com>
1589
1590         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1591         returned too much data out of line.
1592
1593 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1594
1595         * locale/setlocale.c (setname): Remove inline to avoid compiler
1596         warning.
1597
1598         [BZ #6712]
1599         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1600
1601 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1602
1603         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1604         doesn't manage to write anything, fail.
1605
1606         * malloc/hooks.c (__malloc_check_init): Remove printf.
1607
1608 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1609
1610         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1611
1612 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1613
1614         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1615         from inotify.
1616         (main_loop_epoll): Likewise.
1617
1618 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1619
1620         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1621
1622         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1623         if DEBUG is defined.
1624
1625         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1626         query.  Adjust buffer size computation for padding.
1627
1628 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1629
1630         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1631         * stdio-common/tst-setvbuf1.c: New file.
1632         * stdio-common/tst-setvbuf1.expect: New file.
1633
1634         [BZ #6719]
1635         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1636         when selecting fully-buffered stream.
1637         Patch by Wang Xin <wxinee@gmail.com>.
1638
1639 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1640
1641         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1642         (__open_2): New function.
1643         (__open64_2): New alias to __open_2.
1644         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1645         (__openat_2): New function.
1646         (__openat64_2): New alias to __openat_2.
1647
1648 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1649
1650         [BZ #6723]
1651         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1652
1653 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1654
1655         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1656         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1657         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1658         __hurd_dfail.
1659         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1660         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1661         * sysdeps/mach/hurd/send.c (__send): Likewise.
1662         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1663         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1664
1665 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1666
1667         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1668         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1669         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1670         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1671         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1672         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1673
1674 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1675
1676         [BZ #6657]
1677         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1678         of %EY.
1679         Patch by Petr Baudis.
1680
1681 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1682
1683         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1684         Patch by Peter Jones <pjones@redhat.com>.
1685
1686 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1687
1688         [BZ #6654]
1689         * stdlib/canonicalize.c (__realpath): readlink can write too much
1690         into the buffer on platforms without PATH_MAX.
1691
1692 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1693
1694         [BZ #6653]
1695         * posix/tst-regex.c (main): Rename to...
1696         (do_test): ... this. Remove cmdline option processing.
1697         (TIMEOUT): Define.
1698         (TEST_FUNCTION): Define.
1699         (CMDLINE_OPTIONS): Define.
1700
1701 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1702
1703         [BZ #5210]
1704         * configure.in: Add -Werror to -fstack-protector test to catch
1705         unsupported architectures.
1706         Patch by Gilles Esponasse <g.esp@free.fr>.
1707
1708 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1709
1710         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1711         getcontext returns ENOSYS.
1712
1713 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1714
1715         * nscd/connections.c (main_loop_poll): Fix test for read error.
1716         (main_loop_epoll): Likewise.
1717
1718 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1719
1720         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1721         better place so it is not called when nscd is used.
1722
1723         * nscd/connections.c: Also recognize and handle changes to the
1724         resolver configuration file.
1725
1726 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1727
1728         * time/strftime.c: Pass reference to tzset_called around to handle
1729         recursive calls.
1730
1731         [BZ #6612]
1732         * time/strftime.c (__strftime_internal): Call tzset() only
1733         when printing timezone-dependent values.
1734         Based on a patch by Petr Baudis <pasky@suse.cz>.
1735
1736         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1737         unconditionally use second gaih_getanswer_slice result.
1738
1739         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1740         (getaddrinfo): RES must always be non-NULL.
1741
1742 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1743
1744         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1745         cr[34] registers.
1746         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1747         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1748         Likewise.
1749         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1750         register.
1751
1752 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1753
1754         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1755         fields.
1756         * nscd/connections.c (inotify_fd): New variable.
1757         (nscd_init): Try to open an inotify descriptor.
1758         If successful, watch files for databases using inotify instead of
1759         having prune threads stat the files.
1760         (nscd_run_prune): Recognize clear_cache flag being set and call
1761         prune_cache appropriately.
1762         (main_loop_poll): Add inotify descriptor to wait set and handle the
1763         reported changes.
1764         (main_loop_epoll): Likewise.
1765         * nscd/cache.c (prune_cache): Don't stat files for databases if
1766         inotify is used.
1767         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1768         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1769
1770         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1771         fixed-size portion of the record.
1772         * nscd/servicescache.c (cache_addserv): Likewise.
1773         * nscd/pwdcache.c (cache_addpw): Likewise.
1774         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1775
1776 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1777
1778         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1779         out we don't use uninitialized memory.
1780
1781         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1782         the client.
1783
1784 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1785
1786         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1787         ignore T_DNAME messages.
1788         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1789
1790 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1791
1792         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1793         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1794
1795 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1796
1797         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1798         instead of portstr to nscd_getserv_r.  Patch by
1799         Roman Kagan <rkagan@mail.ru>.
1800
1801 2008-05-26  Jim Meyering  <meyering@redhat.com>
1802
1803         Remove more useless "if" tests before "free".
1804         * include/inline-hashtab.h (htab_delete): Likewise.
1805         * libio/freopen.c (freopen): Likewise.
1806         * libio/freopen64.c (freopen64): Likewise.
1807         * locale/programs/ld-collate.c (collate_read): Likewise.
1808         * misc/fstab.c (libc_freeres_fn): Likewise.
1809         * posix/glob.c (globfree): Likewise.
1810
1811 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1812
1813         * string/Makefile (strop-tests): Add memmem.
1814         * string/test-memmem.c: New file.
1815         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1816         (test_init): Size buf1 according to BUF1PAGES.
1817
1818 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1819
1820         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1821         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1822         (CFLAGS-scanf17.c): New.
1823         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1824         * stdio-common/scanf15.c (main): Likewise.
1825         * stdio-common/scanf16.c: New file.
1826         * stdio-common/scanf17.c: New file.
1827
1828 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1829
1830         * resolv/res_send.c (send_dg): If we already have one of two
1831         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1832         use the one answer insted of failing.
1833
1834 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1835
1836         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1837         being executed on PowerPC as the expected result exceeds IBM
1838         long double 128 __LDBL_MAX__.
1839
1840 2008-05-21  Roland McGrath  <roland@redhat.com>
1841
1842         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1843
1844         * Makefile (check-data): Use $(abi-name) before other guesses.
1845         Look in $(add-ons) dirs before scripts/data/.
1846         * elf/Makefile (check-data): Likewise.
1847
1848         * scripts/soversions.awk: Grok ABI line.
1849         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1850         Emit definition for abi-name variable.
1851
1852 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1853
1854         * string/endian.h: Define new fixed-size hto* and *toh macros only
1855         if [__USE_BSD].
1856
1857         * iconvdata/Depend: Add localedata.
1858
1859 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1860
1861         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1862
1863 2008-05-08  David S. Miller  <davem@davemloft.net>
1864
1865         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1866         HIDDEN_JUMPTARGET.
1867         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1868         (__SYSCALL_CLOBBERS): Remove %g* registers.
1869         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1870         (__SYSCALL_CLOBBERS): Likewise.
1871         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1872         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1873
1874 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1875
1876         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1877         (CALL_ERRNO_LOCATION): Define.
1878         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1879         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1880         (CALL_ERRNO_LOCATION): Define.
1881         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1882         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1883         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1884
1885 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1886
1887         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1888         variable.
1889
1890 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1891
1892         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1893         (FIRST_FRAME_POINTER): Define.
1894
1895 2008-05-09  David S. Miller  <davem@davemloft.net>
1896
1897         * sysdeps/sparc/sparc64/backtrace.c: New file.
1898
1899 2008-05-14  David S. Miller  <davem@davemloft.net>
1900
1901         * sysdeps/sparc/machine-gmon.h: New file.
1902         * sysdeps/sparc/sparc-mcount.S: Likewise.
1903         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1904         sysdep_routines in gmon directory.
1905
1906 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1907
1908         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1909
1910 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1911
1912         * resolv/res_query.c (__libc_res_nquery): In case one of two
1913         answer was too short don't try to read that answer's header.
1914
1915         * resolv/res_send.c (send_dg): In case of timeout and there are
1916         two queries and one has been answered, return value indicating
1917         success.
1918
1919 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1920
1921         * nscd/cache.c (cache_add): Take additional parameter specifying
1922         whether this is in response of a cache refill.  Check alignment
1923         of package data.  Revamp waking of pruning thread.
1924         (prune_cache): Small optimization.
1925         * nscd/nscd.h: Adjust cache_add prototypes.
1926         * nscd/aicache.c: Adjust cache_add calls.
1927         * nscd/grpcache.c: Likewise.
1928         * nscd/hstcache.c: Likewise.
1929         * nscd/initgrcache.c: Likewise.
1930         * nscd/pwdcache.c: Likewise.
1931         * nscd/servicescache.c: Likewise.
1932         * nscd/connections.c (restart): Really disable cache use before
1933         exec attempt.  If it fails, reenable cache.
1934         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1935         time to max to be able to notice concurrent cache additions.  Unlock
1936         prune_lock while performing gc.  Afterwards compute wakeup time with
1937         current wakeup_time value in mind.
1938
1939 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1940
1941         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1942
1943         * nscd/mem.c (gc): Correctly determine highest used array element
1944         in mark.
1945
1946         * nscd/mem.c (markrange): Add assert to check entries are all
1947         aligned.  Small cleanup in bitmap use.
1948
1949         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1950         blockoff of type nscd_ssize_t.
1951         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1952         (mempoll_alloc): Record block offset and not address.
1953
1954         * nscd/mem.c (gc): Fix test for stack overuse.
1955
1956         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1957         more asserts.
1958
1959         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1960         entry is available, believe it.
1961
1962         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1963         no answers return NSS_STATUS_NOTFOUND.
1964         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1965         buffer does not have any content.
1966
1967 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1968
1969         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1970
1971         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1972         lookup, don't assign canon unconditionally.
1973
1974 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1975
1976         * string/Makefile (distribute): Add str-two-way.h.
1977
1978 2008-03-29  Eric Blake  <ebb9@byu.net>
1979
1980         Rewrite string searches to O(n) rather than O(n^2).
1981         * string/str-two-way.h: New file.  For linear fixed-allocation
1982         string searching.
1983         * string/memmem.c: New implementation.
1984         * string/strstr.c: New implementation.
1985         * string/strcasestr.c: New implementation.
1986
1987 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1988
1989         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1990         opr.ctx_type.
1991         (calc_first): Initialize constraint field.
1992         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1993         Use search_duplicated_node to avoid loops.  Fix grammar.
1994         (duplicate_node): Merge constraint field for all node types.
1995         (calc_eclosure_iter): Look at constraint field for all node types.
1996         * posix/regex_internal.c (create_cd_newstate): Don't look at
1997         create_cd_newstate.
1998
1999 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2000
2001         [BZ #6428]
2002         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2003
2004         [BZ #6442]
2005         * string/endian.h: Add macros for fixed-size endian conversion.
2006         * bits/byteswap.h: Allow inclusion from <endian.h>.
2007         * sysdeps/i386/bits/byteswap.h: Likewise.
2008         * sysdeps/ia64/bits/byteswap.h: Likewise.
2009         * sysdeps/s390/bits/byteswap.h: Likewise.
2010         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2011         * string/Makefile (tests): Add tst-endian.
2012         * string/tst-endian.c: New file.
2013
2014         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2015         Patch by Reuben Thomas.
2016
2017 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2018
2019         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2020
2021 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2022
2023         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2024
2025         [BZ #6461]
2026         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2027         Add missing braces.
2028         (BODY for __gconv_transform_internal_ascii): Likewise.
2029
2030         [BZ #6472]
2031         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2032         to be treated like link-local addresses.
2033         (match_prefix): Don't treat IPv4 loopback address special when
2034         converting to v4 mapped addressed.
2035
2036         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2037         if necessary.
2038         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2039         * posix/tst-rfc3484-2.c: Likewise.
2040         * posix/tst-rfc3484-3.c: Likewise.
2041
2042         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2043         and SCTP.
2044
2045         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2046
2047         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2048
2049         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2050
2051 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2052
2053         * po/lt.po: New file.  From Lituanian translation team.
2054
2055 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2056
2057         Introduce TLS descriptors for i386 and x86_64.
2058         * include/inline-hashtab.h: New file, copied from 2005's
2059         libiberty, with fix for memory leak imported afterwards by
2060         Glauber de Oliveira Costa.
2061         * elf/tlsdeschtab.h: New file.
2062         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2063         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2064         (CHECK_STATIC_TLS): Move to...
2065         * elf/dynamic-link.h: ... this file.
2066         (TRY_STATIC_TLS): New macro.
2067         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2068         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2069         R_386_TLS_DESC): Define.
2070         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2071         binutils.
2072         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2073         R_X86_64_TLSDESC): Define.
2074         (R_386_NUM, R_X86_64_NUM): Adjust.
2075         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2076         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2077         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2078         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2079         release tlsdesc_table.
2080         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2081         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2082         (elf_machine_rel): Handle R_386_TLS_DESC.
2083         (elf_machine_rela): Likewise.
2084         (elf_machine_lazy_rel): Likewise.
2085         (elf_machine_lazy_rela): Likewise.
2086         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2087         * sysdeps/i386/dl-tlsdesc.S: New file.
2088         * sysdeps/i386/dl-tlsdesc.h: New file.
2089         * sysdeps/i386/tlsdesc.c: New file.
2090         * sysdeps/i386/tlsdesc.sym: New file.
2091         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2092         tlsdesc_table.
2093         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2094         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2095         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2096         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2097         release tlsdesc_table.
2098         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2099         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2100         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2101         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2102         (elf_machine_rela): Likewise.
2103         (elf_machine_lazy_rel): Likewise.
2104         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2105         (__tls_get_addr): Do not declare for non-shared compiles.
2106         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2107         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2108         * sysdeps/x86_64/tlsdesc.c: New file.
2109         * sysdeps/x86_64/tlsdesc.sym: New file.
2110         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2111         tlsdesc_table for both 32- and 64-bit structs.
2112
2113 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2114
2115         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2116         its own function.  This reduces the frame setup costs and more.
2117
2118 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2119
2120         [BZ #3406]
2121         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2122         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2123
2124 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2125
2126         * io/openat.c (__openat_2): Also pass fd to __openat.
2127         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2128         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2129
2130         * string/tester.c (test_memcmp): Add a few more tests.
2131         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2132
2133 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2134
2135         * nscd/cache.c (cache_add): Before returning with failure and this
2136         is the first use of the record, mark it as unusable.
2137         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2138         reporting a failure.
2139         * nscd/grpcache.c: Likewise
2140         * nscd/hstcache.c: Likewise.
2141         * nscd/initgrcache.c: Likewise.
2142         * nscd/pwdcache.c: Likewise.
2143         * nscd/servicescache.c: Likewise.
2144
2145 2008-05-10  Roland McGrath  <roland@redhat.com>
2146
2147         [BZ #6505]
2148         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2149
2150 2008-05-08  David S. Miller  <davem@davemloft.net>
2151
2152         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2153
2154         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2155         (__ieee754_y0l): Likewise.
2156         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2157         (__ieee754_y1l): Likewise.
2158         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2159         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2160         frexpl and ldexpl.  math_private.h provides them and the latter
2161         is not even used.
2162         (__log1pl): Use __frexpl.
2163
2164 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2165
2166         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2167         prototypes.
2168         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2169         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2170         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2171         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2172         af==AF_UNSPEC.
2173         (_nss_nis_gethostbyname4_r): New function.
2174         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2175         Change to also handle af==AF_UNSPEC.
2176         (get_tablename): New function.  Use it to avoid duplication.
2177         (_nss_nisplus_gethostbyname4_r): New function.
2178         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2179         available.
2180         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2181         * nss/nss.h: Define struct gaih_addrtuple.
2182         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2183         af==AF_UNSPEC.
2184         (_nss_files_gethostbyname4_r): New function.
2185         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2186         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2187         calls.
2188         * resolv/res_query.c (__libc_res_nquery): Take two additional
2189         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2190         look up IPv4 and IPv6.
2191         Change all callers.
2192         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2193         for an additional query and answer buffer.  Pass to send_vc and
2194         send_dg.
2195         (send_vc): Send possibly two requests and receive two answers.
2196         (send_dg): Likewise.
2197         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2198         __libc_res_nquery.
2199         (_nss_dns_gethostbyname4_r): New function.
2200         (gaih_getanswer_slice): Likewise.
2201         (gaih_getanswer): Likewise.
2202         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2203         __libc_res_nquery call.
2204         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2205         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2206         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2207         available.
2208
2209 2008-05-05  David S. Miller  <davem@davemloft.net>
2210
2211         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2212         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2213
2214 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2215
2216         Fix termios bit macros.
2217         Move *DLY definitions where they belong, in termios.h.
2218         Add *[0-3] definitions.
2219         Fixes confusion between VT and FF.
2220         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2221         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2222         are already defined to avoid collision with termios.h.
2223         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2224         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2225         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2226         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2227         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2228         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2229         VTDLY, VT0, VT1): New macros.
2230         [__USE_GNU] (OLCUC): Change value of macro.
2231         [__USE_XOPEN] (OFILL): New macro.
2232         [__USE_BSD] (CRTSCTS): Change value.
2233         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2234         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2235         (B7200, B14400, B28800, B76800): New macros.
2236
2237 2008-05-01  David S. Miller  <davem@davemloft.net>
2238
2239         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2240         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2241         (gen-as-const-headers): Add it.
2242         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2243         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2244         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2245         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2246
2247         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2248         six system call parameters.
2249         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2250
2251 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2252
2253         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2254         RUSAGE_LWP.
2255         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2256         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2257
2258 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2259
2260         * stdlib/tst-setcontext.c: Include unistd.h.
2261
2262 2008-04-25  David S. Miller  <davem@davemloft.net>
2263
2264         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2265         Pass "union semun" properly in to sys_ipc, it must be passed
2266         by value, not by reference.
2267
2268 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2269
2270         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2271         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2272         * nscd/connections.c (mem_in_flight): Likewise.
2273
2274         * nscd/nscd.h (dbs): Make hidden.
2275
2276         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2277         Avoid returning -1, return 0 instead.
2278
2279 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2280
2281         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2282
2283 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2284
2285         [BZ #5209]
2286         * sysdeps/unix/sysv/linux/times.c: New file.
2287
2288         [BZ #5381]
2289         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2290         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2291         prototype.
2292         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2293         appropriate mem_in_flight element.
2294         (gc): Take allocations which have not yet been committed to the
2295         database into account.
2296         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2297         Reset mem_in_flight before returning.
2298         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2299         cue it up in mem_in_flight_list.
2300         * nscd/aicache.c: Adjust mempool_alloc call.
2301         * nscd/grpcache.c: Likewise.
2302         * nscd/hstcache.c: Likewise.
2303         * nscd/initgrcache.c: Likewise.
2304         * nscd/pwdcache.c: Likewise.
2305         * nscd/servicescache.c: Likewise.
2306         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2307         of -fpie.
2308
2309         * nscd/connections.c (handle_request): Provide better error message
2310         in case SELinux forbids the service.
2311
2312         * version.h (VERSION): Bump to 2.8.90.
2313
2314 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2315
2316         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2317
2318 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2319
2320         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2321         Also use for 32-bit.
2322         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2323         __nextafter instead of nextafter to avoid local PLT.
2324         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2325         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2326
2327         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2328
2329         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2330         __fe_nomask_env.
2331         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2332         <fenv_libc.h> instead of <fenv.h>.
2333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2335
2336         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2337
2338         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2339         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2340         function from fegetexcept and make old name weak alias.
2341         * include/fenv.h: Declare __fegetexcept.
2342         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2343         fegetexcept.
2344         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2345         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2346         to fetestexcept.
2347         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2348         instead of frexpl to avoid local PLT.
2349         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2350         ilogbl to avoid local PLT.
2351         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2352         instead of ldexpl to avoid local PLT.
2353         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2354         __roundl not roundl to avoid local PLT.
2355         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2356         local PLTs.  Use __sincosl instead of separate sinl and cosl
2357         calls.
2358         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2359
2360         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2361         version for ppc64 to 2.4.21 since without it makecontext will fail.
2362
2363         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2364         to the ABI in use.
2365         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2366         .__tls_get_addr.
2367         [__powerpc64__] (TLS_GD): Likewise.
2368
2369 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2370
2371         [BZ #4997]
2372         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2373         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2374         mantissa.
2375         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2376         Likewise.  Also account for when x is an odd number between 2^52
2377         and 2^53-1.
2378         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2379         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2380         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2381         detect aforementioned erroneous conditions.
2382
2383 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2384
2385         * configure.in: Check for -fno-section-anchors in addition to
2386         -fno-toplevel-reorder.
2387
2388 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2389
2390         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2391
2392         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2393         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2394         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2395         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2396         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2397         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2398
2399 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2400
2401         [BZ #5443]
2402         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2403         * time/alt_digit.c: Likewise.
2404         * wcsmbs/wcsmbsload.c: Likewise.
2405
2406 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2407
2408         * version.h (VERSION): Bump to 2.8.
2409
2410         * timzeone/asia: Update from tzdata2008b.
2411         * timezone/backward: Likewise.
2412         * timezone/europe: Likewise.
2413         * timezone/northamerica: Likewise.
2414         * timezone/southamerica: Likewise.
2415         * timezone/iso3166.tab: Likewise.
2416         * timezone/leapseconds: Likewise.
2417         * timezone/zone.tab: Likewise.
2418         * timezone/private.h: Update from tzcode2008a.
2419         * timezone/zdump.c: Likewise.
2420         * timezone/zic.c: Likewise.
2421
2422 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2423
2424         [BZ #5741]
2425         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2426         Define additonal Data Cache Block instruction macros.
2427         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2428         Replace dcbst with dcbf and sync with sync/isync.
2429
2430 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2431
2432         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2433         Always set ELF_RTYPE_CLASS_PLT.
2434         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2435
2436 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2437
2438         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2439         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2440         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2441         For ISA 2.01 and later replace mftb with mfspr 268.
2442
2443 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2444
2445         [BZ #5768]
2446         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2447         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2448
2449 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2450
2451         [BZ #5768]
2452         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2453         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2454         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2455         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2456
2457 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2458
2459         * stdlib/tst-makecontext.c (othervar): New variable.
2460         (cf): Test sign extending the argument to long.
2461
2462 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2463
2464         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2465         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2466         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2467         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2468         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2469         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2470         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2471
2472 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2473
2474         * elf/Makefile (tests): Substitute tests-vis-yes here.
2475         (tests-vis-yes): Delete.
2476         (modules-name, modules-vis-yes): Similarly.
2477
2478 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2479
2480         [BZ #4407]
2481         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2482         Preserve sign in signgamp when x is zero.
2483
2484 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2485
2486         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2487         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2488         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2489         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2490         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2491         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2492
2493 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2494
2495         [BZ #4314]
2496         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2497         buffers.
2498
2499         [BZ #5209]
2500         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2501         a reserved error value.
2502
2503         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2504         value to check for correct sign extension.
2505
2506         [BZ #5436]
2507         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2508         Copy 64-bit parameter values even though this is not required in
2509         the standard.
2510
2511         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2512         PC save.
2513
2514 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2515
2516         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2517         PC save.
2518
2519 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2520
2521         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2522
2523 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2524
2525         [BZ #5998]
2526         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2527         in line-buffered stream failed.
2528         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2529
2530 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2531
2532         [BZ #6024]
2533         * scripts/abi-versions.awk: If the version specified by
2534         --enable-oldest-abi is older than the first version for this
2535         architecture, use the default version.
2536
2537         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2538         as well when ignoring the whole category.
2539
2540 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2541
2542         [BZ #6042]
2543         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2544         ETHERTYPE_* definitions.
2545         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2546
2547 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2548
2549         * stdlib/mbtowc.c (__no_r_state): Remove.
2550         (mbtowc): New static state variable.  Use it instead of
2551         __no_r_state.
2552         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2553         (__wctomb_state): New hidden variable.
2554         (wctomb): Use __wctomb_state instead of __no_r_state.
2555         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2556         (__wctomb_state): New extern decl.
2557         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2558
2559 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2560
2561         [BZ #5475]
2562         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2563
2564 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2565
2566         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2567
2568 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2569
2570         * po/nl.po: Update from translation team.
2571
2572 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2573
2574         [BZ #6007]
2575         * string/strfry.c: Handle empty strings again.
2576
2577 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2578
2579         [BZ #5443]
2580         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2581         before looking for translation.
2582         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2583         * locale/freelocale.c: Likewise.
2584         * locale/newlocale.c: Likewise.
2585         * locale/setlocale.c: Likewise.
2586         Based partially on a patch by ryo@np.css.fujitsu.com.
2587
2588 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2589
2590         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2591         acquiring wrlock.  Do conv_tab allocation while holding lock.
2592         * intl/Makefile: Add rules to build and run tst-gettext6.
2593         * intl/tst-gettext6.c: New test.
2594         * intl/tst-gettext6.sh: New file.
2595
2596 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2597
2598         * po/nl.po: Update from translation team.
2599
2600         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2601         provided through st_blksize, try the default size before giving up.
2602
2603 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2604
2605         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2606
2607         [BZ #5939]
2608         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2609
2610         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2611         error message.  POSIX today does not require the messages to be in
2612         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2613
2614         [BZ #5979]
2615         * sunrpc/auth_unix.c: Unify printed strings.
2616         * sunrpc/clnt_tcp.c: Likewise.
2617         * sunrpc/clnt_udp.c: Likewise.
2618         * sunrpc/clnt_unix.c: Likewise.
2619         * sunrpc/svc_tcp.c: Likewise.
2620         * sunrpc/svc_udp.c: Likewise.
2621         * sunrpc/svc_unix.c: Likewise.
2622         * sunrpc/xdr.c: Likewise.
2623         * sunrpc/xdr_array.c: Likewise.
2624         * sunrpc/xdr_rec.c: Likewise.
2625         * sunrpc/xdr_ref.c: Likewise.
2626         * locale/programs/ld-time.c (time_finish): Unify messages.
2627         * locale/programs/locfile.c (handle_copy): Fix typo.
2628         * nscd/nscd.c (options): Fix typo.
2629
2630         [BZ #5995]
2631         * stdlib/strtod_l.c: Use correct sign for result in one more
2632         underflow case.
2633         Patch by Eric Blake <ebb9@byu.net>.
2634
2635 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2636
2637         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2638         and creat system calls.
2639         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2640         call.
2641         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2642         system calls.
2643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2644         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2645         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2646
2647 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2648
2649         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2650         <linux/limits.h> has defined it.
2651         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2652         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2653         headers.
2654         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2655         it instead of ARG_MAX.
2656
2657 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2658
2659         * posix/gai.conf: Fix comment for scope nullbits.
2660         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2661         default to 128 bits for v4 mapped addresses.
2662
2663 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2664
2665         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2666         ptrace call to get the ieee_instruction_pointer from the kernel.
2667         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2668         ptrace call to set the ieee_instructtion_pointer.
2669         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2670         Add comment that ieee_instruction_pointer is always 0.
2671
2672 2008-03-09  Andreas Jaeger  <aj@suse.de>
2673
2674         [BZ #5857]
2675         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2676         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2677         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2678
2679         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2680         (rint_test): Likewise.
2681
2682 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2683
2684         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2685         call.
2686         (__nisfind_server): Similar for open readColdStartFile call.
2687         Patch partially by Jim Meyering.
2688         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2689         around internal_setent call.
2690
2691         * po/vi.po: New Vietnamese translation.
2692
2693         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2694         ADJ_OFFSET_SS_READ.
2695
2696         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2697         remove CLONE_STOPPED.
2698
2699 2008-02-10  Jim Meyering  <meyering@redhat.com>
2700
2701         Remove useless "if" before "free":
2702         * elf/ldconfig.c (parse_conf_include): Likewise.
2703         * gmon/gmon.c (weak_alias): Likewise.
2704         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2705         * inet/rcmd.c (__validuser2_sa): Likewise.
2706         * intl/bindtextdom.c (set_binding_values): Likewise.
2707         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2708         * libio/genops.c (save_for_backup): Likewise.
2709         * libio/wgenops.c (save_for_wbackup): Likewise.
2710         * locale/programs/ld-collate.c (collate_read): Likewise.
2711         * locale/programs/linereader.c (get_string): Likewise.
2712         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2713         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2714         * resolv/res_debug.c (do_section): Likewise.
2715         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2716         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2717         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2718         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2719         * time/tzset.c (tzset_internal): Likewise.
2720
2721 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2722
2723         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2724         of ASSEMBLER.
2725
2726 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2727
2728         [BZ #5903]
2729         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2730         not stream for output file.  Open output file here.
2731         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2732         and output file name.
2733         (process_fd): Likewise.
2734         (process_file): Likewise.
2735         (main): Adjust callers of changed functions.
2736         * iconv/iconv_prog.h: Adjust prototype.
2737
2738 2008-03-09  Andreas Jaeger  <aj@suse.de>
2739
2740         [BZ #5753]
2741         * sysdeps/ia64/ieee754.h: Use protected namespace
2742         __BIG_ENDIAN/__LITTLE_ENDIAN.
2743         * sysdeps/ieee754/ieee754.h: Likewise.
2744         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2745
2746 2008-03-08  Roland McGrath  <roland@frob.com>
2747
2748         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2749         ignore a signal that came from a machine exception, treat it as a
2750         fatal core-dump signal instead.
2751         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2752
2753         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2754         Clear DF bit in thread state's eflags.
2755         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2756
2757 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2758
2759         [BZ #5774]
2760         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2761         of NAN(...) sequence.
2762         * stdlib/Makefile (tests): Add tst-strtod6.
2763         * stdlib/tst-strtod6.c: New file.
2764
2765         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2766
2767         [BZ #5762]
2768         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2769         putting offending option character in quotes.  Clean up error
2770         messages.
2771         * po/be.po: Adjust msgstr in translation file.
2772         * po/bg.po: Likewise.
2773         * po/ca.po: Likewise.
2774         * po/cs.po: Likewise.
2775         * po/da.po: Likewise.
2776         * po/de.po: Likewise.
2777         * po/es.po: Likewise.
2778         * po/fr.po: Likewise.
2779         * po/hr.po: Likewise.
2780         * po/ko.po: Likewise.
2781         * po/nl.po: Likewise.
2782         * po/rw.po: Likewise.
2783         * po/sk.po: Likewise.
2784         * po/sv.po: Likewise.
2785         * po/tr.po: Likewise.
2786         * po/zh_CN.po: Likewise.
2787         * po/zh_TW.po: Likewise.
2788
2789         [BZ #5760]
2790         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2791         Patch by Roland Bless <roland@bless.de>.
2792
2793         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2794         .o file.
2795         * elf/Makefile (routines): Add dl-sysdep.
2796         (elide-routines.os): Likewise.
2797
2798 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2799
2800         [BZ #5786]
2801         * elf/dl-sysdep.c: Undefine ROUND after use.
2802         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2803         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2804         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2805         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2806         to ...
2807         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2808         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2809         if necessary.
2810         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2811
2812         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2813         _dl_tls_get_addr_soft element.
2814         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2815         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2816         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2817         GLRO.
2818         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2819         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2820         of internal_function.
2821
2822         * stdlib/Makefile (aux): Add tens_in_limb.
2823         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2824         * stdlib/tens_in_limb.c: ...here.  New file.
2825
2826         [BZ #5778]
2827         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2828         __statfs_chown_restricted.
2829         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2830         for _PC_CHOWN_RESTRICTED.
2831         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2832         Implement __statfs_chown_restricted.
2833         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2834         _POSIX_CHOWN_RESTRICTED value to zero.
2835         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2836         defined to zero.
2837
2838         * sysdeps/x86_64/rtld-memset.c: New file.
2839
2840 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2841
2842         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2843
2844         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2845         Barcelona machine.  Make default fall through branch of
2846         __x86_64_preferred_memory_instruction check as the integer code path.
2847
2848 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2849
2850         * sysdeps/x86_64/cacheinfo.c
2851         (__x86_64_preferred_memory_instruction): New variable.
2852         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2853
2854         * sysdeps/x86_64/memset.S: Rewrite.
2855
2856 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2857
2858         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2859         __obstack_printf_chk): New prototypes.
2860         (__vasprintf_chk, __vdprintf_chk,
2861         __obstack_vprintf_chk): Likewise.
2862         Add libc_hidden_proto.
2863         * libio/obprintf.c
2864         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2865         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2866         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2867         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2868         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2869         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2870         __obstack_vprintf_chk): New prototypes.
2871         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2872         obstack_vprintf): New inlines.
2873         * debug/dprintf_chk.c: New file.
2874         * debug/vdprintf_chk.c: New file.
2875         * debug/asprintf_chk.c: New file.
2876         * debug/vasprintf_chk.c: New file.
2877         * debug/obprintf_chk.c: New file.
2878         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2879         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2880         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2881         @@GLIBC_2.8.
2882         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2883         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2884         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2885         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2886         libc_hidden_proto.
2887         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2888         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2889         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2890         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2891         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2892         @@GLIBC_2.8.
2893         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2894         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2895         obstack_vprintf_chk.
2896         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2897         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2898         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2899         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2900         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2901         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2902
2903 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2904
2905         [BZ #5779]
2906         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2907         Patch by Roy Marples <roy@marples.name>.
2908
2909         [BZ #5736]
2910         * malloc/malloc.c: Fix typo in comment.
2911
2912         [BZ #5627]
2913         * locale/iso-639.def: Add Shuswap.
2914
2915 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2916
2917         [BZ #5790]
2918         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2919         overwrite *h_errnop/*errnop values from getanswer_r in case of
2920         failure.
2921
2922 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2923
2924         [BZ #5818]
2925         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2926         (verify_persistent_db): Remove one unnecessary test and add a new one
2927         for bad configuration.
2928         (nscd_init): Improve error reported when persistent database cannot
2929         be reused.
2930         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2931         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2932         .suggested_module and .max_db_size and case config file says the
2933         values are zero.
2934         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2935
2936         [BZ #5854]
2937         * nis/ypclnt.c (yp_order): Fix handling of return value of
2938         do_ypcall_tr call.
2939         Patch by Jeff Moyer <jmoyer@redhat.com>.
2940
2941         * po/fr.po: Update from translation team.
2942
2943 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2944             Carlos O'Donell <carlos@systemhalted.org>
2945
2946         [BZ #5012]
2947         * FAQ.in: Describe why glibc needs to be compiled with
2948         optimization.
2949
2950 2008-02-19  Roland McGrath  <roland@redhat.com>
2951
2952         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2953
2954 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2955
2956         [BZ #5737]
2957         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2958         __USE_MISC is defined.
2959
2960 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2961
2962         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2963         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2964         sys/timerfd.h.
2965         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2966         timerfd_gettime, timerfd_settime.
2967         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2968         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2969
2970 2008-02-08  Roland McGrath  <roland@redhat.com>
2971
2972         * elf/elf.h (NT_PPC_SPE): New macro.
2973
2974 2008-02-06  Roland McGrath  <roland@redhat.com>
2975
2976         * Makerules ($(common-objpfx)sysd-rules):
2977         Depend on $(sysdep-makeconfigs).
2978
2979 2008-01-31  Roland McGrath  <roland@redhat.com>
2980
2981         [BZ #5442]
2982         * configure.in: Use -print-file-name if it yields a directory,
2983         for each of include and include-fixed.
2984         * configure: Regenerated.
2985
2986         * Makeconfig (sysd-rules-targets): New variable.
2987         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2988         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2989
2990 2008-01-30  Roland McGrath  <roland@redhat.com>
2991
2992         * manual/libc.texinfo: Update back-cover text.
2993
2994         * elf/elf.h (NT_386_TLS): New macro.
2995
2996 2008-01-29  Roland McGrath  <roland@redhat.com>
2997
2998         * Makeconfig (sysd-rules-patterns): New variable.
2999         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3000         (check-inhibit-asm): New canned sequence, replaces ...
3001         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3002         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3003         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3004         (CFLAGS-rtld): Variable removed.
3005
3006 2008-01-24  Roland McGrath  <roland@redhat.com>
3007
3008         * configure.in: Let configure fragments set base_os.
3009         * configure: Regenerated.
3010
3011 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3012
3013         * po/ko.po: Update from translation team.
3014
3015 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3016
3017         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3018
3019 2008-01-12  Andreas Jaeger  <aj@suse.de>
3020
3021         [BZ #5040]
3022         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3023         Add EPOLLRDHUP.
3024
3025 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3026
3027         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3028         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3029         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3030
3031 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3032
3033         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3034         * elf/dl-close.c (_dl_close): Check for it.
3035         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3036         (_dl_allocate_static_tls): Likewise.
3037         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3038         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3039         to it.
3040         * elf/tst-tls16.c: New file.
3041         * elf/tst-tlsmod16a.c: New file.
3042         * elf/tst-tlsmod16b.c: New file.
3043         * elf/Makefile: Add rules to build and run tst-tls16.
3044
3045 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3046
3047         [BZ #5628]
3048         * bits/shm.h: Fix comment describing shmid_ds.
3049         * sysdeps/gnu/bits/shm.h: Likewise.
3050         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3051         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3052         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3053         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3054         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3055         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3056         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3057         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3058         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3059
3060         [BZ #5607]
3061         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3062         prototypes.
3063         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3064         additional suffixes.
3065         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3066         Add optional functions mq_timedreceive and mq_timedsend.
3067         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3068         * conform/data/pthread.h-data: Fix prototype of
3069         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3070         * conform/data/semaphore.h-data: Allow time.h definitions.
3071         * conform/data/signal.h-data: Likewise.
3072         * conform/data/stdio.h-data: getw and putw are not required in v6.
3073         * conform/data/stdlib.h-data: Change setstate prototype.
3074         * conform/data/string.h-data: Fix strerror_r prototype.
3075         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3076         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3077         Fix readlink prototype.
3078         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3079         in6addr_loopback.
3080         * inet/netinet/in.h: Cleanup namespace.
3081         * posix/regex.h: Likewise.
3082         * resolv/netdb.h: Likewise.
3083         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3084         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3085         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3086         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3087         of names of in in6_addr.
3088         (default_precedence): Likewise.
3089         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3090         NULL definition.
3091
3092 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3093
3094         * conform/data/fmtmsg.h-data: Add missing allows.
3095         * conform/data/ftw.h-data: Likewise.
3096         * conform/data/inttypes.h-data: Likewise.
3097         * conform/data/math.h-data: Likewise.
3098         * conform/data/signal.h-data: Likewise.
3099         * conform/data/net/if.h-data: Likewise.
3100         * conform/data/netinet/in.h-data: Likewise.
3101         * conform/data/sys/socket.h-data: Likewise.
3102
3103         [BZ #5614]
3104         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3105         (__strtok_r): Simplify.
3106         * string/tester.c (test_strtok_r): Add test case for futile search
3107         with single-character seach string.
3108
3109 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3110
3111         * po/ko.po: Update from translation team.
3112
3113 2008-01-11  Andreas Jaeger  <aj@suse.de>
3114
3115         [BZ #5600]
3116         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3117         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3118         kernel header.
3119
3120 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3123         native interface lookup in all the relevant places.
3124
3125 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3126             Ulrich Drepper  <drepper@redhat.com>
3127
3128         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3129         field.  Use sockaddr_in6 for source_addr.
3130         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3131         (match_prefix): Likewise.
3132         (get_label): Likewise.
3133         (get_precedence): Likewise.
3134         (rfc3484_sort): Change to use indirect access to results array.
3135         Adjust to use of sockaddr_in6.  Replace service_order test with
3136         simple index comparison.
3137         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3138         service_order field.  Adjust qsort_t calls.  Access sorted result
3139         array indirectly through order array.
3140         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3141         * posix/tst-rfc3484-2.c: Likewise.
3142         * posix/tst-rfc3484-3.c: Likewise.
3143
3144 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3145
3146         [BZ #5541]
3147         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3148         pollfd structures.
3149         Patch by André Cruz.
3150
3151         [BZ #5545]
3152         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3153         (clnt_spcreateerror): Likewise.
3154
3155         [BZ #5553]
3156         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3157         (public_mEMALIGn): Likewise.
3158         Patch mostly by Daniel Jacobowitz.
3159
3160 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3161
3162         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3163         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3164         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3165         * stdlib/tst-makecontext2.c: New test.
3166
3167 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3168
3169         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3170         defined.
3171         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3172         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3173         transliteration hooks and REINIT_PARAMS afterwards.
3174         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3175         status.
3176         (REINIT_PARAMS): Define.
3177         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3178         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3179         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3180         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3181         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3182         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3183         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3184         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3185         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3186         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3187         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3188         * iconvdata/tst-iconv7.c: New test.
3189
3190 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3191
3192         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3193
3194 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3195
3196         [BZ #5112]
3197         * nscd/connections.c (restart): Fix condition.
3198
3199 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3200
3201         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3202         __ctype_toupper_loc): Add __THROW.
3203
3204 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3205
3206         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3207         recognition of interface family.
3208
3209         * posix/getconf.c: Update copyright year.
3210         * nss/getent.c: Likewise.
3211         * iconv/iconvconfig.c: Likewise.
3212         * iconv/iconv_prog.c: Likewise.
3213         * elf/ldconfig.c: Likewise.
3214         * catgets/gencat.c: Likewise.
3215         * csu/version.c: Likewise.
3216         * elf/ldd.bash.in: Likewise.
3217         * elf/sprof.c (print_version): Likewise.
3218         * locale/programs/locale.c: Likewise.
3219         * locale/programs/localedef.c: Likewise.
3220         * nscd/nscd.c (print_version): Likewise.
3221         * debug/xtrace.sh: Likewise.
3222         * malloc/memusage.sh: Likewise.
3223         * malloc/mtrace.pl: Likewise.
3224         * debug/catchsegv.sh: Likewise.
3225
3226 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3227
3228         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3229         second lookup.
3230
3231 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3232
3233         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3234         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3235
3236 2007-12-17  Roland McGrath  <roland@redhat.com>
3237
3238         * inet/ether_line.c (ether_line): Remove unused variable.
3239
3240 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3241
3242         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3243         and winp.
3244         * login/openpty.c (openpty): Likewise.
3245         * login/pty.h (openpty, forkpty): Likewise.
3246         * manual/terminal.texi (openpty, forkpty): Likewise.
3247
3248 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3249
3250         * malloc/malloc.c (public_cALLOc): For arenas other than
3251         main_arena, count all bytes inside the mprotect_size range of the
3252         heap as uninitialized.
3253
3254 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3255
3256         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3257         executable stacks.
3258
3259         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3260         mTRIm for all of them.
3261         (mTRIm): Additionally iterate over all free blocks and use madvise
3262         to free memory for all those blocks which contain at least one
3263         memory page.
3264         * malloc/tst-trim1.c: New file.
3265         * malloc/Makefile (tests): Add tst-trim1.
3266
3267         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3268
3269 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3270
3271         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3272         First cast argument to long
3273         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3274         Return long.
3275         (__vdso_clock_gettime): Likewise.
3276         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3277         return long.
3278
3279 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3280
3281         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3282         * locale/nl_langinfo_l.c: Real implementation, copied from
3283         nl_langinfo.c.
3284         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3285
3286 2007-12-01  Jim Meyering  <meyering@redhat.com>
3287
3288         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3289         that would inhibit utf8-optimization of a regexp containing line-
3290         or buffer-anchors, e.g., `^', `$'.
3291
3292 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3293
3294         * time/bug-getdate1.c (do_test): Don't use century values which
3295         aren't valid on 32-bit systems.
3296
3297 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3298
3299         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3300         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3301         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3302         __strcat_g, __strncat_g): Add __asm__.
3303
3304 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3305
3306         [BZ #5477]
3307         * io/fchmodat.c: Fix typo in stub_warning use.
3308         Patch by Petr Salinger.
3309
3310 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3311
3312         * iconvdata/hp-thai8.c: New file.
3313         * iconvdata/Makefile: Add rules for hp-thai8.c.
3314         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3315         * iconvdata/gconv-modules: Likewise.
3316
3317         [BZ #5464]
3318         * iconvdata/hp-greek8.c: New file.
3319         * iconvdata/Makefile: Add rules for hp-greek8.c.
3320         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3321         * iconvdata/gconv-modules: Likewise.
3322
3323         [BZ #5463]
3324         * iconvdata/hp-turkish8.c: New file.
3325         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3326         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3327         * iconvdata/gconv-modules: Likewise.
3328
3329         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3330         (shrink_heap): ... this new function.
3331         (heap_trim): Call shrink_heap instead of grow_heap.
3332
3333         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3334         case don't call alloc_perturb.
3335
3336 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3337
3338         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3339         possible.
3340         * sysdeps/unix/sysv/linux/kernel-features.h
3341         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3342         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3343
3344 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3345
3346         [BZ #5424]
3347         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3348         * stdio-common/Makefile (tests): Add bug22.
3349         * stdio-common/bug22.c: New file.
3350
3351         [BZ #5451]
3352         * time/getdate.c: Fix filling in default values.
3353         * time/bug-getdate1.c: New file.
3354         * time/Makefile: Add rules to build and run bug-getdate1.
3355
3356         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3357         * iconvdata/ebcdic-es.c: Likewise.
3358         * iconvdata/ebcdic-es-a.c: Likewise.
3359         * iconvdata/ebcdic-uk.c: Likewise.
3360         * iconvdata/iso8859-16.c: Likewise.
3361         * iconvdata/viscii.c: Likewise.
3362         * iconvdata/iso8859-9e.c: Likewise.
3363         * iconvdata/Makefile: Adjust appropriately.
3364
3365         [BZ #5428]
3366         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3367         __need_wint_t.
3368
3369 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3370
3371         [BZ #5427]
3372         * iconvdata/hp-roman9.c: New file.
3373         * iconvdata/Makefile: Add rules for hp-roman9.c.
3374         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3375         * iconvdata/gconv-modules: Likewise.
3376
3377         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3378         * iconvdata/Makefile: Adjust appropriately.
3379
3380         [BZ #5441]
3381         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3382         structure, it's allocated with alloca.
3383         * stdio-common/Makefile (tests): Add bug21.
3384         * stdio-common/bug21.c: New file.
3385
3386 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3387
3388         [BZ #5452]
3389         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3390         keyword for gcc's braced-groups.
3391
3392 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3393
3394         [BZ #5454]
3395         * inet/ether_line.c: Strip hostname of whitespaces.
3396         * inet/Makefile (tests): Add tst-ether_line.
3397         * inet/tst-ether_line.c: New file.
3398
3399 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3400
3401         [BZ #5439]
3402         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3403
3404         [BZ #5435]
3405         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3406
3407         * stdlib/tst-setcontext.c: Catch the case where the links gets
3408         messed up and we do not reach main again.
3409
3410         * po/ca.po: Update from translation team.
3411
3412 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3413
3414         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3415         * posix/regex.h (REG_ENOSYS): Likewise.
3416         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3417
3418 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3419
3420         * nscd/nscd.h (MAX_STACK_USE): Define.
3421         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3422         (gc): Initialize stack_used based on allocation in prune_cache.
3423         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3424         Clear array before use.
3425
3426         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3427         memory allocation failed.
3428         * nscd/hstcache.c (cache_addhst): Likewise.
3429         * nscd/grpcache.c (cache_addgr): Likewise.
3430         * nscd/servicescache.c (cache_addserv): Likewise.
3431         * nscd/pwdcache.c (cache_addpw): Likewise.
3432         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3433
3434 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3435
3436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3437         and creat system calls.
3438
3439         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3440
3441 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3442
3443         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3444         Add netiucv/iucv.h.
3445         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3446         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3447         protocol.
3448         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3449         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3450         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3451
3452 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3453
3454         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3455         strncat): Define as macros to avoid compile errors.
3456
3457         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3458         creat entries.
3459
3460 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3461
3462         [BZ #5382]
3463         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3464         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3465         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3466         overflow it.
3467         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3468
3469         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3470         Return zero in case the thread library is not NPTL.
3471
3472         [BZ #5375]
3473         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3474         initializing interface list.
3475
3476         [BZ #5378]
3477         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3478         use result of nss_getgrgid_r if nothing was found.  For other
3479         error return with a failure.
3480         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3481
3482         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3483         macro name.
3484
3485 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3486
3487         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3488         (get_scope): For IPv4 scope, use scopes table.
3489         (fini): Free scopes table if necessary.
3490         (free_scopelist): New function.
3491         (scopecmp): New function.
3492         (gaiconf_init): Also handle scopev4 entries.
3493         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3494         * posix/tst-rfc3484-2.c (do_test): Likewise.
3495         * posix/gai.conf: Document scopev4 defaults.
3496         * posix/Makefile (tests): Add tst-rfc3484-3.
3497         * posix/tst-rfc3484-3.c: New file.
3498
3499         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3500         Teredo tunnels.
3501         * posix/gai.conf: Update for current default tables.
3502
3503 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3504
3505         * po/tr.po: Update from translation team.
3506
3507 2007-11-18  Roland McGrath  <roland@frob.com>
3508
3509         * manual/arith.texi (Remainder Functions): Spelling fix.
3510         From Shaun Silk <genix@mysoul.com.au>.
3511
3512         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3513
3514 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3515
3516         * po/zh_CN.po: Update from translation team.
3517
3518         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3519         Add sys/signalfd.h and sys/eventfd.h.
3520
3521 2007-11-15  Bruno Haible  <bruno@clisp.org>
3522
3523         [BZ #5346]
3524         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3525         union.
3526         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3527         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3528         it needs only fixed stack space. Delay the initialization of
3529         msgid_len until it is needed.
3530
3531 2007-11-15  Andreas Jaeger  <aj@suse.de>
3532
3533         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3534         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3535
3536 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3537
3538         * po/ko.po: Update from translation team.
3539
3540 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3541
3542         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3543         significantly.  The device type is also part of the ifinfomsg data.
3544
3545         * po/sv.po: Update from translation team.
3546         * po/nl.po: Likewise.
3547
3548         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3549         to wake up in 24 hours.
3550
3551         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3552
3553 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3554
3555         * po/cs.po: Update from translation team.
3556         * po/pl.po: Likewise.
3557
3558         * include/ifaddrs.h: Remove in6ai_temporary.
3559         (struct in6addrinfo): Add index element.
3560         Declare __check_native.
3561         * inet/Makefile (aux): Add check_native.
3562         * sysdeps/unix/sysv/linux/check_native.c: New file.
3563         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3564         IFA_F_TEMPORARY.  Pass back ifa_index.
3565         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3566         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3567         call __check_native if necessary.
3568         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3569         to sort addresses.  Pass information about the results.
3570         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3571         of rfc3484_sort interface.
3572         * posix/tst-rfc3484-2.c: Likewise.
3573
3574         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3575         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3576         for _quicksort.
3577         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3578         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3579         on as third parameter to compare function and _quicksort.
3580         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3581         to the compare function.
3582         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3583         * Versions.def: Add GLIBC_2.8 for libc.
3584
3585         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3586         * posix/tst-rfc3484-2.c: Likewise.
3587
3588         * include/kernel-features.h: Moved to...
3589         * sysdeps/mach/hurd/kernel-features.h: ...here.
3590
3591 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3592
3593         * sysdeps/i386/i586/memcpy_chk.S: New file.
3594         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3595         * sysdeps/i386/i586/memset_chk.S: Likewise.
3596
3597 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3598
3599         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3600         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3601         list of interfaces.  Also store prefix length.
3602         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3603         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3604         prefix if source and destination address are in the same subnet.
3605         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3606         Always look for matching record in in6ai list.
3607         Correct source_addr_len value for IPv6->IPv4 converted records.
3608
3609 2007-11-11  Roland McGrath  <roland@frob.com>
3610
3611         * include/kernel-features.h: New file.
3612
3613 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3614
3615         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3616         complications for 64-bit platforms.
3617
3618         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3619         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3620         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3621         open64_2.
3622         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3623         entries.
3624         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3625         * sysdeps/wordsize-64/alphasort.c: New file.
3626         * sysdeps/wordsize-64/alphasort64.c: New file.
3627         * sysdeps/wordsize-64/fseeko.c: New file.
3628         * sysdeps/wordsize-64/fseeko64.c: New file.
3629         * sysdeps/wordsize-64/ftello.c: New file.
3630         * sysdeps/wordsize-64/ftello64.c: New file.
3631         * sysdeps/wordsize-64/ftw.c: New file.
3632         * sysdeps/wordsize-64/ftw64.c: New file.
3633         * sysdeps/wordsize-64/iofgetpos.c: New file.
3634         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3635         * sysdeps/wordsize-64/iofopen.c: New file.
3636         * sysdeps/wordsize-64/iofopen64.c: New file.
3637         * sysdeps/wordsize-64/iofsetpos.c: New file.
3638         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3639         * sysdeps/wordsize-64/lockf.c: New file.
3640         * sysdeps/wordsize-64/lockf64.c: New file.
3641         * sysdeps/wordsize-64/mkostemp.c: New file.
3642         * sysdeps/wordsize-64/mkostemp64.c: New file.
3643         * sysdeps/wordsize-64/mkstemp.c: New file.
3644         * sysdeps/wordsize-64/mkstemp64.c: New file.
3645         * sysdeps/wordsize-64/scandir.c: New file.
3646         * sysdeps/wordsize-64/scandir64.c: New file.
3647         * sysdeps/wordsize-64/tmpfile.c: New file.
3648         * sysdeps/wordsize-64/tmpfile64.c: New file.
3649         * sysdeps/wordsize-64/versionsort.c: New file.
3650         * sysdeps/wordsize-64/versionsort64.c: New file.
3651         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3652         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3653         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3654         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3655         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3656         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3657         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3658         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3659         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3660         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3661         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3662         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3663
3664         * crypt/sha256-crypt.c: Fix a comment.
3665         * crypt/sha512-crypt.c: Likewise.
3666
3667 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3668
3669         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3670
3671 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3672
3673         [BZ #5277]
3674         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3675         because output buffer is too small break, don't loop.
3676         * iconvdata/Makefile (tests): Add bug-iconv6.
3677         * iconvdata/bug-iconv6.c: New file.
3678
3679 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3680
3681         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3682         with size_t type.
3683         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3684         size_t.  Add casts where needed.
3685
3686         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3687         old headers, don't call avc_has_perm if we don't have the
3688         permission information.
3689
3690 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3691
3692         * elf/rtld.c (dl_main): Use the page size to find the map start.
3693
3694 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3695
3696         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3697         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3698
3699         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3700         when the lookup call failed.
3701
3702         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3703         Add prune_cond and wakeup_time.
3704         (CACHE_PRUNE_INTERNAL): Define.
3705         Update declarations of prune_cache and setup_thread.
3706         * nscd/connections.c (dbs): Update initializers.
3707         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3708         (nscd_init): Default number of threads is now 4.
3709         (invalidate_cache): Take lock before calling prune_cache.
3710         (handle_request): If SELinux forbids the request, say so.
3711         (readylist_cond): Use static initializer.
3712         (nscd_run_prune): New function.  Used only by pruning threads.
3713         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3714         here.
3715         (fd_ready): Update nscd_run reference.
3716         (start_threads): No need to initialize readylist_cond.
3717         Start pruning threads separately.
3718         * nscd/nscd_setup_thread.c: Change return value type to int and always
3719         return 0.
3720         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3721         to int and return nonzero value if we can use the TID address hack.
3722         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3723         the database is later than the new entry's timeout, update the
3724         wakeup time and wake the cleanup thread.
3725         (prune_cache): Return seconds the next entry in the database is still
3726         valid.  Remove locking for pruning here.
3727         * nscd/nscd.conf: Document default number of threads.
3728
3729 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3730
3731         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3732         stack is properly aligned for the target function.
3733         Correct unwind info.
3734
3735         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3736         when using auditing libraries.
3737
3738 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3739
3740         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3741         _nss_dns_getnetbyaddr2_r.
3742         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3743         extra parameter to getanswer_r.
3744         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3745         _nss_dns_getnetbyaddr2_r.
3746
3747         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3748         gethstbynm3_r.
3749         * nscd/gethstbynm2_r.c: Remove.
3750         * nscd/gethstbynm3_r.c: New file.
3751         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3752         __gethostbyaddr_r.
3753         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3754         __gethostbyaddr_r compatibility wrapper.
3755         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3756         determining timeout of entry.
3757         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3758         __gethostbyaddr2_r.
3759         (addhstbyX): Pass reference to variable for TTL to lookup and
3760         cache_addhst.
3761         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3762         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3763         and __nss_next2.  Remove __nss_services_lookup.
3764         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3765         Add compat wrapper.
3766         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3767         __nss_next2.
3768         * nss/getXXent_r.c: Likewise.
3769         * nss/getnssent_r.c: Likewise.
3770         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3771         does not exist in module, try the optional second name.
3772         (__nss_next2): New function.
3773         (__nss_next): Now wrapper around __nss_next2.
3774         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3775         Declare __nss_next2.
3776         Adjust definition of db_lookup_function type.
3777         * nss/service-lookup.c: Define NO_COMPAT.
3778         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3779         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3780         * inet/ether_ntoh.c: Likewise.
3781         * sunrpc/netname.c: Likewise.
3782         * sunrpc/publickey.c: Likewise.
3783         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3784         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3785         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3786         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3787         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3788
3789         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3790
3791         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3792
3793 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3794
3795         [BZ #5204]
3796         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3797         * crypt/sha512c-test.c: Likewise.
3798
3799         [BZ #5225]
3800         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3801         to keep track of end of %[ format string element.
3802         * stdio-common/Makefile (tests): Add bug20.
3803         * stdio-common/bug20.c: New file.
3804
3805         [BZ #5222]
3806         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3807         path elements in counting mode.
3808
3809 2007-10-27  Andreas Jaeger  <aj@suse.de>
3810
3811         [BZ #5040]
3812         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3813
3814         [BZ #3112]
3815         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3816         (__cleanup): Free shared library when exiting.
3817         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3818         (__cleanup): Free shared library when exiting.
3819
3820 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3821
3822         [BZ #2549]
3823         * math/libm-test.inc (check_float_internal): Support
3824         denormalized return.
3825
3826 2007-10-23  Andreas Jaeger  <aj@suse.de>
3827
3828         [BZ #5208]
3829         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3830         __LONG_LONG_PAIR to handle little endian byte order.
3831         Suggested by abhishekrai@google.com
3832
3833 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3834
3835         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3836
3837 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3838
3839         * nscd/cache.c (prune_cache): Move test for modified file outside
3840         of locking.
3841
3842 2007-10-21  Andreas Jaeger  <aj@suse.de>
3843
3844         * manual/texinfo.tex: Update to latest version.
3845
3846         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3847
3848         * manual/arith.texi (Status bit operations): Fix formatting.
3849
3850         * manual/errno.texi (Error Messages): Fix formatting.
3851
3852         * manual/sysinfo.texi (System Parameters): Fix formatting.
3853
3854         * manual/libc.texinfo: Update VERSION and UPDATED.
3855
3856 2007-10-19  Roland McGrath  <roland@redhat.com>
3857
3858         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3859
3860 2007-10-06  David S. Miller  <davem@davemloft.net>
3861
3862         * configure.in: Add sparcv9v2 and sparc64v2.
3863         * scripts/config.sub: Likewise.
3864         * configure: Regenerate.
3865         * elf/elf.h (HWCAP_SPARC_N2): New.
3866         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3867         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3868         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3869         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3870         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3871         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3872         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3873
3874 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3875
3876         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3877         even if the poll result indicates there is data to read.
3878         Patch by Jeff Moyer <jmoyer@redhat.com>.
3879
3880 2007-10-18  Roland McGrath  <roland@redhat.com>
3881
3882         * elf/elf.h (NT_PPC_VMX): New macro.
3883
3884 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3885
3886         * version.h (VERSION): Set to 2.7.90.
3887
3888 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3889
3890         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3891         weak_alias.
3892
3893 2007-10-17  Roland McGrath  <roland@frob.com>
3894
3895         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3896         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3897
3898 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3899
3900         * version.h (VERSION): Bump to 2.7.
3901         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3902
3903         [BZ #5186]
3904         * time/tzset.c (__tz_convert): Don't force testing for a change of
3905         TZ if not called from localtime.  But then also see whether the
3906         file changed, in case __use_tzfile is set.
3907
3908         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3909         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3910         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3911         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3912         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3913         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3914         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3915         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3916
3917 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3918
3919         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3920         and admin selects to be able to replace the gai.conf file, lock
3921         data structures around the qsort call.
3922
3923 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3924
3925         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3926         new memset.
3927         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3928         too high for the improvements.  Implement bzero unconditionally for
3929         use in libc.
3930
3931 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3932             Jakub Jelinek  <jakub@redhat.com>
3933
3934         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3935         even when time_t is 32-bit.
3936         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3937         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3938         always set after the search.
3939
3940 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3941
3942         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3943         unreachable code on 32-bit machines.
3944
3945 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3946
3947         [BZ #5184]
3948         * time/strftime_l.c: Include stdbool.h.
3949         (my_strftime): New wrapper, old function renamed to...
3950         (__strftime_internal): ... new function.  Add tzset_called
3951         argument, pass it down to recursive calls, don't call tzset ()
3952         if already true, set to true after call to tzset ().
3953
3954 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3955
3956         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3957         into account when copying TZ string.
3958
3959 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3960
3961         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3962         num_transition rather than num_transitions - 1.
3963
3964 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3965
3966         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3967         PIC indirect jump.
3968
3969         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3970         a local label rather than HIDDEN_JUMPTARGET.
3971
3972 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3973
3974         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3975         (init_cacheinfo): Initialize it.
3976         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3977         Always define bzero.
3978         Remove non-glibc code.
3979         * sysdeps/x86_64/bzero.S: Make an empty file.
3980
3981 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3982
3983         * sysdeps/x86_64/cacheinfo.c
3984         (__x86_64_preferred_memory_instruction): New.
3985         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3986
3987         * sysdeps/x86_64/memset.S: Rewrite.
3988
3989 2007-10-15  Roland McGrath  <roland@redhat.com>
3990
3991         * po/libc.pot: Regenerated.
3992
3993 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3994
3995         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3996         pointers.
3997
3998         [BZ #3425]
3999         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4000         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4001         address record to T_A/T_AAAA requests.
4002
4003 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4004
4005         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4006
4007         * posix/glob.c: Add some branch prediction throughout.
4008
4009         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4010         read from nscd.
4011
4012         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4013         service_order.
4014         (rfc3484_sort): Make sure that even if qsort doesn't support
4015         stable sorting out sorting here is stable by comparing service_order.
4016         (getaddrinfo): Initialize service_order.
4017         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4018         service_order field to sorting structure.
4019         * posix/tst-rfc3484-2.c (do_test): Likewise.
4020
4021         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4022         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4023         __tzset_parse_tz and updating of daylight, timezone, tzname into
4024         update_vars.
4025         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4026         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4027         happens in __tz_compute.
4028         * time/tzfile.c (__tzfile_read): Also read TZ string.
4029         (find_transition): Fold into __tzfile_compute.
4030         (__tzfile_compute): For times beyond the last transition try to
4031         use the TZ string.
4032         * timezone/tst-timezone.c: Information in daylight and tzname does
4033         change for Asia/Tokyo timezone with more concrete information.
4034         Remove the test.
4035
4036         * include/stdio.h: Add libc_hidden_proto for ftello.
4037         * libio/ftello.c: Add libc_hidden_def.
4038
4039         [BZ #1140]
4040         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4041         on the specified time and not the last entries in the file.  Move
4042         code to determine tzname[] to...
4043         (find_transition): ...here.  Add ugly guess for times before the
4044         first transition.
4045
4046 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4047
4048         [BZ #3195]
4049         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4050         no entry.
4051         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4052         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4053         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4054         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4055
4056         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4057         read mechanism when there are no group members and avoid no-op
4058         read syscall in this case.
4059
4060         [BZ #3242]
4061         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4062         (__readall): If reading failed due to EAGAIN error wait a bit
4063         and possibly try again.
4064         (__readvall): Likewise.
4065
4066 2007-10-13  Bruno Haible  <bruno@clisp.org>
4067
4068         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4069         when we cannot recode the message.
4070
4071 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4072
4073         [BZ #4359]
4074         * libio/__freading.c (__freading): Don't return true for
4075         write-only streams.  For read/write streams, check whether we
4076         performed a read operation already.
4077         * libio/Makefile (tests): Add tst-ext2.
4078         * libio/tst-ext2.c: New file.
4079
4080 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4081
4082         * locale/programs/repertoire.c (repertoire_read): Always free
4083         memory for repertoire file name [Coverity CID 270].
4084
4085         * elf/cache.c (save_aux_cache): Free memory allocated for
4086         temporary file name [Coverity CID 267].
4087
4088 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4089
4090         * misc/Makefile (headers): Add bits/error.h.
4091
4092 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4093
4094         * posix/fnmatch_loop.c: Take rule index returned as part of
4095         findidx return value into account when accessing weights.
4096         * posix/regcomp.c: Likewise.
4097         * posix/regexec.c: Likewise.
4098
4099         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4100         (skip_to): Fix problems with parameter of elifdef/elifndef.
4101
4102 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4103
4104         * iconv/gconv_simple.c: Add some branch prediction.
4105
4106 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4107
4108         * locale/programs/ld-collate.c (collate_read): If ignore_content
4109         and nowtok is tok_define, eat any tok_eol tokens.
4110
4111 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4112
4113         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4114         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4115
4116         * inet/netinet/in.h: Don't include bits/socket.h.
4117         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4118         macro.
4119         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4120
4121 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4122
4123         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4124         and tok_elifndef.
4125         * locale/programs/locfile-kw.gperf: Likewise.
4126         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4127
4128 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4129
4130         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4131         (__find_specwc): Change into __extern_always_inline function.
4132         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4133         (__parse_one_specmb): Remove ps argument.
4134         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4135         Adjust __find_specmb and __parse_one_specmb callers.
4136         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4137         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4138         Removed.
4139         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4140         caller.
4141
4142 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4143
4144         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4145         with some Pentium Ds.
4146
4147 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4148
4149         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4150         __read not read.
4151         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4152         __write not write.
4153
4154 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4155
4156         [BZ #181]
4157         * locale/C-time.c: Set week_1stday data to 19971201.
4158         * locale/programs/ld-time.c (time_finish): Default for
4159         first_workday is Monday.
4160
4161         [BZ #2633]
4162         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4163
4164         [BZ #5103]
4165         * posix/glob.c (glob): Recognize patterns starting \/.
4166         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4167         (main): Add test for pattern starting \/.
4168
4169         * misc/error.h: Use __const instead of const.
4170         * misc/bits/error.h: Likewise.
4171
4172 2007-10-07  Andreas Jaeger  <aj@suse.de>
4173
4174         * include/bits/error.h: New file.
4175
4176         * misc/bits/error.h (error_at_line): Fix prototype.
4177
4178 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4179
4180         [BZ #3924]
4181         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4182         more little bugs in creating the stack frame when pltexit has to
4183         be called.
4184
4185         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4186         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4187
4188         [BZ #4407]
4189         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4190         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4191         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4192         * math/libm-test.inc: Add test for this case.
4193
4194         [BZ #5010]
4195         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4196         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4197         map service succeeded.
4198         (svc_is_mapped): New function.
4199         (svc_unregister): Use it before trying to unmap service.
4200
4201 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4202
4203         * timezone/zic.c: Update from tzcode2007h.
4204
4205         [BZ #5063]
4206         * timezone/africa: Update from tzdata2007h.
4207         * timezone/antarctica: Likewise.
4208         * timezone/asia: Likewise.
4209         * timezone/australasia: Likewise.
4210         * timezone/europe: Likewise.
4211         * timezone/leapseconds: Likewise.
4212         * timezone/northamerica: Likewise.
4213         * timezone/southamerica: Likewise.
4214         * timzeone/zone.tab: Likewise.
4215
4216         [BZ #5104]
4217         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4218
4219         [BZ #5113]
4220         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4221         avoid warning with -Wconversion.
4222         (__strndup): Likewise.
4223         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4224
4225         [BZ #5112]
4226         * nscd/connections.c (restart): Don't resync if database is
4227         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4228
4229         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4230         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4231
4232         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4233         evetnfd_read, eventfd_write.
4234         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4235         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4236         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4237         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4238         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4239         eventfd_write for GLIBC_2.7.
4240
4241         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4242         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4243         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4244         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4245
4246 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4247
4248         * stdlib/msort.c: Include stdint.h.
4249         (struct msort_param): New type.
4250         (msort_with_tmp): Use struct msort_param pointer for unchanging
4251         parameters.  Add optimized handling for several common sizes
4252         and indirect sorting mode.
4253         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4254         sorting.
4255         Suggested by Belazougui Djamel .
4256
4257         * stdlib/Makefile (tests): Add tst-qsort2.
4258         * stdlib/tst-qsort2.c: New test.
4259
4260 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4261
4262         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4263         for dup2 in case another thread races with the current one.  Retry
4264         in this case.
4265
4266         * misc/error.h: Remove support for use outside of libc.  We have to
4267         include <features.h> now.  Include <bits/error.h> if possible.
4268         * misc/bits/error.h: New file.
4269
4270 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4271
4272         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4273         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4274         __extern_always_inline functions unconditionally, drop macros.
4275
4276         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4277         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4278         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4279
4280         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4281         add __artificial__ attribute.
4282
4283 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4284
4285         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4286         backward to forward direction.
4287
4288         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4289
4290         [BZ #645]
4291         * locale/programs/ld-collate.c (collate_finish): Compare against last
4292         used section which is known to have rules defined.
4293         (collate_read): After order_start, correctly record order of sections
4294         and queue sections up.
4295
4296 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4297
4298         [BZ #5071]
4299         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4300         the same number of pages.
4301         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4302
4303         * locale/programs/ld-collate.c (collate_read): After initial copy
4304         statement, continue in state 0.
4305
4306         * include/stdio_ext.h (__fsetlocking): Define as macro.
4307
4308 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4309
4310         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4311         of section order.
4312
4313         * po/pt_BR.po: Fix typo.
4314
4315 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4316
4317         * iconvdata/Makefile (modules): Add ISO8859-9E.
4318         (distribute): Add iso8859-9e.c.
4319         (gen-8bit-gap-modules): Add iso8859-9e.
4320         * iconvdata/iso8859-9e.c: New file.
4321         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4322         * iconvdata/TESTS: Likewise.
4323         * iconvdata/tst-tables.sh: Likewise.
4324
4325         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4326
4327         * locale/iso-639.def: Add several new entries.
4328
4329 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4330
4331         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4332         void * pointers instead of struct link_map **.
4333         (_dl_scope_free): Change argument type to void *.
4334         * include/link.h (struct link_map): Change type of l_reldeps
4335         to struct link_map_reldeps, move l_reldepsact into that
4336         struct too.
4337         * elf/dl-deps.c: Include atomic.h.
4338         (_dl_map_object_deps): Only change l->l_initfini when it is
4339         fully populated, use _dl_scope_free for freeing it.  Optimize
4340         removal of libs from reldeps by using l_reserved flag, when
4341         some removal is needed, allocate a new list instead of
4342         reallocating and free the old with _dl_scope_free.  Adjust
4343         for l_reldeps and l_reldepsact changes.
4344         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4345         searching in l_initfini and l_reldeps without holding dl_load_lock.
4346         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4347         l_reldepsact changes.
4348         * elf/dl-close.c (_dl_close_worker): Likewise.
4349         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4350
4351 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4352
4353         * iconvdata/Makefile (modules): Add KOI8-RU.
4354         (distribute): Add koi8-ru.c.
4355         (gen-8bit-gap-modules): Add koi8-ru.
4356         * iconvdata/koi8-ru.c: New file.
4357         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4358         * iconvdata/TESTS: Likewise.
4359         * iconvdata/tst-tables.sh: Likewise.
4360
4361         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4362
4363 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4364
4365         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4366         with __warning__/__error__ attributes.
4367         (__warnattr): Define.
4368         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4369         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4370         __warnattr.
4371         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4372         of __*_chk if compile time detectable overflow is found.
4373         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4374         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4375         with __warnattr.
4376         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4377         instead of __*_chk if compile time detectable overflow is found.
4378         (__gets_alias): Rename to...
4379         (__gets_warn): ... this.  Add __warnattr.
4380         (gets): Call __gets_warn instead of __gets_alias.
4381         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4382         aliases with __warnattr.
4383         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4384         time detectable overflow is found.
4385         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4386         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4387         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4388         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4389         __getdomainname_chk_warn): New aliases with __warnattr.
4390         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4391         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4392         __*_chk_warn instead of __*_chk if compile time detectable overflow
4393         is found.
4394         (__getgroups_chk): Rename argument to __listlen from listlen.
4395         (__getwd_alias): Rename to...
4396         (__getwd_warn): ... this.  Add __warnattr.
4397         (getwd): Call __getwd_warn instead of __getwd_alias.
4398         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4399         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4400         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4401         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4402         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4403         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4404         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4405         compile time detectable overflow is found.
4406         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4407         to use __*_chk or not.
4408         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4409         in comparisons which function should be called and in __*_chk*
4410         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4411         detectable overflow is found.
4412         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4413         __*_chk argument.
4414         * debug/tst-chk1.c (do_test): Add a few more tests.
4415
4416 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4417
4418         [BZ #5058]
4419         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4420         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4421         (_nl_unload_domain): Finalize conversions_lock.
4422         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4423         handling table of known conversions.
4424
4425 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4426
4427         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4428         close_not_cancel_no_status instead of close.
4429
4430 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4431
4432         [BZ #5028]
4433         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4434         nrules != 0 for multibyte chars.
4435
4436 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4437
4438         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4439         Provide better error message in case the type is unknown.
4440
4441         [BZ #4963]
4442         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4443         * string/stratcliff.c: Make usable to test wide char functions.
4444         * wcsmbs/wcsatcliff.c: New file.
4445         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4446
4447         [BZ #4972]
4448         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4449         (distribute): Add mac-centraleurope.c.
4450         (gen-8bit-gap-modules): Add mac-centraleurope.
4451         * iconvdata/mac-centraleurope.c: New file.
4452         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4453         * iconvdata/TESTS: Likewise.
4454         * iconvdata/tst-tables.sh: Likewise.
4455
4456         [BZ #5043]
4457         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4458
4459 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4460
4461         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4462         from __x86_64_core_cache_size_half.
4463         (init_cacheinfo): Compute shared cache size for AMD processors with
4464         shared L3 correctly.
4465         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4466         name change.
4467         Patch in large parts by Evandro Menezes.
4468
4469 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4470
4471         * elf/dl-lookup.c (add_dependency): Handle failing memory
4472         allocation for dependency list.  Remove unnecessary check.
4473
4474         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4475         open/close when determining source addresses.
4476
4477         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4478         sha512-crypt, and sha512.
4479         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4480         (distribute): Add sha256.h and sha512.h.
4481         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4482         and call the appropriate code.
4483         * crypt/sha256-crypt.c: New file.
4484         * crypt/sha256.c: New file.
4485         * crypt/sha256.h: New file.
4486         * crypt/sha256c-test.c: New file.
4487         * crypt/sha256test.c: New file.
4488         * crypt/sha512-crypt.c: New file.
4489         * crypt/sha512.c: New file.
4490         * crypt/sha512.h: New file.
4491         * crypt/sha512c-test.c: New file.
4492         * crypt/sha512test.c: New file.
4493
4494 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4495
4496         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4497         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4498         __syslog_chk.
4499
4500 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4501
4502         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4503         %as in fscanf format strings.
4504
4505         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4506         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4507         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4508         Likewise.
4509         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4510         Likewise.
4511
4512         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4513         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4514         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4515         * elf/dl-sym.c (do_sym): Likewise.
4516         * include/link.h (struct link_map): Add l_serial field.
4517         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4518         * elf/dl-lookup.c (add_dependency): Add flags argument.
4519         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4520         flags, use THREAD_GSCOPE_RESET_FLAG before and
4521         THREAD_GSCOPE_SET_FLAG after
4522         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4523         Don't dereference map until it has been found on some list.
4524         If map->l_serial changed, return -1.
4525
4526 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4527
4528         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4529         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4530         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4531         libc_hidden_proto.
4532         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4533         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4534         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4535         add libc_hidden_proto.
4536         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4537         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4538         conformance requested.
4539         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4540         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4541         conformance requested.
4542         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4543         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4544         conformance requested.
4545         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4546         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4547         ISO C99 or POSIX conformance requested.
4548         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4549         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4550         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4551         and __isoc99_vsscanf@@GLIBC_2.7.
4552         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4553         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4554         (tests): Add scanf14.
4555         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4556         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4557         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4558         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4559         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4560         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4561         from using internal headers.
4562         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4563         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4564         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4565         and __isoc99_vswscanf@@GLIBC_2.7.
4566         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4567         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4568         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4569         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4570         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4571         * stdio-common/isoc99_scanf.c: New file.
4572         * stdio-common/isoc99_vsscanf.c: New file.
4573         * stdio-common/isoc99_vscanf.c: New file.
4574         * stdio-common/isoc99_vfscanf.c: New file.
4575         * stdio-common/isoc99_fscanf.c: New file.
4576         * stdio-common/isoc99_sscanf.c: New file.
4577         * wcsmbs/isoc99_fwscanf.c: New file.
4578         * wcsmbs/isoc99_vswscanf.c: New file.
4579         * wcsmbs/isoc99_swscanf.c: New file.
4580         * wcsmbs/isoc99_wscanf.c: New file.
4581         * wcsmbs/isoc99_vwscanf.c: New file.
4582         * wcsmbs/isoc99_vfwscanf.c: New file.
4583         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4584         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4585         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4586         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4587         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4588         * stdio-common/scanf14.c: New test.
4589         * stdio-common/scanf15.c: New test.
4590         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4591         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4592         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4593         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4594         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4595         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4596         __nldbl___isoc99_scanf@@GLIBC_2.7,
4597         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4598         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4599         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4600         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4601         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4602         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4603         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4604         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4605         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4606         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4607         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4608         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4609         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4610         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4611         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4612         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4613         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4614         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4615         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4616         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4617         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4618         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4619         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4620         functions.
4621         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4622         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4623         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4624         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4625         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4626         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4627         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4628         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4629         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4630         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4631         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4632         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4633
4634         * stdio-common/Makefile (tests): Add scanf13.
4635         (scanf13-ENV): New.
4636         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4637         m modifier followed by l.
4638         (STRING_ARG): Add width argument.
4639         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4640         <case L_('C')>: Handle %mlc and %mC.
4641         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4642         arguments.
4643         * stdio-common/scanf13.c: New test.
4644
4645         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4646         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4647
4648 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4649
4650         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4651         type and __THROW marker of splice, vmsplice, and tee.
4652         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4653         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4654         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4655         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4656         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4657         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4658         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4659         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4660         as cancellation points.
4661
4662 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4663
4664         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4665         parse more than three parts of the version number.
4666
4667 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4668
4669         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4670         modifier.  Patch by Jakub Jelinek.
4671
4672 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4673
4674         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4675         call_fallocate in misc subdir.
4676         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4677         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4678         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4679         instead of __fallocate64.
4680         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4681
4682 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4683
4684         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4685         * rt/Makefile (headers): Add bits/mqueue2.h.
4686         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4687         optimizing with GCC and __va_arg_pack_len is defined.
4688         * rt/bits/mqueue2.h: New file.
4689         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4690         (mq_open): New strong_alias.
4691         (__mq_open_2): New function.
4692         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4693         (mq_open): New strong_alias.
4694         (__mq_open_2): New function.
4695         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4696         * Versions.def (librt): Add GLIBC_2.7 version.
4697         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4698         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4699
4700         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4701         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4702         is defined rather than when not C++.
4703         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4704         __openat64_alias): New redirects.
4705         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4706         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4707         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4708         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4709         functions instead of function-like macros.
4710
4711 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4714         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4715         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4716
4717 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4718
4719         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4720         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4721
4722 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4723
4724         * inet/tst-network.c: Increment ERRORS for failing tests.
4725
4726 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4727
4728         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4729         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4730         implement as __extern_always_inline function.
4731         (vsyslog): Define as __extern_always_inline function unconditionally.
4732         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4733         When __va_arg_pack is defined, implement as __extern_always_inline
4734         functions.
4735         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4736         __extern_always_inline functions unconditionally.
4737         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4738         bits/stdio2.h will be included.
4739         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4740         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4741         implement as __extern_always_inline functions.
4742         (vswprintf, vwprintf, vfwprintf): Define as
4743         __extern_always_inline functions unconditionally.
4744         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4745
4746 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4747
4748         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4749         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4750         attribute.
4751         * include/features.h (__USE_EXTERN_INLINES): Define only when
4752         __extern_inline is defined.
4753         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4754         is defined instead of when not __cplusplus.
4755         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4756         is defined instead of when not __cplusplus.
4757         * socket/sys/socket.h: Include bits/socket2.h when
4758         __extern_always_inline is defined instead of when not __cplusplus.
4759         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4760         is defined instead of when not __cplusplus.
4761         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4762         is defined instead of when not __cplusplus.
4763         * string/string.h: Include bits/string3.h when __extern_always_inline
4764         is defined instead of when not __cplusplus.
4765         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4766         is defined instead of when not __cplusplus.
4767         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4768         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4769         is not defined.
4770         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4771         defined __extern_always_inline instead of !defined __cplusplus.
4772         * libio/bits/stdio-ldbl.h: Likewise.
4773         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4774         * misc/bits/syslog.h (syslog): Don't define for C++.
4775         (vsyslog): Use __extern_always_inline function for C++ instead of
4776         a macro.
4777         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4778         whenever that macro is defined.
4779         (vprintf): Don't provide the inline for C++.
4780         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4781         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4782         define the macros for C++.
4783         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4784         __extern_always_inline functions for C++.
4785         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4786         stat64, lstat64, fstat64, fstatat64): Don't define if not
4787         __USE_EXTERN_INLINES.
4788         * wcsmbs/bits/wchar2.h: Fix #error message.
4789         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4790         (vswprintf, vwprintf, vfwprintf): Define using
4791         __extern_always_inline functions for C++.
4792         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4793         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4794         strncpy, strcat, strncat): Define as __extern_always_inline
4795         functions instead of macros for C++.
4796         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4797         defined __extern_inline.
4798         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4799         to __extern_inline whenever that macro is defined.
4800         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4801         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4802         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4803         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4804         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4805         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4806         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4807         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4808         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4809         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4810         prototypes.  Only provide __extern_inline routines if
4811         __USE_EXTERN_INLINES.
4812         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4813         tests.
4814         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4815         For now avoid some *printf tests in C++.  Skip all testing
4816         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4817         is not.
4818         * debug/tst-chk4.cc: New file.
4819         * debug/tst-chk5.cc: New file.
4820         * debug/tst-chk6.cc: New file.
4821         * debug/tst-lfschk4.cc: New file.
4822         * debug/tst-lfschk5.cc: New file.
4823         * debug/tst-lfschk6.cc: New file.
4824         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4825         prototypes in C++.
4826         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4827         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4828         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4829
4830 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4831
4832         * po/cs.po: Update from translation team.
4833
4834 2007-09-11  Roland McGrath  <roland@redhat.com>
4835
4836         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4837         compiling.
4838
4839 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4840
4841         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4842
4843 2007-09-05  Roland McGrath  <roland@redhat.com>
4844
4845         * manual/signal.texi (Signaling Another Process): Typo fix.
4846         From Karl Berry <karl@freefriends.org>.
4847
4848 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4849
4850         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4851         zero if not defined.
4852         (make_request): Recognize optimistic addresses and treat them like
4853         deprecated addresses.
4854         Reported by Neil Horman <nhorman@redhat.com>.
4855
4856 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4857
4858         * nscd/connections.c (send_ro_fd): Also transfer file size.
4859         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4860         file size don't call fstat.
4861
4862         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4863         ahead and map the file.  This should always be correct and we can
4864         catch problems later.
4865
4866 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4867
4868         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4869         prototypes.
4870         (__fread_alias, __fread_unlocked_alias): New aliases.
4871         (fread): New extern inline.
4872         (fread_unlocked): Likewise.  Undef macro before definition of
4873         the inline function.
4874         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4875         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4876         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4877         and __fread_unlocked_chk@@GLIBC_2.7.
4878         * debug/fread_chk.c: New file.
4879         * debug/fread_u_chk.c: New file.
4880         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4881
4882 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4883
4884         * sysdeps/unix/sysv/linux/syscalls.list
4885         (personality): Change caller to EXTRA.
4886
4887 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4888
4889         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4890         to keep gcc quiet.
4891         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4892
4893         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4894         NDEBUG is defined.
4895
4896         * Makerules: Use -p option with mkdir.
4897
4898         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4899         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4900         (_xdr_directory_obj): Likewise.
4901         (xdr_entry_obj): Likewise.
4902         (xdr_group_obj): Likewise.
4903         (xdr_link_obj): Likewise.
4904         (xdr_table_obj): Likewise.
4905         (_xdr_nis_result): Likewise.
4906         (_xdr_ns_request): Likewise.
4907         (_xdr_ib_request): Likewise.
4908         (_xdr_nis_taglist): Likewise.
4909         (xdr_cback_data): Likewise.
4910         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4911         (xdr_ypresp_maplist): Likewise.
4912
4913         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4914
4915         * posix/regex_internal.h: Prevent some declarations and definitions
4916         to be seen when used in tests.
4917
4918         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4919         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4920
4921         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4922
4923         * config.make.in (datarootdir): Add to shut up configure.
4924
4925         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4926         associativity for fully-associative caches.
4927
4928         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4929         requests.  Fill on more associativity values for L2.
4930         Patch mostly by Evandro Menezes.
4931
4932 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4933
4934         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4935         (_libc_vdso_platform_setup): Avoid using exported variable by using
4936         alias.
4937
4938         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4939
4940         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4941         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4942         defined.
4943
4944 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4945
4946         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4947         align stack for call if pltexit is to be used.
4948
4949         [BZ #3924]
4950         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4951         align for function call in case pltexit has to be called later.
4952
4953         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4954         implicit atomic operation when storing function pointer.
4955         (_dl_runtime_profile): Likewise.
4956
4957 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4958
4959         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4960         NIS_NOTFOUND.
4961
4962 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4963
4964         [BZ #4566]
4965         * string/strtok.c: Fix typo in comment.
4966
4967         [BZ #4582]
4968         * debug/segfault.c: Fix typos in comments.
4969
4970         [BZ #4588]
4971         * stdio-common/tempnam.c: Fix comment, it is not checked that
4972         TMPDIR points to a writable directory.
4973
4974         [BZ #4726]
4975         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4976         memory allocated for the name server address.
4977
4978         [BZ #4946]
4979         * nscd/connections.c (handle_request): Using sendfile always
4980         requires that mmap is used for the database.
4981         Patch by Petr Baudis <pasky@suse.cz>.
4982
4983         [BZ #4905]
4984         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4985         suddenly has two or more addresses, ignore it and remove the old
4986         entry.
4987
4988         [BZ #4814]
4989         * resolv/res_hconf.c: Prepare for compiling outside libc.
4990         * nscd/res_hconf.c: New file.
4991         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4992         the new file.
4993         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4994         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4995
4996         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4997
4998         [BZ #4925]
4999         * debug/pcprofiledump.c: Turn on internationalization by calling
5000         setlocale.  Patch mostly by Benno Schulenberg.
5001
5002         [BZ #4936]
5003         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5004         the state.
5005         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5006         * iconvdata/bug-iconv5.c: New file.
5007
5008 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5009
5010         [BZ #4896]
5011         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5012         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5013         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5014         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5015         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5016         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5017         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5018         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5019
5020 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5021
5022         [BZ #4937]
5023         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5024         lookup loop.  Suggested by John Reiser.
5025
5026 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5027
5028         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5029
5030 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5031
5032         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5033         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5034         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5035         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5036         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5037         to...
5038         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5039
5040 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5041
5042         * po/nl.po: Update from translation team.
5043
5044 2007-08-16  Andreas Jaeger  <aj@suse.de>
5045
5046         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5047         Reported by Peter Festner <peter.festner@ewetel.net>.
5048
5049 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5050
5051         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5052
5053 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5054
5055         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5056         to check for undefined symbols.
5057
5058         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5059         If the syscall fails, set errno to the actual returned error number
5060         rather than EINVAL.
5061         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5062         arguments are incorrect, set errno to EINVAL, if the syscall
5063         fails, set errno to the actual returned error number.
5064
5065         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5066         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5067
5068         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5069         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5070         file.
5071         (ASI_PNF, ASI_BLK_P): Don't define.
5072         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5073         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5074         file.
5075         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5076         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5077         file.
5078
5079 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5080
5081         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5082         FE_UNDERFLOW on Niagara CPUs.
5083
5084         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5085         exceptions.
5086
5087 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5088
5089         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5090         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5091         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5092         flush should be used or not inside of the function.
5093         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5094
5095         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5096         __thread_start): Use HIDDEN_JUMPTARGET.
5097         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5098         __thread_start): Likewise.
5099         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5100
5101         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5102         Add libc_hidden_proto.
5103         (STRTOF): Add libc_hidden_proto.
5104         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5105         (strtold_l, wcstold_l): Use them as second argument for
5106         long_double_symbol.
5107
5108 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5109
5110         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5111
5112 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5113
5114         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5115
5116 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5117
5118         * po/bg.po: New file.  From the translation team.
5119
5120 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5121
5122         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5123         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5124         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5125         when each feature was introduced.
5126
5127         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5128         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5129         (CHECK_HASH): New macro.
5130         (PREPARE_VERSION): Use it.
5131
5132         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5133         prototype if not __ASSUME_PSELECT.
5134         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5135         prototype if not __ASSUME_PPOLL.
5136
5137         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5138
5139         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5140         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5141         is defined.
5142
5143 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5144
5145         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5146         (_libc_vdso_platform_setup): If vDSO is not available point
5147         __vdso_gettimeofday to the vsyscall.
5148         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5149         __vdso_gettimeofday instead of vsyscall.
5150
5151 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5152
5153         * nscd/servicescache.c: Include kernel-features.h.
5154         * nscd/gai.c: Likewise.
5155         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5156         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5157         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5158         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5159         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5160         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5161         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5162         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5163         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5164
5165 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5166
5167         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5168         and _dl_get_origin defines anymore.
5169
5170         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5171         Build fix for systems which might lack POSIX timer support.
5172
5173         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5174         (_libc_vdso_platform_setup): Mangle function pointers before storing
5175         them.
5176         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5177         Demangle vdso pointer before use.
5178         (INTERNAL_VSYSCALL): Likewise.
5179
5180         * elf/cache.c (primes): Mark as const.
5181         Noted by Roland McGrath.
5182
5183 2007-08-01  Andreas Jaeger  <aj@suse.de>
5184             Jakub Jelinek  <jakub@redhat.com>
5185
5186         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5187         (options): Add option.
5188         (parse_opt): Handle option.
5189         (manual_link): Adjust process_file caller.  Call implicit_soname.
5190         (search_dir): Formatting.  Use and populate auxiliary cache.
5191         (main): Load and save auxiliary cache.
5192         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5193         stat64 from fstat64 to caller.
5194         (implicit_soname): New function.
5195         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5196         leave *soname as NULL.
5197         * elf/cache.c: Include libgen.h.
5198         (print_entry, print_cache, compare, save_cache, add_to_cache):
5199         Formatting and cleanups.
5200         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5201         aux_cache_file): New structures.
5202         (AUX_CACHEMAGIC): Define.
5203         (primes): New array.
5204         (aux_hash_size, aux_hash): New variables.
5205         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5206         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5207         load_aux_cache, save_aux_cache): New functions.
5208         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5209         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5210         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5211         (process_file): Adjust prototype.
5212
5213 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5214
5215         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5216         with __need_size_t.
5217
5218 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5219
5220         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5221         r_found_version structure as second parameter.
5222         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5223         (_dl_vdso_vsym): Change type of second parameter accordingly.
5224         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5225         (_libc_vdso_platform_setup): Adjust.
5226         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5227         (_libc_vdso_platform_setup): Likewise.
5228
5229         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5230         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5231         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5232         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5233         * csu/libc-start.c: Pretty printing.
5234         Use VDSO_SETUP if defined.
5235         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5236         and let generic code call into _libc_vdso_platform_setup.
5237         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5238         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5239         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5240         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5241         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5242         for GLIBC_PRIVATE.
5243         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5244         (sysdep_rountines): Add dl-vdso.
5245
5246         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5247         of routines.
5248
5249         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5250         attribute_hidden to __vdso_gettimeofday prototype.
5251
5252 2007-08-12  Roland McGrath  <roland@redhat.com>
5253
5254         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5255         From: Karl Berry <karl@freefriends.org>.
5256
5257 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5258
5259         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5260         an atime update for the files we read.
5261
5262 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5263
5264         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5265
5266         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5267         instead of mkstemp.
5268
5269         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5270         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5271         * misc/mkostemp.c: New file.
5272         * misc/mkostemp64.c: New file.
5273         * stdlib/stdlib.h: Declare the new functions.
5274         * sysdeps/posix/tempname.c: Add new parameter which is added to
5275         the flags for open.  Remove __GT_BIGFILE handling.
5276         * stdio-common/tempname.c: Likewise.
5277         * include/stdio.h: Adjust __gen_tempname prototype.
5278         Renumber __GT_* constants.
5279         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5280         * misc/mkdtemp.c: Likewise.
5281         * misc/mkstemp.c: Likewise.
5282         * misc/mkstemp64.c: Likewise.
5283         * misc/mktemp.c: Likewise.
5284         * stdio-common/tempnam.c: Likewise.
5285         * stdio-common/tmpfile.c: Likewise.
5286         * stdio-common/tmpfile64.c: Likewise.
5287         * stdio-common/tmpnam.c: Likewise.
5288         * stdio-common/tmpnam_r.c: Likewise.
5289
5290 2007-08-10  Roland McGrath  <roland@frob.com>
5291
5292         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5293         New macros.
5294         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5295         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5296
5297 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5298
5299         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5300         possible.
5301         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5302         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5303         * nss/nss_files/files-have_o_cloexec.c: New file.
5304
5305         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5306         available.
5307
5308 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5309
5310         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5311         ___new_wcstold_l): New weak aliases.
5312         (strtold_l, wcstold_l): Use them as second argument for
5313         long_double_symbol.
5314
5315 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5316
5317         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5318         register in test for error.
5319
5320         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5321         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5322
5323         * po/sv.po: Update from translation team.
5324
5325 2007-08-06  Roland McGrath  <roland@redhat.com>
5326
5327         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5328         Remove __strto*_l inlines.
5329         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5330         * stdlib/strtod.c: Add libc_hidden_def.
5331         * stdlib/strtod_l.c: Likewise.
5332         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5333         for __new_strtold and __new_wcstold.
5334         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5335         __STRTOF, STRTOF.
5336         * stdlib/strtol.c: Add libc_hidden_def.
5337         * stdlib/strtol_l.c: Likewise.
5338         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5339         strtoq.
5340
5341         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5342
5343         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5344         * scripts/data/localplt-generic.data: ... here.
5345         * elf/Makefile (check-data): Get generic file if no other.
5346         ($(objpfx)check-localplt.out): Make target unconditional.
5347
5348         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5349         Use ElfW(Nhdr).
5350
5351 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5352
5353         * po/zh_CN.po: Updated translation from translation team.
5354
5355 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5356
5357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5358         Don't use CGOTSETUP and CGOTRESTORE macros.
5359
5360 2007-08-04  Roland McGrath  <roland@redhat.com>
5361
5362         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5363
5364 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5365
5366         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5367         __extension__ around the whole statement expression.
5368
5369 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5370
5371         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5372         elements during initialization.
5373
5374         * po/pl.po: Updated translation from translation team.
5375         * po/tr.po: Likewise.
5376         * po/nl.po: Likewise.
5377
5378 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5379
5380         * rt/aio.h: Add __nonnull attributes.
5381
5382 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5383
5384         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5385         * stdlib/Makefile (tests): Add tst-strtod5.
5386         (tst-strtod5-ENV): New.
5387         * stdlib/tst-strtod5.c: New file.
5388
5389         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5390         failed.
5391         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5392         on failure.
5393
5394         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5395         allocated.
5396
5397 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5398
5399         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5400         numbers.
5401
5402 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5403
5404         * io/Makefile (aux): Add have_o_cloexec.
5405         * include/fcntl.h: Declare __have_o_cloexec.
5406         * io/have_o_cloexec.c: New file.
5407         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5408         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5409         fcntl call if not necessary.
5410         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5411         of local variable.
5412
5413         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5414         Avoid memset, add explicit initialization.
5415         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5416         to the end and change into zero-sized array.
5417         Move lock member to fill a hole on 64-bit platforms.
5418
5419         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5420         inline functions.
5421         * include/stdlib.h: Add __strto*_internal prototypes here.
5422         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5423         inline functions.
5424         * include/wchar.h: Add __wcsto*_internal prototypes.
5425         * sysdeps/generic/inttypes.h: No need to protect the declaration
5426         of the __strto*_internal and __wcsto*_internal members here.
5427
5428         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5429
5430 2007-08-02  Roland McGrath  <roland@redhat.com>
5431
5432         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5433         $(inst_bindir)/getconf if possible.
5434
5435         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5436         (generated): Add it.
5437         ($(inst_libexecdir)/getconf): Use it.
5438
5439 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5440
5441         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5442         /proc is faster and sufficient.  /sys is still needed for
5443         __get_nprocs_conf.
5444
5445 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5446
5447         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5448         syscall as __fallocate64.
5449         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5450         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5451
5452 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5453
5454         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5455         value.
5456
5457         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5458         if off_t is different rank from size_t.
5459
5460         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5461         uw_frame_state_for): Avoid type punning warnings.
5462         * sysdeps/generic/unwind-dw2-fde-glibc.c
5463         (_Unwind_IteratePhdrCallback): Likewise.
5464         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5465         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5466         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5467         pointers.
5468
5469 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5470
5471         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5472         total processors using sysfs.
5473         (__get_nprocs): Use sysfs to determine which processors are online.
5474
5475 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5476
5477         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5478         syscall arguments count.
5479
5480         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5481
5482 2007-07-30  Roland McGrath  <roland@redhat.com>
5483
5484         * manual/libc.texinfo: Update copyrights, formatting magic, and
5485         @dircategory.  From Karl Berry <karl@freefriends.org>.
5486
5487 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5488
5489         [BZ #4860]
5490         * io/Makefile (headers): Add bits/fcntl2.h.
5491
5492         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5493         using gcc builtin.
5494         (__CPU_EQUAL_S): Likewise.
5495
5496         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5497         (tests): Add tst-cpuset.
5498         * posix/sched_cpualloc.c: New file.
5499         * posix/sched_cpufree.c: New file.
5500         * posix/tst-cpuset.c: New file.
5501         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5502         GLIBC_2.7.
5503         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5504         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5505         macros.  Define CPU_*_S macros.
5506
5507 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5508
5509         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5510         entry.
5511
5512         [BZ #4858]
5513         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5514         #.0g and value rounded to 1.0.
5515         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5516
5517 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5518
5519         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5520         for int_frac_digits and frac_digits.
5521
5522         * login/logout.c (logout): Avoid aliasing violation.
5523         * login/logwtmp.c (logwtmp): Likewise.
5524
5525         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5526
5527         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5528         to avoid warning.
5529         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5530         warning.
5531         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5532         warning.
5533         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5534         to avoid warnings.
5535
5536         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5537         void **.
5538         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5539
5540         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5541         char * to avoid warning.
5542         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5543
5544         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5545
5546         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5547         allocate_arrays): Cast second argument to charmap_find_symbol
5548         to char * to avoid warnings.
5549
5550         * locale/programs/repertoire.c (repertoire_new_char): Change
5551         from_nr, to_nr and cnt to unsigned long, adjust printf format
5552         string.
5553
5554         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5555         Cast second argument to new_element to char * to avoid warnings.
5556
5557         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5558
5559         * intl/gettextP.h (struct loaded_domain): Change plural to const
5560         struct expression *.
5561         * intl/plural-eval.c (plural_eval): Change first argument to
5562         const struct expression *.
5563         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5564         argument to const struct expression **.
5565         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5566         prototypes.
5567         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5568         in call to __gettext_free_exp.
5569
5570         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5571         unitialized wstring/wpattern var warnings.
5572
5573         * posix/runtests.c (struct a_test): Make data field const char *.
5574
5575         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5576         vars if not LDBL_MANT_DIG >= 106.
5577
5578         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5579
5580         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5581         __find_specmb to avoid warning.
5582
5583         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5584
5585         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5586         to avoid warnings.
5587
5588         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5589         initializer.
5590
5591         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5592         tv var when it will be actually used.
5593
5594         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5595         to avoid warnings.
5596
5597         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5598         char array resp. pointer.
5599         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5600         char array.
5601         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5602         to const unsigned char **.
5603         (ucs4_to_cns11643): Change second argument to unsigned char *.
5604         * iconvdata/euc-tw.c (BODY): Change endp type to
5605         const unsigned char *.
5606         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5607         to unsigned char *.
5608         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5609         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5610         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5611         types to unsigned char pointers/arrays instead of char.
5612         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5613         to unsigned char *.
5614         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5615         * iconvdata/jis0212.h: Include assert.h.
5616         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5617         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5618         of trying to handle that.
5619         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5620         shut up a warning.
5621         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5622         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5623         two dimensional const unsigned char arrays.
5624         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5625         Initialize endp to inptr to shut up a warning.
5626
5627 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5628
5629         [BZ #4772]
5630         * time/strptime_l.c (__strptime_internal): Silently ignore
5631         strftime modifiers and field width in recursive calls.
5632
5633         * include/time.h (enum ptime_locale_status): Remove.
5634         (__strptime_internal): Remove decided and era_cnt arguments,
5635         add statep argument.
5636         * time/strptime_l.c (__strptime_internal): Remove decided
5637         and era_cnt arguments, add statep argument.  Don't recompute
5638         any fields in recursive calls, only update caller's tm
5639         and state, if recursive call fails, don't change tm nor
5640         any state.
5641         (get_alt_number): Adjust.
5642         (recursive): Adjust caller.
5643         (strptime): Likewise.
5644         * time/strptime.c (strptime): Likewise.
5645
5646 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5647
5648         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5649         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5650         if from and to charsets are the same.
5651         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5652         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5653         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5654
5655 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5656
5657         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5658         Don't define wint_t when __need_mbstate_t unless it
5659         is necessary.
5660         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5661         in the typedef if possible.
5662         * wctype/wctype.h (wint_t): Define by including
5663         wchar.h with __need_wint_t instead of including stddef.h
5664         with __need_wint_t and as fallback definining it ourselves.
5665         * iconv/gconv.h (__need_wint_t): Define before including
5666         wchar.h.
5667         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5668         or _GLIBCPP_USE_WCHAR_T.
5669         (__need_wchar_t): Don't define
5670         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5671         (__need_wint_t): Don't define before including stddef.h,
5672         define before including wchar.h only if _LIBC or
5673         _GLIBCPP_USE_WCHAR_T.
5674         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5675         * sysdeps/mach/hurd/_G_config.h: Likewise.
5676         * sysdeps/generic/_G_config.h: Likewise.
5677         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5678         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5679         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5680         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5681
5682 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5683
5684         * sysdeps/posix/posix_fallocate64.c: Undefine
5685         __posix_fallocate64_l64 before alias handling.
5686         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5687         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5688         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5689         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5690
5691         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5692
5693 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5694
5695         * locale/programs/ld-collate.c (atwc): New variable.
5696         (add_to_tablewc): New toplevel function, moved from collate_output.
5697         (collate_output): Remove add_to_tablewc nested function.
5698
5699         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5700         (name_insert): New function.
5701         (write_output): Remove hash_table and hash_size vars and name_insert
5702         nested function.
5703
5704 2007-07-24  Roland McGrath  <roland@redhat.com>
5705
5706         * Makerules (install-others-programs-nosubdir): New target.
5707         (install-no-libc.a-nosubdir): Depend on it.
5708
5709         * iconv/Makefile (install-others-programs): Set this instead of
5710         install-others.
5711         * login/Makefile (install-others-programs): Likewise.
5712         * posix/Makefile (install-others-programs): Likewise.
5713
5714         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5715         dependencies.
5716
5717 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5718
5719         * io/Makefile (tests): Add tst-posix_fallocate.
5720         * io/tst-posix_fallocate.c: New file.
5721
5722         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5723         __ASSUME_FALLOCATE.
5724
5725 2007-07-22  Roland McGrath  <roland@frob.com>
5726
5727         * hurd/getdport.c: Add missing copyright year update.
5728
5729         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5730         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5731
5732 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5733
5734         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5735
5736         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5737         O_CLOEXEC is needed.
5738         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5739         Avoid additional fcntl to set O_CLOEXEC if not needed.
5740         * nis/nss_compat/compat-initgroups.c: Likewise.
5741         * nis/nss_compat/compat-pwd.c: Likewise.
5742         * nis/nss_compat/compat-spwd.c: Likewise.
5743
5744 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5745
5746         [BZ #3665]
5747         * manual/errno.texi: Change ECANCELED value to 119.
5748
5749         [BZ #4610]
5750         * mach/lock-intern.h: Include <sys/cdefs.h>.
5751
5752         [BZ #4178]
5753         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5754         reading A.
5755
5756         [BZ #4126]
5757         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5758         to __sigsuspend.
5759
5760         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5761
5762 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5763
5764         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5765         `__ASSEMBLER__'.
5766         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5767
5768 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5769
5770         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5771         descriptor received from nscd.
5772
5773         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5774
5775         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5776         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5777         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5778         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5779         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5780         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5781
5782 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5783
5784         [BZ #4816]
5785         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5786
5787         [BZ #4813]
5788         * login/forkpty.c (forkpty): Close master and slave fds on
5789         fork failure.  Patch by
5790         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5791
5792 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5793
5794         * include/features.h (__USE_ISOC95): New define.
5795         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5796         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5797         for -std=iso9899:199409.
5798         * CONFORMANCE: Remove comments about unsupported AMD1.
5799
5800 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5801
5802         * sysdeps/ia64/sched_cpucount.c: New file.
5803         * sysdeps/powerpc/sched_cpucount.c: New file.
5804
5805         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5806         __BEGIN_DECLS/__END_DECLS around the prototype.
5807         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5808         pointer to const cpu_set_t.
5809
5810         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5811         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5812         __need_size_t and include stddef.h.
5813         * sysvipc/sys/msg.h: Likewise.
5814         * posix/sched.h: Likewise.
5815         * hurd/hurd/signal.h (__need_size_t): Define.
5816
5817         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5818         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5819         no longer defines wint_t or wchar_t.
5820
5821         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5822         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5823         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5824         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5825         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5826         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5827         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5828         * debug/printf_chk.c (__printf_chk): Likewise.
5829         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5830         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5831
5832         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5833         Define.
5834
5835         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5836         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5837
5838 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5839
5840         [BZ #4792]
5841         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5842         * malloc/malloc.h (realloc): Likewise.
5843
5844         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5845         if one of proc_file_chain streams has that fileno.
5846         * stdio-common/Makefile (tests): Add tst-popen2.
5847         * stdio-common/tst-popen2.c: New test.
5848
5849 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5850
5851         * elf/ldconfig.c: Allow GPLv2 or any later version.
5852         * elf/readlib.c: Likewise.
5853         * elf/chroot_canon.c: Likewise.
5854         * elf/cache.c: Likewise.
5855         * nscd/mem.c: Likewise.
5856         * nscd/getpwuid_r.c: Likewise.
5857         * nscd/grpcache.c: Likewise.
5858         * nscd/aicache.c: Likewise.
5859         * nscd/getsrvbynm_r.c: Likewise.
5860         * nscd/nscd.c: Likewise.
5861         * nscd/servicescache.c: Likewise.
5862         * nscd/getsrvbypt_r.c: Likewise.
5863         * nscd/initgrcache.c: Likewise.
5864         * nscd/gethstbyad_r.c: Likewise.
5865         * nscd/gethstbynm2_r.c: Likewise.
5866         * nscd/getgrnam_r.c: Likewise.
5867         * nscd/nscd_setup_thread.c: Likewise.
5868         * nscd/getpwnam_r.c: Likewise.
5869         * nscd/gai.c: Likewise.
5870         * nscd/connections.c: Likewise.
5871         * nscd/dbg_log.c: Likewise.
5872         * nscd/cache.c: Likewise.
5873         * nscd/hstcache.c: Likewise.
5874         * nscd/nscd_conf.c: Likewise.
5875         * nscd/getgrgid_r.c: Likewise.
5876         * nscd/pwdcache.c: Likewise.
5877         * catgets/gencat.c: Likewise.
5878         * locale/programs/linereader.h: Likewise.
5879         * locale/programs/locarchive.c: Likewise.
5880         * locale/programs/ld-paper.c: Likewise.
5881         * locale/programs/locfile-kw.h: Likewise.
5882         * locale/programs/ld-address.c: Likewise.
5883         * locale/programs/xmalloc.c: Likewise.
5884         * locale/programs/ld-time.c: Likewise.
5885         * locale/programs/localedef.c: Likewise.
5886         * locale/programs/simple-hash.c: Likewise.
5887         * locale/programs/xstrdup.c: Likewise.
5888         * locale/programs/ld-numeric.c: Likewise.
5889         * locale/programs/locfile-kw.gperf: Likewise.
5890         * locale/programs/ld-collate.c: Likewise.
5891         * locale/programs/charmap-kw.gperf: Likewise.
5892         * locale/programs/charmap.h: Likewise.
5893         * locale/programs/charmap-kw.h: Likewise.
5894         * locale/programs/config.h: Likewise.
5895         * locale/programs/locfile.c: Likewise.
5896         * locale/programs/ld-ctype.c: Likewise.
5897         * locale/programs/charmap.c: Likewise.
5898         * locale/programs/ld-messages.c: Likewise.
5899         * locale/programs/repertoire.h: Likewise.
5900         * locale/programs/locale.c: Likewise.
5901         * locale/programs/ld-name.c: Likewise.
5902         * locale/programs/linereader.c: Likewise.
5903         * locale/programs/locfile.h: Likewise.
5904         * locale/programs/3level.h: Likewise.
5905         * locale/programs/ld-monetary.c: Likewise.
5906         * locale/programs/ld-measurement.c: Likewise.
5907         * locale/programs/charmap-dir.c: Likewise.
5908         * locale/programs/ld-identification.c: Likewise.
5909         * locale/programs/localedef.h: Likewise.
5910         * locale/programs/charmap-dir.h: Likewise.
5911         * locale/programs/repertoire.c: Likewise.
5912         * locale/programs/simple-hash.h: Likewise.
5913         * locale/programs/ld-telephone.c: Likewise.
5914         * locale/programs/locale-spec.c: Likewise.
5915         * locale/programs/locfile-token.h: Likewise.
5916         * posix/getconf.c: Likewise.
5917         * iconv/dummy-repertoire.c: Likewise.
5918         * iconv/iconv_charmap.c: Likewise.
5919         * iconv/iconvconfig.c: Likewise.
5920         * iconv/iconv_prog.c: Likewise.
5921         * malloc/memusagestat.c: Likewise.
5922         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5923
5924 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5925
5926         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5927         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5928         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5929         check for the first argument.
5930
5931 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5932
5933         [BZ #4775]
5934         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5935         (__tgmath_real_type): Fix if expr is const int or other const
5936         qualified integral type.
5937         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5938         expressions and handle const qualified arguments.
5939         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5940         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5941         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5942         statement expressions.
5943         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5944         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5945         (__TGMATH_UNARY_IMAG): Define.
5946         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5947         * math/Makefile (tests): Add test-tgmath2.
5948         (CFLAGS-test-tgmath2.c): Add.
5949         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5950         count_cfloat, count_cldouble): New variables.
5951         (NCCALLS): Define.
5952         (main): Check number of complex calls as well.
5953         (F(compile_test)): Add complex tests and tests with const qualified
5954         arguments.
5955         (y, z, ccount): Define.
5956         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5957         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5958         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5959         F(cproj)): New functions.
5960         * math/test-tgmath2.c: New test.
5961
5962 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5963
5964         [BZ #4776]
5965         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5966         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5967         instead output ".".
5968         * dlfcn/Makefile (distribute): Add glreflib3.c.
5969         (module-names): Add glreflib3.
5970         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5971         glreflib1.so.
5972         (LDFLAGS_glreflib3.so): New.
5973         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5974         glreflib1.so.
5975         * dlfcn/glreflib3.c: New file.
5976
5977         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5978         returned -1, return NULL.
5979         * intl/explodename.c (_nl_explode_name): Return -1 if
5980         _nl_normalize_codeset failed.
5981
5982 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5983
5984         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5985         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5986         and avoid branch misspredicts for > 31 bytes memset case.
5987         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5988         Remove toc ref to __cache_line_size.
5989
5990         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5991         to get ISA-V2.0 branch hints.
5992         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5993         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5994         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5995         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5996         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5997         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5998         Remove toc ref to __cache_line_size.
5999
6000         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6001         Include math_ldbl_opt.h.
6002
6003 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6004
6005         [BZ #4773]
6006         * time/strptime_l.c (__strptime_internal): Implement greedy
6007         matching of weekday and month names.
6008
6009 2007-07-09  Roland McGrath  <roland@redhat.com>
6010
6011         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6012         (ELF_NOTE_ABI): Use it.
6013         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6014
6015 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6016
6017         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6018         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6019
6020 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6021
6022         [BZ #4745]
6023         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6024         in loop to look for conversion specifier to avoid testing of
6025         wrong errno value.
6026         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6027         * stdio-common/bug18.c: New file.
6028         * stdio-common/bug18a.c: New file.
6029         * stdio-common/bug19.c: New file.
6030         * stdio-common/bug19a.c: New file.
6031
6032 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6033
6034         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6035         running awk script.
6036
6037 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6038
6039         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6040         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6041         Return NULL if mmap failed instead of asserting it does not.
6042         (calloc): Check for integer overflow.
6043
6044         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6045         than LONG_MAX / 10.
6046
6047 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6048
6049         [BZ #4702]
6050         * nis/nss-default.c: Include errno.h.
6051         (init): Preserve errno.
6052
6053 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6054
6055         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6056
6057 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6058
6059         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6060
6061 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6062
6063         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6064
6065 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6066
6067         * sysdeps/s390/dl-procinfo.c: New file.
6068         * sysdeps/s390/dl-procinfo.h: New file.
6069         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6070
6071 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6072
6073         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6074         in PT_NOTE segments with multiple notes.
6075         * elf/readelflib.c (process_elf_file): Likewise.
6076
6077 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6078
6079         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6080         ISO C compliant.
6081
6082 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6083
6084         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6085
6086 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6087
6088         * include/link.h: Don't include rtld-lowlevel.h.
6089         (struct link_map): Remove l_scope_lock.
6090         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6091         (_dl_scope_free_list): New field (variable) in _rtld_global.
6092         (DL_LOOKUP_SCOPE_LOCK): Remove.
6093         (_dl_scope_free): New prototype.
6094         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6095         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6096         (_dl_profile_fixup): Likewise.
6097         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6098         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6099         THREAD_GSCOPE_RESET_FLAG around it.
6100         * elf/dl-close.c (_dl_close_worker): Don't use
6101         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6102         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6103         scopes were queued or if l_scope_mem has been abandoned.
6104         * elf/dl-open.c (_dl_scope_free): New function.
6105         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6106         * elf/dl-support.c (_dl_scope_free_list): New variable.
6107         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6108         Remove DL_LOOKUP_SCOPE_LOCK handling.
6109         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6110         handling.
6111         * elf/dl-object.c (_dl_new_object): Don't use
6112         __rtld_mrlock_initialize.
6113
6114 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6115
6116         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6117         to fill in holes
6118         (rtld_global_ro): Likewise.
6119
6120 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6121
6122         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6123         Move PT_LOAD checking to...
6124         (_dl_addr_inside_object): ... here, new function.
6125         * elf/dl-sym.c (do_sym): If not l_contiguous,
6126         call _dl_addr_inside_object.
6127         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6128         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6129         * elf/dl-open.c (dl_open_worker): Likewise.
6130         (_dl_addr_inside_object): New function if IS_IN_rtld.
6131         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6132         holes are present or are PROT_NONE protected.
6133         * include/link.h (struct link_map): Add l_contiguous field.
6134         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6135
6136 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6137             Tomas Janousek  <tjanouse@redhat.com>
6138             Ulrich Drepper  <drepper@redhat.com>
6139
6140         [BZ #4647]
6141         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6142         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6143         socket.
6144         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6145         unused member a bitmap.
6146         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6147         servers are configured.
6148
6149 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6150
6151         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6152
6153 2007-06-17  Andreas Schwab  <schwab@suse.de>
6154
6155         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6156
6157 2007-06-16  Andreas Jaeger  <aj@suse.de>
6158
6159         [BZ #4125]
6160         * sysdeps/unix/sysv/linux/sys/ptrace.h
6161         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6162         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6163         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6164         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6165         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6166         Define.
6167         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6168         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6169         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6170         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6171
6172 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6173
6174         [BZ #4599]
6175         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6176         determining whether there are IPv4/IPv6 addresses, ignore loopback
6177         addresses.
6178
6179 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6180
6181         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6182         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6183         as the return type.  Change type of "r" variable to CMPtype.
6184         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6185         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6186         * soft-fp/gedf2.c (__gedf2): Likewise.
6187         * soft-fp/gesf2.c (__gesf2): Likewise.
6188         * soft-fp/getf2.c (__getf2): Likewise.
6189         * soft-fp/ledf2.c (__ledf2): Likewise.
6190         * soft-fp/lesf2.c (__lesf2): Likewise.
6191         * soft-fp/letf2.c (__letf2): Likewise.
6192         * soft-fp/unorddf2 (__unorddf2): Likewise.
6193         * soft-fp/unordsf2 (__unordsf2): Likewise.
6194         * soft-fp/unordtf2 (__unordtf2): Likewise.
6195
6196 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6197
6198         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6199         make sure gcc doesn't mess around with this.
6200
6201 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6202
6203         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6204
6205 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6206
6207         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6208         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6209         at most once per _dl_close_worker.
6210
6211 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6212
6213         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6214         __sched_cpucount as const.
6215         * posix/sched_cpucount.c: Adjust.
6216
6217         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6218         instruction for counting bits.
6219         * sysdeps/x86_64/sched_cpucount.c: New file.
6220
6221 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6222
6223         * configure.in: Avoid variable named BASH.
6224         * config.make.in: Likewise.
6225         Patch in part by Mike Frysinger.
6226
6227 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6228
6229         [BZ #4586]
6230         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6231         pseudo-zeros as zero.
6232         * sysdeps/x86_64/ldbl2mpn.c: New file.
6233         * sysdeps/ia64/ldbl2mpn.c: New file.
6234
6235 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6236
6237         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6238         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6239         Remove unreachable code at the end.
6240
6241 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6242
6243         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6244         ldbl-128ibm in comment.
6245         (fpclassifyl): Correct classification of denormals.
6246         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6247         return value for MIN denormal. Rewrite using long double math too
6248         correctly handle denormals and canonicalize the results.
6249
6250 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6251
6252         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6253         (__mpn_construct_long_double): Fix conversion where result ought
6254         to be smaller than __LDBL_MIN__, or the low double should be
6255         denormal.  Fix decision where to negate low double - honor round
6256         to even rules.
6257         * stdio-common/tst-sprintf2.c: Include string.h.
6258         (COMPARE_LDBL): Define.
6259         (TEST): Also test whether a string hexadecimal float representation
6260         can be parsed back to the number.
6261         (main): Add a couple of further tests.
6262
6263 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6264
6265         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6266         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6267         is non-zero, but smaller than 2 * __DBL_MIN__.
6268         * stdio-common/tst-sprintf2.c: New test.
6269         * stdio-common/Makefile (tests): Add tst-sprintf2.
6270
6271         * math/test-misc.c (main): Don't run last batch of tests with
6272         IBM long double format.
6273
6274 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6275
6276         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6277         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6278         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6279         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6280         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6281         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6282         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6283         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6284         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6285         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6288         New file.
6289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6290         New file.
6291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6292         New file.
6293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6294         New file.
6295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6296         New file.
6297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6299         New file.
6300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6301         New file.
6302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6303         New file.
6304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6305         New file.
6306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6307         New file.
6308
6309 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6310
6311         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6312         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6313         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6314         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6315         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6316         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6317         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6318         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6319
6320 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6321
6322         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6323         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6324         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6325         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6326         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6327         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6328         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6329         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6330
6331 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6332
6333         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6334         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6335         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6336         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6337
6338 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6339
6340         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6341         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6342
6343 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6344
6345         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6346         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6347         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6348         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6349
6350 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6351
6352         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6353         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6354
6355 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6356
6357         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6358         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6359
6360         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6361         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6362         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6363         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6364
6365 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6366
6367         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6368         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6369         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6370         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6371
6372 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6373
6374         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6375         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6376         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6377         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6378         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6379         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6380
6381 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6382
6383         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6384         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6385         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6386         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6387
6388 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6389
6390         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6391         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6392         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6393         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6394         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6395         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6396         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6397         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6398         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6399         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6400         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6401         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6402         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6403         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6404         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6405         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6406
6407 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6408
6409         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6410         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6411
6412 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6413
6414         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6415         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6416
6417 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6418
6419         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6420         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6421         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6422         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6423         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6424         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6425         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6426         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6427         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6428         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6429
6430 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6431
6432         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6433
6434 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6435
6436         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6437         branch miss-predicts. Ensure that cache line crossing does not impact
6438         dispatch grouping.
6439
6440 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6441
6442         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6443         "../../powerpc32/power4/memcopy.h".
6444         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6445         "../../powerpc32/power4/wordcopy.c".
6446
6447 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6448
6449         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6450         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6451         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6452         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6453         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6454         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6455
6456 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6457
6458         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6459
6460 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6461
6462         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6463         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6464         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6465         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6466         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6467         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6468         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6469         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6470
6471 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6472
6473         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6474
6475 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6476
6477         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6478         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6479         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6480         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6481         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6482         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6483         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6484
6485 2007-05-29  Roland McGrath  <roland@redhat.com>
6486
6487         * po/Makefile (po-sed-cmd): New variable.
6488         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6489
6490 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6491
6492         * crypt/md5-crypt.c: Fix comment.
6493
6494         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6495         of crashing.  When this is the case or if the reply is malformed,
6496         don't try to close the new file descriptor since it does not
6497         exist.
6498         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6499
6500 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6501
6502         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6503         if __NR_utimensat is not defined.
6504
6505 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6506
6507         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6508
6509 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6510
6511         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6512         (open): Fix comment typos.  Don't call __open_2 if flags
6513         is a compile time constant without O_CREAT.
6514         (__open64_2): Add nonnull attribute.
6515         (open64): Fix comment typos.  Don't call __open64_2 if flags
6516         is a compile time constant without O_CREAT.
6517         (__openat_2): Add nonnull attribute, fix nonnull attribute
6518         on redirect.
6519         (openat): Fix comment typos.  Don't call __openat_2 if flags
6520         is a compile time constant without O_CREAT.
6521         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6522         on redirect.
6523         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6524         is a compile time constant without O_CREAT.
6525
6526 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6527
6528         * Makerules (sysd-rules): Define PTW for ptw-* files.
6529         * Versions: Define GLIBC_2.7 for libc.
6530         * include/stdio.h: Declare __fortify_fail.
6531         * debug/fortify_fail.c: New file.
6532         * debug/Makefile (routines): Add fortify_fail.
6533         * debug/chk_fail.c: Use __fortify_fail.
6534         * debug/stack_chk_fail.c: Likewise.
6535         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6536         __openat64_2 for GLIBC_2.7.
6537         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6538         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6539         and fails if necessary.
6540         * io/open64.c: Likewise.
6541         * io/openat.c: Likewise.
6542         * io/openat64.c: Likewise.
6543         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6544         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6545         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6546         * io/bits/fcntl2.h: New file.
6547         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6548         __openat64_2.
6549         * include/bits/fcntl2.h: New file.
6550         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6551         Add open_2.
6552         * sysdeps/unix/sysv/linux/open_2.c: New file.
6553
6554 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6555
6556         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6557         as second parameter to handle_intel.
6558
6559         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6560         the entry.
6561
6562         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6563         handling to ...
6564         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6565         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6566         cacheinfo.
6567         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6568         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6569         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6570
6571         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6572
6573 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6574
6575         [BZ #4525]
6576         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6577         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6578         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6579
6580         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6581
6582         [BZ #4514]
6583         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6584         reinitialize workend at the start of each do_positional format spec
6585         loop, free workstart before do_positional loops.
6586         (printf_unknown): Fix size of work_buffer.
6587         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6588
6589         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6590         (public_sET_STATe): If ms->version < 3, put all chunks into
6591         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6592         chunks.
6593
6594         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6595         * malloc/hooks.c: Likewise.
6596         * malloc/arena.c: Likewise.
6597         * malloc/malloc.c (do_check_malloc_state): Don't assert
6598         n_mmaps is not greater than n_mmaps_max.  This removes the need
6599         for the previous change.
6600
6601         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6602         2007-05-07 commit.
6603
6604 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6605
6606         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6607         Define for kernel >= 2.6.22.
6608
6609 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6610
6611         * elf/dl-close.c (_dl_close_worker): When removing object from
6612         global scope, wait for all lookups to finish afterwards.
6613         * elf/dl-open.c (add_to_global): When global scope array must
6614         grow, allocate a new one and free old array only after all
6615         lookups finish.
6616         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6617         (_dl_lookup_symbol_x): Likewise.
6618         * elf/dl-support.c: Define _dl_wait_lookup_done.
6619         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6620         _dl_wait_lookup_done.
6621
6622         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6623         not overlapping with arena.
6624
6625         * malloc/mcheck.c (reallochook): If size==0, free the block.
6626
6627         * rt/tst-shm.c: Use fstat64 instead of fstat.
6628
6629         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6630         __NR_sync_file_range is not defined.
6631
6632 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6633
6634         Dummy files to prevent stub versions from being used.
6635         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6636         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6637         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6638         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6639
6640         * version.h (VERSION): Set to 2.6.90.
6641
6642 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6643
6644         * version.h (VERSION): Define to 2.6.
6645         * include/features.h (__GLIBC_MINOR__): Define to 6.
6646
6647         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6648
6649         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6650         sizes.
6651
6652 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6653
6654         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6655         number of mmaps.  n_mmaps_max is the target.
6656         * malloc/hooks.c: Likewise.
6657         * malloc/arena.c: Likewise.
6658
6659 2007-05-12  Andreas Jaeger  <aj@suse.de>
6660
6661         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6662         getpid.
6663
6664 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6665
6666         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6667         adding new variables.
6668
6669         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6670         optimize.  Completely extend global scope array before making the
6671         new entries visible.
6672
6673 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6674
6675         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6676         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6677         tst-getcpu.
6678
6679         * include/link.h: Move l_version and l_nversion members around to
6680         fill gaps.
6681
6682         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6683
6684         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6685         (__sched_setaffinity_new): If syscall was successful and
6686         RESET_VGETCPU_CACHE is defined, use it before returning.
6687         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6688
6689         * io/sys/stat.h: Make sure struct timespec is defined for
6690         __USE_ATFILE.
6691
6692         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6693         UTIME_OMIT.
6694         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6695         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6696         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6697         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6698         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6699         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6700         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6701         * io/sys/stat.h: Declare utimensat, futimens.
6702         * io/utimensat.c: New file.
6703         * io/futimens.c: New file.
6704         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6705         * sysdeps/unix/sysv/linux/futimens.c: New file.
6706         * io/Makefile (routines): Add utimensat, futimens.
6707         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6708         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6709         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6710         available.
6711
6712         * include/sys/cdefs.h: Redefine __nonnull so that test for
6713         incorrect parameters in the libc code itself are not omitted.
6714
6715 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6716
6717         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6718         exception in addition to inexact when asked to raise only FE_INEXACT.
6719
6720         [BZ #3427]
6721         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6722         in *envp.
6723
6724 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6725
6726         [BZ #4403]
6727         * string/strfry.c (strfry): Make result more random.
6728
6729 2007-05-07  Richard Henderson  <rth@redhat.com>
6730
6731         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6732         if __NO_LONG_DOUBLE_MATH.
6733         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6734         available in the compiler, add .arch directive to the assembly.
6735
6736 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6737
6738         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6739         compat_symbol to GLIBC_2_1.
6740         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6741         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6742         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6743         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6744         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6745         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6746         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6747         libc, not libm.
6748         (__isnanl): New compat_symbol.
6749
6750 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6751             Jakub Jelinek  <jakub@redhat.com>
6752
6753         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6754         (new_heap): Initialize mprotect_size.
6755         (grow_heap): When growing, only mprotect from mprotect_size till
6756         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6757         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6758
6759 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6760             Peter Bergner  <bergner@us.ibm.com>
6761
6762         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6763         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6764         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6765         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6766         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6767         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6768         Call __fe_mask_env() if all FP exceptions disabled.
6769         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6770         from old FPSCR to new fenv to propagate DFP rounding modes.
6771         Call __fe_mask_env() if FP exceptions previously enabled.
6772         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6773         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6774         transitioning from all exceptions disabled to any exception enabled
6775         or visa versa.
6776         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6777         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6778         when transitioning from all exceptions disabled to any exception
6779         enabled or visa versa.
6780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6786
6787 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6788
6789         [BZ #4465]
6790         * posix/unistd.h: Remove __THROW from fdatasync.
6791
6792 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6793
6794         [BZ #4465]
6795         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6796
6797 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6798
6799         * stdio-common/vfprintf.c (process_string_arg): Optimize
6800         ridiculous precision in wide char code printing multi-byte string.
6801         Reported by Jim Meyering <jim@meyering.net>.
6802
6803         [BZ #4131]
6804         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6805         boundaries to work around systems with overlapping binary loading.
6806         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6807
6808 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6809
6810         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6811         __mbsnrtowcs after last change.
6812
6813         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6814         (get_ident): Likewise.
6815
6816 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6817
6818         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6819         with setting the sticky bit.
6820         * math/test-misc.c (main): Add more truncation tests.
6821
6822 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6823
6824         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6825         double in the function declaration.
6826         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6827         double in the function declaration.
6828         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6829         float in the function declaration.
6830         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6831         float in the function declaration.
6832
6833         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6834         denormal operands.  Do not generate FP_EX_DENORM exception.
6835         (FP_UNPACK_RAW_EP): Ditto.
6836         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6837         undefined _FP_UNPACK_RAW_E.
6838         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6839         undefined _FP_UNPACK_RAW_EP.
6840         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6841         undefined _FP_PACK_RAW_E.
6842         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6843         undefined _FP_PACK_RAW_EP.
6844
6845         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6846         _FP_FRAC_COPY_2.
6847         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6848         _FP_FRAC_COPY_4.
6849
6850 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6851             Jakub Jelinek  <jakub@redhat.com>
6852
6853         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6854         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6855         this case.
6856         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6857
6858 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6859
6860         * math/test-misc.c (main): Add tests for rounding long double
6861         values close to smallest double denormalized value to double.
6862
6863 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6864
6865         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6866         condition for truncating to 0.  Set sticky bit for such
6867         truncation.
6868
6869 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6870
6871         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6872         fixed length array for ignore.
6873
6874 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6875
6876         [BZ #4438]
6877         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6878         stack for large precisions.
6879         * stdio-common/test-vfprintf.c (main): Add test for large
6880         precision.
6881
6882 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6883
6884         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6885         for exponent 0.
6886         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6887
6888         [BZ #4439]
6889         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6890         account in the size check.
6891         * resolv/tst-inet_ntop.c: New test.
6892         * resolv/Makefile (tests): Add tst-inet_ntop.
6893
6894 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6895             Jakub Jelinek  <jakub@redhat.com>
6896
6897         [BZ #4349]
6898         * malloc/malloc.c: Keep separate list for first blocks on the bin
6899         lists with a given size.  This helps skipping over list elements
6900         we know won't fit in two places.
6901         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6902
6903 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6904
6905         [BZ #4102]
6906         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6907         label to Teredo tunnel addresses 2001://32.
6908
6909 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6910
6911         * locale/programs/ld-collate.c (collate_read): Allow order_start
6912         after copy.
6913
6914         * locale/programs/ld-collate.c (collate_read): Fix printing of
6915         error message.
6916
6917         [BZ #3213]
6918         * locale/C-translit.h.in: Add entry for U2044.
6919
6920         [BZ #4342]
6921         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6922         hexa-decimal floats without exponent.
6923         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6924
6925 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6926
6927         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6928         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6929         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6930         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6931         GLIBC_2.6.
6932         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6933         Add sched_getcpu.
6934
6935 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6936
6937         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6938         of 0 after the out_fail label.
6939
6940 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6941
6942         [BZ #4406]
6943         * iconv/gconv_charset.h (strip): Allow ':'.
6944         * iconv/iconv_open.c (iconv_open): Adjust comment.
6945
6946 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6947
6948         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6949         version.
6950
6951 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6952
6953         [BZ #4381]
6954         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6955         alignment of buffer and tmp_buffer.
6956         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6957         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6958         alignment of buffer.
6959         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6960         bigger than INT_MAX.
6961         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6962         h_errnop arguments.  Fail if buflen is too small.
6963         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6964
6965 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6966
6967         [BZ #4405]
6968         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6969         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6970
6971 2007-04-22  Roland McGrath  <roland@redhat.com>
6972
6973         * elf/elf.h (NT_PRXFPREG): New macro.
6974
6975 2007-04-19  Andreas Jaeger  <aj@suse.de>
6976
6977         [BZ #3905]
6978         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6979         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6980         Added.
6981
6982 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6983
6984         * include/sys/mman.h: Mark madvise hidden.
6985         * misc/madvise.c: Add libc_hidden_def.
6986
6987 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6988
6989         * nis/nis_domain_of.c (__nis_domain_of): New function.
6990         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6991         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6992         * nis/nis_call.c (rec_dirsearch): Likewise.
6993         (first_shoot): Likewise.  Remove search_parent_first argument.
6994         (struct nis_server_cache): Rename search_parent_first field
6995         to search_parent.
6996         (nis_server_cache_search, nis_server_cache_add): Rename
6997         search_parent_first argument to search_parent.
6998         (__nisfind_server): Likewise.  If search_parent, call
6999         __nis_domain_of.
7000
7001 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7002
7003         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7004
7005 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7006
7007         [BZ #4368]
7008         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7009
7010 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7011
7012         [BZ #4364]
7013         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7014
7015 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7016
7017         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7018         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7019         current number of locales in SUPPORTED.
7020         (create_archive): Initialize serial.
7021         (enlarge_archive): Preserve aliases rather than duplicating
7022         their locrecs.
7023
7024 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7025
7026         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7027         after _IO_un_link, not before it.
7028
7029         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7030         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7031         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7032
7033 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7034
7035         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7036         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7037         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7038         Remove __THROW.
7039         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7040         _IO_file_xsgetn_maybe_mmap): Likewise.
7041         * libio/oldfileops.c (old_do_write): Likewise.
7042         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7043         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7044         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7045         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7046         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7047         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7048         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7049         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7050         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7051         _IO_file_underflow, _IO_file_underflow_mmap,
7052         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7053         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7054         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7055         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7056         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7057         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7058         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7059         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7060         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7061         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7062         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7063         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7064         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7065         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7066         _IO_adjust_column_internal, _IO_default_uflow_internal,
7067         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7068         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7069         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7070         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7071         _IO_file_close_it_internal, _IO_file_underflow_internal,
7072         _IO_file_overflow_internal, _IO_file_attach_internal,
7073         _IO_file_fopen_internal, _IO_file_sync_internal,
7074         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7075         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7076         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7077         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7078         _IO_seekpos_unlocked): Likewise.
7079         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7080         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7081
7082 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7083
7084         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7085         argument in xmalloc size computation.
7086
7087 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7088
7089         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7090         math_opt_barrier and math_force_eval macros.
7091
7092 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7093
7094         [BZ #3306]
7095         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7096         * sysdeps/i386/fpu/math_private.h: New file.
7097         * sysdeps/x86_64/fpu/math_private.h: New file.
7098         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7099         math_force_eval macros.  Use "+m" constraint on asm rather than
7100         "=m" and "m".
7101         * math/s_nextafter.c (__nextafter): Likewise.
7102         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7103         Likewise.
7104         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7105         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7106         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7107         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7108         math_opt_barrier and math_force_eval macros.
7109         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7110         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7111         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7112         (__nexttoward): Use math_opt_barrier and
7113         math_force_eval macros.  Use "+m" constraint on asm rather than
7114         "=m" and "m".  Only use asm to force double result if
7115         FLT_EVAL_METHOD is 2.
7116         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7117         (__nexttowardf): Use math_opt_barrier and
7118         math_force_eval macros.  Use "+m" constraint on asm rather than
7119         "=m" and "m".  Only use asm to force double result if
7120         FLT_EVAL_METHOD is not 0.
7121         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7122         (__nexttowardf): Use math_opt_barrier and
7123         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7124         x to float using asm.
7125         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7126         (__nldbl_nexttowardf): Use math_opt_barrier and
7127         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7128         x to float using asm.
7129         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7130         (__nexttowardf): Use math_opt_barrier and math_force_eval
7131         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7132         * math/bug-nextafter.c (zero, inf): New variables.
7133         (main): Add new tests.
7134         * math/bug-nexttoward.c (zero, inf): New variables.
7135         (main): Add new tests.
7136
7137 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7138
7139         [BZ #3427]
7140         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7141         exceptions both in SW and MXCSR.
7142         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7143         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7144         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7145         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7146         in MXCSR if SSE is available.
7147         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7148         and ldsodefs.h.
7149         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7150         Fix comment typo.
7151         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7152         Return 0 rather than 1.
7153         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7154         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7155         * math/test-fenv.c (feholdexcept_tests): New function.
7156         (main): Call it.
7157
7158 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7159
7160         [BZ #3427]
7161         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7162         in SW.
7163
7164 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7165
7166         [BZ #4344]
7167         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7168         Reported by David Anderson <davea42@earthlink.net>.
7169
7170 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7171
7172         * posix/sys/wait.h: Remove unnecessary forward declaration.
7173
7174 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7175
7176         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7177         with obj->do_servers after first_shoot.
7178
7179 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7180
7181         * posix/Makefile (routines): Add sched_cpucount.
7182         (tests): Add tst-cpucount.
7183         * posix/sched_cpucount.c: New file.
7184         * posix/tst-cpucount.c: New file.
7185         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7186         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7187         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7188         * posix/sched.h: Define CPU_COUNT.
7189
7190 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7191
7192         * posix/fnmatch.c (STRUCT): Define.
7193         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7194         * posix/fnmatch_loop.c (struct STRUCT): New type.
7195         (FCT): Add ends argument.  If ends != NULL and normal * is
7196         seen in the pattern, store current pattern and string pointers
7197         and return.  Adjust recursive calls.
7198         (EXT): Adjust FCT callers.
7199         (STRUCT): Undef at the end of the file.
7200         * posix/Makefile (tests): Add tst-fnmatch2.
7201         * posix/tst-fnmatch2.c: New test.
7202
7203 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7204
7205         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7206         and 1 on failure.
7207
7208         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7209         Change last argument to unsigned int.
7210
7211 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7212
7213         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7214
7215 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7216
7217         * config.h.in (HAVE_LIBCAP): Add.
7218         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7219         sys/capabilities.h.
7220         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7221         free_caps.  Cast away const from 4th cap_set_flag argument.
7222
7223 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7224
7225         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7226         GLIBC_2.6.
7227         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7228         Add sync_file_range.
7229         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7230
7231 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7232
7233         * sysdeps/powerpc/bits/atomic.h
7234         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7235         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7236         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7237         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7238         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7239         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7240         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7241         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7242         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7243         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7244         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7245         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7246         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7247         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7248         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7249         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7250         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7251         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7252         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7253         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7254
7255 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7256
7257         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7258         (__cache_line_size): Define the variable here.  Add
7259         attribute_hidden, remove weak_extern.
7260         (__libc_start_main): Set __cache_line_size
7261         unconditionally.
7262         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7263         (__cache_line_size): Define the variable here.  Add
7264         attribute_hidden, remove weak_extern.
7265         (DL_PLATFORM_AUXV): Set __cache_line_size
7266         unconditionally.
7267         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7268         weak_extern, add attribute_hidden.
7269         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7270         defined in ld.so.
7271         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7272         definition.
7273         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7274
7275 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7276
7277         [BZ #4276]
7278         * timezone/africa: Update from tzdata2007d.
7279         * timezone/asia: Likewise.
7280         * timezone/australasia: Likewise.
7281         * timezone/backward: Likewise.
7282         * timezone/europe: Likewise.
7283         * timezone/iso3166.tab: Likewise.
7284         * timezone/leapseconds: Likewise.
7285         * timezone/northamerica: Likewise.
7286         * timezone/southamerica: Likewise.
7287         * timezone/zone.tab: Likewise.
7288
7289         * timezone/private.h: Update from tzcode2007d.
7290         * timezone/zdump.c: Likewise.
7291         * timezone/zic.c: Likewise.
7292
7293 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7294
7295         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7296         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7297         variables.
7298         (nis_server_cache_search, nis_server_cache_add): New functions.
7299         (__nisfind_server): Use them.  Add dbp and flags argument, if
7300         call __nisbind_create.
7301         (__nisbind_create): Add server_used and current_ep arguments,
7302         only call __nis_findfastest if server_used is ~0.
7303         (__do_niscall2, __prepare_niscall): Adjust callers.
7304         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7305         ckey_cache_euid, ckey_cache_lock): New variables.
7306         (get_ckey): New function.
7307         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7308         __pmap_getnisport.  Save __pmap_getnisport result in
7309         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7310         key.
7311         * nis/nis_lookup.c (nis_lookup): Likewise.
7312         * nis/nis_table.c (nis_list): Likewise.
7313         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7314         prototypes.
7315
7316         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7317         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7318         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7319         _nss_nisplus_getservbyport_r): Likewise.
7320         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7321         _nss_nisplus_getnetbyaddr_r): Likewise.
7322         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7323         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7324         _nss_nisplus_getntohost_r): Likewise.
7325         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7326         _nss_nisplus_getrpcbynumber_r): Likewise.
7327
7328 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7329
7330         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7331         * configure: Rebuilt.
7332
7333         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7334         bit-fields.
7335         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7336
7337 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7338
7339         [BZ #2831]
7340         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7341         bit-fields.
7342
7343 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7344
7345         * nscd/gai.c: Include alloca.h.
7346         (__libc_use_alloca): Define.
7347
7348 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7349
7350         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7351         smaller scopes.
7352         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7353         (DL_DST_REQUIRED): Adjust user.
7354
7355         * include/dlfcn.h (struct link_map): New forward decl.
7356
7357         * inet/getnameinfo.c: Include stddef.h.
7358         (getnameinfo): Use offsetof.
7359
7360         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7361
7362         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7363
7364         * string/strerror_l.c: Include stdlib.h.
7365
7366         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7367         * config.make.in (gnu89-inline-CFLAGS): New variable.
7368         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7369         -std=gnu99.
7370         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7371         * argp/argp.h: Use it.
7372         * bits/mathinline.h: Likewise.
7373         * bits/sigset.h: Likewise.
7374         * bits/string.h: Likewise.
7375         * ctype/ctype.h: Likewise.
7376         * hurd/hurd.h: Likewise.
7377         * hurd/hurd/fd.h: Likewise.
7378         * hurd/hurd/port.h: Likewise.
7379         * hurd/hurd/signal.h: Likewise.
7380         * hurd/hurd/threadvar.h: Likewise.
7381         * hurd/hurd/userlink.h: Likewise.
7382         * io/sys/stat.h: Likewise.
7383         * libio/bits/stdio.h: Likewise.
7384         * libio/bits/stdio2.h: Likewise.
7385         * mach/lock-intern.h: Likewise.
7386         * mach/mach/mig_support.h: Likewise.
7387         * math/bits/cmathcalls.h: Likewise.
7388         * posix/bits/unistd.h: Likewise.
7389         * socket/bits/socket2.h: Likewise.
7390         * stdlib/bits/stdlib.h: Likewise.
7391         * stdlib/stdlib.h: Likewise.
7392         * string/argz.h: Likewise.
7393         * string/bits/string2.h: Likewise.
7394         * string/bits/string3.h: Likewise.
7395         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7396         * sysdeps/generic/inttypes.h: Likewise.
7397         * sysdeps/generic/machine-lock.h: Likewise.
7398         * sysdeps/generic/machine-sp.h: Likewise.
7399         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7400         * sysdeps/i386/i486/bits/string.h: Likewise.
7401         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7402         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7403         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7404         * sysdeps/mach/i386/machine-lock.h: Likewise.
7405         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7406         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7407         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7408         * sysdeps/s390/bits/string.h: Likewise.
7409         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7410         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7411         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7412         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7413         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7414         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7415         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7416         * wcsmbs/bits/wchar2.h: Likewise.
7417         * wcsmbs/wchar.h: Likewise.
7418         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7419         __extern_inline definition.
7420
7421 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7422
7423         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7424         NULL.
7425
7426         [BZ #3919]
7427         * math/libm-test.inc (log_test): Test -Inf and NaN.
7428         (log10_test, log1p_test, log2_test): Test -Inf.
7429         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7430         FE_INVALID when argument is qNaN.
7431         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7432         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7433         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7434         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7435         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7436         testb $4, %ah and jump if non-zero.
7437         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7438         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7439
7440         [BZ #4101]
7441         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7442         ancestors with the same depths.
7443         Patch by Niels Moeller <nisse@lysator.liu.se>.
7444         (filter_doc): Don't crash if argp is NULL.
7445         * argp/Makefile (tests): Add tst-argp2.
7446         * argp/tst-argp2.c: New test.
7447
7448         [BZ #4130]
7449         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7450         open_not_cancel_2.
7451         (updwtmp_file): Likewise.
7452
7453         [BZ #4181]
7454         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7455         (inet6_opt_append): Don't check extlen is big enough if extbuf
7456         is NULL.
7457         (inet6_opt_finish): Likewise.
7458         * inet/Makefile (tests): Add test-inet6_opt.
7459         * inet/test-inet6_opt.c: New test.
7460
7461         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7462         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7463         NLMSG_ERR.  Instead use a page sized buffer.
7464         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7465         buffer.
7466
7467 2007-03-14  Richard Henderson  <rth@redhat.com>
7468
7469         * sysdeps/alpha/fpu/s_llround.c: New file.
7470         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7471         * sysdeps/alpha/fpu/s_lround.c: New file.
7472         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7473         * sysdeps/alpha/fpu/s_round.c: New file.
7474         * sysdeps/alpha/fpu/s_roundf.c: New file.
7475         * sysdeps/alpha/fpu/s_trunc.c: New file.
7476         * sysdeps/alpha/fpu/s_truncf.c: New file.
7477
7478         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7479         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7480         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7481         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7482         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7483         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7484
7485         * sysdeps/alpha/fpu/s_fmax.S: New file.
7486         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7487         * sysdeps/alpha/fpu/s_fmin.S: New file.
7488         * sysdeps/alpha/fpu/s_fminf.S: New file.
7489         * sysdeps/alpha/fpu/s_isnan.c: New file.
7490         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7491         * sysdeps/alpha/fpu/s_llrint.c: New file.
7492         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7493         * sysdeps/alpha/fpu/s_lrint.c: New file.
7494         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7495         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7496         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7497
7498         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7499         (__fdimf, fdimf, __fdim, fdim): Remove.
7500         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7501         (__isnanf, __isnan, __isnanl): New.
7502
7503 2007-03-13  Richard Henderson  <rth@redhat.com>
7504
7505         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7506
7507 2007-03-13  Richard Henderson  <rth@redhat.com>
7508
7509         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7510         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7511         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7512         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7513         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7514         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7515
7516 2007-03-13  Richard Henderson  <rth@redhat.com>
7517
7518         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7519         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7520         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7521         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7522         Move to dl-auxv.h; initialize instead of extern weak.
7523         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7524         weak symbol.
7525         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7526         Extern instead of initialized.
7527
7528 2007-03-13  Richard Henderson  <rth@redhat.com>
7529
7530         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7531         __sigsuspend_nocancel.
7532
7533 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7534
7535         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7536         172.16/12 address range.
7537
7538 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7539
7540         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7541         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7542         message.
7543
7544 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7545
7546         [BZ #4069]
7547         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7548         earlier.
7549         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7550
7551         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7552         for x qNaN and y either +-inf or non-integer value.
7553         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7554         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7555         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7556
7557 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7558
7559         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7560         from sysdep_headers.
7561
7562 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7563
7564         * time/tzfile.c (find_transition): Instead of a linear search try to
7565         guess the transition index, use a linear search if the result is at
7566         most 10 transitions away from the guess or binary search otherwise.
7567
7568 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7569
7570         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7571         memory reallocation.
7572
7573 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7574
7575         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7576         and fix some typos.
7577         Optimize use of TOLOWER.
7578
7579         [BZ #3325]
7580         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7581         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7582         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7583
7584         [BZ #3458]
7585         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7586         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7587
7588         [BZ #4076]
7589         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7590         (open_dir_stream): Likewise.
7591         * io/Makefile (tests): Add bug-ftw5.
7592         * io/bug-ftw5.c: New file.
7593
7594         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7595         * nscd/servicescache.c (cache_addserv): Likewise.
7596
7597         * nscd/grpcache.c (cache_addgr): In case a record changed on
7598         refresh, adjust key_copy.
7599
7600         [BZ #4074]
7601         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7602         refresh, adjust key_copy.
7603
7604         [BZ #4070]
7605         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7606         special cases.
7607         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7608
7609 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7610
7611         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7612         optimization.
7613
7614         * stdio-common/vfscanf.c: Small cleanups throughout.
7615
7616 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7617
7618         [BZ #3325]
7619         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7620         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7621         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7622         Patch by Jared Casper <jaredcasper@gmail.com>.
7623
7624         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7625         * sysdeps/unix/opendir.c: Likewise.
7626         * sysdeps/unix/readdir.c: Likewise.
7627
7628         [BZ #2211]
7629         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7630         point numbers.
7631         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7632
7633         * stdio-common/vfscanf.c: Fix problems in width accounting.
7634         * stdio-common/tst-sscanf.c (double_tests): New tests.
7635         (main): Hook them up.
7636
7637         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7638         More simplifications of floating-point reader.
7639
7640         * stdio-common/Makefile (tests): Add tst-swscanf.
7641         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7642         testing.
7643         * stdio-common/tst-swscanf.c: New file.
7644
7645 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7646
7647         [BZ #2633]
7648         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7649         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7650         Remove using for __jmp_buf_tag.
7651         * locale/locale.h (struct lconv): Also define in std namespace.
7652         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7653
7654         [BZ #3842]
7655         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7656         using __libc_enable_secure.
7657
7658         [BZ #3818]
7659         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7660
7661         [BZ #3745]
7662         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7663         of names for ellipsises.
7664
7665         [BZ #3348]
7666         * malloc/memusage.sh: Cleanups.
7667         * debug/xtrace.sh: Quoting and trap changes.
7668
7669 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7670
7671         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7672
7673         * locale/iso-3166.def: Update entry for Serbia.
7674         * locale/iso-4217.def: Define RSD, remove CSD.
7675
7676         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7677         and 64-bit operations.
7678
7679         [BZ #4040]
7680         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7681         16-bit operations.
7682
7683         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7684         of writev.
7685
7686 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7687
7688         [BZ #3991]
7689         * assert/assert.h (assert): Simplify.
7690         (assert_perror): Likewise.
7691         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7692
7693         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7694         reqdata.
7695
7696         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7697         change: don't pass NULL in place of an integer.
7698
7699 2007-02-02  Bruno Haible  <bruno@clisp.org>
7700
7701         [BZ #3954]
7702         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7703         Add mapping for U+327E.
7704         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7705         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7706         mapping of 0xD9 0xE8.
7707         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7708         mapping of U+327E.
7709         Reported by Jungshik Shin <jungshik@google.com>.
7710
7711         [BZ #3955]
7712         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7713         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7714         Reported by Jungshik Shin <jungshik@google.com>.
7715
7716 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7717
7718         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7719         byte variants.
7720
7721         [BZ #4040]
7722         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7723         byte variants.  Patch mostly be tom@tommay.net.
7724
7725 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7726
7727         [BZ #3996]
7728         * posix/glob.c (attribute_hidden): Define if not defined.
7729         (glob): Unescape dirname, filename or username when needed and not
7730         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7731         is NULL.  Handle unescaped [ in pattern without closing ].
7732         Don't pass GLOB_CHECK down to recursive glob for directories.
7733         (__glob_pattern_type): New function.
7734         (__glob_pattern_p): Implement using __glob_pattern_type.
7735         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7736         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7737         Remove unreachable code.
7738         * posix/globtest.sh: Add a couple of new tests.
7739
7740 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7741
7742         * po/ru.po: Update from translation team.
7743
7744 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7745
7746         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7747         to the list of i486+ CPUs.
7748         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7749
7750 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7751
7752         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7753         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7754         references.
7755
7756 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7757
7758         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7759
7760         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7761         * resolv/res_mkquery.c: Define __res_nopt.
7762         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7763         try adding EDNS0 record.
7764         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7765         EDNS0 record was send make sure we don't try it again.
7766         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7767         * include/resolv.h: Declare __res_nopt.
7768
7769 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7770
7771         [BZ #3944]
7772         * time/strptime_l.c (__strptime_internal): Set have_mon for
7773         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7774         have been computed from tm_yday and tm_year.  Don't crash
7775         in day_of_the_week or day_of_the_year if not have_mon
7776         and tm_mon contains bogus value.
7777         * time/Makefile (tests): Add tst-strptime3.
7778         * time/tst-strptime3.c: New test.
7779
7780 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7781
7782         [BZ #3957]
7783         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7784         bit for RE_HAT_LISTS_NOT_NEWLINE.
7785         (build_charclass_op): Remove bogus comment.
7786         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7787         * posix/bug-regex27.c: New test.
7788         * posix/bug-regex28.c: New test.
7789
7790 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7791
7792         * po/sv.po: Update from translation team.
7793
7794 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7795
7796         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7797
7798 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7799
7800         * include/locale.h (__uselocale): Add libc_hidden_proto.
7801         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7802
7803         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7804         gettimeofday.
7805
7806 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7807
7808         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7809         returning.
7810         (PTR_DEMANGLE): Real definition now that it's not the same as
7811         PRT_MANGLE anymore.
7812         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7813
7814         * string/strerror_l.c: New file.
7815         * string/Makefile (routines): Add strerror_l.
7816         * string/string.h: Declare strerror_l.
7817         * string/Versions: Export strerror_l for GLIBC_2.6.
7818
7819 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7820
7821         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7822         as parameter.  Construct request record.  Try sending request
7823         before the first poll use, it usually succeeds.  Adjust all
7824         callers.
7825         * nscd/nscd-client.h: Define MAXKEYLEN.
7826         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7827
7828 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7831         from return value.
7832         * nscd/nscd_helper.c: Include string.h.
7833         (__nscd_cache_search): Remove const qualifier from return value.
7834         On strict alignment architectures check hash entry and data head
7835         alignment.
7836         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7837         mmapped data during GC cycle contains garbage.  If
7838         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7839         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7840         dropped to 0.
7841         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7842         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7843         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7844         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7845         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7846
7847 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7848
7849         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7850
7851 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7852
7853         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7854         names not numbers in cfi_*.
7855
7856 2007-01-26  Andreas Jaeger  <aj@suse.de>
7857
7858         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7859         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7860         Correct values of PER_HPUX and PER_OSF4.
7861
7862 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7863
7864         * elf/dl-minimal.c: Undefine _itoa first.
7865         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7866         * malloc/mtrace.c: Revert last change.
7867         * posix/wordexp.c: Likewise.
7868
7869 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7870
7871         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7872         and __geode__ to the list of i486+ CPUs.
7873         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7874
7875 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7876
7877         * stdio-common/_itoa.c: Include <limits.h>.
7878         * stdio-common/_itowa.c: Likewise.
7879
7880 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7881
7882         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7883         platforms.
7884         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7885         64-bit platforms.
7886         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7887         possible.
7888         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7889         if possible.
7890
7891         [BZ #3902]
7892         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7893         * stdio-common/Makefile (tests): Add bug17.
7894         * stdio-common/bug17.c: New file.
7895
7896 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7897
7898         * iconvdata/brf.c: New file.
7899         * iconvdata/testdata/BRF: New file.
7900         * iconvdata/testdata/BRF..UTF8: New file.
7901         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7902         * iconvdata/Makefile: Add rules to build BRF.
7903         * iconvdata/TESTS: Add BRF entry.
7904         * iconvdata/gconv-modules: Likewise.
7905         * iconvdata/tst-tables.sh: Likewise.
7906
7907 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7908
7909         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7910         type `long long int', not `long int'.
7911         (wcstoq): Likewise.
7912
7913 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7914
7915         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7916         of values on 64-bit platforms which are too large.
7917
7918 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7919             Joe Kerian  <jkerian@us.us.ibm.com>
7920
7921         [BZ #2749]
7922         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7923         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7924         (__copysignl): Use signbit() for comparison.
7925         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7926         SET_LDOUBLE_WORDS64.
7927
7928         [BZ #2423, #2749]
7929         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7930         (__ceill): Remove calls to fegetround(), fesetround().
7931         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7932         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7933         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7934
7935 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7936
7937         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7938
7939         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7940
7941 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7942
7943         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7944         demangle pointer.
7945         * csu/libc-start.c: Likewise.
7946
7947 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7948
7949         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7950         really work anyway.
7951
7952 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7953
7954         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7955         users.
7956         (handle_request): Remove unnecessary tests.
7957
7958         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7959
7960 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7961
7962         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7963         workbits in semi-raw fraction.
7964
7965         * math/test-misc.c: Add new tests.
7966
7967 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7968
7969         * math/basic-test.c: Include test-skeleton.c.
7970         (TEST_TRUNC): Define.
7971         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7972         (main): Rename to ...
7973         (do_test): ...this.  Run new tests.
7974         (TEST_FUNCTION): Define.
7975
7976 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7977             Joe Kerian  <jkerian@us.us.ibm.com>
7978
7979         [BZ #2749]
7980         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7981         handling for high words.
7982         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7983         and overflow for infinity.
7984
7985 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7986
7987         * nscd/connections.c (handle_request): Add a __builtin_expect.
7988
7989         * nscd/connections.c (serv2db): Change type into structure which
7990         also says whether this is a request for data.  Renamed to
7991         servinfo.  All users changed.
7992         (handle_request): Much simpler test whether we should search the cache.
7993
7994         * nscd/connections.c (handle_request): Fix thinko in selinux test
7995         invocation.
7996
7997         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7998         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7999         it before getting dl_load_lock and then relock.
8000         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8001         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8002         case we unlocked the scope.
8003         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8004         _dl_lookup_symbol_x in case we locked the scope.
8005         (_dl_profile_fixup): Likewise.
8006         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8007         set DL_LOOKUP_SCOPE_LOCK.
8008
8009 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8010
8011         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8012         CFLAGS-getsrvbynpt_r.c.
8013         * nscd/getsrvbynm_r.c: New file.
8014         * nscd/getsrvbypt_r.c: New file.
8015         * nscd/nscd_getserv_r.c: New file.
8016         * nscd/servicescache.c: New file.
8017         * nscd/Makefile (routines): Add nscd_getserv_r.
8018         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8019         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8020         CFLAGS-getsrvbypt_r.c.
8021         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8022         table.  Add entries for services database.
8023         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8024         services database.
8025         (dbs): Add .reset_res and servdb initialization.
8026         (serv2db): Add entries for services database.
8027         (verify_persistent_db): Accept dbnr == servdb.
8028         (invalidate_cache): Rewrite database name recognition to use a table.
8029         Call res_init() if .reset_res is set for database.
8030         (handle_request): Add code to handle services database.
8031         * nscd/gai.c: Don't define __getservbyname_r.
8032         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8033         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8034         (serv_response_header): Define.
8035         (struct datahead): Add serv_response_header member.
8036         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8037         using table.
8038         * nscd/nscd.conf: Add entries for services database.
8039         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8040         Declare serv_iov_disabled.
8041         Declare addservbyname, readdservbyname, addservbyport, and
8042         readdservbyport.
8043         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8044         (find_db): Fix error message.
8045         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8046         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8047         * nscd/selinux.c (perms): Add entries for services database.
8048         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8049         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8050
8051         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8052         * nscd/hstcache.c: Likewise.
8053         * nscd/pwdcache.c: Likewise.
8054
8055         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8056         computation of keylen.
8057
8058         * include/string.h: Only redefine strndupa if this is really for
8059         libc code.
8060
8061 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8062
8063         * nscd/nscd_gethst_r.c: Minor cleanups.
8064
8065         * nscd/connections.c (handle_request): Check selinux permissions
8066         for all non-admin commands.
8067
8068         * sysdeps/i386/i486/bits/atomic.h: Define
8069         atomic_compare_and_exchange_val_acq,
8070         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8071         using __sync_* built-ins for gcc >= 4.1.
8072         * sysdeps/x86_64/bits/atomic.h: Likewise.
8073
8074         [BZ #3840]
8075         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8076         and .oS.d files.
8077
8078 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8079
8080         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8081         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8082         (do_test): Check errno and exit(0) if ENOSYS.
8083
8084 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8085
8086         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8087         thousands separators.
8088         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8089         * stdlib/tst-strtod4.c: New test.
8090
8091         [BZ #3855]
8092         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8093         hexadecimal digit should accept just the initial 0.
8094         * stdlib/tst-strtod2.c (tests): New variable.
8095         (do_test): Run several tests rather than just one.
8096
8097 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8098
8099         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8100         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8101
8102 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8103
8104         * io/fts.c: Make sure fts_cur is always valid after return from
8105         fts_read.
8106         Patch by Miloslav Trmac <mitr@redhat.com>.
8107
8108 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8109
8110         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8111         (R_MIPS_NUM): Bump by 1.
8112
8113 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8114
8115         * posix/execvp.c: Include alloca.h.
8116         (allocate_scripts_argv): Renamed to...
8117         (scripts_argv): ... this.  Don't allocate buffer here nor count
8118         arguments.
8119         (execvp): Use alloca if possible.
8120         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8121         * posix/tst-vfork3.c: New test.
8122
8123 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8124
8125         * string/Makefile (tst-strxfrm2-ENV): Define.
8126         * stdlib/Makefile (tst-strtod3-ENV): Define.
8127
8128 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8129
8130         * posix/getconf.c: Update copyright year.
8131         * nss/getent.c: Likewise.
8132         * iconv/iconvconfig.c: Likewise.
8133         * iconv/iconv_prog.c: Likewise.
8134         * elf/ldconfig.c: Likewise.
8135         * catgets/gencat.c: Likewise.
8136         * csu/version.c: Likewise.
8137         * elf/ldd.bash.in: Likewise.
8138         * elf/sprof.c (print_version): Likewise.
8139         * locale/programs/locale.c: Likewise.
8140         * locale/programs/localedef.c: Likewise.
8141         * nscd/nscd.c (print_version): Likewise.
8142         * debug/xtrace.sh: Likewise.
8143         * malloc/memusage.sh: Likewise.
8144         * malloc/mtrace.pl: Likewise.
8145         * debug/catchsegv.sh: Likewise.
8146
8147 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8148
8149         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8150         attempts.
8151
8152 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8153
8154         * posix/wordexp.c: Remove some unnecessary tests.
8155
8156 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8157
8158         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8159         blacklist the group till after we look it up.
8160
8161 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8162
8163         * include/atomic.h (atomic_forced_read): New macro.
8164
8165 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8166
8167         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8168
8169 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8170
8171         * nss/getXXbyYY_r.c: Include atomic.h.
8172         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8173         add atomic_write_barrier () in between.
8174
8175         * stdlib/Makefile (tests): Add tst-makecontext.
8176         * stdlib/tst-makecontext.c: New test.
8177
8178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8179         (__makecontext): Don't realign uc_mcontext.uc_regs.
8180
8181 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8182
8183         * elf/dl-support.c: Include dl-procinfo.h.
8184         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8185         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8186         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8187         Define.
8188         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8189         hardcoded constants.
8190         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8191         PPC_PLATFORM_* macros for array designators.
8192
8193 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8194
8195         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8196         names to the beginning.
8197         (_dl_powerpc_platforms): Add "power6x".
8198         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8199         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8200         (_DL_PLATFORMS_COUNT): Increase.
8201         (_dl_string_platform): Handle power6x case.
8202         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8203         PPC_FEATURE_POWER6_EXT): Define.
8204         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8205
8206 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8207
8208         [BZ #3747]
8209         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8210         [-2^31 .. 2^31) range.
8211         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8212         targets.
8213         * stdlib/tst-rand48-2.c: New test.
8214         * stdlib/Makefile (tests): Add tst-rand48-2.
8215
8216 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8217
8218         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8219
8220 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8221
8222         * misc/tst-pselect.c (do_test): Make sure the helper process is
8223         terminating when the test is aborted.
8224
8225 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8226
8227         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8228         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8229         Handle relatime mount option.
8230
8231         [BZ #2337]
8232         * libio/Makefile (tests): Add tst-setvbuf1.
8233         * libio/tst-setvbuf1.c: New file.
8234
8235 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8236
8237         [BZ #2337]
8238         * libio/genops.c (__uflow): Fix a typo.
8239         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8240         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8241         the narrow buffer size.
8242
8243 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8244
8245         [BZ #2337]
8246         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8247         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8248         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8249         in _flags.
8250         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8251         _IO_wstr_finish): Likewise.
8252         * libio/wmemstream.c (open_wmemstream): Likewise.
8253         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8254         even for wide streams.
8255
8256 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8257
8258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8259         kernel-features.h.
8260
8261 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8262
8263         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8264         separators also if no non-zero digits found.
8265         * stdlib/Makefile (tests): Add tst-strtod3.
8266
8267 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8268
8269         [BZ #3632]
8270         * include/features.h: Fix comment about default value for
8271         _POSIX_C_SOURCE.
8272
8273         [BZ #3664]
8274         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8275         empty parsed strings.
8276         * stdlib/Makefile (tests): Add tst-strtod2.
8277         * stdlib/tst-strtod2.c: New file.
8278
8279         [BZ #3673]
8280         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8281         computation.
8282         * stdlib/Makefile (tests): Add tst-atof2.
8283         * stdlib/tst-atof2.c: New file.
8284
8285         [BZ #3674]
8286         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8287         correctly if removing trailing zero of hex-float.
8288         * stdlib/Makefile (tests): Add tst-atof1.
8289         * stdlib/tst-atof1.c: New file.
8290
8291 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8292
8293         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8294         Start searching for next comma at p rather than rest.
8295         * misc/Makefile (tests): Add tst-mntent2.
8296         * misc/tst-mntent2.c: New test.
8297
8298         * misc/getusershell.c (initshells): Check for integer overflows.
8299         Make strings buffer one bigger as fgets always succeeds when second
8300         argument is 1.  Don't use calloc for shells array.  Disallow
8301         / as shell.
8302
8303 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8304
8305         * malloc/memusage.c: Handle realloc with new size of zero and
8306         non-NULL pointer correctly.
8307         (me): Really write first record twice.
8308         (struct entry): Make format bi-arch safe.
8309         (dest): Write out more realloc statistics.
8310         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8311
8312 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8313
8314         * nis/nis_subr.c (nis_getnames): Revert last change.
8315
8316 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8317
8318         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8319         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8320         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8321         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8322         ENOTTY.
8323         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8324         * io/tst-ttyname_r.c: New test.
8325
8326 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8327
8328         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8329
8330 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8331
8332         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8333         jump table entries.
8334
8335 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8336
8337         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8338         `clone' function to ensure proper unwinding stop of gdb.
8339         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8340
8341 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8342
8343         * nscd/nscd.init: Remove obsolete and commented-out -S option
8344         handling.
8345
8346 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8347
8348         [BZ #3514]
8349         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8350
8351         [BZ #3515]
8352         * manual/string.texi (strtok): Remove duplicate paragraph.
8353
8354 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8355
8356         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8357         libgcc not supporting `rflags' unwinding (register # >= 17).
8358
8359 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8360
8361         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8362         succeeded.
8363
8364 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8365             Jakub Jelinek  <jakub@redhat.com>
8366             Jan Kratochvil  <jan.kratochvil@redhat.com>
8367
8368         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8369         unwind information.
8370         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8371         'restore_rt' even in the 'signal' directory.
8372         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8373
8374 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8375
8376         [BZ #3559]
8377         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8378         malloc crashed.  Don't allocate memory unnecessarily in each
8379         loop.
8380
8381 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8382
8383         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8384
8385 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8386
8387         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8388
8389 2006-11-18  Bruno Haible  <bruno@clisp.org>
8390
8391         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8392         __sysconf only after having tried to call getgroups32.
8393
8394 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8395
8396         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8397         addresses for IPv4 queries if they can be mapped.
8398
8399 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8400
8401         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8402         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8403         (signmask): Add .size directive.
8404         (othermask): Add .type directive.
8405
8406 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8407
8408         * po/nl.po: Update from translation team.
8409
8410         * timezone/zdump.c: Redo fix for BZ #3137.
8411
8412 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8413
8414         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8415         to first_unused after parsing :include: file.
8416
8417 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8418
8419         * timezone/africa: Update from tzdata2006o.
8420         * timezone/antarctica: Likewise.
8421         * timezone/asia: Likewise.
8422         * timezone/australasia: Likewise.
8423         * timezone/backward: Likewise.
8424         * timezone/europe: Likewise.
8425         * timezone/iso3166.tab: Likewise.
8426         * timezone/northamerica: Likewise.
8427         * timezone/southamerica: Likewise.
8428         * timezone/zone.tab: Likewise.
8429
8430         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8431         on machines with 64-bit time_t.
8432
8433         * timezone/checktab.awk: Update from tzcode2006o.
8434         * timezone/ialloc.c: Likewise.
8435         * timezone/private.h: Likewise.
8436         * timezone/scheck.c: Likewise.
8437         * timezone/tzfile.h: Likewise.
8438         * timezone/tzselect.ksh: Likewise.
8439         * timezone/zdump.c: Likewise.
8440         * timezone/zic.c: Likewise.
8441
8442         [BZ #3483]
8443         * elf/ldconfig.c (main): Call setlocale and textdomain.
8444         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8445
8446         [BZ #3480]
8447         * manual/argp.texi: Fix typos.
8448         * manual/charset.texi: Likewise.
8449         * manual/errno.texi: Likewise.
8450         * manual/filesys.texi: Likewise.
8451         * manual/lang.texi: Likewise.
8452         * manual/maint.texi: Likewise.
8453         * manual/memory.texi: Likewise.
8454         * manual/message.texi: Likewise.
8455         * manual/resource.texi: Likewise.
8456         * manual/search.texi: Likewise.
8457         * manual/signal.texi: Likewise.
8458         * manual/startup.texi: Likewise.
8459         * manual/stdio.texi: Likewise.
8460         * manual/sysinfo.texi: Likewise.
8461         * manual/syslog.texi: Likewise.
8462         * manual/time.texi: Likewise.
8463         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8464
8465         [BZ #3465]
8466         * sunrpc/clnt_raw.c: Minimal message improvements.
8467         * sunrpc/pm_getmaps.c: Likewise.
8468         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8469         * nis/nis_print_group_entry.c: Likewise.
8470         * locale/programs/repertoire.c: Likewise.
8471         * locale/programs/charmap.c: Likewise.
8472         * malloc/memusage.sh: Likewise.
8473         * elf/dl-deps.c: Likewise.
8474         * locale/programs/ld-collate.c: Likewise.
8475         * libio/vswprintf.c: Likewise.
8476         * malloc/memusagestat.c: Likewise.
8477         * sunrpc/auth_unix.c: Likewise.
8478         * sunrpc/rpc_main.c: Likewise.
8479         * nscd/cache.c: Likewise.
8480         * locale/programs/repertoire.c: Unify output messages.
8481         * locale/programs/charmap.c: Likewise.
8482         * locale/programs/ld-ctype.c: Likewise.
8483         * locale/programs/ld-monetary.c: Likewise.
8484         * locale/programs/ld-numeric.c: Likewise.
8485         * locale/programs/ld-time.c: Likewise.
8486         * elf/ldconfig.c: Likewise.
8487         * nscd/selinux.c: Likewise.
8488         * elf/cache.c: Likewise.
8489         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8490
8491         [BZ #3451]
8492         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8493         change atomic.
8494         (ceil): Likewise.
8495
8496 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8497
8498         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8499         if N is one bigger than return value.
8500         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8501         and l1 last arguments, if buf is defined, verify the return value
8502         equals to strlen (buf) and verify no byte beyond passed length
8503         is modified.
8504
8505 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8506
8507         * po/sv.po: Update from translation team.
8508
8509 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8510
8511         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8512         noinline attribute.
8513
8514 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8515
8516         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8517         noinline attribute.
8518
8519         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8520         Use __new_sys_siglist instead of _sys_siglist_internal as
8521         second macro argument.
8522         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8523         strong_alias.
8524
8525 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8526
8527         [BZ #3493]
8528         * posix/unistd.h (sysconf): Remove const attribute.
8529
8530         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8531         temporary or deprecated addresses.
8532         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8533
8534         * string/Makefile (tests): Add tst-strxfrm2.
8535         * string/tst-strxfrm2.c: New file.
8536
8537 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8538
8539         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8540         rather than r->r_brk.
8541
8542 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8543
8544         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8545         optimization even if needed > n.
8546
8547         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8548         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8549         return false, otherwise return true.
8550         (cache_rpath): Return decompose_rpath return value.
8551
8552 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8553
8554         * include/libc-symbols.h (declare_symbol): Rename to...
8555         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8556         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8557         .size directive.
8558         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8559         changes.
8560         * sysdeps/gnu/siglist.c: Likewise.
8561
8562 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8563
8564         * sysdeps/powerpc/fpu/bits/mathinline.h
8565         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8566         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8567
8568 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8569
8570         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8571         Update handling of cache descriptor 0x49 for new models.
8572         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8573         Likewise.
8574
8575 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8576
8577         * malloc/memusage.c (dest): Reset not_me back to false after
8578         printing statistics.
8579
8580 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8581
8582         * configure.in: Work around ld --help change and avoid -z relro
8583         test completely if the architecture doesn't care about security.
8584
8585 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8586
8587         * po/sv.po: Update from translation team.
8588
8589 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8590
8591         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8592         generate compatibility version.
8593
8594 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8595
8596         * configure.in: Relax -z relro requirement a bit.
8597
8598         * po/sv.po: Update from translation team.
8599
8600 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8601
8602         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8603         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8604         * elf/dl-close.c (_dl_close_worker): Likewise.
8605         * elf/dl-open.c (_dl_open_worker): Likewise.
8606         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8607
8608 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8609
8610         * configure.in: Require assembler support for visibility, compiler
8611         support for visibility and aliases, linker support for various -z
8612         options.
8613         * Makeconfig: Remove conditional code which now is unnecessary.
8614         * config.h.in: Likewise.
8615         * config.make.in: Likewise.
8616         * dlfcn/Makefile: Likewise.
8617         * elf/Makefile: Likewise.
8618         * elf/dl-load.c: Likewise.
8619         * elf/rtld.c: Likewise.
8620         * include/libc-symbols.h: Likewise.
8621         * include/stdio.h: Likewise.
8622         * io/Makefile: Likewise.
8623         * io/fstat.c: Likewise.
8624         * io/fstat64.c: Likewise.
8625         * io/fstatat.c: Likewise.
8626         * io/fstatat64.c: Likewise.
8627         * io/lstat.c: Likewise.
8628         * io/lstat64.c: Likewise.
8629         * io/mknod.c: Likewise.
8630         * io/mknodat.c: Likewise.
8631         * io/stat.c: Likewise.
8632         * io/stat64.c: Likewise.
8633         * libio/stdio.c: Likewise.
8634         * nscd/Makefile: Likewise.
8635         * stdlib/Makefile: Likewise.
8636         * stdlib/atexit.c: Likewise.
8637         * sysdeps/generic/ldsodefs.h: Likewise.
8638         * sysdeps/i386/dl-machine.h: Likewise.
8639         * sysdeps/i386/sysdep.h: Likewise.
8640         * sysdeps/i386/i686/memcmp.S: Likewise.
8641         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8642         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8643         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8644
8645         * Makerules: USE_TLS support is now default.
8646         * tls.make.c: Likewise.
8647         * csu/Versions: Likewise.
8648         * csu/libc-start.c: Likewise.
8649         * csu/libc-tls.c: Likewise.
8650         * csu/version.c: Likewise.
8651         * dlfcn/dlinfo.c: Likewise.
8652         * elf/dl-addr.c: Likewise.
8653         * elf/dl-cache.c: Likewise.
8654         * elf/dl-close.c: Likewise.
8655         * elf/dl-iteratephdr.c: Likewise.
8656         * elf/dl-load.c: Likewise.
8657         * elf/dl-lookup.c: Likewise.
8658         * elf/dl-object.c: Likewise.
8659         * elf/dl-open.c: Likewise.
8660         * elf/dl-reloc.c: Likewise.
8661         * elf/dl-support.c: Likewise.
8662         * elf/dl-sym.c: Likewise.
8663         * elf/dl-sysdep.c: Likewise.
8664         * elf/dl-tls.c: Likewise.
8665         * elf/ldconfig.c: Likewise.
8666         * elf/rtld.c: Likewise.
8667         * elf/tst-tls-dlinfo.c: Likewise.
8668         * elf/tst-tls1.c: Likewise.
8669         * elf/tst-tls10.h: Likewise.
8670         * elf/tst-tls14.c: Likewise.
8671         * elf/tst-tls2.c: Likewise.
8672         * elf/tst-tls3.c: Likewise.
8673         * elf/tst-tls4.c: Likewise.
8674         * elf/tst-tls5.c: Likewise.
8675         * elf/tst-tls6.c: Likewise.
8676         * elf/tst-tls7.c: Likewise.
8677         * elf/tst-tls8.c: Likewise.
8678         * elf/tst-tls9.c: Likewise.
8679         * elf/tst-tlsmod1.c: Likewise.
8680         * elf/tst-tlsmod13.c: Likewise.
8681         * elf/tst-tlsmod13a.c: Likewise.
8682         * elf/tst-tlsmod14a.c: Likewise.
8683         * elf/tst-tlsmod2.c: Likewise.
8684         * elf/tst-tlsmod3.c: Likewise.
8685         * elf/tst-tlsmod4.c: Likewise.
8686         * elf/tst-tlsmod5.c: Likewise.
8687         * elf/tst-tlsmod6.c: Likewise.
8688         * include/errno.h: Likewise.
8689         * include/link.h: Likewise.
8690         * include/tls.h: Likewise.
8691         * locale/global-locale.c: Likewise.
8692         * locale/localeinfo.h: Likewise.
8693         * malloc/arena.c: Likewise.
8694         * malloc/hooks.c: Likewise.
8695         * malloc/malloc.c: Likewise.
8696         * resolv/Versions: Likewise.
8697         * sysdeps/alpha/dl-machine.h: Likewise.
8698         * sysdeps/alpha/libc-tls.c: Likewise.
8699         * sysdeps/generic/ldsodefs.h: Likewise.
8700         * sysdeps/generic/tls.h: Likewise.
8701         * sysdeps/i386/dl-machine.h: Likewise.
8702         * sysdeps/ia64/dl-machine.h: Likewise.
8703         * sysdeps/ia64/libc-tls.c: Likewise.
8704         * sysdeps/mach/hurd/fork.c: Likewise.
8705         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8706         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8707         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8708         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8709         * sysdeps/s390/libc-tls.c: Likewise.
8710         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8711         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8712         * sysdeps/sh/dl-machine.h: Likewise.
8713         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8714         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8715         * sysdeps/x86_64/dl-machine.h: Likewise.
8716
8717         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8718         split out locking and parameter checking.
8719         (_dl_close): Call _dl_close_worker after locking and checking.
8720         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8721         _dl_close.
8722         * elf/Makefile: Add rules to build and run tst-thrlock.
8723         * elf/tst-thrlock.c:  New file.
8724
8725         [BZ #3426]
8726         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8727         reality.
8728
8729         [BZ #3429]
8730         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8731         we are sure we do not need it anymore for _dl_close.  Also move
8732         the asserts inside the lock region.
8733         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8734
8735 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8736
8737         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8738         argument.
8739         (_dl_lookup_symbol_x): Adjust caller.
8740
8741         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8742         _ns_global_scope.
8743         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8744
8745         * elf/dl-libc.c: Revert l_scope name changes.
8746         * elf/dl-load.c: Likewise.
8747         * elf/dl-object.c: Likewise.
8748         * elf/rtld.c: Likewise.
8749         * elf/dl-close.c (_dl_close): Likewise.
8750         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8751         always use __rtld_mrlock_{change,done}.  Always free old scope list
8752         here if not l_scope_mem.
8753         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8754         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8755         the lookup and __rtld_mrlock_unlock it after the lookup.
8756         * elf/dl-sym.c: Likewise.
8757         * include/link.h (struct r_scoperec): Remove.
8758         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8759         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8760
8761 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8762
8763         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8764
8765 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8766
8767         * configure.in: Disable building profile libraries by default.
8768
8769 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8770
8771         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8772         as signed longs, check for x_base + pos overflow.
8773         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8774         * sunrpc/tst-xdrmem2.c: New test.
8775
8776 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8777
8778         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8779         _dl_lookup_symbol_x code.
8780
8781 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8782
8783         * elf/dl-runtime.c: Include sysdep-cancel.h.
8784         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8785         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8786         instead of catomic_* macros.
8787         * elf/dl-sym.c: Include sysdep-cancel.h.
8788         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8789         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8790         * elf/dl-close.c: Include sysdep-cancel.h.
8791         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8792         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8793         * elf/dl-open.c: Include sysdep-cancel.h.
8794         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8795         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8796
8797 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8798
8799         [BZ #3313]
8800         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8801         fastbin rather than end of fastbin array.
8802
8803 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8804
8805         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8806         body macro.
8807         * sysdeps/x86_64/bits/atomic.h
8808         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8809         (catomic_decrement): Use correct body macro.
8810
8811 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8812
8813         * include/atomic.h: Add a unique prefix to all local variables
8814         in macros.
8815         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8816
8817 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8818
8819         [BZ #3369]
8820         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8821         and 7.
8822
8823 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8824
8825         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8826
8827 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8828
8829         [BZ #3313]
8830         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8831         determine highest fast bin to consolidate, always look into all of
8832         them.
8833         (do_check_malloc_state): Only require for empty bins for large
8834         sizes in main arena.
8835
8836         * libio/stdio.h: Add more __wur attributes.
8837
8838         * elf/dl-minimal.c (realloc): Optimize last patch.
8839
8840 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8841
8842         [BZ #3352]
8843         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8844         and use memcpy() if it does.
8845
8846 2006-11-12  Andreas Jaeger  <aj@suse.de>
8847
8848         [BZ #2510]
8849         * manual/search.texi (Hash Search Function): Clarify.
8850         (Array Search Function): Clarify.
8851
8852 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8853
8854         [BZ #2830]
8855         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8856         shifting.
8857         * math/atest-exp2.c (read_mpn_hex): Likewise.
8858         * math/atest-sincos.c (main): Likewise.
8859
8860 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8861
8862         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8863         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8864         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8865         version GLIBC_2.6.
8866         * Versions.def: Add GLIBC_2.6 for libc.
8867
8868         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8869
8870         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8871
8872 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8873
8874         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8875
8876         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8877
8878         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8879         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8880
8881 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8882
8883         * include/atomic.c: Define catomic_* operations.
8884         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8885         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8886         * malloc/memusage.c: Likewise.
8887         * gmon/mcount.c: Likewise.
8888         * elf/dl-close.c: Likewise.
8889         * elf/dl-open.c: Likewise.
8890         * elf/dl-profile.c: Likewise.
8891         * elf/dl-sym.c: Likewise.
8892         * elf/dl-runtime.c: Likewise.
8893         * elf/dl-fptr.c: Likewise.
8894         * resolv/res_libc.c: Likewise.
8895
8896 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8897
8898         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8899         components which lack them.
8900
8901         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8902         at least one entry consisting of the parameter concatenated with
8903         the domain.
8904
8905 2006-10-10  Roland McGrath  <roland@frob.com>
8906
8907         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8908         * sysdeps/mach/hurd/futimes.c: Likewise.
8909         * sysdeps/mach/hurd/lutimes.c: Likewise.
8910
8911 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8912             Jakub Jelinek  <jakub@redhat.com>
8913
8914         Implement reference counting of scope records.
8915         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8916         from the list in objects which remain.  Always allocate new scope
8917         record.
8918         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8919         don't resize, allocate a new one.
8920         * elf/dl-runtime.c: Update reference counters before using a scope
8921         array.
8922         * elf/dl-sym.c: Likewise.
8923         * elf/dl-libc.c: Adjust for l_scope name change.
8924         * elf/dl-load.c: Likewise.
8925         * elf/dl-object.c: Likewise.
8926         * elf/rtld.c: Likewise.
8927         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8928         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8929         Add l_scoperec_lock.
8930         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8931         * sysdeps/generic/rtld-lowlevel.h: New file.
8932
8933         * include/atomic.h: Rename atomic_and to atomic_and_val and
8934         atomic_or to atomic_or_val.  Define new macros atomic_and and
8935         atomic_or which do not return values.
8936         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8937         Various cleanups.
8938         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8939
8940         * po/sv.po: Update from translation team.
8941
8942 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8943
8944         * Versions.def: Add GLIBC_2.6 to libpthread.
8945
8946         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8947         (versioned_symbol): Likewise.
8948         (compat_symbol): Likewise.
8949
8950         * po/tr.po: Update from translation team.
8951
8952 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8953
8954         * nis/Banner: Removed.  It's been integral part forever and the
8955         author info is incomplete anyway.
8956         * libio/Banner: Likewise.
8957
8958         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8959         code, make sure the nis_freeresult call doesn't crash and that the
8960         result is reported correctly.
8961
8962 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8963
8964         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8965         when callback is NULL.
8966
8967         * nis/Versions (libnss_nisplus): Add
8968         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8969         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8970         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8971         _nss_create_tablename): Rename to...
8972         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8973         ... these.  No longer static.
8974         (internal_setgrent): Adjust users.
8975         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8976         Don't use locking around _nss_grp_create_tablename call.
8977         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8978
8979 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8980
8981         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8982
8983 2006-10-06  Andreas Jaeger  <aj@suse.de>
8984
8985         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8986
8987 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8988
8989         * po/pl.po: Update from translation team.
8990
8991         * nscd/nscd.c (main): Fix typo in message.
8992         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8993
8994 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8995
8996         [BZ #3291]
8997         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8998         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8999         (__sigprocmask): Define.
9000
9001 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9002
9003         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9004         used.
9005
9006 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9007
9008         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9009         in oldtotal and newtotal calculation.
9010         * nscd/nscd-client.h (struct mapped_database): Add datasize
9011         field.
9012         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9013         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9014         increased.
9015         (__nscd_cache_search): Add checks to make sure we never reference
9016         data beyond the current mapping.
9017
9018 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9019
9020         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9021         variables const to avoid compiler warnings.
9022
9023         * io/fts.c (fts_close): Remove redundant checks.
9024         (fts_build): Likewise.
9025         (fts_palloc): Likewise.
9026
9027         * manual/message.texi (Advanced gettext functions,
9028         Using gettextized software): Fix typos.
9029
9030 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9031
9032         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9033         explain why there are no leaks.
9034
9035 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9036
9037         * libio/wmemstream.c: Include <wchar.h>.
9038         * libio/bug-wmemstream1.c: Likewise.
9039         * libio/tst-wmemstream1.c: Likewise.
9040         * libio/tst-wmemstream2.c: Likewise.
9041
9042         * version.h (RELEASE): Bump to 2.5.
9043         * README: Regenerated.
9044
9045         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9046
9047         [BZ #3273]
9048         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9049         found no group members.
9050         Patch by Petr Baudis.
9051
9052 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9053
9054         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9055         assert bootstrap_map.l_tls_modid is zero.
9056         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9057         if USE___THREAD.
9058
9059 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9060
9061         * libio/stdio.h: Move open_wmemstream prototype to ...
9062         * wcsmbs/wchar.h: ... here.
9063
9064 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9065
9066         [BZ #3252]
9067         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9068         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9069         __{,l}chown to handle the rest.
9070         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9071         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9072         __{,l}chown to handle the rest.
9073         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9074         i386/fchownat.c.
9075         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9076         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9077
9078         [BZ #3253]
9079         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9080         time, rather allocate increasingly bigger arrays of pointers, if
9081         possible with alloca, if too large with malloc.
9082
9083 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9084
9085         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9086
9087         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9088
9089 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9090
9091         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9092         home addresses.
9093         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9094         IFA_F_HOMEADDRESS flag for interfaces.
9095         * include/ifaddrs.h (struct in6addrinfo): Define
9096         in6ai_homeaddress.
9097
9098 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9099
9100         [BZ #3225]
9101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9102         PTR_DEMANGLE3): Define.
9103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9104         PTR_DEMANGLE3): Likewise.
9105         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9106         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9107         Likewise.
9108         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9109
9110 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9111
9112         * po/libc.pot: Regenerated.
9113         * po/be.po: Updated.
9114         * po/ca.po: Likewise.
9115         * po/cs.po: Likewise.
9116         * po/da.po: Likewise.
9117         * po/de.po: Likewise.
9118         * po/el.po: Likewise.
9119         * po/en_GB.po: Likewise.
9120         * po/es.po: Likewise.
9121         * po/fi.po: Likewise.
9122         * po/fr.po: Likewise.
9123         * po/gl.po: Likewise.
9124         * po/hr.po: Likewise.
9125         * po/hu.po: Likewise.
9126         * po/ja.po: Likewise.
9127         * po/ko.po: Likewise.
9128         * po/nb.po: Likewise.
9129         * po/nl.po: Likewise.
9130         * po/pl.po: Likewise.
9131         * po/pt_BR.po: Likewise.
9132         * po/ru.po: Likewise.
9133         * po/rw.po: Likewise.
9134         * po/sk.po: Likewise.
9135         * po/sv.po: Likewise.
9136         * po/tr.po: Likewise.
9137         * po/zh_CN.po: Likewise.
9138         * po/zh_TW.po: Likewise.
9139
9140         [BZ #3137]
9141         * iconv/iconv_prog.c (main): Fix spelling in error message.
9142         * iconv/iconvconfig.c (main): Likewise.
9143         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9144         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9145         * locale/programs/localedef.c (main): Likewise.
9146         * locale/programs/repertoire.c (repertoire_read): Likewise.
9147         * timezone/zdump.c (main): Likewise.
9148         * nscd/connections.c (handle_request): Fix spelling in log message.
9149         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9150
9151 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9152
9153         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9154         interfaces.
9155
9156 2006-09-20  Andreas Jaeger  <aj@suse.de>
9157
9158         * math/libm-test.inc (lrint_test_upward): Fix typo.
9159
9160 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9161
9162         [BZ #2592]
9163         * math/libm-test.inc (lrint_test_tonearest): New function.
9164         (lrint_test_towardzero): New function.
9165         (lrint_test_downward): New function.
9166         (lrint_test_upward): New function.
9167         (main): Run these new tests.
9168         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9169         of values near to 0.
9170         (two52): Use double not long double.
9171         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9172         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9173         (two23): Use float not double.
9174         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9175         (two23): Use float not double.
9176         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9177         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9178         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9179         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9180
9181 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9182
9183         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9184         Cast sp to unsigned long to avoid compiler warning.
9185         Use __makecontext_ret function instead of a trampoline on the stack.
9186         (__makecontext_ret): New function.
9187         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9188
9189 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9190
9191         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9192         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9193         bits.
9194
9195 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9196
9197         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9198         sure no reference to the unloaded map's search list remains in the
9199         dependency's scope.
9200
9201 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9202
9203         * elf/Makefile: Add rules to build and run unload7 test.
9204         * elf/unload7.c: New test.
9205         * elf/unload7mod1.c: New file.
9206         * elf/unload7mod2.c: New file.
9207
9208 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9209
9210         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9211         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9212         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9213         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9214         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9215         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9216         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9217         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9218         PTRACE_GETEVENTMSG): Likewise.
9219         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9220         values.
9221
9222 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9223
9224         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9225         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9226         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9227         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9228
9229 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9230
9231         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9232         write '\0' to the fd.
9233         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9234         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9235         Change regs to unsigned long pointer from unsigned int, fix fscr
9236         offset.
9237
9238 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9239
9240         * io/Makefile (CFLAGS-fstatat.c): Set.
9241         (CFLAGS-fstatat64.c): Likewise.
9242         (CFLAGS-mknodat.c): Likewise.
9243
9244         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9245         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9246         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9247         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9248
9249 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9250             Steven Munroe  <sjmunroe@us.ibm.com>
9251
9252         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9253         names to the beginning.  Rename "cell" to "cellbe".
9254         (_dl_powerpc_platforms): New.
9255         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9256         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9257         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9258         (_DL_HWCAP_PLATFORM): Define to new mask.
9259         (_dl_platform_string, _dl_string_platform): New functions.
9260         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9261         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9262
9263 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9264
9265         [BZ #2526]
9266         * README.libm: Fix a thinko in sqrt algorithm description.
9267
9268         [BZ #3143]
9269         * manual/string.texi (argz_delete): Fix prototype.
9270         Patch by <alpt@freaknet.org>.
9271
9272 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9273
9274         [BZ #3138]
9275         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9276         * io/tst-fcntl.c (do_prepare): Likewise.
9277         * posix/tst-exec.c (do_prepare): Likewise.
9278         * posix/tst-preadwrite.c (do_prepare): Likewise.
9279         * posix/tst-spawn.c (do_prepare): Likewise.
9280         * posix/tst-truncate.c (do_prepare): Likewise.
9281         * rt/tst-aio.c (do_prepare): Likewise.
9282         * rt/tst-aio64.c (do_prepare): Likewise.
9283         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9284         size_t.
9285
9286 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9287
9288         [BZ #2821]
9289         * time/mktime.c (guess_time_tm): Fix overflow detection.
9290         * time/Makefile (tests): Add bug-mktime1.
9291         * time/bug-mktime1.c: New file.
9292
9293         [BZ #3189, #3188]
9294         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9295         (mremap): Likewise.
9296
9297 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9298
9299         [BZ #1006]
9300         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9301         Ensure relocation doesn't clobber any bits outside of the
9302         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9303         R_SPARC_HI22 and R_SPARC_H44.
9304
9305         [BZ #2775]
9306         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9307         (long) (MINSIZE + nb - old_size) is positive.
9308
9309         * malloc/arena.c (grow_heap): When growing bail even if new_size
9310         is negative.
9311
9312         [BZ #3155]
9313         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9314         stack below r1.
9315
9316 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9317
9318         * posix/regex_internal.c (re_string_reconstruct): Handle
9319         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9320         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9321         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9322         re_string_context_at.
9323         * posix/Makefile: Add rules to build and run bug-regex26 test.
9324         * posix/bug-regex26.c: New test.
9325
9326         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9327         rather than col_sym_free.  Move seqp declaration earlier.
9328
9329         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9330
9331 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9332
9333         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9334         decl before first goto out.
9335
9336 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9337
9338         * Makerules (shlib.lds): If have-hash-style, put .hash section
9339         at the end of the RO segment.
9340
9341 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9342
9343         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9344         style hash table format is used.
9345
9346 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9347
9348         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9349         randomization rather than before.
9350         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9351
9352 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9353
9354         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9355
9356         * malloc/malloc.c (_int_malloc): Use full list insert and not
9357         shortcut which assumes the list is empty for large requests
9358         too.
9359
9360         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9361
9362 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9363
9364         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9365         and offout arguments to the prototype.
9366         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9367         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9368         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9369         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9370         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9371         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9372         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9373         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9374
9375 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9376
9377         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9378
9379         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9380         dlopen parameters.
9381
9382 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9383
9384         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9385         only if herrno is NETDB_INTERNAL.  Handle errors other than
9386         ERANGE outside of the loops, handle TRY_AGAIN.
9387
9388         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9389         if other's ctype category was missing.
9390         * locale/programs/ld-collate.c (collate_read): Return if
9391         copy_locale's collate category is missing.
9392
9393 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9394
9395         [BZ #2684]
9396         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9397         arenas if allocation failed.
9398         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9399
9400 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9401
9402         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9403         waste bins[0..1].
9404         (malloc_state): Reduce bins size by 2.
9405         (_int_malloc): Fix test for large enough buffer for early termination.
9406         When no unsorted block matches perfectly and an exiting block has
9407         to be split, use full list insert and not shortcut which assumes
9408         the list is empty.
9409
9410         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9411         failure.
9412
9413 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9414
9415         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9416         do anything.
9417
9418         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9419         symbol require exact match (these are PLTs).
9420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9421         (_dl_ppc64_addr_sym_match): Likewise.
9422
9423         [BZ #2683]
9424         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9425         If symbol has a value use it.
9426         * elf/tst-dladdr1.c: New file.
9427         * elf/Makefile: Add rules to build and run tst-addr1.
9428
9429 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9430
9431         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9432         keeps failing and heap growth or new heap creation isn't
9433         successful either.
9434         * malloc/tst-malloc.c (main): Add new tests.
9435
9436 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9437
9438         [BZ #2734]
9439         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9440         as in the x86-64 code to use bswap.
9441
9442 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9443
9444         [BZ #2680]
9445         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9446         __USE_UNIX98.
9447         * posix/bits/unistd.h: Likewise.
9448
9449 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9450
9451         [BZ #2751]
9452         * string/strchr.c: Add cast to avoid warning.
9453
9454 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9455
9456         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9457         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9458         limit is needed to avoid the exploding of the address space
9459         requirement for secondary heaps.
9460         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9461         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9462
9463 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9464
9465         [BZ #3018]
9466         * Makerules (depfiles): Handle extra-test-objs the same as
9467         extra-objs.
9468         (common-mostlyclean): Likewise.
9469         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9470         instead.
9471         * elf/Makefile (extra-objs): Likewise.
9472         * stdlib/Makefile (extra-objs): Likewise.
9473
9474 2006-08-14  Eric Blake  <ebb9@byu.net>
9475
9476         [BZ #3044]
9477         * misc/error.h: Assume C89 or better.
9478         * misc/error.c: Likewise.
9479
9480 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9481
9482         [BZ #3040]
9483         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9484         __ASSUME_ATFCTS is defined.
9485
9486 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9487
9488         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9489         to sort in each call.
9490
9491         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9492         is empty simply return and use next service.
9493         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9494
9495         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9496         tells us when not finding a charmap file is an error.
9497         * locale/programs/charmap.h: Adjust charmap_read prototype.
9498         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9499         cannot find a charmap.
9500         * locale/programs/localedef.c (main): Adjust charmap_read call.
9501
9502 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9503
9504         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9505         sysdeps/posix/pause.c implementation instead.
9506
9507 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9508
9509         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9510         to EPERM.
9511
9512 2006-08-13  Andreas Schwab  <schwab@suse.de>
9513
9514         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9515         Don't clobber caller's LRSAVE.
9516         (_dl_prof_resolve): Likewise.
9517
9518 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9519
9520         [BZ #1996]
9521         * libio/memstream.c (open_memstream): Allocate initial buffer with
9522         calloc.
9523         * libio/wmemstream.c (open_wmemstream): Likewise.
9524         * libio/strops.c: Pretty printing.
9525         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9526         (enlarge_userbuf): New function.
9527         (_IO_str_seekoff): Call it if seek position is larger than current
9528         buffer.
9529         * libio/wstrops.c: Likewise.
9530         * libio/vasprintf.c: Add comment as to why we do not have to use
9531         calloc instead of malloc to allocate initial buffer.
9532         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9533         * libio/bug-memstream1.c: New file.
9534         * libio/bug-wmemstream1.c: New file.
9535
9536 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9537
9538         * libio/wstrops.c: Remove dead macro definitions and comments.
9539         * libio/strops.c: Likewise.
9540
9541         [BZ #2764]
9542         * login/utmpname.c (__utmpname): Remove unnecessary test.
9543
9544 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9545
9546         [BZ #2832]
9547         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9548         0s from integers.
9549
9550 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9551
9552         [BZ #2987]
9553         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9554         for CPU clocks.
9555         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9556         setting of CPU clocks.
9557
9558 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9559
9560         [BZ #2841]
9561         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9562         since C99 requires the result to promote to 'int' when uint_least8_t
9563         and uint_least16_t promote to 'int'.
9564
9565 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9566
9567         [BZ #3013]
9568         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9569         lenght of one output field, correct bitmask creation.
9570         * locale/programs/ld-time.c: Add alignment.
9571
9572         [BZ #2997]
9573         * misc/error.c: Add space between program name and message if file
9574         name is missing.
9575
9576 2006-08-03  Eric Blake  <ebb9@byu.net>
9577
9578         [BZ #2998]
9579         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9580
9581 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9582
9583         * malloc/memusagestat.c: Silence warnings.
9584
9585         * malloc/malloc.c: Dynamically size mmap treshold if the program
9586         frees mmaped blocks.
9587         Patch by Valerie Henson and Arjan van de Ven.
9588
9589 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9590
9591         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9592         __USE_GNU.
9593
9594         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9595         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9596         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9597         Only provide var definitions in strtol_l (or for *ull*
9598         in strtoll_l).
9599
9600         * stdio-common/bug16.c (tests): New array.
9601         (do_tests): Allow the first hexadecimal digit
9602         to be 1, 2, 4 or 8.  Do 3 additional tests.
9603
9604         * sysdeps/s390/fpu/libm-test-ulps: Update.
9605
9606         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9607         fchownat syscall if available.
9608         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9609         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9610         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9611
9612 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9613
9614         * nis/nis_xdr.c: Avoid some function calls.
9615
9616 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9617             Ulrich Drepper  <drepper@redhat.com>
9618
9619         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9620         short cut if only one name component is stripped away.
9621
9622 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9623
9624         * nis/nis_call.c: Minor cleanups throughout.
9625         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9626         (first_shoot): Add search_parent_first parameter.  Only if it is set
9627         search parent server first.
9628         If directory for table found through cold start cache is not the same
9629         as referenced in the cache, don't use it.
9630         (__nisfind_server): Take additional parameter.  Pass it on to
9631         first_shoot.
9632         (__prepare_niscall): Adjust __nisfind_server call.
9633         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9634         * nis/nis_table.c: Adjust __nisfind_server call.
9635         * nis/nis_lookup.c: Likewise.
9636         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9637
9638 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9639
9640         [BZ #2182]
9641         * math/s_cacosh.c: Return values from positive branch.
9642         * math/s_cacoshf.c: Likewise.
9643         * math/s_cacoshl.c: Likewise.
9644
9645         [BZ #2883]
9646         * sysvipc/sys/msg.h: Change return value to ssize_t.
9647         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9648         * sysvipc/msgrcv.c: Likewise.
9649         * include/sys/msg.h: Likewise.
9650
9651         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9652         test introduced in patch for bz #661.
9653         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9654         element for NEWGROUPS.
9655
9656         [BZ #2908]
9657         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9658         'f', use '1' as leading digit not '\1'.
9659         * stdio-common/Makefile (tests): Add bug16.
9660         * stdio-common/bug16.c: New file.
9661
9662         [BZ #2914]
9663         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9664         and don't try to open it.  The patch introducing the macro
9665         contained a bug and used the same file name as the new file
9666         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9667         this out completely.
9668
9669         [BZ #2926]
9670         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9671         Patch by Jerry James <Jerry.James@usu.edu>.
9672
9673         * rt/Makefile (tests): Add tst-clock2.
9674         * rt/tst-clock2.c: New file.
9675
9676         [BZ #2978]
9677         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9678         function and its parameters and pass it to new thread.
9679         (__gai_notify): Add support for alternative waiting for completion.
9680         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9681         waiting for completion.
9682         * resolv/getaddrinfo_a.c: Likewise.
9683         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9684         waiting for completion is used.
9685         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9686         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9687         * resolv/gai_error.c: Likewise.
9688         * resolv/gai_sigqueue.c: Likewise.
9689
9690 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9691
9692         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9693         errno to EBADF and return MACH_PORT_NULL.
9694
9695 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9696
9697         [BZ #2980]
9698         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9699
9700 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9701
9702         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9703         walk them instead of the symbol table.
9704
9705 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9706
9707         [BZ #2098]
9708         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9709         status of NSS calls, not the number of returned entries.
9710
9711         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9712         request_key, keyctl.
9713
9714 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9715
9716         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9717
9718 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9719
9720         * elf/tst-auditmod1.c: Fix typo in #error.
9721
9722 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9723
9724         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9725
9726         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9727
9728 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9729
9730         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9731         that the directory is empty even on non-POSIX filesystems.
9732
9733 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9734
9735         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9736
9737         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9738         the backend NSS module.  If backend setgrent call failed, don't have
9739         internal_setgrent fail.  Just remember this until it is needed.
9740         * nis/nss_compat/compat-pwd.c: Likewise.
9741         * nis/nss_compat/compat-spwd.c: Likewise.
9742
9743 2006-07-30  Roland McGrath  <roland@redhat.com>
9744
9745         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9746         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9747         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9748         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9749
9750         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9751         (nanosleep_not_cancel): New macro.
9752         (sigsuspend_not_cancel): new macro.
9753         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9754         (do_sigsuspend): Define as inline.
9755         (__sigsuspend): Always use do_sigsuspend.
9756         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9757         * include/signal.h: Declare __sigsuspend_nocancel.
9758         * sysdeps/posix/pause.c
9759         [! NO_CANCELLATION] (__pause_nocancel): New function.
9760
9761         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9762         * include/time.h (__nanosleep_nocancel): Likewise.
9763
9764 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9765
9766         * locale/programs/localedef.c (add_to_readlist): Rename local
9767         variables to avoid confusion.
9768
9769         * locale/programs/charmap.c (charmap_read): Emit error message if
9770         charmap couldn't be found or read.
9771
9772 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9773
9774         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9775         __ASSUME_FUTEX_LOCK_PI.
9776         * include/time.h: Declare __nanosleep_nocancel.
9777         * include/unistd.h: Declare __pause_nocancel.
9778
9779         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9780         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9781         get the __stack_chk_fail_local definition when it's needed.
9782
9783 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9784
9785         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9786         * dlfcn/bug-atexit3.c: New file.
9787         * dlfcn/bug-atexit3-lib.cc: New file.
9788
9789         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9790         used when the namespace is not the base namespace.
9791
9792 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9793
9794         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9795         (__new_exitfn): Bump it in every successful call.
9796         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9797         more exit handlers, call them right away.
9798         * stdlib/exit.h: Declare __new_exitfn_called.
9799
9800 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9801
9802         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9803         calling registered handler.
9804
9805         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9806         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9807         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9808         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9809         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9810         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9811         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9812         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9813
9814 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9815
9816         * elf/dl-lookup.c (dl_new_hash): New functions.
9817         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9818         value here.  Compute new-style hash value.  Pass new hash value
9819         and reference to variable with the old value to do_lookup_x.
9820         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9821         old-style hash table.
9822         (_dl_debug_bindings): Pass new hash value and reference to variable
9823         with the old value to do_lookup_x.
9824         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9825         new-style hash value and change old-style hash value parameter to
9826         be a reference.  Reoganize functions to determine whether
9827         new-style hash table is available.  Only fall back on old-style
9828         table.  If old-style hash value is needed, compute it here.
9829         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9830         entry.
9831         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9832         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9833         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9834         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9835         * Makeconfig: If linker supports --hash-style option add it to all
9836         linker command lines to build DSOs.
9837         * config.make.in: Define have-hash-style.
9838         * configure.in: Test whether linker supports --hash-style option.
9839
9840         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9841         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9842
9843 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9844
9845         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9846         auditing.
9847
9848         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9849         RPATH of main map twice.
9850
9851 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9852
9853         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9854         look further, return original strings.
9855         (_nl_find_msg): Do not return found translation if the conversion
9856         failed.  Either signal the string is unusable or that something went
9857         wrong and the original should be used.
9858
9859 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9860
9861         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9862
9863 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9864
9865         [BZ #2766]
9866         * misc/insremque.c (insque): Handle prev == NULL.
9867         * misc/Makefile (tests): Add tst-insremque.
9868         * misc/tst-insremque.c: New test.
9869
9870 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9871
9872         [BZ #2792]
9873         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9874         conflict with DL_DST_REQUIRED.
9875
9876 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9877
9878         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9879         match what Solaris does.
9880
9881 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9882
9883         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9884         local_setegid instead of seteuid and setegid.
9885         * sysdeps/generic/local-setxid.h: New file.
9886         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9887
9888         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9889
9890         * string/Makefile (tests): Add bug-envz1.
9891         * string/bug-envz1.c: New file.
9892
9893 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9894
9895         * posix/regex_internal.c (re_string_skip_chars): If no character has
9896         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9897         to the byte which couldn't be converted.
9898         (re_string_reconstruct): Don't clear valid_raw_len before calling
9899         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9900         tip_context using re_string_context_at.
9901         * posix/Makefile: Add rules to build and run bug-regex25 test.
9902         * posix/bug-regex25.c: New test.
9903
9904 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9905
9906         [BZ #2703]
9907         * string/envz.c (envz_strip): Correct erroneously reversed src
9908         and dest parameters to memmove() invocation.
9909
9910 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9911
9912         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9913         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9914         to make sure the database has been already invalidated.
9915         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9916         after the cache has been invalidated.  Use pthread_mutex_lock rather
9917         than pthread_mutex_trylock if fd != -1.
9918         * nscd/connections.c (invalidate_cache): Add fd argument, write
9919         response to fd if not calling prune_cache, pass fd to prune_cache.
9920         (handle_request): Adjust invalidate_cache caller.
9921         (nscd_run): Pass -1 as fd to prune_cache.
9922
9923 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9924
9925         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9926         the correct place.
9927
9928 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9929
9930         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9931         * nscd/cache.c (prune_cache): Take prunelock before starting the
9932         work.  Just return in case it is already taken.
9933         * nscd/connections.c (dbs): Initialize .prunelock.
9934
9935 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9936
9937         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9938         copying.  No need to allocate new array for group members.  Just
9939         move the pointers and update the size.
9940
9941         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9942         Avoid memory leak in case realloc fails.  Simplification for
9943         better code generation.
9944
9945         Avoid deprecation warning because of libc_hidden_proto for
9946         inet6_option_alloc.
9947         * inet/inet6_option.c (option_alloc): Renamed from
9948         inet6_option_alloc.  Made static.
9949         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9950         (inet6_option_append): Call option_alloc.
9951         * include/netinet/in.h: Remove libc_hidden_proto for
9952         inet6_option_alloc.
9953
9954         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9955         for cleanup when cb!=NULL [Coverity CID 233].
9956
9957 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9958
9959         [BZ #2693]
9960         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9961         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9962         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9963         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9964         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9965         and inet6_rth_getaddr.
9966         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9967         array.
9968         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9969         Mark inet6_option_* interfaces as deprecated.
9970         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9971         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9972         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9973         inet6_rth_segments, and inet6_rth_getaddr.
9974         * inet/inet6_opt.c: New file.
9975         * inet/inet6_rth.c: New file.
9976
9977         * inet/netinet/icmp6.h: Pretty printing.
9978
9979         [BZ #2683]
9980         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9981
9982 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9983
9984         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9985         doing it all here.  When server does not know the answer do not
9986         fail immediate, try parent first.
9987
9988         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9989         overflow test.
9990
9991 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9992
9993         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9994         from __do_niscall.
9995         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9996         and exported.
9997         (__follow_path): New function.  Split out from nis_list.
9998         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9999         _xdr_nis_result.
10000         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10001         _xdr_nis_result.
10002         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10003         and __follow_path.
10004         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10005         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10006         from libnsl for version GLIBC_PRIVATE.
10007         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10008         Remove entry parameter from _nss_nisplus_parse_pwent and
10009         _nss_nisplus_parse_grent.
10010         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10011         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10012         again.  Rewrite getpwent handling to not use nis_first_entry and
10013         nis_next_entry.  Roll out own niscall handling.
10014         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10015
10016         * sunrpc/xdr_rec.c: Fix typo in comment.
10017
10018 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10019
10020         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10021         handling.
10022
10023         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10024         to allocate memory for my_pollfd.  Better initialization of
10025         cb_is_running.  Use TEMP_FAILURE_RETRY.
10026
10027         * malloc/memusage.sh (memusageso): Add quotes.
10028         (memusagestat): Likewise.
10029         * debug/xtrace.sh (pcprofileso): Likewise.
10030         (pcprofiledump): Likewise.
10031         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10032         replacement.
10033         * malloc/Makefile ($(objpfx)memusage): Likewise.
10034
10035         * nis/nis_callback.c (__nis_create_callback): Calls to
10036         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10037         asprintf call fails.
10038
10039         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10040         no uninitialized memory is passed to sendto.
10041
10042 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10043
10044         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10045         of snprintf+strdup.  Handle OOM.
10046         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10047         cb->serv together.  Remove now obsolete free calls.
10048         (__nis_destroy_callback): Remove now obsolete free call.
10049
10050 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10051
10052         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10053         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10054         and ULA respectively). Set precedence for IPv4 address to 10 as
10055         defined in RFC3484 for preferring IPv6.
10056         * posix/gai.conf: Update to match the new default tables.
10057
10058 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10059
10060         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10061         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10062         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10063         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10064
10065         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10066         Removed.
10067         (init_nss_interface): Remove initialization of these variables.
10068
10069 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10070
10071         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10072         nis_free_directory forward to avoid duplication.
10073
10074 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10075
10076         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10077         rec_dirsearch returning NULL.
10078         (first_shoot): Handle __nis_finddirectory returning NULL.
10079         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10080
10081         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10082         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10083
10084 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10085
10086         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10087         pid changed.
10088
10089 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10090
10091         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10092
10093         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10094         * nscd/nscd_getgr_r.c: Likewise.
10095
10096         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10097
10098         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10099         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10100
10101         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10102
10103         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10104
10105         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10106
10107         * include/rpc/auth.h: Mark xdr_des_block_internal and
10108         xdr_opaque_auth_internal as hidden.
10109
10110         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10111         hidden.
10112
10113         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10114
10115         * misc/getusershell.c (okshells): Don't use static initializers,
10116         do it dynamically.
10117
10118         * stdlib/fmtmsg.c (keywords): Change type of len element to
10119         uint32_t to not waste space on 64bit machines.
10120
10121         * locale/setlocale.c: Change _nl_category_names into a string.
10122         Add new _nl_category_name_idxs.  Change all users.
10123         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10124         Declare _nl_category_name_idxs.
10125         * locale/findlocale.c: Adjust for _nl_category_names change.
10126         * locale/loadlocale.c: Likewise.
10127         * locale/newlocale.c: Likewise.
10128         * intl/dcigettext.c: Likewise.
10129
10130         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10131         (add_alias2): ...here.  New function.
10132         (__gconv_read_conf): Simplify builtin alias handling.
10133         (builtin_aliases): Convert to string to avoid relocations.
10134         * iconv/gconv_builtin.h: Add comment about correct formatting.
10135
10136 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10137
10138         * resolv/res_debug.c (loc_ntoa): Make error const.
10139
10140 2006-05-14  Andreas Schwab  <schwab@suse.de>
10141
10142         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10143
10144 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10145
10146         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10147         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10148         sizeof (cpu_set_t).
10149
10150 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10151
10152         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10153
10154         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10155
10156         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10157         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10158
10159         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10160         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10161
10162         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10163         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10164         xdr_cback_data.
10165
10166         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10167         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10168         xdr_ypupdate_args.
10169
10170         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10171         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10172
10173         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10174         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10175
10176         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10177         * include/rpcsvc/nis_callback.h: New file.
10178
10179         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10180         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10181
10182         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10183         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10184
10185         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10186         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10187
10188         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10189         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10190
10191         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10192         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10193         xdr_ypdelete_args.
10194
10195         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10196         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10197
10198         * nis/nis_error.c: Remove table of strings.  Use position
10199         independent mechanism.
10200         * nis/nis_error.h: New file.
10201
10202 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10203
10204         * locale/programs/ld-time.c (time_finish): If wide era name or
10205         format aren't provided, set both wname and wformat to L"".
10206
10207 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10208
10209         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10210         results if the call was succesful.
10211
10212         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10213
10214         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10215         as hidden.
10216
10217 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10218
10219         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10220
10221 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10222
10223         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10224         caller makes sure this is not the case.
10225         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10226
10227 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10228
10229         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10230         calls.
10231
10232         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10233         [Coverity CID 229, 230]
10234
10235         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10236         DGETTEXT calls.
10237         (hol_help): Likewise.  [Coverity CID 226, 227]
10238
10239         * string/argz-replace.c (__argz_replace): Unconditionally call
10240         free on SRC.  [Coverity CID 225]
10241
10242         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10243         the return value of __nis_default_owner and __nis_default_group,
10244         it has been especially allocated.  [Coverity CID 224]
10245
10246         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10247         searchgroup and searchowner.  Significantly simplified.
10248         (__nis_default_owner): Remove duplication.  Do not locally copy the
10249         string before duplicating it.
10250         (__nis_default_group): Likewise.
10251
10252         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10253         we must clear the variable before calling __nisfind_server.
10254
10255         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10256         nis_getnames.  [Coverity CID 223]
10257
10258         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10259         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10260
10261         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10262         allocate memory for the input to add_bytes.  [Coverity CID 221]
10263
10264         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10265         was allocated here.  [Coverity CID 219, 220]
10266
10267         * posix/getconf.c (print_all): Free confstr data after printing.
10268         [Coverity CID 218]
10269
10270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10271         list allocation fails.  [Coverity CID 215]
10272
10273         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10274         [Coverity CID 213]
10275
10276         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10277         string is NULL.  [Coverity CID 212]
10278         * argp/Makefile: Add rules to build and run bug-argp1.
10279         * argp/bug-argp1.c: New file.
10280
10281         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10282         end of string.
10283         * stdlib/canonicalize.c (__realpath): Likewise.
10284
10285         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10286         pointer.  [Coverity CID 206]
10287
10288         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10289         in statically linked code.
10290         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10291         statically built code, be prepared to have no link map.
10292         [Coverity CID 205]
10293
10294         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10295         dgettext calls. [Coverity CID 204]
10296
10297         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10298         the one user.
10299         (uparam_names): Reduce size.  Avoid relative relocations.
10300         Moved to read-only segment.
10301         (fill_in_uparams): Update for new layout.
10302
10303         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10304         assumed to always be != NULL. [Coverity CID 202]
10305
10306         * argp/argp-help.c (hol_entry_help): Remove some dead code
10307         [Coverity CID 200].
10308
10309         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10310         away a few more unconditional yperr2nss calls.
10311         (_nss_nis_getservbyname_r): Likewise.
10312
10313 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10314
10315         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10316         architectures.
10317
10318         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10319         that unused memory passed to sendto is nevertheless initialized.
10320
10321         [BZ #2499]
10322         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10323         possibly unaligned memory accesses.
10324
10325         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10326         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10327         and __putlong respectively.  Correct buffer overflow check for
10328         NS_NOTIFY_OP.
10329
10330         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10331
10332         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10333         (send_dg): Rewrite error handling to be more compact and avoid
10334         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10335
10336         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10337
10338         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10339         instead of ns_get16.
10340         (res_queriesmatch): Likewise.  Minor optimization.
10341
10342         [BZ #2499]
10343         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10344         __libc_res_nsend might reallocate the buffer for the answer.  In
10345         this case we have to reload the HP pointer.
10346
10347 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10348
10349         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10350         some branch prediction hints.
10351
10352         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10353         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10354         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10355         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10356         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10357         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10358         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10359         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10360
10361 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10362
10363         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10364         by a GOT relocation to make Scrt1.o position independent.
10365         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10366
10367         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10368         six system call parameters.
10369         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10370
10371 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10372
10373         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10374         malloc&bzero.
10375
10376         * sunrpc/svc_udp.c (BZERO): Remove definition.
10377         (CALLOC): Define.
10378         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10379
10380         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10381         (des_SPtrans): Use uint32_t type.
10382         (des_skb): Likewise.
10383
10384         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10385
10386 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10387
10388         [BZ #2509]
10389         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10390         on 32-bit arches.
10391
10392 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10393
10394         * locale/programs/ld-address.c (address_finish): Fix one more
10395         place where the iso639 array might be accessed beyond the limits.
10396
10397 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10398
10399         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10400         filling it for the first time.
10401
10402         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10403         Adjust all callers.
10404         Free res object content before returning.
10405
10406         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10407
10408         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10409         client->cl_auth.
10410
10411         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10412         cleanup for initial thread, just the free call on TVP.
10413
10414         * nscd/gai.c (__getline): Define.
10415
10416
10417 See ChangeLog.16 for earlier changes.