* wctype/wctype.h: The *_l functions are in POSIX 2008.
[platform/upstream/glibc.git] / ChangeLog
1 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2
3         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
5         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
6         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
7         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
8         200112L to 200809L.
9         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
10         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
11         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
12         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
13         _SC_THREAD_ROBUST_PRIO_PROTECT.
14         * posix/unistd.h: fexecve is in POSIX 2008.
15         * time/time.h: strftime_l is in POSIX 2008.
16         * io/sys/stat.h: futimens is in POSIX 2008.
17         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
18         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
19         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
20         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
21         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
22         open_memstream, and vdprintf are in POSIX 2008.
23
24 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
25
26         * include/features.h: Define macros for XPG7/POSIX 2008.
27         * ctype/ctype.h: The *_l functions are in POSIX 2008.
28         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
29         POSIX 2008.
30         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
31         * locale/xlocale.h: Define locale_t type.
32         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
33         in POSIX 2008.  Don't define locale_t here.
34         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
35         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
36         UTIME_OMIT only with __USE_ATFILE.
37         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
38         * stdio-common/psiginfo.c: New file.
39         * stdio-common/psiginfo-data.h: New file.
40         * stdio-common/psiginfo-define.h: New file.
41         * stdio-common/Makefile (routines): Add psiginfo.
42         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
43         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
44         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
45         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
46         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
47         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
48         * io/sys/stat.h: Move mknodat definition into same conditional as
49         mknod.
50         * time/sys/time.h: futimesat is not among the functions accepted
51         into the POSIX standard.
52
53         * include/features.h: If no feature selection given and we select
54         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
55         * posix/Versions: Export __posix_getopt.
56         * posix/getopt.c (_getopt_initialize): Take additional parameter.
57         Use it to alternatively initialize __posixly_correct.
58         (_getopt_internal_r): Take addition parameter.  Pass on to
59         _getopt_initialize.
60         (_getopt_internal): Take addition parameter.  Pass on to
61         _getopt_internal_r.
62         (getopt): Pass additional zero to _getopt_internal.
63         (__posix_getopt): New function.
64         * posix/getopt.h: Add redirection for getopt.
65         * posix/getopt1.c (getopt_long): Pass additional zero to
66         _getopt_internal.
67         (getopt_long_only): Likewise.
68         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
69         (_getopt_long_only_r): Likewise.
70         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
71         _getopt_internal_r.
72
73 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
74
75         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
76         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
77         * sysdeps/posix/sysconf.c (__sysconf): Handle
78         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
79         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
80
81 2009-02-24  Roland McGrath  <roland@redhat.com>
82
83         [BZ #9895]
84         * README.template: Reworded not to use substituted version number.
85         Renamed to ...
86         * README: ... here (no longer generated).
87         * Makefile (README): Target removed.
88
89 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
90
91         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
92         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
93         instead.
94
95         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
96
97         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
98
99 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
100
101         * po/bg.po: Update from translation team.
102
103 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
104
105         * stdlib/monetary.h: Uglify function parameter names.
106         * sunrpc/rpc/pmap_clnt.h: Likewise.
107         * sunrpc/rpc/svc.h: Likewise.
108         * sunrpc/rpc/xdr.h: Likewise.
109         * sunrpc/rpc/clnt.h: Likewise.
110         * resolv/netdb.h: Likewise.
111         * resolv/arpa/nameser.h: Likewise.
112         * resolv/resolv.h: Likewise.
113         * argp/argp.h: Likewise.
114         * locale/langinfo.h: Likewise.
115         * io/sys/stat.h: Likewise.
116         * posix/spawn.h: Likewise.
117         * nis/rpcsvc/nislib.h: Likewise.
118         * malloc/obstack.h: Likewise.
119         * sysdeps/ia64/bits/link.h: Likewise.
120         * sysdeps/i386/bits/link.h: Likewise.
121         * sysdeps/s390/bits/link.h: Likewise.
122         * sysdeps/powerpc/bits/link.h: Likewise.
123         * sysdeps/x86_64/bits/link.h: Likewise.
124         * sysdeps/sparc/bits/link.h: Likewise.
125         * sysdeps/sh/bits/link.h: Likewise.
126         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
127         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
128         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
129         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
130
131 2008-12-01  Fredrik Unger  <fred@tree.se>
132
133         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
134         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
135         _FP_UNPACK_RAW_2, fix up first argument.
136
137 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
138
139         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
140         (GET_NPROCS_PARSER): Change parameters and use next_line.
141         (__get_nprocs): Rewrite to not use stdio routines.
142         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
143         Change parameters and use next_line.
144
145 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
146
147         [BZ #5381]
148         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
149         Change mempool_alloc prototype.
150         * nscd/mem.c (gc): Don't handle mem_in_flight.
151         (mempool_alloc): Third parameter now only indicates whether this is the
152         first call (to allocate data) or not.  If it is, get db rdlock.
153         Release it on error.  Don't handle mem_in_flight.
154         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
155         Adjust third parameter of mempool_alloc calls.
156         Nothing to do here in case mempool_alloc fails.
157         Avoid local variable shadowing parameter.  No need to get db rdlock
158         before calling cache_add.
159         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
160         no mem_in_flight array anymore.
161         * nscd/connections.c: Remove definition and handling of mem_in_flight.
162         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
163         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
164         in case mempool_alloc fails. No need to get db rdlock before calling
165         cache_add.
166         * nscd/hstcache.c (cache_addhst): Likewise.
167         * nscd/initgrcache.c (addinitgroupsX): Likewise.
168         * nscd/servicescache.c (cache_addserv): Likewise.
169         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
170
171 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
172
173         * po/lt.po: Update from translation team.
174
175 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
176
177         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
178         defined, allow additional data to be added using the optional
179         MORE_ELF_HEADER_DATA macro.
180         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
181         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
182
183 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
184
185         * include/atomic.h: Define catomic_and if not already defined.
186         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
187         * sysdeps/i386/i486/bits/atomic.h: Likewise.
188
189 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
190
191         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
192         Change all callers.
193         (_int_realloc): Likewise.  Third argument is now padded size
194         All _int_* functions are now static.
195
196         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
197         * malloc/arena.c: Likewise.
198         * include/malloc.h: Remove now unnecessary declarations of the _int_*
199         functions.
200
201         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
202         easily.
203
204         * malloc/malloc.c: Add branch prediction for use of the hooks.
205
206         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
207
208 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
209
210         [BZ #7095]
211         * bits/confname.h: Add SUSv7 macros for getconf environments.
212         * bits/environments.h: Likewise.
213         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
214         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
215         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
216         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
217         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
218         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
219         * posix/getconf.c: Likewise.
220         * posix/sysconf.c: Likewise.
221         * sysdeps/posix/sysconf.c: Likewise.
222         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
223         environments.
224
225 2009-01-16  Petr Baudis  <pasky@suse.cz>
226
227         [BZ #9753]
228         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
229         even if we currently have zero nscount.
230
231 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
232
233         [BZ #9781]
234         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
235         the input line is too long.
236
237         * po/Makefile (libc.pot): Add f_print as function taking c-format
238         parameter.
239
240         * debug/xtrace.sh: Unify translatable messages.
241         * elf/ldd.bash.in: Likewise.
242         * elf/sprof.c: Likewise.
243         * locale/programs/locale.c: Likewise.
244         * malloc/memusage.sh: Likewise.
245         * nss/getent.c: Likewise.
246
247 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
248
249         * debug/pcprofiledump.c (print_version,
250         argp_program_version_hook): New function.
251         * elf/ldconfig.c (more_help): New function.
252         (argp): Use it.
253         * elf/sln.c (usage): New function.
254         (main): Support --help and --version.
255         * malloc/memusagestat.c (print_version): New function.
256         (argp_program_version_hook): New variable.
257         * nscd/nscd.c (more_help): New function.
258         (argp): Use it.
259         * posix/getconf.c (main): Send --version output to stdout.
260         Support --help.
261         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
262         arguments.  All callers changed.
263         (print_version): New function.
264         (parseargs): Support --help and --version.
265         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
266         changed.
267         (print_version): New function.
268         (main): Use getopt_long.  Support --help and --version.
269         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
270         --version.
271
272 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
273
274         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
275         (update_data): Fix handling of wrapping back
276         to the beginning of the buffer.
277
278         [BZ #9823]
279         * stdio-common/psignal.c (psignal): Fix test for empty string.
280
281 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
282
283         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
284         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
285         move _null_auth to .rodata.
286
287         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
288         value of 24.
289
290         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
291
292         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
293         today than when the original code was written.  Use larger
294         buffers.  This also makes it unnecessary to have stat information,
295         if this causes extra efforts.
296         (__opendir): In case O_DIRECTORY works, don't call fstat just for
297         __alloc_dir.
298
299 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
300
301         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
302         is set.
303         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
304         * sysdeps/sh/sh4/__longjmp.S: Likewise.
305         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
306         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
307         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
308         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
309
310 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
311
312         * po/ru.po: Update from translation team.
313
314 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
315
316         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
317         Add _tid slot to maintain consistency with kernel.
318
319 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
320
321         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
322         incomplete characters at end of input buffer.
323         * libio/Makefile (tests): Add tst-fgetwc.
324         * libio/tst-fgetwc.c: New file.
325         * libio/tst-fgetwc.input: New file.
326
327 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
328
329         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
330
331 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
332
333         [BZ #9793]
334         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
335         *OUTBUFSTART unless the whole output fit into the buffer.
336         * iconv/Makefile (tests): Add tst-iconv4.
337         * iconv/tst-iconv4.c: New file.
338
339 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
340
341         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
342         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
343
344 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
345
346         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
347         newer linker scripts.
348
349 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
350
351         [BZ #7040]
352         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
353         inotify_rm_watch should have type int.
354
355 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
356
357         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
358         Make aligned_restore_vmx a local symbol.
359         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
360         Likewise.
361
362 2009-01-30  Andreas Jaeger  <aj@suse.de>
363
364         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
365         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
366         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
367         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
368         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
369         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
370         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
371
372 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
373
374         [BZ #9726]
375         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
376         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
377
378 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
379
380         [BZ #9726]
381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
382         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
384         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
385
386 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
387
388         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
389         memcpy instead of memcmp.
390         (_dl_setup_pointer_guard): Likewise.
391
392 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
393
394         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
395         manipulated brk, use malloc_printerr.
396         * misc/sbrk.c (__sbrk): Better error handling for nonsense
397         requests.
398
399 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
400
401         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
402         rindex): For C++ add inlines so that they can be recognized as
403         builtins.
404         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
405
406 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
407             Jakub Jelinek  <jakub@redhat.com>
408
409         * string/string.h: Define correct C++ prototypes for gcc 4.4.
410         * wcsmbs/wchar.h: Likewise.
411
412 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
413
414         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
415         (stackinfo_sub_sp): Define.
416
417 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
418
419         [BZ #9750]
420         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
421         * include/alloca.h (alloca_account): Define.
422         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
423         (stackinfo_sub_sp): Define.
424
425         * nscd/connections.c (nscd_init): If database file access fails
426         check whether this is due to permission problems and bail in that
427         case.
428
429         [BZ #9741]
430         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
431         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
432
433 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
434
435         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
436         Add "t" to clobber list.
437         (INTERNAL_SYSCALL_NCS): Likewise.
438
439 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
440
441         * nss/getent.c (print_networks): Don't print comma between aliases.
442
443 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
444
445         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
446
447         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
448         the hash table.
449         * misc/Makefile (tests): Add bug-hsearch1.
450         * misc/bug-hsearch1.c: New file.
451
452 2009-01-22  Roland McGrath  <roland@redhat.com>
453
454         * Makeconfig (%.v.i): Strip trailing # comments,
455         not only whole-line comments.
456
457 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
458
459         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
460         one parameter.  If non-NULL use it to initialize return value.
461         (_dl_setup_pointer_guard): New function.
462         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
463         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
464         * elf/rtld.c (security_init): Pass _dl_random to
465         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
466         pointer_chk_guard.
467         * elf/dl-sysdep.c (_dl_random): New variable.
468         (_dl_sysdep_start): Handle AT_RANDOM.
469         (_dl_show_auxv): Likewise.
470         * elf/dl-support.c (_dl_random): New variable.
471         (_dl_aux_init): Handle AT_RANDOM.
472         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
473         to _dl_setup_stack_chk_guard.
474
475         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
476
477 2009-01-10  Roland McGrath  <roland@redhat.com>
478
479         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
480
481 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
482
483         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
484
485         [BZ #9706]
486         * nss/nss_files/files-parse.c (strtou32): New function.
487         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
488         across 32-bit and 64-bit platforms.
489         (INT_FIELD_MAYBE_NULL): Likewise.
490
491 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
492
493         [BZ #9720]
494         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
495         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
496         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
497         Likewise.
498
499 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
500
501         [BZ #697]
502         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
503         being NULL also if there are no backreferences.
504         * posix/rxspencer/tests: Add testcases.
505
506 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
507
508         [BZ #9697]
509         * posix/bug-regex17.c: Add testcases.
510         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
511         handling.
512
513 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
514
515         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
516         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
517         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
518         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
519         for elf subdir.
520         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
521         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
522         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
523         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
524         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
525         * sysdeps/unix/sysv/linux/s390/Versions: New file.
526
527 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
528
529         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
530         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
531         re_string_skip_chars, re_string_reconstruct): Likewise.
532         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
533
534 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
535
536         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
537         adjust the buffer alignment.
538
539 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
540
541         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
542         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
543         net/route.h.
544
545         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
546         flavor to description only when flavor is not NULL.
547
548         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
549         mutex after SIGIO/SIGURG lookup loop.
550
551 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
552
553         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
554
555 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
556
557         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
558         handling.
559
560 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
561
562         * sysdeps/unix/sysv/linux/kernel-features.h
563         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
564
565         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
566         if no output is written.
567
568         * version.h: Bump to 2.10 development.
569
570         * posix/getconf.c: Update copyright year.
571         * nss/getent.c: Likewise.
572         * iconv/iconvconfig.c: Likewise.
573         * iconv/iconv_prog.c: Likewise.
574         * elf/ldconfig.c: Likewise.
575         * catgets/gencat.c: Likewise.
576         * csu/version.c: Likewise.
577         * elf/ldd.bash.in: Likewise.
578         * elf/sprof.c (print_version): Likewise.
579         * locale/programs/locale.c: Likewise.
580         * locale/programs/localedef.c: Likewise.
581         * nscd/nscd.c (print_version): Likewise.
582         * debug/xtrace.sh: Likewise.
583         * malloc/memusage.sh: Likewise.
584         * malloc/mtrace.pl: Likewise.
585         * debug/catchsegv.sh: Likewise.
586
587 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
588
589         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
590         script.
591
592 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
593
594         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
595         gethostbyname4_r function call succeeded, just leave the loop.
596
597         [BZ #9694]
598         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
599         very end.
600         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
601         * wctype/Makefile (tests): Add bug-wctypeh.
602         * wctype/bug-wctypeh.c: New file.
603
604         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
605         LOCALDOMAIN is defined.
606         * nscd/nscd_getai.c (__nscd_getai): Likewise.
607
608         * sysdeps/x86_64/bits/select.h: New file.
609
610         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
611
612 2008-12-21  Bruno Haible  <bruno@clisp.org>
613
614         [BZ #9677]
615         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
616         if no output is written.
617
618 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
619
620         * login/utmp_file.c (pututline_file): Replace call to dup2 with
621         libc internal symbol __dup2 to avoid access through the PLT.
622
623 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
624
625         [BZ #6545]
626         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
627         available only for __USE_GNU.
628
629         * inet/Makefile (tests): Add tst-getni2.
630         * inet/tst-getni2.c: New file.
631
632         [BZ #7080]
633         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
634         NULL when NI_NAMEREQD is set.
635         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
636         * inet/Makefile (tests): Add tst-getni1.
637         * inet/tst-getni1.c: New file.
638
639 2008-12-03  Petr Baudis  <pasky@suse.cz>
640
641         [BZ #7067]
642         * nscd/connections.c (invalidate_cache): Use prune_run_lock
643         instead of prune_lock.
644         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
645         * nscd/nscd.h (database_dyn): Add prune_run_cache.
646
647 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
648
649         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
650         use.
651
652         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
653         handling.
654
655         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
656         after reading name server list.
657
658         [BZ #7058]
659         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
660         handling for host name aliases.
661
662 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
663
664         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
665         instead of doing things manually.
666
667 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
668
669         * posix/regex_internal.h (build_wcs_upper_buffer):
670         Return type is reg_error_t.
671
672 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
673
674         * posix/globtest.sh: Use mktemp to create temporary file and
675         directory.
676
677         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
678         sets correctly.
679         (__CPU_CLR_S): Likewise.
680         (__CPU_ISSET_S): Likewise.
681
682 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
683             Ulrich Drepper  <drepper@redhat.com>
684
685         * scripts/firstversion.awk: Use custom comparison function to compare
686         version numbers.
687         * scripts/versions.awk: Use sort invocation which can handle
688         multi-digit sub-version numbers.
689
690 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
691
692         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
693         * locale/iso-639.def: Add Chhattisgarhi entry.
694
695 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
696
697         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
698         ESRCH return value.
699         (_nss_dns_gethostbyname4_r): Likewise.
700         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
701         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
702         gethostbyname4_r, we don't have a separate IPv6 status, so copy
703         the no_data variable.
704
705         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
706         information at the correct index.
707
708         * socket/sys/socket.h: Declare accept4.
709         * socket/accept4.c: New file.
710         * sysdeps/unix/sysv/linux/accept4.c: New file.
711         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
712         * socket/Makefile (routines): Add accept4.
713         * socket/Versions: Export accept4 with version GLIBC_2.10.
714         * socket/paccept.c: Removed.
715         * sysdeps/unix/sysv/linux/paccept.c: Removed.
716         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
717         * Versions.def: Define GLIBC_2.10 for libc.
718         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
719
720         * nscd/connections.c: Use accept4.
721
722         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
723
724 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
725
726         * resolv/res_send.c (send_dg): Create sockets with non-blocking
727         flag already set.
728
729         * stdlib/setenv.c (unsetenv): Don't search environment if it does
730         not exist.
731         * stdlib/Makefile (tests): Add tst-unsetenv1.
732         * stdlib/tst-unsetenv1.c: New file.
733
734 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
735
736         * login/utmp_file.c (file_writable): New variable.
737         (setutent_file): Don't try to open file for writing.
738         (pututline_file): Before writing, make descriptor writable if
739         necessary.
740
741 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
742
743         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
744         to IPv4 or IPv6 if an interface has been found.
745
746 2008-11-26  Roland McGrath  <roland@redhat.com>
747
748         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
749         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
750
751         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
752         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
753         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
754
755         * elf/elf.h (NT_386_IOPERM): New macro.
756         (NT_PPC_VSX): New macro.
757
758 2008-11-25  Roland McGrath  <roland@redhat.com>
759
760         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
761         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
762         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
763         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
764         Subdirectories moved to ports repository.
765         * configure.in (base_machine): Remove alpha case.
766
767 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
768
769         * sysdeps/mach/strerror_l.c: New file.
770
771 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
772
773         [BZ #6411]
774         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
775         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
776         magic numbers.
777         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
778         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
779         (relax_fenv_state): Same as above.
780         (FPSCR_29): Reserve bit in ISA 2.05.
781         (FPSCR_NI): Provide define for compat.
782         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
783         magic numbers.
784         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
785         magic numbers.
786         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
787         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
788         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
789         access to hwcap to account for hwcap size increase to uint64_t.
790         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
791         Likewise.
792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
793         (*setcontext): Likewise.
794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
795         New file.
796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
797         New file.
798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
799         (*setcontext): dynamically select mtfsf insn based on
800         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
801         increase to uint64_t.
802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
803         (*swapcontext): dynamically select mtfsf insn based on
804         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
805         increase to uint64_t.
806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
807         New file.
808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
809         New file.
810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
811         (*setcontext): dynamically select mtfsf insn based on
812         PPC_FEATURE_HAS_DFP.
813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
814         (*swapcontext): dynamically select mtfsf insn based on
815         PPC_FEATURE_HAS_DFP.
816
817 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
818
819         * version.h: Bump for 2.9 release.
820         * include/features.h (__GLIBC_MINOR__): Bump to 9.
821
822         [BZ #7029]
823         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
824         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
825         all the rounding.
826
827 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
828
829         [BZ #7009]
830         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
831         unknown request types for now.
832
833 2008-11-11  Roland McGrath  <roland@redhat.com>
834
835         * sysdeps/x86_64/configure: New file.
836
837         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
838         * configure: Regenerated.
839
840 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
841
842         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
843         correct instruction to remove the stack frame.
844
845 2008-11-03  Michael Matz  <matz@suse.de>
846
847         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
848         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
849
850 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
851
852         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
853         Remove.
854
855         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
856         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
857         of the thread variable instead of void *.
858         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
859         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
860         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
861         __libc_tsd_define arguments.
862         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
863         __libc_tsd_address arguments.  Remove union hack.
864         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
865         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
866         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
867         Adjust __libc_tsd_{set,get} arguments.
868         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
869         __libc_tsd_define arguments.
870         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
871         arguments.
872         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
873         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
874         (LOCALE): Adjust __libc_tsd_define arguments.
875         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
876         arguments.
877         (LOCALE): Adjust __libc_tsd_define arguments.
878         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
879         arguments.
880         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
881         arguments.
882
883 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
884
885         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
886         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
887
888 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
889
890         [BZ #6966]
891         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
892
893 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
894             Ulrich Drepper  <drepper@redhat.com>
895
896         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
897         definition for GCC 3.1 and later.
898
899 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
900
901         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
902         refetch dtv, as it might have changed.
903         * elf/Makefile: Add rules to build and run tst-tls18.
904         * elf/tst-tls18.c: New test.
905         * elf/tst-tlsmod18a.c: New file.
906
907 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
908
909         [BZ #6875]
910         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
911
912 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
913
914         [BZ #6867]
915         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
916
917         [BZ #6919]
918         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
919         Fix length of copy operation.
920
921 2008-10-02  Pierre Habouzit <madcoder@debian.org>
922
923         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
924         and fix its calling convention.
925
926 2008-10-07  Andreas Schwab  <schwab@suse.de>
927
928         [BZ #6942]
929         * resolv/res_send.c (send_vc): Fix last change.
930         (send_dg): Align here as well.
931
932 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
933
934         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
935         return value in case rlimit is RLIM_INFINITY.
936
937         [BZ #6947]
938         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
939         for UL_SETFSIZE.
940         * resource/Makefile (tests): Add bug-ulimit1.
941         * resource/bug-ulimit1.c: New file.
942
943         [BZ #6974]
944         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
945         without dot.  Properly terminate the string with a null byte.
946         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
947
948         [BZ #6980]
949         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
950         negative sizees.
951         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
952         negative __size.
953
954         [BZ #6995]
955         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
956
957 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
958
959         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
960         abort if there is no initgroups_dyn function.
961
962         * resolv/res_send.c (send_dg): On timeout, only return nonzero
963         result if any of the queries really provided an answer.
964
965 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
966
967         * po/lt.po: Update from translation team.
968
969 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
970
971         * po/id.po: Update from translation team.
972
973 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
974
975         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
976         Fix tests for existence of second reply.
977
978 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
979
980         * po/id.po: New file.
981         Contributed by the Indonesian translation team.
982
983 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
984
985         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
986         initialization.
987
988 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
989
990         * elf/Makefile: Add rules to build and run tst-tls17.
991         * elf/tst-tls17.c: New test.
992         * elf/tst-tlsmod17a.c: New file.
993         * elf/tst-tlsmod17b.c: Likewise.
994
995 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
996
997         * stdlib/divmod_1.c: Use correct type for dummy variable.
998         * stdlib/mod_1.c: Likewise.
999
1000 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1001
1002         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1003
1004 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1005
1006         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1007         __nonnull order for C++.
1008         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1009         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1010
1011 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1012
1013         * stdlib/longlong.h: Update from GCC.
1014
1015 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1016             David S. Miller  <davem@davemloft.net>
1017
1018         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1019         make sure any registers used with 64-bit 'branch-on-register'
1020         instructions have their top 32-bits clear.
1021         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1022         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1023
1024 2008-09-18  Andreas Schwab  <schwab@suse.de>
1025
1026         [BZ #6942]
1027         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1028         Properly handle partial reads.
1029
1030 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1031
1032         * elf/elf.h (STO_MIPS_PLT): New.
1033         (R_MIPS_COPY): New.
1034         (R_MIPS_JUMP_SLOT): New.
1035         (R_MIPS_NUM): Redefine to 128.
1036         (DT_MIPS_PLTGOT): New.
1037         (DT_MIPS_RWPLT): New.
1038         (DT_MIPS_NUM): Redefine to 0x35.
1039
1040 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1041
1042         * timezone/africa: Update from tzdata2008f.
1043         * timezone/asia: Likewise.
1044         * timezone/australasia: Likewise.
1045         * timezone/europe: Likewise.
1046         * timezone/leapseconds: Likewise.
1047         * timezone/northamerica: Likewise.
1048         * timezone/southamerica: Likewise.
1049         * timezone/zone.tab: Likewise.
1050
1051 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1052
1053         * nscd/connections.c: Disable use of paccept for now.
1054
1055 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1056
1057         * socket/Versions: Remove paccept export for GLIBC_2.9.
1058         * socket/Makefile (routines): Remove paccept.
1059         * socket/sys/socket.h: Remove paccept declaration.
1060
1061         * po/sv.po: Update from translation team.
1062
1063 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1064
1065         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1066         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1067
1068 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1069
1070         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1071         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1072
1073 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1074
1075         * sunrpc/rpc/svc.h: Declare svcfd_create.
1076         Patch by Michael Solberg <msolberg@redhat.com>.
1077
1078 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1079             Ulrich Drepper  <drepper@redhat.com>
1080
1081         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1082         _int_valloc fails.
1083         (public_pVALLOc): Likewise.
1084
1085 2008-09-02  Andreas Jaeger  <aj@suse.de>
1086
1087         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1088         commit.
1089
1090 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1091
1092         [BZ #6860]
1093         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1094
1095 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1096
1097         * Makefile (check-data): Check data directory in add-ons.
1098         * elf/Makefile (check-data): Likewise.
1099
1100 2008-08-18  Roland McGrath  <roland@redhat.com>
1101
1102         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1103         * configure: Regenerated.
1104         * config.make.in (cflags-cpu): New substituted variable.
1105         (with-cpu): Variable removed.
1106         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1107
1108 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1109
1110         [BZ #6845]
1111         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1112         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1113         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1114         redundant.  Functions which call floating point assembler operations
1115         should go into a sysdeps powerpc/fpu directory.
1116
1117 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1118
1119         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1120         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1121
1122 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1123
1124         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1125
1126         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1127         change related to AT_EXECFN.  We cannot use that string.
1128         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1129         _dl_execfn member.
1130         * elf/dl-support.c: Remove _dl_execfn variable.
1131         (_dl_aux_init): Remove handling of AT_EXECFN.
1132         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1133         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1134
1135 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1136
1137         [BZ #6544]
1138         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1139         byte gets added to writes and seeks from the end use the length of
1140         the buffer and not the currently terminating NUL byte.
1141
1142         [BZ #6634]
1143         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1144         Set to true if locking failed.
1145         (getutid_r_file): Adjust caller.
1146         (pututline_file): Likewise.  Return NULL in this case.
1147         Patch mostly by halesh.s@gmail.com.
1148
1149 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1150
1151         [BZ #6589]
1152         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1153         Define.
1154         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1155
1156 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1157
1158         [BZ #6839]
1159         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1160         macro since it is now available in elf/dynamic-link.h.
1161
1162 2008-08-12  Roland McGrath  <roland@frob.com>
1163
1164         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1165         in case used outside of libc.
1166         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1167
1168 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1169
1170         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1171         directly instead of going through dn_comp.
1172
1173 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1174
1175         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1176         Fix asm constraints.
1177
1178 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1179
1180         [BZ #6790]
1181         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1182         (IPV6_PMTUDISC_PROBE): Likewise.
1183
1184 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1185
1186         [BZ #6791]
1187         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1188
1189 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1190             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1191
1192         [BZ #6817]
1193         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1194         Added the members 'vsx' and 'arch_2_06'.
1195         (_dl_powerpc_platforms): Add the member 'power7'.
1196         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1197         to reflect the changes required by VSX and ISA 2.06.
1198         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1199         'power7'.
1200         Defined PPC_PLATFORM_POWER7.
1201         (_dl_string_platform): Add support for POWER7.
1202         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1203         capability and ISA 2.06.
1204
1205 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1206
1207         [BZ #6824]
1208         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1209         macro to detect use of 128 bit long double.
1210         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1211
1212 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1213
1214         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1215
1216         [BZ #5794]
1217         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1218         parameters.
1219         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1220         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1221
1222 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1223
1224         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1225         guaranteed to be large enough to read inotify event.  Ignore
1226         EAGAIN error.  Better error message.  Add branch predicition.
1227         (main_loop_epoll): Likewise.
1228
1229 2008-08-02  Roland McGrath  <roland@frob.com>
1230
1231         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1232         Add memory clobbers.
1233
1234 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1235
1236         * manual/arith.texi: Avoid @strong{Note:}.
1237         * manual/creature.texi: Likewise.
1238         * manual/filesys.texi: Likewise.
1239         * manual/math.texi: Likewise.
1240         * manual/memory.texi: Likewise.
1241         * manual/resource.texi: Likewise.
1242         * manual/syslog.texi: Likewise.
1243         * manual/time.texi: Likewise.
1244
1245         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1246         to prevent warning.
1247
1248 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1249
1250         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1251         new epoll_create1 interface.
1252         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1253         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1254         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1255
1256         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1257         (NS_GET32): Likewise.
1258
1259         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1260         syscalls, too.
1261
1262         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1263         use the AT_EXECFN value if it is no absolute path.
1264         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1265         __ASSUME_AT_EXECFN.
1266
1267         * Versions.def: Add GLIBC_2.9 to libresolv.
1268         * include/resolv.h: Remove hidden proto declarations for __ns_*
1269         functions.  Add them for __dn_count_labels and __p_secstodate.
1270         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1271         Define ns_msg_getflags macro here.
1272         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1273         and __p_secstodate.
1274         * resolv/Versions: Export functions from <arpa/nameser.h> from
1275         libresolv in version GLIBC_2.9.
1276         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1277         hidden definitions.
1278         * resolv/ns_netint.c: Likewise.
1279         * resolv/ns_parse.c: Likewise.
1280         * resolv/ns_print.c: Likewise.
1281         * resolv/ns_samedomain.c: Likewise.
1282         * resolv/ns_ttl.c: Likewise.
1283         * resolv/arpa/nameser_compat.h: Likewise.
1284         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1285         function calls.
1286         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1287         instead of ns_get16.
1288         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1289         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1290         (gaih_getanswer_slice): Likewise.
1291         * resolv/Makefile (libresolv-routines): Add ns_date.
1292         * resolv/ns_date.c: New file.
1293
1294         * elf/Makefile (check-localplt.out): Also check libresolv and
1295         libcrypt.
1296
1297 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1300         __ASSUME_O_CLOEXEC.
1301
1302 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1303
1304         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1305         buffer passed to NSS functions.
1306
1307         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1308
1309         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1310         Define.
1311
1312         * misc/syslog.c (openlog_internal): Fix compile problem.
1313
1314 2008-07-28  Roland McGrath  <roland@redhat.com>
1315
1316         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1317
1318 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1319
1320         * io/ftw.c (add_object): Remove inline to avoid warning.
1321
1322         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1323
1324         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1325         Use it instead of locally defined resplen2 variable.
1326         (res_nsend): Adjust for __libc_res_nsend interface change.
1327         (send_vc): Initialize *resplen2 if necessary.  Read length of
1328         package into an appropriately aligned variable.  Store converted length
1329         in new variable and use it appropriately.
1330         Add branch prediction help.
1331         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1332         and pass it on to __libc_res_nsend.  Adjust all callers.
1333         (__libc_res_nsearch): Likewise.
1334         (__libc_res_nqeurydomain): Likewise.
1335         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1336         change.
1337         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1338         Define resplen2 variable and pass it to __libc_res_nsearch and then
1339         to gaih_getanswer.
1340         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1341         Add branch prediction.
1342         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1343         (gaih_getanswer): Don't decode second slice if first one failed due
1344         to a too small buffer.  Don't let not found status of second
1345         decoder shadow results of the first.
1346         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1347         and __libc_res_nquery interface changes
1348         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1349         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1350         __libc_res_nsearch, and __libc_res_nsend.
1351         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1352         change.
1353         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1354         __libc_res_nsearch interface changes.
1355
1356 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1357
1358         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1359
1360         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1361         file descriptors with close-on-exec set.
1362         (exec_comm_child): Fix the case where the write end of the pipe is
1363         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1364
1365         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1366         * io/pipe2.c: Likewise.
1367         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1368         instead of __ASSUME_PACCEPT.
1369         * include/unistd.h: Declare __have_pipe2.
1370         * libio/iopopen.c: Implement "e" flag.
1371         * libio/Makefile (tests): Add tst-popen1.
1372         * libio/tst-popen1.c: New file.
1373
1374         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1375         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1376
1377 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1378
1379         [BZ #6771]
1380         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1381         success call of _IO_SEEKOFF or calls which failed because the
1382         descriptor is for a pipe.
1383
1384         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1385         magic number.
1386
1387         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1388
1389         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1390         F_SETFD use if we know fopen set the flag.
1391
1392         * login/utmp_file.c (setutent_file): Minor optimization in case
1393         O_CLOEXEC is available.
1394
1395 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1396
1397         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1398         * elf/Makefile: Use pie-ccflag variable.
1399         * nscd/Makefile: Likewise.
1400         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1401
1402 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1403
1404         [BZ #6724]
1405         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1406         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1407         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1408         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1409         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1410         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1411         utmp32, utmpx32 and login32.
1412         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1413         versions of struct utmp functions to libc and libutil.
1414         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1415         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1416         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1417         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1418         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1419         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1420         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1421         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1422         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1423         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1424         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1425         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1426         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1427         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1428         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1429         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1430         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1431         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1432         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1433         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1434         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1435         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1436
1437 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1438
1439         * scripts/gen-as-const.awk: Generate more widely usable code by
1440         using 64-bit arithmetic.
1441
1442         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1443         the same treatment as narrow output code in last patch.
1444
1445         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1446
1447         [BZ #6763]
1448         * elf/dl-load.c (local_strdup): Remove inline.
1449         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1450         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1451         part of the object.
1452
1453         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1454
1455 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1456
1457         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1458         the new syscalls, too.
1459
1460         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1461         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1462
1463         [BZ #6698]
1464         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1465         parameter for end of buffer.  If temporary copy is too large use
1466         malloc.
1467         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1468         interface change.
1469         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1470         string rewrite when allocating buffer.
1471
1472         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1473         syscalls, too.
1474
1475         * nscd/connections.c (nscd_init): Clean up fcntl call.
1476
1477         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1478         SOCK_NONBLOCK if possible.
1479
1480         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1481         SOCK_CLOEXEC if available.
1482
1483         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1484         __libc_clntudp_bufcreate_internal.
1485         * include/sys/socket.h: Declare __have_sock_cloexec.
1486         * socket/Makefile (aux): Add have_sock_cloexec.
1487         * socket/have_sock_cloexec.c: New file.
1488         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1489         __libc_clntudp_bufcreate.
1490         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1491         which takes an additional parameter.  Create socket with non-blocking
1492         mode and close-on-exec flag set, if wanted.
1493         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1494         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1495         instead of clntudp_create.  The socket has already the close-on-exec
1496         flag set if SOCK_CLOEXEC is defined.
1497
1498 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1499
1500         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1501         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1502         appropriate.
1503         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1504         non-blocking mode by using socket, paccept, and inotify_init1.
1505
1506         * Versions.def (glibc): Add GLIBC_2.9.
1507         * io/Makefile (routines): Add dup3 and pipe2.
1508         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1509         * io/dup3.c: New file.
1510         * io/pipe2.c: New file.
1511         * posix/unistd.h: Declare dup3 and pipe2.
1512         * socket/Makefile (routines): Add paccept.
1513         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1514         * socket/paccept.c: New file.
1515         * socket/sys/socket.h: Declare paccept.
1516         * sysdeps/unix/syscalls.list: Add entry for dup3.
1517         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1518         epoll_create2 and inotify_init1.
1519         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1520         * sysdeps/unix/sysv/linux/paccept.c: New file.
1521         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1522         possible.
1523         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1524         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1525         inotify_init1, and pipe2 entries.
1526         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1527         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1528         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1529         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1530         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1531         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1532         SOCK_NONBLOCK.
1533         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1534         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1535         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1536         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1537         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1538         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1539         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1540         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1541         EPOLL_NONBLOCK.  Declare epoll_create2.
1542         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1543         EFD_NONBLOCK.
1544         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1545         IN_NONBLOCK.  Declare inotify_init1.
1546         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1547         SFD_NONBLOCK.
1548         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1549         TFD_NONBLOCK.
1550
1551         * elf/elf.h: Define AT_EXECFN.
1552         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1553         LD_ORIGIN_PATH.
1554         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1555         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1556         if __ASSUME_AT_EXECFN is defined.
1557         (_dl_aux_init): Handle AT_EXECFN.
1558         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1559         for 2.6.27 and up.
1560         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1561         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1562         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1563         _dl_execfn if available and avoid compatibility code if
1564         __ASSUME_AT_EXECFN is defined.
1565
1566         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1567         _dl_discover_osversion only for older kernels.
1568
1569 2008-07-22  Roland McGrath  <roland@frob.com>
1570
1571         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1572
1573 2008-07-21  Roland McGrath  <roland@frob.com>
1574
1575         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1576         returned too much data out of line.
1577
1578 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1579
1580         * locale/setlocale.c (setname): Remove inline to avoid compiler
1581         warning.
1582
1583         [BZ #6712]
1584         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1585
1586 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1587
1588         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1589         doesn't manage to write anything, fail.
1590
1591         * malloc/hooks.c (__malloc_check_init): Remove printf.
1592
1593 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1594
1595         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1596
1597 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1598
1599         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1600         from inotify.
1601         (main_loop_epoll): Likewise.
1602
1603 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1604
1605         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1606
1607         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1608         if DEBUG is defined.
1609
1610         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1611         query.  Adjust buffer size computation for padding.
1612
1613 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1614
1615         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1616         * stdio-common/tst-setvbuf1.c: New file.
1617         * stdio-common/tst-setvbuf1.expect: New file.
1618
1619         [BZ #6719]
1620         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1621         when selecting fully-buffered stream.
1622         Patch by Wang Xin <wxinee@gmail.com>.
1623
1624 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1625
1626         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1627         (__open_2): New function.
1628         (__open64_2): New alias to __open_2.
1629         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1630         (__openat_2): New function.
1631         (__openat64_2): New alias to __openat_2.
1632
1633 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1634
1635         [BZ #6723]
1636         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1637
1638 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1639
1640         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1641         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1642         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1643         __hurd_dfail.
1644         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1645         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1646         * sysdeps/mach/hurd/send.c (__send): Likewise.
1647         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1648         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1649
1650 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1651
1652         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1653         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1654         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1655         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1656         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1657         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1658
1659 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1660
1661         [BZ #6657]
1662         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1663         of %EY.
1664         Patch by Petr Baudis.
1665
1666 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1667
1668         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1669         Patch by Peter Jones <pjones@redhat.com>.
1670
1671 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1672
1673         [BZ #6654]
1674         * stdlib/canonicalize.c (__realpath): readlink can write too much
1675         into the buffer on platforms without PATH_MAX.
1676
1677 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1678
1679         [BZ #6653]
1680         * posix/tst-regex.c (main): Rename to...
1681         (do_test): ... this. Remove cmdline option processing.
1682         (TIMEOUT): Define.
1683         (TEST_FUNCTION): Define.
1684         (CMDLINE_OPTIONS): Define.
1685
1686 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1687
1688         [BZ #5210]
1689         * configure.in: Add -Werror to -fstack-protector test to catch
1690         unsupported architectures.
1691         Patch by Gilles Esponasse <g.esp@free.fr>.
1692
1693 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1694
1695         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1696         getcontext returns ENOSYS.
1697
1698 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1699
1700         * nscd/connections.c (main_loop_poll): Fix test for read error.
1701         (main_loop_epoll): Likewise.
1702
1703 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1704
1705         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1706         better place so it is not called when nscd is used.
1707
1708         * nscd/connections.c: Also recognize and handle changes to the
1709         resolver configuration file.
1710
1711 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1712
1713         * time/strftime.c: Pass reference to tzset_called around to handle
1714         recursive calls.
1715
1716         [BZ #6612]
1717         * time/strftime.c (__strftime_internal): Call tzset() only
1718         when printing timezone-dependent values.
1719         Based on a patch by Petr Baudis <pasky@suse.cz>.
1720
1721         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1722         unconditionally use second gaih_getanswer_slice result.
1723
1724         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1725         (getaddrinfo): RES must always be non-NULL.
1726
1727 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1728
1729         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1730         cr[34] registers.
1731         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1732         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1733         Likewise.
1734         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1735         register.
1736
1737 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1738
1739         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1740         fields.
1741         * nscd/connections.c (inotify_fd): New variable.
1742         (nscd_init): Try to open an inotify descriptor.
1743         If successful, watch files for databases using inotify instead of
1744         having prune threads stat the files.
1745         (nscd_run_prune): Recognize clear_cache flag being set and call
1746         prune_cache appropriately.
1747         (main_loop_poll): Add inotify descriptor to wait set and handle the
1748         reported changes.
1749         (main_loop_epoll): Likewise.
1750         * nscd/cache.c (prune_cache): Don't stat files for databases if
1751         inotify is used.
1752         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1753         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1754
1755         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1756         fixed-size portion of the record.
1757         * nscd/servicescache.c (cache_addserv): Likewise.
1758         * nscd/pwdcache.c (cache_addpw): Likewise.
1759         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1760
1761 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1762
1763         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1764         out we don't use uninitialized memory.
1765
1766         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1767         the client.
1768
1769 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1770
1771         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1772         ignore T_DNAME messages.
1773         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1774
1775 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1776
1777         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1778         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1779
1780 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1781
1782         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1783         instead of portstr to nscd_getserv_r.  Patch by
1784         Roman Kagan <rkagan@mail.ru>.
1785
1786 2008-05-26  Jim Meyering  <meyering@redhat.com>
1787
1788         Remove more useless "if" tests before "free".
1789         * include/inline-hashtab.h (htab_delete): Likewise.
1790         * libio/freopen.c (freopen): Likewise.
1791         * libio/freopen64.c (freopen64): Likewise.
1792         * locale/programs/ld-collate.c (collate_read): Likewise.
1793         * misc/fstab.c (libc_freeres_fn): Likewise.
1794         * posix/glob.c (globfree): Likewise.
1795
1796 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1797
1798         * string/Makefile (strop-tests): Add memmem.
1799         * string/test-memmem.c: New file.
1800         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1801         (test_init): Size buf1 according to BUF1PAGES.
1802
1803 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1804
1805         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1806         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1807         (CFLAGS-scanf17.c): New.
1808         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1809         * stdio-common/scanf15.c (main): Likewise.
1810         * stdio-common/scanf16.c: New file.
1811         * stdio-common/scanf17.c: New file.
1812
1813 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1814
1815         * resolv/res_send.c (send_dg): If we already have one of two
1816         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1817         use the one answer insted of failing.
1818
1819 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1820
1821         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1822         being executed on PowerPC as the expected result exceeds IBM
1823         long double 128 __LDBL_MAX__.
1824
1825 2008-05-21  Roland McGrath  <roland@redhat.com>
1826
1827         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1828
1829         * Makefile (check-data): Use $(abi-name) before other guesses.
1830         Look in $(add-ons) dirs before scripts/data/.
1831         * elf/Makefile (check-data): Likewise.
1832
1833         * scripts/soversions.awk: Grok ABI line.
1834         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1835         Emit definition for abi-name variable.
1836
1837 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1838
1839         * string/endian.h: Define new fixed-size hto* and *toh macros only
1840         if [__USE_BSD].
1841
1842         * iconvdata/Depend: Add localedata.
1843
1844 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1845
1846         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1847
1848 2008-05-08  David S. Miller  <davem@davemloft.net>
1849
1850         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1851         HIDDEN_JUMPTARGET.
1852         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1853         (__SYSCALL_CLOBBERS): Remove %g* registers.
1854         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1855         (__SYSCALL_CLOBBERS): Likewise.
1856         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1857         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1858
1859 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1860
1861         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1862         (CALL_ERRNO_LOCATION): Define.
1863         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1864         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1865         (CALL_ERRNO_LOCATION): Define.
1866         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1867         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1868         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1869
1870 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1871
1872         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1873         variable.
1874
1875 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1876
1877         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1878         (FIRST_FRAME_POINTER): Define.
1879
1880 2008-05-09  David S. Miller  <davem@davemloft.net>
1881
1882         * sysdeps/sparc/sparc64/backtrace.c: New file.
1883
1884 2008-05-14  David S. Miller  <davem@davemloft.net>
1885
1886         * sysdeps/sparc/machine-gmon.h: New file.
1887         * sysdeps/sparc/sparc-mcount.S: Likewise.
1888         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1889         sysdep_routines in gmon directory.
1890
1891 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1892
1893         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1894
1895 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1896
1897         * resolv/res_query.c (__libc_res_nquery): In case one of two
1898         answer was too short don't try to read that answer's header.
1899
1900         * resolv/res_send.c (send_dg): In case of timeout and there are
1901         two queries and one has been answered, return value indicating
1902         success.
1903
1904 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1905
1906         * nscd/cache.c (cache_add): Take additional parameter specifying
1907         whether this is in response of a cache refill.  Check alignment
1908         of package data.  Revamp waking of pruning thread.
1909         (prune_cache): Small optimization.
1910         * nscd/nscd.h: Adjust cache_add prototypes.
1911         * nscd/aicache.c: Adjust cache_add calls.
1912         * nscd/grpcache.c: Likewise.
1913         * nscd/hstcache.c: Likewise.
1914         * nscd/initgrcache.c: Likewise.
1915         * nscd/pwdcache.c: Likewise.
1916         * nscd/servicescache.c: Likewise.
1917         * nscd/connections.c (restart): Really disable cache use before
1918         exec attempt.  If it fails, reenable cache.
1919         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1920         time to max to be able to notice concurrent cache additions.  Unlock
1921         prune_lock while performing gc.  Afterwards compute wakeup time with
1922         current wakeup_time value in mind.
1923
1924 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1925
1926         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1927
1928         * nscd/mem.c (gc): Correctly determine highest used array element
1929         in mark.
1930
1931         * nscd/mem.c (markrange): Add assert to check entries are all
1932         aligned.  Small cleanup in bitmap use.
1933
1934         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1935         blockoff of type nscd_ssize_t.
1936         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1937         (mempoll_alloc): Record block offset and not address.
1938
1939         * nscd/mem.c (gc): Fix test for stack overuse.
1940
1941         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1942         more asserts.
1943
1944         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1945         entry is available, believe it.
1946
1947         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1948         no answers return NSS_STATUS_NOTFOUND.
1949         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1950         buffer does not have any content.
1951
1952 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1953
1954         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1955
1956         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1957         lookup, don't assign canon unconditionally.
1958
1959 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1960
1961         * string/Makefile (distribute): Add str-two-way.h.
1962
1963 2008-03-29  Eric Blake  <ebb9@byu.net>
1964
1965         Rewrite string searches to O(n) rather than O(n^2).
1966         * string/str-two-way.h: New file.  For linear fixed-allocation
1967         string searching.
1968         * string/memmem.c: New implementation.
1969         * string/strstr.c: New implementation.
1970         * string/strcasestr.c: New implementation.
1971
1972 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1973
1974         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1975         opr.ctx_type.
1976         (calc_first): Initialize constraint field.
1977         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1978         Use search_duplicated_node to avoid loops.  Fix grammar.
1979         (duplicate_node): Merge constraint field for all node types.
1980         (calc_eclosure_iter): Look at constraint field for all node types.
1981         * posix/regex_internal.c (create_cd_newstate): Don't look at
1982         create_cd_newstate.
1983
1984 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1985
1986         [BZ #6428]
1987         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1988
1989         [BZ #6442]
1990         * string/endian.h: Add macros for fixed-size endian conversion.
1991         * bits/byteswap.h: Allow inclusion from <endian.h>.
1992         * sysdeps/i386/bits/byteswap.h: Likewise.
1993         * sysdeps/ia64/bits/byteswap.h: Likewise.
1994         * sysdeps/s390/bits/byteswap.h: Likewise.
1995         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1996         * string/Makefile (tests): Add tst-endian.
1997         * string/tst-endian.c: New file.
1998
1999         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2000         Patch by Reuben Thomas.
2001
2002 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2003
2004         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2005
2006 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2007
2008         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2009
2010         [BZ #6461]
2011         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2012         Add missing braces.
2013         (BODY for __gconv_transform_internal_ascii): Likewise.
2014
2015         [BZ #6472]
2016         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2017         to be treated like link-local addresses.
2018         (match_prefix): Don't treat IPv4 loopback address special when
2019         converting to v4 mapped addressed.
2020
2021         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2022         if necessary.
2023         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2024         * posix/tst-rfc3484-2.c: Likewise.
2025         * posix/tst-rfc3484-3.c: Likewise.
2026
2027         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2028         and SCTP.
2029
2030         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2031
2032         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2033
2034         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2035
2036 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2037
2038         * po/lt.po: New file.  From Lituanian translation team.
2039
2040 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2041
2042         Introduce TLS descriptors for i386 and x86_64.
2043         * include/inline-hashtab.h: New file, copied from 2005's
2044         libiberty, with fix for memory leak imported afterwards by
2045         Glauber de Oliveira Costa.
2046         * elf/tlsdeschtab.h: New file.
2047         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2048         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2049         (CHECK_STATIC_TLS): Move to...
2050         * elf/dynamic-link.h: ... this file.
2051         (TRY_STATIC_TLS): New macro.
2052         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2053         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2054         R_386_TLS_DESC): Define.
2055         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2056         binutils.
2057         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2058         R_X86_64_TLSDESC): Define.
2059         (R_386_NUM, R_X86_64_NUM): Adjust.
2060         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2061         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2062         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2063         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2064         release tlsdesc_table.
2065         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2066         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2067         (elf_machine_rel): Handle R_386_TLS_DESC.
2068         (elf_machine_rela): Likewise.
2069         (elf_machine_lazy_rel): Likewise.
2070         (elf_machine_lazy_rela): Likewise.
2071         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2072         * sysdeps/i386/dl-tlsdesc.S: New file.
2073         * sysdeps/i386/dl-tlsdesc.h: New file.
2074         * sysdeps/i386/tlsdesc.c: New file.
2075         * sysdeps/i386/tlsdesc.sym: New file.
2076         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2077         tlsdesc_table.
2078         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2079         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2080         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2081         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2082         release tlsdesc_table.
2083         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2084         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2085         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2086         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2087         (elf_machine_rela): Likewise.
2088         (elf_machine_lazy_rel): Likewise.
2089         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2090         (__tls_get_addr): Do not declare for non-shared compiles.
2091         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2092         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2093         * sysdeps/x86_64/tlsdesc.c: New file.
2094         * sysdeps/x86_64/tlsdesc.sym: New file.
2095         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2096         tlsdesc_table for both 32- and 64-bit structs.
2097
2098 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2099
2100         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2101         its own function.  This reduces the frame setup costs and more.
2102
2103 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2104
2105         [BZ #3406]
2106         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2107         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2108
2109 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2110
2111         * io/openat.c (__openat_2): Also pass fd to __openat.
2112         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2113         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2114
2115         * string/tester.c (test_memcmp): Add a few more tests.
2116         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2117
2118 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2119
2120         * nscd/cache.c (cache_add): Before returning with failure and this
2121         is the first use of the record, mark it as unusable.
2122         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2123         reporting a failure.
2124         * nscd/grpcache.c: Likewise
2125         * nscd/hstcache.c: Likewise.
2126         * nscd/initgrcache.c: Likewise.
2127         * nscd/pwdcache.c: Likewise.
2128         * nscd/servicescache.c: Likewise.
2129
2130 2008-05-10  Roland McGrath  <roland@redhat.com>
2131
2132         [BZ #6505]
2133         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2134
2135 2008-05-08  David S. Miller  <davem@davemloft.net>
2136
2137         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2138
2139         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2140         (__ieee754_y0l): Likewise.
2141         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2142         (__ieee754_y1l): Likewise.
2143         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2144         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2145         frexpl and ldexpl.  math_private.h provides them and the latter
2146         is not even used.
2147         (__log1pl): Use __frexpl.
2148
2149 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2150
2151         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2152         prototypes.
2153         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2154         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2155         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2156         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2157         af==AF_UNSPEC.
2158         (_nss_nis_gethostbyname4_r): New function.
2159         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2160         Change to also handle af==AF_UNSPEC.
2161         (get_tablename): New function.  Use it to avoid duplication.
2162         (_nss_nisplus_gethostbyname4_r): New function.
2163         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2164         available.
2165         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2166         * nss/nss.h: Define struct gaih_addrtuple.
2167         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2168         af==AF_UNSPEC.
2169         (_nss_files_gethostbyname4_r): New function.
2170         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2171         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2172         calls.
2173         * resolv/res_query.c (__libc_res_nquery): Take two additional
2174         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2175         look up IPv4 and IPv6.
2176         Change all callers.
2177         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2178         for an additional query and answer buffer.  Pass to send_vc and
2179         send_dg.
2180         (send_vc): Send possibly two requests and receive two answers.
2181         (send_dg): Likewise.
2182         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2183         __libc_res_nquery.
2184         (_nss_dns_gethostbyname4_r): New function.
2185         (gaih_getanswer_slice): Likewise.
2186         (gaih_getanswer): Likewise.
2187         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2188         __libc_res_nquery call.
2189         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2190         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2191         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2192         available.
2193
2194 2008-05-05  David S. Miller  <davem@davemloft.net>
2195
2196         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2197         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2198
2199 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2200
2201         Fix termios bit macros.
2202         Move *DLY definitions where they belong, in termios.h.
2203         Add *[0-3] definitions.
2204         Fixes confusion between VT and FF.
2205         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2206         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2207         are already defined to avoid collision with termios.h.
2208         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2209         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2210         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2211         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2212         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2213         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2214         VTDLY, VT0, VT1): New macros.
2215         [__USE_GNU] (OLCUC): Change value of macro.
2216         [__USE_XOPEN] (OFILL): New macro.
2217         [__USE_BSD] (CRTSCTS): Change value.
2218         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2219         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2220         (B7200, B14400, B28800, B76800): New macros.
2221
2222 2008-05-01  David S. Miller  <davem@davemloft.net>
2223
2224         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2225         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2226         (gen-as-const-headers): Add it.
2227         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2228         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2229         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2230         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2231
2232         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2233         six system call parameters.
2234         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2235
2236 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2237
2238         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2239         RUSAGE_LWP.
2240         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2241         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2242
2243 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2244
2245         * stdlib/tst-setcontext.c: Include unistd.h.
2246
2247 2008-04-25  David S. Miller  <davem@davemloft.net>
2248
2249         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2250         Pass "union semun" properly in to sys_ipc, it must be passed
2251         by value, not by reference.
2252
2253 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2254
2255         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2256         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2257         * nscd/connections.c (mem_in_flight): Likewise.
2258
2259         * nscd/nscd.h (dbs): Make hidden.
2260
2261         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2262         Avoid returning -1, return 0 instead.
2263
2264 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2265
2266         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2267
2268 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2269
2270         [BZ #5209]
2271         * sysdeps/unix/sysv/linux/times.c: New file.
2272
2273         [BZ #5381]
2274         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2275         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2276         prototype.
2277         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2278         appropriate mem_in_flight element.
2279         (gc): Take allocations which have not yet been committed to the
2280         database into account.
2281         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2282         Reset mem_in_flight before returning.
2283         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2284         cue it up in mem_in_flight_list.
2285         * nscd/aicache.c: Adjust mempool_alloc call.
2286         * nscd/grpcache.c: Likewise.
2287         * nscd/hstcache.c: Likewise.
2288         * nscd/initgrcache.c: Likewise.
2289         * nscd/pwdcache.c: Likewise.
2290         * nscd/servicescache.c: Likewise.
2291         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2292         of -fpie.
2293
2294         * nscd/connections.c (handle_request): Provide better error message
2295         in case SELinux forbids the service.
2296
2297         * version.h (VERSION): Bump to 2.8.90.
2298
2299 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2300
2301         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2302
2303 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2304
2305         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2306         Also use for 32-bit.
2307         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2308         __nextafter instead of nextafter to avoid local PLT.
2309         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2310         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2311
2312         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2313
2314         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2315         __fe_nomask_env.
2316         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2317         <fenv_libc.h> instead of <fenv.h>.
2318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2320
2321         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2322
2323         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2324         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2325         function from fegetexcept and make old name weak alias.
2326         * include/fenv.h: Declare __fegetexcept.
2327         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2328         fegetexcept.
2329         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2330         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2331         to fetestexcept.
2332         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2333         instead of frexpl to avoid local PLT.
2334         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2335         ilogbl to avoid local PLT.
2336         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2337         instead of ldexpl to avoid local PLT.
2338         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2339         __roundl not roundl to avoid local PLT.
2340         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2341         local PLTs.  Use __sincosl instead of separate sinl and cosl
2342         calls.
2343         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2344
2345         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2346         version for ppc64 to 2.4.21 since without it makecontext will fail.
2347
2348         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2349         to the ABI in use.
2350         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2351         .__tls_get_addr.
2352         [__powerpc64__] (TLS_GD): Likewise.
2353
2354 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2355
2356         [BZ #4997]
2357         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2358         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2359         mantissa.
2360         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2361         Likewise.  Also account for when x is an odd number between 2^52
2362         and 2^53-1.
2363         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2364         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2365         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2366         detect aforementioned erroneous conditions.
2367
2368 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2369
2370         * configure.in: Check for -fno-section-anchors in addition to
2371         -fno-toplevel-reorder.
2372
2373 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2374
2375         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2376
2377         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2378         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2379         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2380         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2381         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2382         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2383
2384 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2385
2386         [BZ #5443]
2387         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2388         * time/alt_digit.c: Likewise.
2389         * wcsmbs/wcsmbsload.c: Likewise.
2390
2391 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2392
2393         * version.h (VERSION): Bump to 2.8.
2394
2395         * timzeone/asia: Update from tzdata2008b.
2396         * timezone/backward: Likewise.
2397         * timezone/europe: Likewise.
2398         * timezone/northamerica: Likewise.
2399         * timezone/southamerica: Likewise.
2400         * timezone/iso3166.tab: Likewise.
2401         * timezone/leapseconds: Likewise.
2402         * timezone/zone.tab: Likewise.
2403         * timezone/private.h: Update from tzcode2008a.
2404         * timezone/zdump.c: Likewise.
2405         * timezone/zic.c: Likewise.
2406
2407 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2408
2409         [BZ #5741]
2410         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2411         Define additonal Data Cache Block instruction macros.
2412         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2413         Replace dcbst with dcbf and sync with sync/isync.
2414
2415 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2416
2417         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2418         Always set ELF_RTYPE_CLASS_PLT.
2419         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2420
2421 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2422
2423         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2424         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2425         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2426         For ISA 2.01 and later replace mftb with mfspr 268.
2427
2428 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2429
2430         [BZ #5768]
2431         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2432         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2433
2434 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2435
2436         [BZ #5768]
2437         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2438         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2439         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2440         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2441
2442 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2443
2444         * stdlib/tst-makecontext.c (othervar): New variable.
2445         (cf): Test sign extending the argument to long.
2446
2447 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2448
2449         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2450         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2451         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2452         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2453         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2454         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2455         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2456
2457 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2458
2459         * elf/Makefile (tests): Substitute tests-vis-yes here.
2460         (tests-vis-yes): Delete.
2461         (modules-name, modules-vis-yes): Similarly.
2462
2463 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2464
2465         [BZ #4407]
2466         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2467         Preserve sign in signgamp when x is zero.
2468
2469 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2470
2471         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2472         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2473         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2474         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2475         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2476         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2477
2478 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2479
2480         [BZ #4314]
2481         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2482         buffers.
2483
2484         [BZ #5209]
2485         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2486         a reserved error value.
2487
2488         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2489         value to check for correct sign extension.
2490
2491         [BZ #5436]
2492         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2493         Copy 64-bit parameter values even though this is not required in
2494         the standard.
2495
2496         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2497         PC save.
2498
2499 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2500
2501         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2502         PC save.
2503
2504 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2505
2506         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2507
2508 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2509
2510         [BZ #5998]
2511         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2512         in line-buffered stream failed.
2513         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2514
2515 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2516
2517         [BZ #6024]
2518         * scripts/abi-versions.awk: If the version specified by
2519         --enable-oldest-abi is older than the first version for this
2520         architecture, use the default version.
2521
2522         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2523         as well when ignoring the whole category.
2524
2525 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2526
2527         [BZ #6042]
2528         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2529         ETHERTYPE_* definitions.
2530         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2531
2532 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2533
2534         * stdlib/mbtowc.c (__no_r_state): Remove.
2535         (mbtowc): New static state variable.  Use it instead of
2536         __no_r_state.
2537         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2538         (__wctomb_state): New hidden variable.
2539         (wctomb): Use __wctomb_state instead of __no_r_state.
2540         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2541         (__wctomb_state): New extern decl.
2542         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2543
2544 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2545
2546         [BZ #5475]
2547         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2548
2549 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2550
2551         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2552
2553 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2554
2555         * po/nl.po: Update from translation team.
2556
2557 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2558
2559         [BZ #6007]
2560         * string/strfry.c: Handle empty strings again.
2561
2562 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2563
2564         [BZ #5443]
2565         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2566         before looking for translation.
2567         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2568         * locale/freelocale.c: Likewise.
2569         * locale/newlocale.c: Likewise.
2570         * locale/setlocale.c: Likewise.
2571         Based partially on a patch by ryo@np.css.fujitsu.com.
2572
2573 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2574
2575         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2576         acquiring wrlock.  Do conv_tab allocation while holding lock.
2577         * intl/Makefile: Add rules to build and run tst-gettext6.
2578         * intl/tst-gettext6.c: New test.
2579         * intl/tst-gettext6.sh: New file.
2580
2581 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2582
2583         * po/nl.po: Update from translation team.
2584
2585         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2586         provided through st_blksize, try the default size before giving up.
2587
2588 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2589
2590         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2591
2592         [BZ #5939]
2593         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2594
2595         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2596         error message.  POSIX today does not require the messages to be in
2597         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2598
2599         [BZ #5979]
2600         * sunrpc/auth_unix.c: Unify printed strings.
2601         * sunrpc/clnt_tcp.c: Likewise.
2602         * sunrpc/clnt_udp.c: Likewise.
2603         * sunrpc/clnt_unix.c: Likewise.
2604         * sunrpc/svc_tcp.c: Likewise.
2605         * sunrpc/svc_udp.c: Likewise.
2606         * sunrpc/svc_unix.c: Likewise.
2607         * sunrpc/xdr.c: Likewise.
2608         * sunrpc/xdr_array.c: Likewise.
2609         * sunrpc/xdr_rec.c: Likewise.
2610         * sunrpc/xdr_ref.c: Likewise.
2611         * locale/programs/ld-time.c (time_finish): Unify messages.
2612         * locale/programs/locfile.c (handle_copy): Fix typo.
2613         * nscd/nscd.c (options): Fix typo.
2614
2615         [BZ #5995]
2616         * stdlib/strtod_l.c: Use correct sign for result in one more
2617         underflow case.
2618         Patch by Eric Blake <ebb9@byu.net>.
2619
2620 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2621
2622         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2623         and creat system calls.
2624         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2625         call.
2626         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2627         system calls.
2628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2629         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2630         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2631
2632 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2633
2634         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2635         <linux/limits.h> has defined it.
2636         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2637         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2638         headers.
2639         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2640         it instead of ARG_MAX.
2641
2642 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2643
2644         * posix/gai.conf: Fix comment for scope nullbits.
2645         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2646         default to 128 bits for v4 mapped addresses.
2647
2648 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2649
2650         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2651         ptrace call to get the ieee_instruction_pointer from the kernel.
2652         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2653         ptrace call to set the ieee_instructtion_pointer.
2654         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2655         Add comment that ieee_instruction_pointer is always 0.
2656
2657 2008-03-09  Andreas Jaeger  <aj@suse.de>
2658
2659         [BZ #5857]
2660         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2661         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2662         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2663
2664         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2665         (rint_test): Likewise.
2666
2667 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2668
2669         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2670         call.
2671         (__nisfind_server): Similar for open readColdStartFile call.
2672         Patch partially by Jim Meyering.
2673         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2674         around internal_setent call.
2675
2676         * po/vi.po: New Vietnamese translation.
2677
2678         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2679         ADJ_OFFSET_SS_READ.
2680
2681         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2682         remove CLONE_STOPPED.
2683
2684 2008-02-10  Jim Meyering  <meyering@redhat.com>
2685
2686         Remove useless "if" before "free":
2687         * elf/ldconfig.c (parse_conf_include): Likewise.
2688         * gmon/gmon.c (weak_alias): Likewise.
2689         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2690         * inet/rcmd.c (__validuser2_sa): Likewise.
2691         * intl/bindtextdom.c (set_binding_values): Likewise.
2692         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2693         * libio/genops.c (save_for_backup): Likewise.
2694         * libio/wgenops.c (save_for_wbackup): Likewise.
2695         * locale/programs/ld-collate.c (collate_read): Likewise.
2696         * locale/programs/linereader.c (get_string): Likewise.
2697         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2698         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2699         * resolv/res_debug.c (do_section): Likewise.
2700         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2701         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2702         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2703         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2704         * time/tzset.c (tzset_internal): Likewise.
2705
2706 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2707
2708         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2709         of ASSEMBLER.
2710
2711 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2712
2713         [BZ #5903]
2714         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2715         not stream for output file.  Open output file here.
2716         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2717         and output file name.
2718         (process_fd): Likewise.
2719         (process_file): Likewise.
2720         (main): Adjust callers of changed functions.
2721         * iconv/iconv_prog.h: Adjust prototype.
2722
2723 2008-03-09  Andreas Jaeger  <aj@suse.de>
2724
2725         [BZ #5753]
2726         * sysdeps/ia64/ieee754.h: Use protected namespace
2727         __BIG_ENDIAN/__LITTLE_ENDIAN.
2728         * sysdeps/ieee754/ieee754.h: Likewise.
2729         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2730
2731 2008-03-08  Roland McGrath  <roland@frob.com>
2732
2733         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2734         ignore a signal that came from a machine exception, treat it as a
2735         fatal core-dump signal instead.
2736         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2737
2738         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2739         Clear DF bit in thread state's eflags.
2740         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2741
2742 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2743
2744         [BZ #5774]
2745         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2746         of NAN(...) sequence.
2747         * stdlib/Makefile (tests): Add tst-strtod6.
2748         * stdlib/tst-strtod6.c: New file.
2749
2750         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2751
2752         [BZ #5762]
2753         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2754         putting offending option character in quotes.  Clean up error
2755         messages.
2756         * po/be.po: Adjust msgstr in translation file.
2757         * po/bg.po: Likewise.
2758         * po/ca.po: Likewise.
2759         * po/cs.po: Likewise.
2760         * po/da.po: Likewise.
2761         * po/de.po: Likewise.
2762         * po/es.po: Likewise.
2763         * po/fr.po: Likewise.
2764         * po/hr.po: Likewise.
2765         * po/ko.po: Likewise.
2766         * po/nl.po: Likewise.
2767         * po/rw.po: Likewise.
2768         * po/sk.po: Likewise.
2769         * po/sv.po: Likewise.
2770         * po/tr.po: Likewise.
2771         * po/zh_CN.po: Likewise.
2772         * po/zh_TW.po: Likewise.
2773
2774         [BZ #5760]
2775         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2776         Patch by Roland Bless <roland@bless.de>.
2777
2778         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2779         .o file.
2780         * elf/Makefile (routines): Add dl-sysdep.
2781         (elide-routines.os): Likewise.
2782
2783 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2784
2785         [BZ #5786]
2786         * elf/dl-sysdep.c: Undefine ROUND after use.
2787         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2788         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2789         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2790         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2791         to ...
2792         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2793         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2794         if necessary.
2795         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2796
2797         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2798         _dl_tls_get_addr_soft element.
2799         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2800         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2801         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2802         GLRO.
2803         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2804         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2805         of internal_function.
2806
2807         * stdlib/Makefile (aux): Add tens_in_limb.
2808         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2809         * stdlib/tens_in_limb.c: ...here.  New file.
2810
2811         [BZ #5778]
2812         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2813         __statfs_chown_restricted.
2814         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2815         for _PC_CHOWN_RESTRICTED.
2816         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2817         Implement __statfs_chown_restricted.
2818         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2819         _POSIX_CHOWN_RESTRICTED value to zero.
2820         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2821         defined to zero.
2822
2823         * sysdeps/x86_64/rtld-memset.c: New file.
2824
2825 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2826
2827         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2828
2829         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2830         Barcelona machine.  Make default fall through branch of
2831         __x86_64_preferred_memory_instruction check as the integer code path.
2832
2833 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2834
2835         * sysdeps/x86_64/cacheinfo.c
2836         (__x86_64_preferred_memory_instruction): New variable.
2837         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2838
2839         * sysdeps/x86_64/memset.S: Rewrite.
2840
2841 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2842
2843         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2844         __obstack_printf_chk): New prototypes.
2845         (__vasprintf_chk, __vdprintf_chk,
2846         __obstack_vprintf_chk): Likewise.
2847         Add libc_hidden_proto.
2848         * libio/obprintf.c
2849         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2850         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2851         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2852         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2853         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2854         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2855         __obstack_vprintf_chk): New prototypes.
2856         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2857         obstack_vprintf): New inlines.
2858         * debug/dprintf_chk.c: New file.
2859         * debug/vdprintf_chk.c: New file.
2860         * debug/asprintf_chk.c: New file.
2861         * debug/vasprintf_chk.c: New file.
2862         * debug/obprintf_chk.c: New file.
2863         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2864         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2865         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2866         @@GLIBC_2.8.
2867         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2868         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2869         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2870         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2871         libc_hidden_proto.
2872         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2873         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2874         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2875         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2876         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2877         @@GLIBC_2.8.
2878         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2879         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2880         obstack_vprintf_chk.
2881         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2882         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2883         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2884         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2885         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2886         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2887
2888 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2889
2890         [BZ #5779]
2891         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2892         Patch by Roy Marples <roy@marples.name>.
2893
2894         [BZ #5736]
2895         * malloc/malloc.c: Fix typo in comment.
2896
2897         [BZ #5627]
2898         * locale/iso-639.def: Add Shuswap.
2899
2900 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2901
2902         [BZ #5790]
2903         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2904         overwrite *h_errnop/*errnop values from getanswer_r in case of
2905         failure.
2906
2907 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2908
2909         [BZ #5818]
2910         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2911         (verify_persistent_db): Remove one unnecessary test and add a new one
2912         for bad configuration.
2913         (nscd_init): Improve error reported when persistent database cannot
2914         be reused.
2915         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2916         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2917         .suggested_module and .max_db_size and case config file says the
2918         values are zero.
2919         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2920
2921         [BZ #5854]
2922         * nis/ypclnt.c (yp_order): Fix handling of return value of
2923         do_ypcall_tr call.
2924         Patch by Jeff Moyer <jmoyer@redhat.com>.
2925
2926         * po/fr.po: Update from translation team.
2927
2928 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2929             Carlos O'Donell <carlos@systemhalted.org>
2930
2931         [BZ #5012]
2932         * FAQ.in: Describe why glibc needs to be compiled with
2933         optimization.
2934
2935 2008-02-19  Roland McGrath  <roland@redhat.com>
2936
2937         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2938
2939 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2940
2941         [BZ #5737]
2942         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2943         __USE_MISC is defined.
2944
2945 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2946
2947         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2948         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2949         sys/timerfd.h.
2950         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2951         timerfd_gettime, timerfd_settime.
2952         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2953         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2954
2955 2008-02-08  Roland McGrath  <roland@redhat.com>
2956
2957         * elf/elf.h (NT_PPC_SPE): New macro.
2958
2959 2008-02-06  Roland McGrath  <roland@redhat.com>
2960
2961         * Makerules ($(common-objpfx)sysd-rules):
2962         Depend on $(sysdep-makeconfigs).
2963
2964 2008-01-31  Roland McGrath  <roland@redhat.com>
2965
2966         [BZ #5442]
2967         * configure.in: Use -print-file-name if it yields a directory,
2968         for each of include and include-fixed.
2969         * configure: Regenerated.
2970
2971         * Makeconfig (sysd-rules-targets): New variable.
2972         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2973         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2974
2975 2008-01-30  Roland McGrath  <roland@redhat.com>
2976
2977         * manual/libc.texinfo: Update back-cover text.
2978
2979         * elf/elf.h (NT_386_TLS): New macro.
2980
2981 2008-01-29  Roland McGrath  <roland@redhat.com>
2982
2983         * Makeconfig (sysd-rules-patterns): New variable.
2984         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2985         (check-inhibit-asm): New canned sequence, replaces ...
2986         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2987         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2988         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2989         (CFLAGS-rtld): Variable removed.
2990
2991 2008-01-24  Roland McGrath  <roland@redhat.com>
2992
2993         * configure.in: Let configure fragments set base_os.
2994         * configure: Regenerated.
2995
2996 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2997
2998         * po/ko.po: Update from translation team.
2999
3000 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3001
3002         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3003
3004 2008-01-12  Andreas Jaeger  <aj@suse.de>
3005
3006         [BZ #5040]
3007         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3008         Add EPOLLRDHUP.
3009
3010 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3011
3012         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3013         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3014         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3015
3016 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3017
3018         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3019         * elf/dl-close.c (_dl_close): Check for it.
3020         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3021         (_dl_allocate_static_tls): Likewise.
3022         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3023         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3024         to it.
3025         * elf/tst-tls16.c: New file.
3026         * elf/tst-tlsmod16a.c: New file.
3027         * elf/tst-tlsmod16b.c: New file.
3028         * elf/Makefile: Add rules to build and run tst-tls16.
3029
3030 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3031
3032         [BZ #5628]
3033         * bits/shm.h: Fix comment describing shmid_ds.
3034         * sysdeps/gnu/bits/shm.h: Likewise.
3035         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3036         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3037         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3038         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3039         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3040         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3041         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3042         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3043         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3044
3045         [BZ #5607]
3046         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3047         prototypes.
3048         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3049         additional suffixes.
3050         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3051         Add optional functions mq_timedreceive and mq_timedsend.
3052         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3053         * conform/data/pthread.h-data: Fix prototype of
3054         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3055         * conform/data/semaphore.h-data: Allow time.h definitions.
3056         * conform/data/signal.h-data: Likewise.
3057         * conform/data/stdio.h-data: getw and putw are not required in v6.
3058         * conform/data/stdlib.h-data: Change setstate prototype.
3059         * conform/data/string.h-data: Fix strerror_r prototype.
3060         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3061         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3062         Fix readlink prototype.
3063         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3064         in6addr_loopback.
3065         * inet/netinet/in.h: Cleanup namespace.
3066         * posix/regex.h: Likewise.
3067         * resolv/netdb.h: Likewise.
3068         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3069         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3070         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3071         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3072         of names of in in6_addr.
3073         (default_precedence): Likewise.
3074         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3075         NULL definition.
3076
3077 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3078
3079         * conform/data/fmtmsg.h-data: Add missing allows.
3080         * conform/data/ftw.h-data: Likewise.
3081         * conform/data/inttypes.h-data: Likewise.
3082         * conform/data/math.h-data: Likewise.
3083         * conform/data/signal.h-data: Likewise.
3084         * conform/data/net/if.h-data: Likewise.
3085         * conform/data/netinet/in.h-data: Likewise.
3086         * conform/data/sys/socket.h-data: Likewise.
3087
3088         [BZ #5614]
3089         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3090         (__strtok_r): Simplify.
3091         * string/tester.c (test_strtok_r): Add test case for futile search
3092         with single-character seach string.
3093
3094 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3095
3096         * po/ko.po: Update from translation team.
3097
3098 2008-01-11  Andreas Jaeger  <aj@suse.de>
3099
3100         [BZ #5600]
3101         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3102         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3103         kernel header.
3104
3105 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3106
3107         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3108         native interface lookup in all the relevant places.
3109
3110 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3111             Ulrich Drepper  <drepper@redhat.com>
3112
3113         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3114         field.  Use sockaddr_in6 for source_addr.
3115         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3116         (match_prefix): Likewise.
3117         (get_label): Likewise.
3118         (get_precedence): Likewise.
3119         (rfc3484_sort): Change to use indirect access to results array.
3120         Adjust to use of sockaddr_in6.  Replace service_order test with
3121         simple index comparison.
3122         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3123         service_order field.  Adjust qsort_t calls.  Access sorted result
3124         array indirectly through order array.
3125         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3126         * posix/tst-rfc3484-2.c: Likewise.
3127         * posix/tst-rfc3484-3.c: Likewise.
3128
3129 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3130
3131         [BZ #5541]
3132         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3133         pollfd structures.
3134         Patch by André Cruz.
3135
3136         [BZ #5545]
3137         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3138         (clnt_spcreateerror): Likewise.
3139
3140         [BZ #5553]
3141         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3142         (public_mEMALIGn): Likewise.
3143         Patch mostly by Daniel Jacobowitz.
3144
3145 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3146
3147         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3148         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3149         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3150         * stdlib/tst-makecontext2.c: New test.
3151
3152 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3153
3154         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3155         defined.
3156         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3157         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3158         transliteration hooks and REINIT_PARAMS afterwards.
3159         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3160         status.
3161         (REINIT_PARAMS): Define.
3162         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3163         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3164         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3165         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3166         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3167         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3168         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3169         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3170         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3171         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3172         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3173         * iconvdata/tst-iconv7.c: New test.
3174
3175 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3176
3177         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3178
3179 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3180
3181         [BZ #5112]
3182         * nscd/connections.c (restart): Fix condition.
3183
3184 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3185
3186         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3187         __ctype_toupper_loc): Add __THROW.
3188
3189 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3190
3191         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3192         recognition of interface family.
3193
3194         * posix/getconf.c: Update copyright year.
3195         * nss/getent.c: Likewise.
3196         * iconv/iconvconfig.c: Likewise.
3197         * iconv/iconv_prog.c: Likewise.
3198         * elf/ldconfig.c: Likewise.
3199         * catgets/gencat.c: Likewise.
3200         * csu/version.c: Likewise.
3201         * elf/ldd.bash.in: Likewise.
3202         * elf/sprof.c (print_version): Likewise.
3203         * locale/programs/locale.c: Likewise.
3204         * locale/programs/localedef.c: Likewise.
3205         * nscd/nscd.c (print_version): Likewise.
3206         * debug/xtrace.sh: Likewise.
3207         * malloc/memusage.sh: Likewise.
3208         * malloc/mtrace.pl: Likewise.
3209         * debug/catchsegv.sh: Likewise.
3210
3211 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3212
3213         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3214         second lookup.
3215
3216 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3217
3218         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3219         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3220
3221 2007-12-17  Roland McGrath  <roland@redhat.com>
3222
3223         * inet/ether_line.c (ether_line): Remove unused variable.
3224
3225 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3226
3227         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3228         and winp.
3229         * login/openpty.c (openpty): Likewise.
3230         * login/pty.h (openpty, forkpty): Likewise.
3231         * manual/terminal.texi (openpty, forkpty): Likewise.
3232
3233 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3234
3235         * malloc/malloc.c (public_cALLOc): For arenas other than
3236         main_arena, count all bytes inside the mprotect_size range of the
3237         heap as uninitialized.
3238
3239 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3240
3241         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3242         executable stacks.
3243
3244         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3245         mTRIm for all of them.
3246         (mTRIm): Additionally iterate over all free blocks and use madvise
3247         to free memory for all those blocks which contain at least one
3248         memory page.
3249         * malloc/tst-trim1.c: New file.
3250         * malloc/Makefile (tests): Add tst-trim1.
3251
3252         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3253
3254 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3255
3256         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3257         First cast argument to long
3258         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3259         Return long.
3260         (__vdso_clock_gettime): Likewise.
3261         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3262         return long.
3263
3264 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3265
3266         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3267         * locale/nl_langinfo_l.c: Real implementation, copied from
3268         nl_langinfo.c.
3269         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3270
3271 2007-12-01  Jim Meyering  <meyering@redhat.com>
3272
3273         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3274         that would inhibit utf8-optimization of a regexp containing line-
3275         or buffer-anchors, e.g., `^', `$'.
3276
3277 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * time/bug-getdate1.c (do_test): Don't use century values which
3280         aren't valid on 32-bit systems.
3281
3282 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3283
3284         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3285         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3286         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3287         __strcat_g, __strncat_g): Add __asm__.
3288
3289 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3290
3291         [BZ #5477]
3292         * io/fchmodat.c: Fix typo in stub_warning use.
3293         Patch by Petr Salinger.
3294
3295 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3296
3297         * iconvdata/hp-thai8.c: New file.
3298         * iconvdata/Makefile: Add rules for hp-thai8.c.
3299         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3300         * iconvdata/gconv-modules: Likewise.
3301
3302         [BZ #5464]
3303         * iconvdata/hp-greek8.c: New file.
3304         * iconvdata/Makefile: Add rules for hp-greek8.c.
3305         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3306         * iconvdata/gconv-modules: Likewise.
3307
3308         [BZ #5463]
3309         * iconvdata/hp-turkish8.c: New file.
3310         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3311         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3312         * iconvdata/gconv-modules: Likewise.
3313
3314         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3315         (shrink_heap): ... this new function.
3316         (heap_trim): Call shrink_heap instead of grow_heap.
3317
3318         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3319         case don't call alloc_perturb.
3320
3321 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3322
3323         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3324         possible.
3325         * sysdeps/unix/sysv/linux/kernel-features.h
3326         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3327         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3328
3329 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3330
3331         [BZ #5424]
3332         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3333         * stdio-common/Makefile (tests): Add bug22.
3334         * stdio-common/bug22.c: New file.
3335
3336         [BZ #5451]
3337         * time/getdate.c: Fix filling in default values.
3338         * time/bug-getdate1.c: New file.
3339         * time/Makefile: Add rules to build and run bug-getdate1.
3340
3341         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3342         * iconvdata/ebcdic-es.c: Likewise.
3343         * iconvdata/ebcdic-es-a.c: Likewise.
3344         * iconvdata/ebcdic-uk.c: Likewise.
3345         * iconvdata/iso8859-16.c: Likewise.
3346         * iconvdata/viscii.c: Likewise.
3347         * iconvdata/iso8859-9e.c: Likewise.
3348         * iconvdata/Makefile: Adjust appropriately.
3349
3350         [BZ #5428]
3351         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3352         __need_wint_t.
3353
3354 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3355
3356         [BZ #5427]
3357         * iconvdata/hp-roman9.c: New file.
3358         * iconvdata/Makefile: Add rules for hp-roman9.c.
3359         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3360         * iconvdata/gconv-modules: Likewise.
3361
3362         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3363         * iconvdata/Makefile: Adjust appropriately.
3364
3365         [BZ #5441]
3366         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3367         structure, it's allocated with alloca.
3368         * stdio-common/Makefile (tests): Add bug21.
3369         * stdio-common/bug21.c: New file.
3370
3371 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3372
3373         [BZ #5452]
3374         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3375         keyword for gcc's braced-groups.
3376
3377 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3378
3379         [BZ #5454]
3380         * inet/ether_line.c: Strip hostname of whitespaces.
3381         * inet/Makefile (tests): Add tst-ether_line.
3382         * inet/tst-ether_line.c: New file.
3383
3384 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3385
3386         [BZ #5439]
3387         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3388
3389         [BZ #5435]
3390         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3391
3392         * stdlib/tst-setcontext.c: Catch the case where the links gets
3393         messed up and we do not reach main again.
3394
3395         * po/ca.po: Update from translation team.
3396
3397 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3398
3399         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3400         * posix/regex.h (REG_ENOSYS): Likewise.
3401         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3402
3403 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3404
3405         * nscd/nscd.h (MAX_STACK_USE): Define.
3406         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3407         (gc): Initialize stack_used based on allocation in prune_cache.
3408         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3409         Clear array before use.
3410
3411         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3412         memory allocation failed.
3413         * nscd/hstcache.c (cache_addhst): Likewise.
3414         * nscd/grpcache.c (cache_addgr): Likewise.
3415         * nscd/servicescache.c (cache_addserv): Likewise.
3416         * nscd/pwdcache.c (cache_addpw): Likewise.
3417         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3418
3419 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3420
3421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3422         and creat system calls.
3423
3424         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3425
3426 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3427
3428         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3429         Add netiucv/iucv.h.
3430         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3431         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3432         protocol.
3433         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3434         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3435         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3436
3437 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3438
3439         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3440         strncat): Define as macros to avoid compile errors.
3441
3442         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3443         creat entries.
3444
3445 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3446
3447         [BZ #5382]
3448         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3449         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3450         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3451         overflow it.
3452         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3453
3454         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3455         Return zero in case the thread library is not NPTL.
3456
3457         [BZ #5375]
3458         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3459         initializing interface list.
3460
3461         [BZ #5378]
3462         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3463         use result of nss_getgrgid_r if nothing was found.  For other
3464         error return with a failure.
3465         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3466
3467         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3468         macro name.
3469
3470 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3471
3472         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3473         (get_scope): For IPv4 scope, use scopes table.
3474         (fini): Free scopes table if necessary.
3475         (free_scopelist): New function.
3476         (scopecmp): New function.
3477         (gaiconf_init): Also handle scopev4 entries.
3478         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3479         * posix/tst-rfc3484-2.c (do_test): Likewise.
3480         * posix/gai.conf: Document scopev4 defaults.
3481         * posix/Makefile (tests): Add tst-rfc3484-3.
3482         * posix/tst-rfc3484-3.c: New file.
3483
3484         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3485         Teredo tunnels.
3486         * posix/gai.conf: Update for current default tables.
3487
3488 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3489
3490         * po/tr.po: Update from translation team.
3491
3492 2007-11-18  Roland McGrath  <roland@frob.com>
3493
3494         * manual/arith.texi (Remainder Functions): Spelling fix.
3495         From Shaun Silk <genix@mysoul.com.au>.
3496
3497         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3498
3499 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3500
3501         * po/zh_CN.po: Update from translation team.
3502
3503         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3504         Add sys/signalfd.h and sys/eventfd.h.
3505
3506 2007-11-15  Bruno Haible  <bruno@clisp.org>
3507
3508         [BZ #5346]
3509         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3510         union.
3511         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3512         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3513         it needs only fixed stack space. Delay the initialization of
3514         msgid_len until it is needed.
3515
3516 2007-11-15  Andreas Jaeger  <aj@suse.de>
3517
3518         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3519         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3520
3521 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3522
3523         * po/ko.po: Update from translation team.
3524
3525 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3526
3527         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3528         significantly.  The device type is also part of the ifinfomsg data.
3529
3530         * po/sv.po: Update from translation team.
3531         * po/nl.po: Likewise.
3532
3533         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3534         to wake up in 24 hours.
3535
3536         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3537
3538 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3539
3540         * po/cs.po: Update from translation team.
3541         * po/pl.po: Likewise.
3542
3543         * include/ifaddrs.h: Remove in6ai_temporary.
3544         (struct in6addrinfo): Add index element.
3545         Declare __check_native.
3546         * inet/Makefile (aux): Add check_native.
3547         * sysdeps/unix/sysv/linux/check_native.c: New file.
3548         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3549         IFA_F_TEMPORARY.  Pass back ifa_index.
3550         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3551         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3552         call __check_native if necessary.
3553         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3554         to sort addresses.  Pass information about the results.
3555         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3556         of rfc3484_sort interface.
3557         * posix/tst-rfc3484-2.c: Likewise.
3558
3559         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3560         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3561         for _quicksort.
3562         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3563         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3564         on as third parameter to compare function and _quicksort.
3565         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3566         to the compare function.
3567         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3568         * Versions.def: Add GLIBC_2.8 for libc.
3569
3570         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3571         * posix/tst-rfc3484-2.c: Likewise.
3572
3573         * include/kernel-features.h: Moved to...
3574         * sysdeps/mach/hurd/kernel-features.h: ...here.
3575
3576 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3577
3578         * sysdeps/i386/i586/memcpy_chk.S: New file.
3579         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3580         * sysdeps/i386/i586/memset_chk.S: Likewise.
3581
3582 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3583
3584         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3585         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3586         list of interfaces.  Also store prefix length.
3587         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3588         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3589         prefix if source and destination address are in the same subnet.
3590         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3591         Always look for matching record in in6ai list.
3592         Correct source_addr_len value for IPv6->IPv4 converted records.
3593
3594 2007-11-11  Roland McGrath  <roland@frob.com>
3595
3596         * include/kernel-features.h: New file.
3597
3598 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3599
3600         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3601         complications for 64-bit platforms.
3602
3603         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3604         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3605         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3606         open64_2.
3607         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3608         entries.
3609         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3610         * sysdeps/wordsize-64/alphasort.c: New file.
3611         * sysdeps/wordsize-64/alphasort64.c: New file.
3612         * sysdeps/wordsize-64/fseeko.c: New file.
3613         * sysdeps/wordsize-64/fseeko64.c: New file.
3614         * sysdeps/wordsize-64/ftello.c: New file.
3615         * sysdeps/wordsize-64/ftello64.c: New file.
3616         * sysdeps/wordsize-64/ftw.c: New file.
3617         * sysdeps/wordsize-64/ftw64.c: New file.
3618         * sysdeps/wordsize-64/iofgetpos.c: New file.
3619         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3620         * sysdeps/wordsize-64/iofopen.c: New file.
3621         * sysdeps/wordsize-64/iofopen64.c: New file.
3622         * sysdeps/wordsize-64/iofsetpos.c: New file.
3623         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3624         * sysdeps/wordsize-64/lockf.c: New file.
3625         * sysdeps/wordsize-64/lockf64.c: New file.
3626         * sysdeps/wordsize-64/mkostemp.c: New file.
3627         * sysdeps/wordsize-64/mkostemp64.c: New file.
3628         * sysdeps/wordsize-64/mkstemp.c: New file.
3629         * sysdeps/wordsize-64/mkstemp64.c: New file.
3630         * sysdeps/wordsize-64/scandir.c: New file.
3631         * sysdeps/wordsize-64/scandir64.c: New file.
3632         * sysdeps/wordsize-64/tmpfile.c: New file.
3633         * sysdeps/wordsize-64/tmpfile64.c: New file.
3634         * sysdeps/wordsize-64/versionsort.c: New file.
3635         * sysdeps/wordsize-64/versionsort64.c: New file.
3636         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3637         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3638         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3639         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3640         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3641         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3642         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3643         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3644         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3645         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3646         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3647         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3648
3649         * crypt/sha256-crypt.c: Fix a comment.
3650         * crypt/sha512-crypt.c: Likewise.
3651
3652 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3653
3654         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3655
3656 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3657
3658         [BZ #5277]
3659         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3660         because output buffer is too small break, don't loop.
3661         * iconvdata/Makefile (tests): Add bug-iconv6.
3662         * iconvdata/bug-iconv6.c: New file.
3663
3664 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3665
3666         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3667         with size_t type.
3668         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3669         size_t.  Add casts where needed.
3670
3671         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3672         old headers, don't call avc_has_perm if we don't have the
3673         permission information.
3674
3675 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3676
3677         * elf/rtld.c (dl_main): Use the page size to find the map start.
3678
3679 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3680
3681         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3682         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3683
3684         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3685         when the lookup call failed.
3686
3687         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3688         Add prune_cond and wakeup_time.
3689         (CACHE_PRUNE_INTERNAL): Define.
3690         Update declarations of prune_cache and setup_thread.
3691         * nscd/connections.c (dbs): Update initializers.
3692         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3693         (nscd_init): Default number of threads is now 4.
3694         (invalidate_cache): Take lock before calling prune_cache.
3695         (handle_request): If SELinux forbids the request, say so.
3696         (readylist_cond): Use static initializer.
3697         (nscd_run_prune): New function.  Used only by pruning threads.
3698         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3699         here.
3700         (fd_ready): Update nscd_run reference.
3701         (start_threads): No need to initialize readylist_cond.
3702         Start pruning threads separately.
3703         * nscd/nscd_setup_thread.c: Change return value type to int and always
3704         return 0.
3705         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3706         to int and return nonzero value if we can use the TID address hack.
3707         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3708         the database is later than the new entry's timeout, update the
3709         wakeup time and wake the cleanup thread.
3710         (prune_cache): Return seconds the next entry in the database is still
3711         valid.  Remove locking for pruning here.
3712         * nscd/nscd.conf: Document default number of threads.
3713
3714 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3715
3716         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3717         stack is properly aligned for the target function.
3718         Correct unwind info.
3719
3720         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3721         when using auditing libraries.
3722
3723 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3724
3725         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3726         _nss_dns_getnetbyaddr2_r.
3727         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3728         extra parameter to getanswer_r.
3729         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3730         _nss_dns_getnetbyaddr2_r.
3731
3732         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3733         gethstbynm3_r.
3734         * nscd/gethstbynm2_r.c: Remove.
3735         * nscd/gethstbynm3_r.c: New file.
3736         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3737         __gethostbyaddr_r.
3738         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3739         __gethostbyaddr_r compatibility wrapper.
3740         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3741         determining timeout of entry.
3742         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3743         __gethostbyaddr2_r.
3744         (addhstbyX): Pass reference to variable for TTL to lookup and
3745         cache_addhst.
3746         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3747         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3748         and __nss_next2.  Remove __nss_services_lookup.
3749         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3750         Add compat wrapper.
3751         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3752         __nss_next2.
3753         * nss/getXXent_r.c: Likewise.
3754         * nss/getnssent_r.c: Likewise.
3755         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3756         does not exist in module, try the optional second name.
3757         (__nss_next2): New function.
3758         (__nss_next): Now wrapper around __nss_next2.
3759         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3760         Declare __nss_next2.
3761         Adjust definition of db_lookup_function type.
3762         * nss/service-lookup.c: Define NO_COMPAT.
3763         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3764         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3765         * inet/ether_ntoh.c: Likewise.
3766         * sunrpc/netname.c: Likewise.
3767         * sunrpc/publickey.c: Likewise.
3768         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3769         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3770         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3771         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3772         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3773
3774         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3775
3776         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3777
3778 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3779
3780         [BZ #5204]
3781         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3782         * crypt/sha512c-test.c: Likewise.
3783
3784         [BZ #5225]
3785         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3786         to keep track of end of %[ format string element.
3787         * stdio-common/Makefile (tests): Add bug20.
3788         * stdio-common/bug20.c: New file.
3789
3790         [BZ #5222]
3791         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3792         path elements in counting mode.
3793
3794 2007-10-27  Andreas Jaeger  <aj@suse.de>
3795
3796         [BZ #5040]
3797         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3798
3799         [BZ #3112]
3800         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3801         (__cleanup): Free shared library when exiting.
3802         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3803         (__cleanup): Free shared library when exiting.
3804
3805 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3806
3807         [BZ #2549]
3808         * math/libm-test.inc (check_float_internal): Support
3809         denormalized return.
3810
3811 2007-10-23  Andreas Jaeger  <aj@suse.de>
3812
3813         [BZ #5208]
3814         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3815         __LONG_LONG_PAIR to handle little endian byte order.
3816         Suggested by abhishekrai@google.com
3817
3818 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3821
3822 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3823
3824         * nscd/cache.c (prune_cache): Move test for modified file outside
3825         of locking.
3826
3827 2007-10-21  Andreas Jaeger  <aj@suse.de>
3828
3829         * manual/texinfo.tex: Update to latest version.
3830
3831         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3832
3833         * manual/arith.texi (Status bit operations): Fix formatting.
3834
3835         * manual/errno.texi (Error Messages): Fix formatting.
3836
3837         * manual/sysinfo.texi (System Parameters): Fix formatting.
3838
3839         * manual/libc.texinfo: Update VERSION and UPDATED.
3840
3841 2007-10-19  Roland McGrath  <roland@redhat.com>
3842
3843         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3844
3845 2007-10-06  David S. Miller  <davem@davemloft.net>
3846
3847         * configure.in: Add sparcv9v2 and sparc64v2.
3848         * scripts/config.sub: Likewise.
3849         * configure: Regenerate.
3850         * elf/elf.h (HWCAP_SPARC_N2): New.
3851         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3852         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3853         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3854         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3855         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3856         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3857         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3858
3859 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3860
3861         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3862         even if the poll result indicates there is data to read.
3863         Patch by Jeff Moyer <jmoyer@redhat.com>.
3864
3865 2007-10-18  Roland McGrath  <roland@redhat.com>
3866
3867         * elf/elf.h (NT_PPC_VMX): New macro.
3868
3869 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3870
3871         * version.h (VERSION): Set to 2.7.90.
3872
3873 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3874
3875         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3876         weak_alias.
3877
3878 2007-10-17  Roland McGrath  <roland@frob.com>
3879
3880         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3881         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3882
3883 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3884
3885         * version.h (VERSION): Bump to 2.7.
3886         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3887
3888         [BZ #5186]
3889         * time/tzset.c (__tz_convert): Don't force testing for a change of
3890         TZ if not called from localtime.  But then also see whether the
3891         file changed, in case __use_tzfile is set.
3892
3893         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3895         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3897         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3899         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3900         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3901
3902 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3903
3904         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3905         and admin selects to be able to replace the gai.conf file, lock
3906         data structures around the qsort call.
3907
3908 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3909
3910         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3911         new memset.
3912         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3913         too high for the improvements.  Implement bzero unconditionally for
3914         use in libc.
3915
3916 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3917             Jakub Jelinek  <jakub@redhat.com>
3918
3919         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3920         even when time_t is 32-bit.
3921         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3922         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3923         always set after the search.
3924
3925 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3926
3927         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3928         unreachable code on 32-bit machines.
3929
3930 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3931
3932         [BZ #5184]
3933         * time/strftime_l.c: Include stdbool.h.
3934         (my_strftime): New wrapper, old function renamed to...
3935         (__strftime_internal): ... new function.  Add tzset_called
3936         argument, pass it down to recursive calls, don't call tzset ()
3937         if already true, set to true after call to tzset ().
3938
3939 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3940
3941         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3942         into account when copying TZ string.
3943
3944 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3945
3946         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3947         num_transition rather than num_transitions - 1.
3948
3949 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3950
3951         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3952         PIC indirect jump.
3953
3954         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3955         a local label rather than HIDDEN_JUMPTARGET.
3956
3957 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3958
3959         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3960         (init_cacheinfo): Initialize it.
3961         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3962         Always define bzero.
3963         Remove non-glibc code.
3964         * sysdeps/x86_64/bzero.S: Make an empty file.
3965
3966 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3967
3968         * sysdeps/x86_64/cacheinfo.c
3969         (__x86_64_preferred_memory_instruction): New.
3970         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3971
3972         * sysdeps/x86_64/memset.S: Rewrite.
3973
3974 2007-10-15  Roland McGrath  <roland@redhat.com>
3975
3976         * po/libc.pot: Regenerated.
3977
3978 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3979
3980         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3981         pointers.
3982
3983         [BZ #3425]
3984         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3985         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3986         address record to T_A/T_AAAA requests.
3987
3988 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3989
3990         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3991
3992         * posix/glob.c: Add some branch prediction throughout.
3993
3994         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3995         read from nscd.
3996
3997         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3998         service_order.
3999         (rfc3484_sort): Make sure that even if qsort doesn't support
4000         stable sorting out sorting here is stable by comparing service_order.
4001         (getaddrinfo): Initialize service_order.
4002         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4003         service_order field to sorting structure.
4004         * posix/tst-rfc3484-2.c (do_test): Likewise.
4005
4006         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4007         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4008         __tzset_parse_tz and updating of daylight, timezone, tzname into
4009         update_vars.
4010         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4011         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4012         happens in __tz_compute.
4013         * time/tzfile.c (__tzfile_read): Also read TZ string.
4014         (find_transition): Fold into __tzfile_compute.
4015         (__tzfile_compute): For times beyond the last transition try to
4016         use the TZ string.
4017         * timezone/tst-timezone.c: Information in daylight and tzname does
4018         change for Asia/Tokyo timezone with more concrete information.
4019         Remove the test.
4020
4021         * include/stdio.h: Add libc_hidden_proto for ftello.
4022         * libio/ftello.c: Add libc_hidden_def.
4023
4024         [BZ #1140]
4025         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4026         on the specified time and not the last entries in the file.  Move
4027         code to determine tzname[] to...
4028         (find_transition): ...here.  Add ugly guess for times before the
4029         first transition.
4030
4031 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4032
4033         [BZ #3195]
4034         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4035         no entry.
4036         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4037         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4038         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4039         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4040
4041         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4042         read mechanism when there are no group members and avoid no-op
4043         read syscall in this case.
4044
4045         [BZ #3242]
4046         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4047         (__readall): If reading failed due to EAGAIN error wait a bit
4048         and possibly try again.
4049         (__readvall): Likewise.
4050
4051 2007-10-13  Bruno Haible  <bruno@clisp.org>
4052
4053         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4054         when we cannot recode the message.
4055
4056 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4057
4058         [BZ #4359]
4059         * libio/__freading.c (__freading): Don't return true for
4060         write-only streams.  For read/write streams, check whether we
4061         performed a read operation already.
4062         * libio/Makefile (tests): Add tst-ext2.
4063         * libio/tst-ext2.c: New file.
4064
4065 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4066
4067         * locale/programs/repertoire.c (repertoire_read): Always free
4068         memory for repertoire file name [Coverity CID 270].
4069
4070         * elf/cache.c (save_aux_cache): Free memory allocated for
4071         temporary file name [Coverity CID 267].
4072
4073 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4074
4075         * misc/Makefile (headers): Add bits/error.h.
4076
4077 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4078
4079         * posix/fnmatch_loop.c: Take rule index returned as part of
4080         findidx return value into account when accessing weights.
4081         * posix/regcomp.c: Likewise.
4082         * posix/regexec.c: Likewise.
4083
4084         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4085         (skip_to): Fix problems with parameter of elifdef/elifndef.
4086
4087 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4088
4089         * iconv/gconv_simple.c: Add some branch prediction.
4090
4091 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4092
4093         * locale/programs/ld-collate.c (collate_read): If ignore_content
4094         and nowtok is tok_define, eat any tok_eol tokens.
4095
4096 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4097
4098         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4099         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4100
4101         * inet/netinet/in.h: Don't include bits/socket.h.
4102         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4103         macro.
4104         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4105
4106 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4107
4108         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4109         and tok_elifndef.
4110         * locale/programs/locfile-kw.gperf: Likewise.
4111         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4112
4113 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4114
4115         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4116         (__find_specwc): Change into __extern_always_inline function.
4117         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4118         (__parse_one_specmb): Remove ps argument.
4119         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4120         Adjust __find_specmb and __parse_one_specmb callers.
4121         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4122         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4123         Removed.
4124         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4125         caller.
4126
4127 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4128
4129         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4130         with some Pentium Ds.
4131
4132 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4133
4134         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4135         __read not read.
4136         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4137         __write not write.
4138
4139 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4140
4141         [BZ #181]
4142         * locale/C-time.c: Set week_1stday data to 19971201.
4143         * locale/programs/ld-time.c (time_finish): Default for
4144         first_workday is Monday.
4145
4146         [BZ #2633]
4147         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4148
4149         [BZ #5103]
4150         * posix/glob.c (glob): Recognize patterns starting \/.
4151         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4152         (main): Add test for pattern starting \/.
4153
4154         * misc/error.h: Use __const instead of const.
4155         * misc/bits/error.h: Likewise.
4156
4157 2007-10-07  Andreas Jaeger  <aj@suse.de>
4158
4159         * include/bits/error.h: New file.
4160
4161         * misc/bits/error.h (error_at_line): Fix prototype.
4162
4163 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4164
4165         [BZ #3924]
4166         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4167         more little bugs in creating the stack frame when pltexit has to
4168         be called.
4169
4170         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4171         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4172
4173         [BZ #4407]
4174         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4175         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4176         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4177         * math/libm-test.inc: Add test for this case.
4178
4179         [BZ #5010]
4180         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4181         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4182         map service succeeded.
4183         (svc_is_mapped): New function.
4184         (svc_unregister): Use it before trying to unmap service.
4185
4186 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4187
4188         * timezone/zic.c: Update from tzcode2007h.
4189
4190         [BZ #5063]
4191         * timezone/africa: Update from tzdata2007h.
4192         * timezone/antarctica: Likewise.
4193         * timezone/asia: Likewise.
4194         * timezone/australasia: Likewise.
4195         * timezone/europe: Likewise.
4196         * timezone/leapseconds: Likewise.
4197         * timezone/northamerica: Likewise.
4198         * timezone/southamerica: Likewise.
4199         * timzeone/zone.tab: Likewise.
4200
4201         [BZ #5104]
4202         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4203
4204         [BZ #5113]
4205         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4206         avoid warning with -Wconversion.
4207         (__strndup): Likewise.
4208         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4209
4210         [BZ #5112]
4211         * nscd/connections.c (restart): Don't resync if database is
4212         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4213
4214         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4215         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4216
4217         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4218         evetnfd_read, eventfd_write.
4219         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4220         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4221         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4222         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4223         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4224         eventfd_write for GLIBC_2.7.
4225
4226         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4227         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4228         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4229         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4230
4231 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4232
4233         * stdlib/msort.c: Include stdint.h.
4234         (struct msort_param): New type.
4235         (msort_with_tmp): Use struct msort_param pointer for unchanging
4236         parameters.  Add optimized handling for several common sizes
4237         and indirect sorting mode.
4238         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4239         sorting.
4240         Suggested by Belazougui Djamel .
4241
4242         * stdlib/Makefile (tests): Add tst-qsort2.
4243         * stdlib/tst-qsort2.c: New test.
4244
4245 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4246
4247         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4248         for dup2 in case another thread races with the current one.  Retry
4249         in this case.
4250
4251         * misc/error.h: Remove support for use outside of libc.  We have to
4252         include <features.h> now.  Include <bits/error.h> if possible.
4253         * misc/bits/error.h: New file.
4254
4255 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4256
4257         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4258         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4259         __extern_always_inline functions unconditionally, drop macros.
4260
4261         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4262         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4263         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4264
4265         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4266         add __artificial__ attribute.
4267
4268 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4269
4270         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4271         backward to forward direction.
4272
4273         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4274
4275         [BZ #645]
4276         * locale/programs/ld-collate.c (collate_finish): Compare against last
4277         used section which is known to have rules defined.
4278         (collate_read): After order_start, correctly record order of sections
4279         and queue sections up.
4280
4281 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4282
4283         [BZ #5071]
4284         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4285         the same number of pages.
4286         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4287
4288         * locale/programs/ld-collate.c (collate_read): After initial copy
4289         statement, continue in state 0.
4290
4291         * include/stdio_ext.h (__fsetlocking): Define as macro.
4292
4293 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4294
4295         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4296         of section order.
4297
4298         * po/pt_BR.po: Fix typo.
4299
4300 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4301
4302         * iconvdata/Makefile (modules): Add ISO8859-9E.
4303         (distribute): Add iso8859-9e.c.
4304         (gen-8bit-gap-modules): Add iso8859-9e.
4305         * iconvdata/iso8859-9e.c: New file.
4306         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4307         * iconvdata/TESTS: Likewise.
4308         * iconvdata/tst-tables.sh: Likewise.
4309
4310         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4311
4312         * locale/iso-639.def: Add several new entries.
4313
4314 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4315
4316         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4317         void * pointers instead of struct link_map **.
4318         (_dl_scope_free): Change argument type to void *.
4319         * include/link.h (struct link_map): Change type of l_reldeps
4320         to struct link_map_reldeps, move l_reldepsact into that
4321         struct too.
4322         * elf/dl-deps.c: Include atomic.h.
4323         (_dl_map_object_deps): Only change l->l_initfini when it is
4324         fully populated, use _dl_scope_free for freeing it.  Optimize
4325         removal of libs from reldeps by using l_reserved flag, when
4326         some removal is needed, allocate a new list instead of
4327         reallocating and free the old with _dl_scope_free.  Adjust
4328         for l_reldeps and l_reldepsact changes.
4329         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4330         searching in l_initfini and l_reldeps without holding dl_load_lock.
4331         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4332         l_reldepsact changes.
4333         * elf/dl-close.c (_dl_close_worker): Likewise.
4334         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4335
4336 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4337
4338         * iconvdata/Makefile (modules): Add KOI8-RU.
4339         (distribute): Add koi8-ru.c.
4340         (gen-8bit-gap-modules): Add koi8-ru.
4341         * iconvdata/koi8-ru.c: New file.
4342         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4343         * iconvdata/TESTS: Likewise.
4344         * iconvdata/tst-tables.sh: Likewise.
4345
4346         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4347
4348 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4349
4350         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4351         with __warning__/__error__ attributes.
4352         (__warnattr): Define.
4353         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4354         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4355         __warnattr.
4356         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4357         of __*_chk if compile time detectable overflow is found.
4358         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4359         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4360         with __warnattr.
4361         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4362         instead of __*_chk if compile time detectable overflow is found.
4363         (__gets_alias): Rename to...
4364         (__gets_warn): ... this.  Add __warnattr.
4365         (gets): Call __gets_warn instead of __gets_alias.
4366         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4367         aliases with __warnattr.
4368         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4369         time detectable overflow is found.
4370         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4371         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4372         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4373         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4374         __getdomainname_chk_warn): New aliases with __warnattr.
4375         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4376         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4377         __*_chk_warn instead of __*_chk if compile time detectable overflow
4378         is found.
4379         (__getgroups_chk): Rename argument to __listlen from listlen.
4380         (__getwd_alias): Rename to...
4381         (__getwd_warn): ... this.  Add __warnattr.
4382         (getwd): Call __getwd_warn instead of __getwd_alias.
4383         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4384         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4385         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4386         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4387         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4388         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4389         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4390         compile time detectable overflow is found.
4391         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4392         to use __*_chk or not.
4393         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4394         in comparisons which function should be called and in __*_chk*
4395         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4396         detectable overflow is found.
4397         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4398         __*_chk argument.
4399         * debug/tst-chk1.c (do_test): Add a few more tests.
4400
4401 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4402
4403         [BZ #5058]
4404         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4405         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4406         (_nl_unload_domain): Finalize conversions_lock.
4407         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4408         handling table of known conversions.
4409
4410 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4411
4412         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4413         close_not_cancel_no_status instead of close.
4414
4415 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4416
4417         [BZ #5028]
4418         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4419         nrules != 0 for multibyte chars.
4420
4421 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4422
4423         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4424         Provide better error message in case the type is unknown.
4425
4426         [BZ #4963]
4427         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4428         * string/stratcliff.c: Make usable to test wide char functions.
4429         * wcsmbs/wcsatcliff.c: New file.
4430         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4431
4432         [BZ #4972]
4433         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4434         (distribute): Add mac-centraleurope.c.
4435         (gen-8bit-gap-modules): Add mac-centraleurope.
4436         * iconvdata/mac-centraleurope.c: New file.
4437         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4438         * iconvdata/TESTS: Likewise.
4439         * iconvdata/tst-tables.sh: Likewise.
4440
4441         [BZ #5043]
4442         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4443
4444 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4445
4446         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4447         from __x86_64_core_cache_size_half.
4448         (init_cacheinfo): Compute shared cache size for AMD processors with
4449         shared L3 correctly.
4450         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4451         name change.
4452         Patch in large parts by Evandro Menezes.
4453
4454 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4455
4456         * elf/dl-lookup.c (add_dependency): Handle failing memory
4457         allocation for dependency list.  Remove unnecessary check.
4458
4459         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4460         open/close when determining source addresses.
4461
4462         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4463         sha512-crypt, and sha512.
4464         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4465         (distribute): Add sha256.h and sha512.h.
4466         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4467         and call the appropriate code.
4468         * crypt/sha256-crypt.c: New file.
4469         * crypt/sha256.c: New file.
4470         * crypt/sha256.h: New file.
4471         * crypt/sha256c-test.c: New file.
4472         * crypt/sha256test.c: New file.
4473         * crypt/sha512-crypt.c: New file.
4474         * crypt/sha512.c: New file.
4475         * crypt/sha512.h: New file.
4476         * crypt/sha512c-test.c: New file.
4477         * crypt/sha512test.c: New file.
4478
4479 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4480
4481         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4482         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4483         __syslog_chk.
4484
4485 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4486
4487         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4488         %as in fscanf format strings.
4489
4490         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4491         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4492         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4493         Likewise.
4494         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4495         Likewise.
4496
4497         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4498         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4499         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4500         * elf/dl-sym.c (do_sym): Likewise.
4501         * include/link.h (struct link_map): Add l_serial field.
4502         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4503         * elf/dl-lookup.c (add_dependency): Add flags argument.
4504         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4505         flags, use THREAD_GSCOPE_RESET_FLAG before and
4506         THREAD_GSCOPE_SET_FLAG after
4507         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4508         Don't dereference map until it has been found on some list.
4509         If map->l_serial changed, return -1.
4510
4511 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4512
4513         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4514         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4515         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4516         libc_hidden_proto.
4517         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4518         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4519         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4520         add libc_hidden_proto.
4521         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4522         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4523         conformance requested.
4524         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4525         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4526         conformance requested.
4527         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4528         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4529         conformance requested.
4530         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4531         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4532         ISO C99 or POSIX conformance requested.
4533         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4534         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4535         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4536         and __isoc99_vsscanf@@GLIBC_2.7.
4537         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4538         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4539         (tests): Add scanf14.
4540         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4541         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4542         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4543         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4544         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4545         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4546         from using internal headers.
4547         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4548         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4549         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4550         and __isoc99_vswscanf@@GLIBC_2.7.
4551         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4552         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4553         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4554         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4555         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4556         * stdio-common/isoc99_scanf.c: New file.
4557         * stdio-common/isoc99_vsscanf.c: New file.
4558         * stdio-common/isoc99_vscanf.c: New file.
4559         * stdio-common/isoc99_vfscanf.c: New file.
4560         * stdio-common/isoc99_fscanf.c: New file.
4561         * stdio-common/isoc99_sscanf.c: New file.
4562         * wcsmbs/isoc99_fwscanf.c: New file.
4563         * wcsmbs/isoc99_vswscanf.c: New file.
4564         * wcsmbs/isoc99_swscanf.c: New file.
4565         * wcsmbs/isoc99_wscanf.c: New file.
4566         * wcsmbs/isoc99_vwscanf.c: New file.
4567         * wcsmbs/isoc99_vfwscanf.c: New file.
4568         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4569         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4570         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4571         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4572         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4573         * stdio-common/scanf14.c: New test.
4574         * stdio-common/scanf15.c: New test.
4575         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4576         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4577         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4578         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4579         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4580         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4581         __nldbl___isoc99_scanf@@GLIBC_2.7,
4582         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4583         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4584         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4585         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4586         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4587         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4588         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4589         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4590         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4591         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4592         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4593         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4594         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4595         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4596         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4597         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4598         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4599         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4600         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4601         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4602         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4603         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4604         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4605         functions.
4606         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4607         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4608         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4609         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4610         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4611         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4612         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4613         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4614         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4615         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4616         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4617         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4618
4619         * stdio-common/Makefile (tests): Add scanf13.
4620         (scanf13-ENV): New.
4621         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4622         m modifier followed by l.
4623         (STRING_ARG): Add width argument.
4624         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4625         <case L_('C')>: Handle %mlc and %mC.
4626         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4627         arguments.
4628         * stdio-common/scanf13.c: New test.
4629
4630         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4631         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4632
4633 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4634
4635         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4636         type and __THROW marker of splice, vmsplice, and tee.
4637         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4638         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4639         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4640         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4641         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4642         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4643         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4644         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4645         as cancellation points.
4646
4647 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4648
4649         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4650         parse more than three parts of the version number.
4651
4652 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4653
4654         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4655         modifier.  Patch by Jakub Jelinek.
4656
4657 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4658
4659         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4660         call_fallocate in misc subdir.
4661         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4662         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4663         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4664         instead of __fallocate64.
4665         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4666
4667 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4668
4669         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4670         * rt/Makefile (headers): Add bits/mqueue2.h.
4671         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4672         optimizing with GCC and __va_arg_pack_len is defined.
4673         * rt/bits/mqueue2.h: New file.
4674         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4675         (mq_open): New strong_alias.
4676         (__mq_open_2): New function.
4677         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4678         (mq_open): New strong_alias.
4679         (__mq_open_2): New function.
4680         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4681         * Versions.def (librt): Add GLIBC_2.7 version.
4682         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4683         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4684
4685         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4686         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4687         is defined rather than when not C++.
4688         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4689         __openat64_alias): New redirects.
4690         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4691         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4692         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4693         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4694         functions instead of function-like macros.
4695
4696 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4697
4698         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4699         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4700         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4701
4702 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4703
4704         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4705         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4706
4707 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4708
4709         * inet/tst-network.c: Increment ERRORS for failing tests.
4710
4711 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4712
4713         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4714         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4715         implement as __extern_always_inline function.
4716         (vsyslog): Define as __extern_always_inline function unconditionally.
4717         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4718         When __va_arg_pack is defined, implement as __extern_always_inline
4719         functions.
4720         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4721         __extern_always_inline functions unconditionally.
4722         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4723         bits/stdio2.h will be included.
4724         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4725         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4726         implement as __extern_always_inline functions.
4727         (vswprintf, vwprintf, vfwprintf): Define as
4728         __extern_always_inline functions unconditionally.
4729         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4730
4731 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4732
4733         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4734         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4735         attribute.
4736         * include/features.h (__USE_EXTERN_INLINES): Define only when
4737         __extern_inline is defined.
4738         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4739         is defined instead of when not __cplusplus.
4740         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4741         is defined instead of when not __cplusplus.
4742         * socket/sys/socket.h: Include bits/socket2.h when
4743         __extern_always_inline is defined instead of when not __cplusplus.
4744         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4745         is defined instead of when not __cplusplus.
4746         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4747         is defined instead of when not __cplusplus.
4748         * string/string.h: Include bits/string3.h when __extern_always_inline
4749         is defined instead of when not __cplusplus.
4750         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4751         is defined instead of when not __cplusplus.
4752         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4753         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4754         is not defined.
4755         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4756         defined __extern_always_inline instead of !defined __cplusplus.
4757         * libio/bits/stdio-ldbl.h: Likewise.
4758         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4759         * misc/bits/syslog.h (syslog): Don't define for C++.
4760         (vsyslog): Use __extern_always_inline function for C++ instead of
4761         a macro.
4762         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4763         whenever that macro is defined.
4764         (vprintf): Don't provide the inline for C++.
4765         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4766         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4767         define the macros for C++.
4768         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4769         __extern_always_inline functions for C++.
4770         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4771         stat64, lstat64, fstat64, fstatat64): Don't define if not
4772         __USE_EXTERN_INLINES.
4773         * wcsmbs/bits/wchar2.h: Fix #error message.
4774         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4775         (vswprintf, vwprintf, vfwprintf): Define using
4776         __extern_always_inline functions for C++.
4777         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4778         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4779         strncpy, strcat, strncat): Define as __extern_always_inline
4780         functions instead of macros for C++.
4781         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4782         defined __extern_inline.
4783         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4784         to __extern_inline whenever that macro is defined.
4785         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4786         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4787         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4788         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4789         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4790         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4791         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4792         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4793         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4794         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4795         prototypes.  Only provide __extern_inline routines if
4796         __USE_EXTERN_INLINES.
4797         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4798         tests.
4799         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4800         For now avoid some *printf tests in C++.  Skip all testing
4801         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4802         is not.
4803         * debug/tst-chk4.cc: New file.
4804         * debug/tst-chk5.cc: New file.
4805         * debug/tst-chk6.cc: New file.
4806         * debug/tst-lfschk4.cc: New file.
4807         * debug/tst-lfschk5.cc: New file.
4808         * debug/tst-lfschk6.cc: New file.
4809         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4810         prototypes in C++.
4811         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4812         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4813         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4814
4815 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4816
4817         * po/cs.po: Update from translation team.
4818
4819 2007-09-11  Roland McGrath  <roland@redhat.com>
4820
4821         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4822         compiling.
4823
4824 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4825
4826         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4827
4828 2007-09-05  Roland McGrath  <roland@redhat.com>
4829
4830         * manual/signal.texi (Signaling Another Process): Typo fix.
4831         From Karl Berry <karl@freefriends.org>.
4832
4833 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4834
4835         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4836         zero if not defined.
4837         (make_request): Recognize optimistic addresses and treat them like
4838         deprecated addresses.
4839         Reported by Neil Horman <nhorman@redhat.com>.
4840
4841 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4842
4843         * nscd/connections.c (send_ro_fd): Also transfer file size.
4844         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4845         file size don't call fstat.
4846
4847         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4848         ahead and map the file.  This should always be correct and we can
4849         catch problems later.
4850
4851 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4852
4853         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4854         prototypes.
4855         (__fread_alias, __fread_unlocked_alias): New aliases.
4856         (fread): New extern inline.
4857         (fread_unlocked): Likewise.  Undef macro before definition of
4858         the inline function.
4859         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4860         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4861         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4862         and __fread_unlocked_chk@@GLIBC_2.7.
4863         * debug/fread_chk.c: New file.
4864         * debug/fread_u_chk.c: New file.
4865         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4866
4867 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4868
4869         * sysdeps/unix/sysv/linux/syscalls.list
4870         (personality): Change caller to EXTRA.
4871
4872 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4873
4874         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4875         to keep gcc quiet.
4876         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4877
4878         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4879         NDEBUG is defined.
4880
4881         * Makerules: Use -p option with mkdir.
4882
4883         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4884         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4885         (_xdr_directory_obj): Likewise.
4886         (xdr_entry_obj): Likewise.
4887         (xdr_group_obj): Likewise.
4888         (xdr_link_obj): Likewise.
4889         (xdr_table_obj): Likewise.
4890         (_xdr_nis_result): Likewise.
4891         (_xdr_ns_request): Likewise.
4892         (_xdr_ib_request): Likewise.
4893         (_xdr_nis_taglist): Likewise.
4894         (xdr_cback_data): Likewise.
4895         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4896         (xdr_ypresp_maplist): Likewise.
4897
4898         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4899
4900         * posix/regex_internal.h: Prevent some declarations and definitions
4901         to be seen when used in tests.
4902
4903         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4904         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4905
4906         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4907
4908         * config.make.in (datarootdir): Add to shut up configure.
4909
4910         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4911         associativity for fully-associative caches.
4912
4913         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4914         requests.  Fill on more associativity values for L2.
4915         Patch mostly by Evandro Menezes.
4916
4917 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4918
4919         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4920         (_libc_vdso_platform_setup): Avoid using exported variable by using
4921         alias.
4922
4923         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4924
4925         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4926         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4927         defined.
4928
4929 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4930
4931         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4932         align stack for call if pltexit is to be used.
4933
4934         [BZ #3924]
4935         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4936         align for function call in case pltexit has to be called later.
4937
4938         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4939         implicit atomic operation when storing function pointer.
4940         (_dl_runtime_profile): Likewise.
4941
4942 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4943
4944         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4945         NIS_NOTFOUND.
4946
4947 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4948
4949         [BZ #4566]
4950         * string/strtok.c: Fix typo in comment.
4951
4952         [BZ #4582]
4953         * debug/segfault.c: Fix typos in comments.
4954
4955         [BZ #4588]
4956         * stdio-common/tempnam.c: Fix comment, it is not checked that
4957         TMPDIR points to a writable directory.
4958
4959         [BZ #4726]
4960         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4961         memory allocated for the name server address.
4962
4963         [BZ #4946]
4964         * nscd/connections.c (handle_request): Using sendfile always
4965         requires that mmap is used for the database.
4966         Patch by Petr Baudis <pasky@suse.cz>.
4967
4968         [BZ #4905]
4969         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4970         suddenly has two or more addresses, ignore it and remove the old
4971         entry.
4972
4973         [BZ #4814]
4974         * resolv/res_hconf.c: Prepare for compiling outside libc.
4975         * nscd/res_hconf.c: New file.
4976         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4977         the new file.
4978         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4979         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4980
4981         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4982
4983         [BZ #4925]
4984         * debug/pcprofiledump.c: Turn on internationalization by calling
4985         setlocale.  Patch mostly by Benno Schulenberg.
4986
4987         [BZ #4936]
4988         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4989         the state.
4990         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4991         * iconvdata/bug-iconv5.c: New file.
4992
4993 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4994
4995         [BZ #4896]
4996         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4997         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4998         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4999         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5000         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5001         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5002         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5003         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5004
5005 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5006
5007         [BZ #4937]
5008         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5009         lookup loop.  Suggested by John Reiser.
5010
5011 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5012
5013         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5014
5015 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5016
5017         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5018         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5019         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5020         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5021         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5022         to...
5023         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5024
5025 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5026
5027         * po/nl.po: Update from translation team.
5028
5029 2007-08-16  Andreas Jaeger  <aj@suse.de>
5030
5031         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5032         Reported by Peter Festner <peter.festner@ewetel.net>.
5033
5034 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5035
5036         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5037
5038 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5039
5040         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5041         to check for undefined symbols.
5042
5043         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5044         If the syscall fails, set errno to the actual returned error number
5045         rather than EINVAL.
5046         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5047         arguments are incorrect, set errno to EINVAL, if the syscall
5048         fails, set errno to the actual returned error number.
5049
5050         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5051         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5052
5053         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5054         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5055         file.
5056         (ASI_PNF, ASI_BLK_P): Don't define.
5057         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5058         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5059         file.
5060         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5061         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5062         file.
5063
5064 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5065
5066         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5067         FE_UNDERFLOW on Niagara CPUs.
5068
5069         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5070         exceptions.
5071
5072 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5073
5074         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5075         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5076         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5077         flush should be used or not inside of the function.
5078         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5079
5080         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5081         __thread_start): Use HIDDEN_JUMPTARGET.
5082         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5083         __thread_start): Likewise.
5084         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5085
5086         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5087         Add libc_hidden_proto.
5088         (STRTOF): Add libc_hidden_proto.
5089         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5090         (strtold_l, wcstold_l): Use them as second argument for
5091         long_double_symbol.
5092
5093 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5094
5095         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5096
5097 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5098
5099         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5100
5101 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5102
5103         * po/bg.po: New file.  From the translation team.
5104
5105 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5106
5107         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5108         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5109         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5110         when each feature was introduced.
5111
5112         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5113         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5114         (CHECK_HASH): New macro.
5115         (PREPARE_VERSION): Use it.
5116
5117         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5118         prototype if not __ASSUME_PSELECT.
5119         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5120         prototype if not __ASSUME_PPOLL.
5121
5122         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5123
5124         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5125         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5126         is defined.
5127
5128 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5129
5130         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5131         (_libc_vdso_platform_setup): If vDSO is not available point
5132         __vdso_gettimeofday to the vsyscall.
5133         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5134         __vdso_gettimeofday instead of vsyscall.
5135
5136 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5137
5138         * nscd/servicescache.c: Include kernel-features.h.
5139         * nscd/gai.c: Likewise.
5140         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5141         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5142         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5143         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5144         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5145         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5146         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5147         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5148         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5149
5150 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5151
5152         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5153         and _dl_get_origin defines anymore.
5154
5155         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5156         Build fix for systems which might lack POSIX timer support.
5157
5158         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5159         (_libc_vdso_platform_setup): Mangle function pointers before storing
5160         them.
5161         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5162         Demangle vdso pointer before use.
5163         (INTERNAL_VSYSCALL): Likewise.
5164
5165         * elf/cache.c (primes): Mark as const.
5166         Noted by Roland McGrath.
5167
5168 2007-08-01  Andreas Jaeger  <aj@suse.de>
5169             Jakub Jelinek  <jakub@redhat.com>
5170
5171         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5172         (options): Add option.
5173         (parse_opt): Handle option.
5174         (manual_link): Adjust process_file caller.  Call implicit_soname.
5175         (search_dir): Formatting.  Use and populate auxiliary cache.
5176         (main): Load and save auxiliary cache.
5177         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5178         stat64 from fstat64 to caller.
5179         (implicit_soname): New function.
5180         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5181         leave *soname as NULL.
5182         * elf/cache.c: Include libgen.h.
5183         (print_entry, print_cache, compare, save_cache, add_to_cache):
5184         Formatting and cleanups.
5185         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5186         aux_cache_file): New structures.
5187         (AUX_CACHEMAGIC): Define.
5188         (primes): New array.
5189         (aux_hash_size, aux_hash): New variables.
5190         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5191         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5192         load_aux_cache, save_aux_cache): New functions.
5193         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5194         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5195         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5196         (process_file): Adjust prototype.
5197
5198 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5199
5200         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5201         with __need_size_t.
5202
5203 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5204
5205         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5206         r_found_version structure as second parameter.
5207         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5208         (_dl_vdso_vsym): Change type of second parameter accordingly.
5209         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5210         (_libc_vdso_platform_setup): Adjust.
5211         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5212         (_libc_vdso_platform_setup): Likewise.
5213
5214         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5215         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5216         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5217         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5218         * csu/libc-start.c: Pretty printing.
5219         Use VDSO_SETUP if defined.
5220         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5221         and let generic code call into _libc_vdso_platform_setup.
5222         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5223         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5224         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5225         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5226         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5227         for GLIBC_PRIVATE.
5228         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5229         (sysdep_rountines): Add dl-vdso.
5230
5231         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5232         of routines.
5233
5234         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5235         attribute_hidden to __vdso_gettimeofday prototype.
5236
5237 2007-08-12  Roland McGrath  <roland@redhat.com>
5238
5239         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5240         From: Karl Berry <karl@freefriends.org>.
5241
5242 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5243
5244         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5245         an atime update for the files we read.
5246
5247 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5248
5249         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5250
5251         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5252         instead of mkstemp.
5253
5254         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5255         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5256         * misc/mkostemp.c: New file.
5257         * misc/mkostemp64.c: New file.
5258         * stdlib/stdlib.h: Declare the new functions.
5259         * sysdeps/posix/tempname.c: Add new parameter which is added to
5260         the flags for open.  Remove __GT_BIGFILE handling.
5261         * stdio-common/tempname.c: Likewise.
5262         * include/stdio.h: Adjust __gen_tempname prototype.
5263         Renumber __GT_* constants.
5264         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5265         * misc/mkdtemp.c: Likewise.
5266         * misc/mkstemp.c: Likewise.
5267         * misc/mkstemp64.c: Likewise.
5268         * misc/mktemp.c: Likewise.
5269         * stdio-common/tempnam.c: Likewise.
5270         * stdio-common/tmpfile.c: Likewise.
5271         * stdio-common/tmpfile64.c: Likewise.
5272         * stdio-common/tmpnam.c: Likewise.
5273         * stdio-common/tmpnam_r.c: Likewise.
5274
5275 2007-08-10  Roland McGrath  <roland@frob.com>
5276
5277         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5278         New macros.
5279         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5280         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5281
5282 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5283
5284         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5285         possible.
5286         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5287         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5288         * nss/nss_files/files-have_o_cloexec.c: New file.
5289
5290         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5291         available.
5292
5293 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5294
5295         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5296         ___new_wcstold_l): New weak aliases.
5297         (strtold_l, wcstold_l): Use them as second argument for
5298         long_double_symbol.
5299
5300 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5301
5302         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5303         register in test for error.
5304
5305         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5306         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5307
5308         * po/sv.po: Update from translation team.
5309
5310 2007-08-06  Roland McGrath  <roland@redhat.com>
5311
5312         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5313         Remove __strto*_l inlines.
5314         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5315         * stdlib/strtod.c: Add libc_hidden_def.
5316         * stdlib/strtod_l.c: Likewise.
5317         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5318         for __new_strtold and __new_wcstold.
5319         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5320         __STRTOF, STRTOF.
5321         * stdlib/strtol.c: Add libc_hidden_def.
5322         * stdlib/strtol_l.c: Likewise.
5323         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5324         strtoq.
5325
5326         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5327
5328         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5329         * scripts/data/localplt-generic.data: ... here.
5330         * elf/Makefile (check-data): Get generic file if no other.
5331         ($(objpfx)check-localplt.out): Make target unconditional.
5332
5333         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5334         Use ElfW(Nhdr).
5335
5336 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5337
5338         * po/zh_CN.po: Updated translation from translation team.
5339
5340 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5341
5342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5343         Don't use CGOTSETUP and CGOTRESTORE macros.
5344
5345 2007-08-04  Roland McGrath  <roland@redhat.com>
5346
5347         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5348
5349 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5350
5351         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5352         __extension__ around the whole statement expression.
5353
5354 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5355
5356         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5357         elements during initialization.
5358
5359         * po/pl.po: Updated translation from translation team.
5360         * po/tr.po: Likewise.
5361         * po/nl.po: Likewise.
5362
5363 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5364
5365         * rt/aio.h: Add __nonnull attributes.
5366
5367 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5368
5369         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5370         * stdlib/Makefile (tests): Add tst-strtod5.
5371         (tst-strtod5-ENV): New.
5372         * stdlib/tst-strtod5.c: New file.
5373
5374         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5375         failed.
5376         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5377         on failure.
5378
5379         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5380         allocated.
5381
5382 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5383
5384         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5385         numbers.
5386
5387 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5388
5389         * io/Makefile (aux): Add have_o_cloexec.
5390         * include/fcntl.h: Declare __have_o_cloexec.
5391         * io/have_o_cloexec.c: New file.
5392         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5393         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5394         fcntl call if not necessary.
5395         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5396         of local variable.
5397
5398         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5399         Avoid memset, add explicit initialization.
5400         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5401         to the end and change into zero-sized array.
5402         Move lock member to fill a hole on 64-bit platforms.
5403
5404         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5405         inline functions.
5406         * include/stdlib.h: Add __strto*_internal prototypes here.
5407         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5408         inline functions.
5409         * include/wchar.h: Add __wcsto*_internal prototypes.
5410         * sysdeps/generic/inttypes.h: No need to protect the declaration
5411         of the __strto*_internal and __wcsto*_internal members here.
5412
5413         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5414
5415 2007-08-02  Roland McGrath  <roland@redhat.com>
5416
5417         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5418         $(inst_bindir)/getconf if possible.
5419
5420         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5421         (generated): Add it.
5422         ($(inst_libexecdir)/getconf): Use it.
5423
5424 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5425
5426         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5427         /proc is faster and sufficient.  /sys is still needed for
5428         __get_nprocs_conf.
5429
5430 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5431
5432         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5433         syscall as __fallocate64.
5434         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5435         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5436
5437 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5438
5439         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5440         value.
5441
5442         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5443         if off_t is different rank from size_t.
5444
5445         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5446         uw_frame_state_for): Avoid type punning warnings.
5447         * sysdeps/generic/unwind-dw2-fde-glibc.c
5448         (_Unwind_IteratePhdrCallback): Likewise.
5449         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5450         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5451         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5452         pointers.
5453
5454 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5455
5456         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5457         total processors using sysfs.
5458         (__get_nprocs): Use sysfs to determine which processors are online.
5459
5460 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5461
5462         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5463         syscall arguments count.
5464
5465         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5466
5467 2007-07-30  Roland McGrath  <roland@redhat.com>
5468
5469         * manual/libc.texinfo: Update copyrights, formatting magic, and
5470         @dircategory.  From Karl Berry <karl@freefriends.org>.
5471
5472 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5473
5474         [BZ #4860]
5475         * io/Makefile (headers): Add bits/fcntl2.h.
5476
5477         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5478         using gcc builtin.
5479         (__CPU_EQUAL_S): Likewise.
5480
5481         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5482         (tests): Add tst-cpuset.
5483         * posix/sched_cpualloc.c: New file.
5484         * posix/sched_cpufree.c: New file.
5485         * posix/tst-cpuset.c: New file.
5486         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5487         GLIBC_2.7.
5488         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5489         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5490         macros.  Define CPU_*_S macros.
5491
5492 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5493
5494         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5495         entry.
5496
5497         [BZ #4858]
5498         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5499         #.0g and value rounded to 1.0.
5500         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5501
5502 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5503
5504         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5505         for int_frac_digits and frac_digits.
5506
5507         * login/logout.c (logout): Avoid aliasing violation.
5508         * login/logwtmp.c (logwtmp): Likewise.
5509
5510         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5511
5512         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5513         to avoid warning.
5514         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5515         warning.
5516         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5517         warning.
5518         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5519         to avoid warnings.
5520
5521         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5522         void **.
5523         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5524
5525         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5526         char * to avoid warning.
5527         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5528
5529         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5530
5531         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5532         allocate_arrays): Cast second argument to charmap_find_symbol
5533         to char * to avoid warnings.
5534
5535         * locale/programs/repertoire.c (repertoire_new_char): Change
5536         from_nr, to_nr and cnt to unsigned long, adjust printf format
5537         string.
5538
5539         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5540         Cast second argument to new_element to char * to avoid warnings.
5541
5542         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5543
5544         * intl/gettextP.h (struct loaded_domain): Change plural to const
5545         struct expression *.
5546         * intl/plural-eval.c (plural_eval): Change first argument to
5547         const struct expression *.
5548         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5549         argument to const struct expression **.
5550         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5551         prototypes.
5552         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5553         in call to __gettext_free_exp.
5554
5555         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5556         unitialized wstring/wpattern var warnings.
5557
5558         * posix/runtests.c (struct a_test): Make data field const char *.
5559
5560         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5561         vars if not LDBL_MANT_DIG >= 106.
5562
5563         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5564
5565         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5566         __find_specmb to avoid warning.
5567
5568         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5569
5570         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5571         to avoid warnings.
5572
5573         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5574         initializer.
5575
5576         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5577         tv var when it will be actually used.
5578
5579         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5580         to avoid warnings.
5581
5582         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5583         char array resp. pointer.
5584         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5585         char array.
5586         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5587         to const unsigned char **.
5588         (ucs4_to_cns11643): Change second argument to unsigned char *.
5589         * iconvdata/euc-tw.c (BODY): Change endp type to
5590         const unsigned char *.
5591         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5592         to unsigned char *.
5593         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5594         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5595         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5596         types to unsigned char pointers/arrays instead of char.
5597         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5598         to unsigned char *.
5599         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5600         * iconvdata/jis0212.h: Include assert.h.
5601         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5602         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5603         of trying to handle that.
5604         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5605         shut up a warning.
5606         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5607         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5608         two dimensional const unsigned char arrays.
5609         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5610         Initialize endp to inptr to shut up a warning.
5611
5612 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5613
5614         [BZ #4772]
5615         * time/strptime_l.c (__strptime_internal): Silently ignore
5616         strftime modifiers and field width in recursive calls.
5617
5618         * include/time.h (enum ptime_locale_status): Remove.
5619         (__strptime_internal): Remove decided and era_cnt arguments,
5620         add statep argument.
5621         * time/strptime_l.c (__strptime_internal): Remove decided
5622         and era_cnt arguments, add statep argument.  Don't recompute
5623         any fields in recursive calls, only update caller's tm
5624         and state, if recursive call fails, don't change tm nor
5625         any state.
5626         (get_alt_number): Adjust.
5627         (recursive): Adjust caller.
5628         (strptime): Likewise.
5629         * time/strptime.c (strptime): Likewise.
5630
5631 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5632
5633         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5634         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5635         if from and to charsets are the same.
5636         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5637         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5638         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5639
5640 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5641
5642         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5643         Don't define wint_t when __need_mbstate_t unless it
5644         is necessary.
5645         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5646         in the typedef if possible.
5647         * wctype/wctype.h (wint_t): Define by including
5648         wchar.h with __need_wint_t instead of including stddef.h
5649         with __need_wint_t and as fallback definining it ourselves.
5650         * iconv/gconv.h (__need_wint_t): Define before including
5651         wchar.h.
5652         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5653         or _GLIBCPP_USE_WCHAR_T.
5654         (__need_wchar_t): Don't define
5655         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5656         (__need_wint_t): Don't define before including stddef.h,
5657         define before including wchar.h only if _LIBC or
5658         _GLIBCPP_USE_WCHAR_T.
5659         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5660         * sysdeps/mach/hurd/_G_config.h: Likewise.
5661         * sysdeps/generic/_G_config.h: Likewise.
5662         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5663         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5664         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5665         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5666
5667 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5668
5669         * sysdeps/posix/posix_fallocate64.c: Undefine
5670         __posix_fallocate64_l64 before alias handling.
5671         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5672         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5673         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5674         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5675
5676         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5677
5678 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5679
5680         * locale/programs/ld-collate.c (atwc): New variable.
5681         (add_to_tablewc): New toplevel function, moved from collate_output.
5682         (collate_output): Remove add_to_tablewc nested function.
5683
5684         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5685         (name_insert): New function.
5686         (write_output): Remove hash_table and hash_size vars and name_insert
5687         nested function.
5688
5689 2007-07-24  Roland McGrath  <roland@redhat.com>
5690
5691         * Makerules (install-others-programs-nosubdir): New target.
5692         (install-no-libc.a-nosubdir): Depend on it.
5693
5694         * iconv/Makefile (install-others-programs): Set this instead of
5695         install-others.
5696         * login/Makefile (install-others-programs): Likewise.
5697         * posix/Makefile (install-others-programs): Likewise.
5698
5699         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5700         dependencies.
5701
5702 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5703
5704         * io/Makefile (tests): Add tst-posix_fallocate.
5705         * io/tst-posix_fallocate.c: New file.
5706
5707         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5708         __ASSUME_FALLOCATE.
5709
5710 2007-07-22  Roland McGrath  <roland@frob.com>
5711
5712         * hurd/getdport.c: Add missing copyright year update.
5713
5714         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5715         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5716
5717 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5718
5719         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5720
5721         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5722         O_CLOEXEC is needed.
5723         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5724         Avoid additional fcntl to set O_CLOEXEC if not needed.
5725         * nis/nss_compat/compat-initgroups.c: Likewise.
5726         * nis/nss_compat/compat-pwd.c: Likewise.
5727         * nis/nss_compat/compat-spwd.c: Likewise.
5728
5729 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5730
5731         [BZ #3665]
5732         * manual/errno.texi: Change ECANCELED value to 119.
5733
5734         [BZ #4610]
5735         * mach/lock-intern.h: Include <sys/cdefs.h>.
5736
5737         [BZ #4178]
5738         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5739         reading A.
5740
5741         [BZ #4126]
5742         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5743         to __sigsuspend.
5744
5745         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5746
5747 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5748
5749         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5750         `__ASSEMBLER__'.
5751         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5752
5753 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5754
5755         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5756         descriptor received from nscd.
5757
5758         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5759
5760         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5761         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5762         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5763         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5764         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5765         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5766
5767 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5768
5769         [BZ #4816]
5770         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5771
5772         [BZ #4813]
5773         * login/forkpty.c (forkpty): Close master and slave fds on
5774         fork failure.  Patch by
5775         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5776
5777 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5778
5779         * include/features.h (__USE_ISOC95): New define.
5780         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5781         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5782         for -std=iso9899:199409.
5783         * CONFORMANCE: Remove comments about unsupported AMD1.
5784
5785 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5786
5787         * sysdeps/ia64/sched_cpucount.c: New file.
5788         * sysdeps/powerpc/sched_cpucount.c: New file.
5789
5790         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5791         __BEGIN_DECLS/__END_DECLS around the prototype.
5792         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5793         pointer to const cpu_set_t.
5794
5795         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5796         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5797         __need_size_t and include stddef.h.
5798         * sysvipc/sys/msg.h: Likewise.
5799         * posix/sched.h: Likewise.
5800         * hurd/hurd/signal.h (__need_size_t): Define.
5801
5802         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5803         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5804         no longer defines wint_t or wchar_t.
5805
5806         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5807         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5808         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5809         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5810         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5811         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5812         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5813         * debug/printf_chk.c (__printf_chk): Likewise.
5814         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5815         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5816
5817         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5818         Define.
5819
5820         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5821         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5822
5823 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5824
5825         [BZ #4792]
5826         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5827         * malloc/malloc.h (realloc): Likewise.
5828
5829         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5830         if one of proc_file_chain streams has that fileno.
5831         * stdio-common/Makefile (tests): Add tst-popen2.
5832         * stdio-common/tst-popen2.c: New test.
5833
5834 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5835
5836         * elf/ldconfig.c: Allow GPLv2 or any later version.
5837         * elf/readlib.c: Likewise.
5838         * elf/chroot_canon.c: Likewise.
5839         * elf/cache.c: Likewise.
5840         * nscd/mem.c: Likewise.
5841         * nscd/getpwuid_r.c: Likewise.
5842         * nscd/grpcache.c: Likewise.
5843         * nscd/aicache.c: Likewise.
5844         * nscd/getsrvbynm_r.c: Likewise.
5845         * nscd/nscd.c: Likewise.
5846         * nscd/servicescache.c: Likewise.
5847         * nscd/getsrvbypt_r.c: Likewise.
5848         * nscd/initgrcache.c: Likewise.
5849         * nscd/gethstbyad_r.c: Likewise.
5850         * nscd/gethstbynm2_r.c: Likewise.
5851         * nscd/getgrnam_r.c: Likewise.
5852         * nscd/nscd_setup_thread.c: Likewise.
5853         * nscd/getpwnam_r.c: Likewise.
5854         * nscd/gai.c: Likewise.
5855         * nscd/connections.c: Likewise.
5856         * nscd/dbg_log.c: Likewise.
5857         * nscd/cache.c: Likewise.
5858         * nscd/hstcache.c: Likewise.
5859         * nscd/nscd_conf.c: Likewise.
5860         * nscd/getgrgid_r.c: Likewise.
5861         * nscd/pwdcache.c: Likewise.
5862         * catgets/gencat.c: Likewise.
5863         * locale/programs/linereader.h: Likewise.
5864         * locale/programs/locarchive.c: Likewise.
5865         * locale/programs/ld-paper.c: Likewise.
5866         * locale/programs/locfile-kw.h: Likewise.
5867         * locale/programs/ld-address.c: Likewise.
5868         * locale/programs/xmalloc.c: Likewise.
5869         * locale/programs/ld-time.c: Likewise.
5870         * locale/programs/localedef.c: Likewise.
5871         * locale/programs/simple-hash.c: Likewise.
5872         * locale/programs/xstrdup.c: Likewise.
5873         * locale/programs/ld-numeric.c: Likewise.
5874         * locale/programs/locfile-kw.gperf: Likewise.
5875         * locale/programs/ld-collate.c: Likewise.
5876         * locale/programs/charmap-kw.gperf: Likewise.
5877         * locale/programs/charmap.h: Likewise.
5878         * locale/programs/charmap-kw.h: Likewise.
5879         * locale/programs/config.h: Likewise.
5880         * locale/programs/locfile.c: Likewise.
5881         * locale/programs/ld-ctype.c: Likewise.
5882         * locale/programs/charmap.c: Likewise.
5883         * locale/programs/ld-messages.c: Likewise.
5884         * locale/programs/repertoire.h: Likewise.
5885         * locale/programs/locale.c: Likewise.
5886         * locale/programs/ld-name.c: Likewise.
5887         * locale/programs/linereader.c: Likewise.
5888         * locale/programs/locfile.h: Likewise.
5889         * locale/programs/3level.h: Likewise.
5890         * locale/programs/ld-monetary.c: Likewise.
5891         * locale/programs/ld-measurement.c: Likewise.
5892         * locale/programs/charmap-dir.c: Likewise.
5893         * locale/programs/ld-identification.c: Likewise.
5894         * locale/programs/localedef.h: Likewise.
5895         * locale/programs/charmap-dir.h: Likewise.
5896         * locale/programs/repertoire.c: Likewise.
5897         * locale/programs/simple-hash.h: Likewise.
5898         * locale/programs/ld-telephone.c: Likewise.
5899         * locale/programs/locale-spec.c: Likewise.
5900         * locale/programs/locfile-token.h: Likewise.
5901         * posix/getconf.c: Likewise.
5902         * iconv/dummy-repertoire.c: Likewise.
5903         * iconv/iconv_charmap.c: Likewise.
5904         * iconv/iconvconfig.c: Likewise.
5905         * iconv/iconv_prog.c: Likewise.
5906         * malloc/memusagestat.c: Likewise.
5907         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5908
5909 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5910
5911         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5912         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5913         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5914         check for the first argument.
5915
5916 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5917
5918         [BZ #4775]
5919         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5920         (__tgmath_real_type): Fix if expr is const int or other const
5921         qualified integral type.
5922         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5923         expressions and handle const qualified arguments.
5924         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5925         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5926         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5927         statement expressions.
5928         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5929         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5930         (__TGMATH_UNARY_IMAG): Define.
5931         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5932         * math/Makefile (tests): Add test-tgmath2.
5933         (CFLAGS-test-tgmath2.c): Add.
5934         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5935         count_cfloat, count_cldouble): New variables.
5936         (NCCALLS): Define.
5937         (main): Check number of complex calls as well.
5938         (F(compile_test)): Add complex tests and tests with const qualified
5939         arguments.
5940         (y, z, ccount): Define.
5941         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5942         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5943         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5944         F(cproj)): New functions.
5945         * math/test-tgmath2.c: New test.
5946
5947 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5948
5949         [BZ #4776]
5950         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5951         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5952         instead output ".".
5953         * dlfcn/Makefile (distribute): Add glreflib3.c.
5954         (module-names): Add glreflib3.
5955         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5956         glreflib1.so.
5957         (LDFLAGS_glreflib3.so): New.
5958         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5959         glreflib1.so.
5960         * dlfcn/glreflib3.c: New file.
5961
5962         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5963         returned -1, return NULL.
5964         * intl/explodename.c (_nl_explode_name): Return -1 if
5965         _nl_normalize_codeset failed.
5966
5967 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5968
5969         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5970         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5971         and avoid branch misspredicts for > 31 bytes memset case.
5972         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5973         Remove toc ref to __cache_line_size.
5974
5975         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5976         to get ISA-V2.0 branch hints.
5977         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5978         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5979         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5980         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5981         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5982         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5983         Remove toc ref to __cache_line_size.
5984
5985         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5986         Include math_ldbl_opt.h.
5987
5988 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5989
5990         [BZ #4773]
5991         * time/strptime_l.c (__strptime_internal): Implement greedy
5992         matching of weekday and month names.
5993
5994 2007-07-09  Roland McGrath  <roland@redhat.com>
5995
5996         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5997         (ELF_NOTE_ABI): Use it.
5998         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5999
6000 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6001
6002         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6003         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6004
6005 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6006
6007         [BZ #4745]
6008         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6009         in loop to look for conversion specifier to avoid testing of
6010         wrong errno value.
6011         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6012         * stdio-common/bug18.c: New file.
6013         * stdio-common/bug18a.c: New file.
6014         * stdio-common/bug19.c: New file.
6015         * stdio-common/bug19a.c: New file.
6016
6017 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6018
6019         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6020         running awk script.
6021
6022 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6023
6024         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6025         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6026         Return NULL if mmap failed instead of asserting it does not.
6027         (calloc): Check for integer overflow.
6028
6029         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6030         than LONG_MAX / 10.
6031
6032 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6033
6034         [BZ #4702]
6035         * nis/nss-default.c: Include errno.h.
6036         (init): Preserve errno.
6037
6038 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6039
6040         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6041
6042 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6043
6044         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6045
6046 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6047
6048         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6049
6050 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6051
6052         * sysdeps/s390/dl-procinfo.c: New file.
6053         * sysdeps/s390/dl-procinfo.h: New file.
6054         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6055
6056 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6057
6058         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6059         in PT_NOTE segments with multiple notes.
6060         * elf/readelflib.c (process_elf_file): Likewise.
6061
6062 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6063
6064         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6065         ISO C compliant.
6066
6067 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6068
6069         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6070
6071 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6072
6073         * include/link.h: Don't include rtld-lowlevel.h.
6074         (struct link_map): Remove l_scope_lock.
6075         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6076         (_dl_scope_free_list): New field (variable) in _rtld_global.
6077         (DL_LOOKUP_SCOPE_LOCK): Remove.
6078         (_dl_scope_free): New prototype.
6079         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6080         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6081         (_dl_profile_fixup): Likewise.
6082         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6083         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6084         THREAD_GSCOPE_RESET_FLAG around it.
6085         * elf/dl-close.c (_dl_close_worker): Don't use
6086         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6087         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6088         scopes were queued or if l_scope_mem has been abandoned.
6089         * elf/dl-open.c (_dl_scope_free): New function.
6090         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6091         * elf/dl-support.c (_dl_scope_free_list): New variable.
6092         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6093         Remove DL_LOOKUP_SCOPE_LOCK handling.
6094         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6095         handling.
6096         * elf/dl-object.c (_dl_new_object): Don't use
6097         __rtld_mrlock_initialize.
6098
6099 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6100
6101         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6102         to fill in holes
6103         (rtld_global_ro): Likewise.
6104
6105 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6106
6107         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6108         Move PT_LOAD checking to...
6109         (_dl_addr_inside_object): ... here, new function.
6110         * elf/dl-sym.c (do_sym): If not l_contiguous,
6111         call _dl_addr_inside_object.
6112         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6113         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6114         * elf/dl-open.c (dl_open_worker): Likewise.
6115         (_dl_addr_inside_object): New function if IS_IN_rtld.
6116         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6117         holes are present or are PROT_NONE protected.
6118         * include/link.h (struct link_map): Add l_contiguous field.
6119         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6120
6121 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6122             Tomas Janousek  <tjanouse@redhat.com>
6123             Ulrich Drepper  <drepper@redhat.com>
6124
6125         [BZ #4647]
6126         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6127         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6128         socket.
6129         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6130         unused member a bitmap.
6131         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6132         servers are configured.
6133
6134 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6135
6136         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6137
6138 2007-06-17  Andreas Schwab  <schwab@suse.de>
6139
6140         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6141
6142 2007-06-16  Andreas Jaeger  <aj@suse.de>
6143
6144         [BZ #4125]
6145         * sysdeps/unix/sysv/linux/sys/ptrace.h
6146         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6147         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6148         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6149         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6150         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6151         Define.
6152         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6153         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6154         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6155         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6156
6157 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6158
6159         [BZ #4599]
6160         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6161         determining whether there are IPv4/IPv6 addresses, ignore loopback
6162         addresses.
6163
6164 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6165
6166         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6167         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6168         as the return type.  Change type of "r" variable to CMPtype.
6169         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6170         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6171         * soft-fp/gedf2.c (__gedf2): Likewise.
6172         * soft-fp/gesf2.c (__gesf2): Likewise.
6173         * soft-fp/getf2.c (__getf2): Likewise.
6174         * soft-fp/ledf2.c (__ledf2): Likewise.
6175         * soft-fp/lesf2.c (__lesf2): Likewise.
6176         * soft-fp/letf2.c (__letf2): Likewise.
6177         * soft-fp/unorddf2 (__unorddf2): Likewise.
6178         * soft-fp/unordsf2 (__unordsf2): Likewise.
6179         * soft-fp/unordtf2 (__unordtf2): Likewise.
6180
6181 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6182
6183         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6184         make sure gcc doesn't mess around with this.
6185
6186 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6187
6188         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6189
6190 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6191
6192         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6193         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6194         at most once per _dl_close_worker.
6195
6196 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6197
6198         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6199         __sched_cpucount as const.
6200         * posix/sched_cpucount.c: Adjust.
6201
6202         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6203         instruction for counting bits.
6204         * sysdeps/x86_64/sched_cpucount.c: New file.
6205
6206 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6207
6208         * configure.in: Avoid variable named BASH.
6209         * config.make.in: Likewise.
6210         Patch in part by Mike Frysinger.
6211
6212 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6213
6214         [BZ #4586]
6215         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6216         pseudo-zeros as zero.
6217         * sysdeps/x86_64/ldbl2mpn.c: New file.
6218         * sysdeps/ia64/ldbl2mpn.c: New file.
6219
6220 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6221
6222         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6223         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6224         Remove unreachable code at the end.
6225
6226 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6227
6228         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6229         ldbl-128ibm in comment.
6230         (fpclassifyl): Correct classification of denormals.
6231         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6232         return value for MIN denormal. Rewrite using long double math too
6233         correctly handle denormals and canonicalize the results.
6234
6235 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6236
6237         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6238         (__mpn_construct_long_double): Fix conversion where result ought
6239         to be smaller than __LDBL_MIN__, or the low double should be
6240         denormal.  Fix decision where to negate low double - honor round
6241         to even rules.
6242         * stdio-common/tst-sprintf2.c: Include string.h.
6243         (COMPARE_LDBL): Define.
6244         (TEST): Also test whether a string hexadecimal float representation
6245         can be parsed back to the number.
6246         (main): Add a couple of further tests.
6247
6248 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6249
6250         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6251         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6252         is non-zero, but smaller than 2 * __DBL_MIN__.
6253         * stdio-common/tst-sprintf2.c: New test.
6254         * stdio-common/Makefile (tests): Add tst-sprintf2.
6255
6256         * math/test-misc.c (main): Don't run last batch of tests with
6257         IBM long double format.
6258
6259 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6260
6261         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6262         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6263         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6264         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6265         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6266         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6267         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6268         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6269         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6270         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6273         New file.
6274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6275         New file.
6276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6277         New file.
6278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6279         New file.
6280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6281         New file.
6282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6284         New file.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6286         New file.
6287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6288         New file.
6289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6290         New file.
6291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6292         New file.
6293
6294 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6295
6296         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6297         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6298         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6299         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6300         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6301         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6302         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6303         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6304
6305 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6306
6307         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6308         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6309         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6310         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6311         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6312         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6313         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6314         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6315
6316 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6317
6318         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6319         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6320         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6321         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6322
6323 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6324
6325         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6326         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6327
6328 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6329
6330         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6331         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6332         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6333         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6334
6335 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6336
6337         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6338         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6339
6340 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6341
6342         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6343         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6344
6345         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6346         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6347         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6348         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6349
6350 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6351
6352         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6353         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6354         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6355         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6356
6357 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6358
6359         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6360         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6361         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6362         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6363         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6364         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6365
6366 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6367
6368         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6369         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6370         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6371         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6372
6373 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6374
6375         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6376         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6377         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6378         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6379         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6380         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6381         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6382         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6383         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6384         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6385         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6386         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6387         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6388         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6389         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6390         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6391
6392 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6393
6394         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6395         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6396
6397 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6398
6399         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6400         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6401
6402 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6403
6404         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6405         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6406         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6407         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6408         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6409         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6410         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6411         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6412         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6413         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6414
6415 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6416
6417         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6418
6419 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6420
6421         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6422         branch miss-predicts. Ensure that cache line crossing does not impact
6423         dispatch grouping.
6424
6425 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6426
6427         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6428         "../../powerpc32/power4/memcopy.h".
6429         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6430         "../../powerpc32/power4/wordcopy.c".
6431
6432 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6433
6434         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6435         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6436         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6437         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6438         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6439         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6440
6441 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6442
6443         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6444
6445 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6446
6447         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6448         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6449         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6450         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6451         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6452         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6453         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6454         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6455
6456 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6457
6458         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6459
6460 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6461
6462         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6463         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6464         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6465         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6466         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6467         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6468         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6469
6470 2007-05-29  Roland McGrath  <roland@redhat.com>
6471
6472         * po/Makefile (po-sed-cmd): New variable.
6473         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6474
6475 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6476
6477         * crypt/md5-crypt.c: Fix comment.
6478
6479         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6480         of crashing.  When this is the case or if the reply is malformed,
6481         don't try to close the new file descriptor since it does not
6482         exist.
6483         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6484
6485 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6486
6487         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6488         if __NR_utimensat is not defined.
6489
6490 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6491
6492         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6493
6494 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6495
6496         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6497         (open): Fix comment typos.  Don't call __open_2 if flags
6498         is a compile time constant without O_CREAT.
6499         (__open64_2): Add nonnull attribute.
6500         (open64): Fix comment typos.  Don't call __open64_2 if flags
6501         is a compile time constant without O_CREAT.
6502         (__openat_2): Add nonnull attribute, fix nonnull attribute
6503         on redirect.
6504         (openat): Fix comment typos.  Don't call __openat_2 if flags
6505         is a compile time constant without O_CREAT.
6506         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6507         on redirect.
6508         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6509         is a compile time constant without O_CREAT.
6510
6511 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6512
6513         * Makerules (sysd-rules): Define PTW for ptw-* files.
6514         * Versions: Define GLIBC_2.7 for libc.
6515         * include/stdio.h: Declare __fortify_fail.
6516         * debug/fortify_fail.c: New file.
6517         * debug/Makefile (routines): Add fortify_fail.
6518         * debug/chk_fail.c: Use __fortify_fail.
6519         * debug/stack_chk_fail.c: Likewise.
6520         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6521         __openat64_2 for GLIBC_2.7.
6522         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6523         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6524         and fails if necessary.
6525         * io/open64.c: Likewise.
6526         * io/openat.c: Likewise.
6527         * io/openat64.c: Likewise.
6528         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6529         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6530         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6531         * io/bits/fcntl2.h: New file.
6532         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6533         __openat64_2.
6534         * include/bits/fcntl2.h: New file.
6535         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6536         Add open_2.
6537         * sysdeps/unix/sysv/linux/open_2.c: New file.
6538
6539 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6540
6541         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6542         as second parameter to handle_intel.
6543
6544         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6545         the entry.
6546
6547         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6548         handling to ...
6549         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6550         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6551         cacheinfo.
6552         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6553         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6554         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6555
6556         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6557
6558 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6559
6560         [BZ #4525]
6561         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6562         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6563         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6564
6565         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6566
6567         [BZ #4514]
6568         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6569         reinitialize workend at the start of each do_positional format spec
6570         loop, free workstart before do_positional loops.
6571         (printf_unknown): Fix size of work_buffer.
6572         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6573
6574         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6575         (public_sET_STATe): If ms->version < 3, put all chunks into
6576         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6577         chunks.
6578
6579         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6580         * malloc/hooks.c: Likewise.
6581         * malloc/arena.c: Likewise.
6582         * malloc/malloc.c (do_check_malloc_state): Don't assert
6583         n_mmaps is not greater than n_mmaps_max.  This removes the need
6584         for the previous change.
6585
6586         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6587         2007-05-07 commit.
6588
6589 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6590
6591         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6592         Define for kernel >= 2.6.22.
6593
6594 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6595
6596         * elf/dl-close.c (_dl_close_worker): When removing object from
6597         global scope, wait for all lookups to finish afterwards.
6598         * elf/dl-open.c (add_to_global): When global scope array must
6599         grow, allocate a new one and free old array only after all
6600         lookups finish.
6601         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6602         (_dl_lookup_symbol_x): Likewise.
6603         * elf/dl-support.c: Define _dl_wait_lookup_done.
6604         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6605         _dl_wait_lookup_done.
6606
6607         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6608         not overlapping with arena.
6609
6610         * malloc/mcheck.c (reallochook): If size==0, free the block.
6611
6612         * rt/tst-shm.c: Use fstat64 instead of fstat.
6613
6614         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6615         __NR_sync_file_range is not defined.
6616
6617 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6618
6619         Dummy files to prevent stub versions from being used.
6620         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6621         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6622         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6623         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6624
6625         * version.h (VERSION): Set to 2.6.90.
6626
6627 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6628
6629         * version.h (VERSION): Define to 2.6.
6630         * include/features.h (__GLIBC_MINOR__): Define to 6.
6631
6632         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6633
6634         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6635         sizes.
6636
6637 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6638
6639         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6640         number of mmaps.  n_mmaps_max is the target.
6641         * malloc/hooks.c: Likewise.
6642         * malloc/arena.c: Likewise.
6643
6644 2007-05-12  Andreas Jaeger  <aj@suse.de>
6645
6646         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6647         getpid.
6648
6649 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6650
6651         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6652         adding new variables.
6653
6654         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6655         optimize.  Completely extend global scope array before making the
6656         new entries visible.
6657
6658 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6659
6660         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6661         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6662         tst-getcpu.
6663
6664         * include/link.h: Move l_version and l_nversion members around to
6665         fill gaps.
6666
6667         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6668
6669         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6670         (__sched_setaffinity_new): If syscall was successful and
6671         RESET_VGETCPU_CACHE is defined, use it before returning.
6672         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6673
6674         * io/sys/stat.h: Make sure struct timespec is defined for
6675         __USE_ATFILE.
6676
6677         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6678         UTIME_OMIT.
6679         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6680         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6681         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6682         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6683         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6684         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6685         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6686         * io/sys/stat.h: Declare utimensat, futimens.
6687         * io/utimensat.c: New file.
6688         * io/futimens.c: New file.
6689         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6690         * sysdeps/unix/sysv/linux/futimens.c: New file.
6691         * io/Makefile (routines): Add utimensat, futimens.
6692         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6693         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6694         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6695         available.
6696
6697         * include/sys/cdefs.h: Redefine __nonnull so that test for
6698         incorrect parameters in the libc code itself are not omitted.
6699
6700 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6701
6702         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6703         exception in addition to inexact when asked to raise only FE_INEXACT.
6704
6705         [BZ #3427]
6706         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6707         in *envp.
6708
6709 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6710
6711         [BZ #4403]
6712         * string/strfry.c (strfry): Make result more random.
6713
6714 2007-05-07  Richard Henderson  <rth@redhat.com>
6715
6716         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6717         if __NO_LONG_DOUBLE_MATH.
6718         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6719         available in the compiler, add .arch directive to the assembly.
6720
6721 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6722
6723         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6724         compat_symbol to GLIBC_2_1.
6725         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6726         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6727         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6728         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6729         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6730         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6731         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6732         libc, not libm.
6733         (__isnanl): New compat_symbol.
6734
6735 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6736             Jakub Jelinek  <jakub@redhat.com>
6737
6738         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6739         (new_heap): Initialize mprotect_size.
6740         (grow_heap): When growing, only mprotect from mprotect_size till
6741         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6742         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6743
6744 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6745             Peter Bergner  <bergner@us.ibm.com>
6746
6747         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6748         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6749         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6750         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6751         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6752         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6753         Call __fe_mask_env() if all FP exceptions disabled.
6754         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6755         from old FPSCR to new fenv to propagate DFP rounding modes.
6756         Call __fe_mask_env() if FP exceptions previously enabled.
6757         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6758         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6759         transitioning from all exceptions disabled to any exception enabled
6760         or visa versa.
6761         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6762         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6763         when transitioning from all exceptions disabled to any exception
6764         enabled or visa versa.
6765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6771
6772 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6773
6774         [BZ #4465]
6775         * posix/unistd.h: Remove __THROW from fdatasync.
6776
6777 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6778
6779         [BZ #4465]
6780         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6781
6782 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6783
6784         * stdio-common/vfprintf.c (process_string_arg): Optimize
6785         ridiculous precision in wide char code printing multi-byte string.
6786         Reported by Jim Meyering <jim@meyering.net>.
6787
6788         [BZ #4131]
6789         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6790         boundaries to work around systems with overlapping binary loading.
6791         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6792
6793 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6794
6795         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6796         __mbsnrtowcs after last change.
6797
6798         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6799         (get_ident): Likewise.
6800
6801 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6802
6803         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6804         with setting the sticky bit.
6805         * math/test-misc.c (main): Add more truncation tests.
6806
6807 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6808
6809         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6810         double in the function declaration.
6811         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6812         double in the function declaration.
6813         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6814         float in the function declaration.
6815         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6816         float in the function declaration.
6817
6818         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6819         denormal operands.  Do not generate FP_EX_DENORM exception.
6820         (FP_UNPACK_RAW_EP): Ditto.
6821         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6822         undefined _FP_UNPACK_RAW_E.
6823         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6824         undefined _FP_UNPACK_RAW_EP.
6825         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6826         undefined _FP_PACK_RAW_E.
6827         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6828         undefined _FP_PACK_RAW_EP.
6829
6830         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6831         _FP_FRAC_COPY_2.
6832         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6833         _FP_FRAC_COPY_4.
6834
6835 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6836             Jakub Jelinek  <jakub@redhat.com>
6837
6838         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6839         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6840         this case.
6841         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6842
6843 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6844
6845         * math/test-misc.c (main): Add tests for rounding long double
6846         values close to smallest double denormalized value to double.
6847
6848 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6849
6850         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6851         condition for truncating to 0.  Set sticky bit for such
6852         truncation.
6853
6854 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6855
6856         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6857         fixed length array for ignore.
6858
6859 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6860
6861         [BZ #4438]
6862         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6863         stack for large precisions.
6864         * stdio-common/test-vfprintf.c (main): Add test for large
6865         precision.
6866
6867 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6868
6869         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6870         for exponent 0.
6871         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6872
6873         [BZ #4439]
6874         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6875         account in the size check.
6876         * resolv/tst-inet_ntop.c: New test.
6877         * resolv/Makefile (tests): Add tst-inet_ntop.
6878
6879 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6880             Jakub Jelinek  <jakub@redhat.com>
6881
6882         [BZ #4349]
6883         * malloc/malloc.c: Keep separate list for first blocks on the bin
6884         lists with a given size.  This helps skipping over list elements
6885         we know won't fit in two places.
6886         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6887
6888 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6889
6890         [BZ #4102]
6891         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6892         label to Teredo tunnel addresses 2001://32.
6893
6894 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6895
6896         * locale/programs/ld-collate.c (collate_read): Allow order_start
6897         after copy.
6898
6899         * locale/programs/ld-collate.c (collate_read): Fix printing of
6900         error message.
6901
6902         [BZ #3213]
6903         * locale/C-translit.h.in: Add entry for U2044.
6904
6905         [BZ #4342]
6906         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6907         hexa-decimal floats without exponent.
6908         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6909
6910 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6911
6912         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6913         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6914         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6915         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6916         GLIBC_2.6.
6917         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6918         Add sched_getcpu.
6919
6920 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6921
6922         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6923         of 0 after the out_fail label.
6924
6925 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6926
6927         [BZ #4406]
6928         * iconv/gconv_charset.h (strip): Allow ':'.
6929         * iconv/iconv_open.c (iconv_open): Adjust comment.
6930
6931 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6932
6933         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6934         version.
6935
6936 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6937
6938         [BZ #4381]
6939         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6940         alignment of buffer and tmp_buffer.
6941         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6942         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6943         alignment of buffer.
6944         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6945         bigger than INT_MAX.
6946         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6947         h_errnop arguments.  Fail if buflen is too small.
6948         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6949
6950 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6951
6952         [BZ #4405]
6953         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6954         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6955
6956 2007-04-22  Roland McGrath  <roland@redhat.com>
6957
6958         * elf/elf.h (NT_PRXFPREG): New macro.
6959
6960 2007-04-19  Andreas Jaeger  <aj@suse.de>
6961
6962         [BZ #3905]
6963         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6964         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6965         Added.
6966
6967 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6968
6969         * include/sys/mman.h: Mark madvise hidden.
6970         * misc/madvise.c: Add libc_hidden_def.
6971
6972 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6973
6974         * nis/nis_domain_of.c (__nis_domain_of): New function.
6975         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6976         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6977         * nis/nis_call.c (rec_dirsearch): Likewise.
6978         (first_shoot): Likewise.  Remove search_parent_first argument.
6979         (struct nis_server_cache): Rename search_parent_first field
6980         to search_parent.
6981         (nis_server_cache_search, nis_server_cache_add): Rename
6982         search_parent_first argument to search_parent.
6983         (__nisfind_server): Likewise.  If search_parent, call
6984         __nis_domain_of.
6985
6986 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6987
6988         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6989
6990 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6991
6992         [BZ #4368]
6993         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6994
6995 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6996
6997         [BZ #4364]
6998         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6999
7000 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7001
7002         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7003         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7004         current number of locales in SUPPORTED.
7005         (create_archive): Initialize serial.
7006         (enlarge_archive): Preserve aliases rather than duplicating
7007         their locrecs.
7008
7009 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7010
7011         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7012         after _IO_un_link, not before it.
7013
7014         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7015         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7016         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7017
7018 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7019
7020         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7021         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7022         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7023         Remove __THROW.
7024         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7025         _IO_file_xsgetn_maybe_mmap): Likewise.
7026         * libio/oldfileops.c (old_do_write): Likewise.
7027         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7028         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7029         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7030         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7031         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7032         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7033         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7034         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7035         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7036         _IO_file_underflow, _IO_file_underflow_mmap,
7037         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7038         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7039         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7040         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7041         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7042         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7043         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7044         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7045         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7046         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7047         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7048         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7049         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7050         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7051         _IO_adjust_column_internal, _IO_default_uflow_internal,
7052         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7053         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7054         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7055         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7056         _IO_file_close_it_internal, _IO_file_underflow_internal,
7057         _IO_file_overflow_internal, _IO_file_attach_internal,
7058         _IO_file_fopen_internal, _IO_file_sync_internal,
7059         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7060         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7061         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7062         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7063         _IO_seekpos_unlocked): Likewise.
7064         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7065         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7066
7067 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7068
7069         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7070         argument in xmalloc size computation.
7071
7072 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7073
7074         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7075         math_opt_barrier and math_force_eval macros.
7076
7077 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7078
7079         [BZ #3306]
7080         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7081         * sysdeps/i386/fpu/math_private.h: New file.
7082         * sysdeps/x86_64/fpu/math_private.h: New file.
7083         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7084         math_force_eval macros.  Use "+m" constraint on asm rather than
7085         "=m" and "m".
7086         * math/s_nextafter.c (__nextafter): Likewise.
7087         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7088         Likewise.
7089         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7090         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7091         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7092         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7093         math_opt_barrier and math_force_eval macros.
7094         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7095         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7096         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7097         (__nexttoward): Use math_opt_barrier and
7098         math_force_eval macros.  Use "+m" constraint on asm rather than
7099         "=m" and "m".  Only use asm to force double result if
7100         FLT_EVAL_METHOD is 2.
7101         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7102         (__nexttowardf): Use math_opt_barrier and
7103         math_force_eval macros.  Use "+m" constraint on asm rather than
7104         "=m" and "m".  Only use asm to force double result if
7105         FLT_EVAL_METHOD is not 0.
7106         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7107         (__nexttowardf): Use math_opt_barrier and
7108         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7109         x to float using asm.
7110         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7111         (__nldbl_nexttowardf): Use math_opt_barrier and
7112         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7113         x to float using asm.
7114         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7115         (__nexttowardf): Use math_opt_barrier and math_force_eval
7116         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7117         * math/bug-nextafter.c (zero, inf): New variables.
7118         (main): Add new tests.
7119         * math/bug-nexttoward.c (zero, inf): New variables.
7120         (main): Add new tests.
7121
7122 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7123
7124         [BZ #3427]
7125         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7126         exceptions both in SW and MXCSR.
7127         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7128         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7129         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7130         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7131         in MXCSR if SSE is available.
7132         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7133         and ldsodefs.h.
7134         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7135         Fix comment typo.
7136         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7137         Return 0 rather than 1.
7138         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7139         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7140         * math/test-fenv.c (feholdexcept_tests): New function.
7141         (main): Call it.
7142
7143 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7144
7145         [BZ #3427]
7146         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7147         in SW.
7148
7149 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7150
7151         [BZ #4344]
7152         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7153         Reported by David Anderson <davea42@earthlink.net>.
7154
7155 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7156
7157         * posix/sys/wait.h: Remove unnecessary forward declaration.
7158
7159 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7160
7161         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7162         with obj->do_servers after first_shoot.
7163
7164 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7165
7166         * posix/Makefile (routines): Add sched_cpucount.
7167         (tests): Add tst-cpucount.
7168         * posix/sched_cpucount.c: New file.
7169         * posix/tst-cpucount.c: New file.
7170         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7171         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7172         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7173         * posix/sched.h: Define CPU_COUNT.
7174
7175 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7176
7177         * posix/fnmatch.c (STRUCT): Define.
7178         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7179         * posix/fnmatch_loop.c (struct STRUCT): New type.
7180         (FCT): Add ends argument.  If ends != NULL and normal * is
7181         seen in the pattern, store current pattern and string pointers
7182         and return.  Adjust recursive calls.
7183         (EXT): Adjust FCT callers.
7184         (STRUCT): Undef at the end of the file.
7185         * posix/Makefile (tests): Add tst-fnmatch2.
7186         * posix/tst-fnmatch2.c: New test.
7187
7188 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7189
7190         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7191         and 1 on failure.
7192
7193         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7194         Change last argument to unsigned int.
7195
7196 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7197
7198         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7199
7200 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7201
7202         * config.h.in (HAVE_LIBCAP): Add.
7203         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7204         sys/capabilities.h.
7205         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7206         free_caps.  Cast away const from 4th cap_set_flag argument.
7207
7208 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7209
7210         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7211         GLIBC_2.6.
7212         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7213         Add sync_file_range.
7214         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7215
7216 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7217
7218         * sysdeps/powerpc/bits/atomic.h
7219         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7220         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7221         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7222         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7223         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7224         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7225         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7226         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7227         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7228         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7229         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7230         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7231         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7232         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7233         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7234         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7235         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7236         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7237         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7238         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7239
7240 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7241
7242         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7243         (__cache_line_size): Define the variable here.  Add
7244         attribute_hidden, remove weak_extern.
7245         (__libc_start_main): Set __cache_line_size
7246         unconditionally.
7247         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7248         (__cache_line_size): Define the variable here.  Add
7249         attribute_hidden, remove weak_extern.
7250         (DL_PLATFORM_AUXV): Set __cache_line_size
7251         unconditionally.
7252         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7253         weak_extern, add attribute_hidden.
7254         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7255         defined in ld.so.
7256         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7257         definition.
7258         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7259
7260 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7261
7262         [BZ #4276]
7263         * timezone/africa: Update from tzdata2007d.
7264         * timezone/asia: Likewise.
7265         * timezone/australasia: Likewise.
7266         * timezone/backward: Likewise.
7267         * timezone/europe: Likewise.
7268         * timezone/iso3166.tab: Likewise.
7269         * timezone/leapseconds: Likewise.
7270         * timezone/northamerica: Likewise.
7271         * timezone/southamerica: Likewise.
7272         * timezone/zone.tab: Likewise.
7273
7274         * timezone/private.h: Update from tzcode2007d.
7275         * timezone/zdump.c: Likewise.
7276         * timezone/zic.c: Likewise.
7277
7278 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7279
7280         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7281         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7282         variables.
7283         (nis_server_cache_search, nis_server_cache_add): New functions.
7284         (__nisfind_server): Use them.  Add dbp and flags argument, if
7285         call __nisbind_create.
7286         (__nisbind_create): Add server_used and current_ep arguments,
7287         only call __nis_findfastest if server_used is ~0.
7288         (__do_niscall2, __prepare_niscall): Adjust callers.
7289         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7290         ckey_cache_euid, ckey_cache_lock): New variables.
7291         (get_ckey): New function.
7292         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7293         __pmap_getnisport.  Save __pmap_getnisport result in
7294         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7295         key.
7296         * nis/nis_lookup.c (nis_lookup): Likewise.
7297         * nis/nis_table.c (nis_list): Likewise.
7298         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7299         prototypes.
7300
7301         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7302         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7303         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7304         _nss_nisplus_getservbyport_r): Likewise.
7305         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7306         _nss_nisplus_getnetbyaddr_r): Likewise.
7307         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7308         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7309         _nss_nisplus_getntohost_r): Likewise.
7310         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7311         _nss_nisplus_getrpcbynumber_r): Likewise.
7312
7313 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7314
7315         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7316         * configure: Rebuilt.
7317
7318         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7319         bit-fields.
7320         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7321
7322 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7323
7324         [BZ #2831]
7325         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7326         bit-fields.
7327
7328 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7329
7330         * nscd/gai.c: Include alloca.h.
7331         (__libc_use_alloca): Define.
7332
7333 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7334
7335         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7336         smaller scopes.
7337         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7338         (DL_DST_REQUIRED): Adjust user.
7339
7340         * include/dlfcn.h (struct link_map): New forward decl.
7341
7342         * inet/getnameinfo.c: Include stddef.h.
7343         (getnameinfo): Use offsetof.
7344
7345         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7346
7347         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7348
7349         * string/strerror_l.c: Include stdlib.h.
7350
7351         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7352         * config.make.in (gnu89-inline-CFLAGS): New variable.
7353         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7354         -std=gnu99.
7355         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7356         * argp/argp.h: Use it.
7357         * bits/mathinline.h: Likewise.
7358         * bits/sigset.h: Likewise.
7359         * bits/string.h: Likewise.
7360         * ctype/ctype.h: Likewise.
7361         * hurd/hurd.h: Likewise.
7362         * hurd/hurd/fd.h: Likewise.
7363         * hurd/hurd/port.h: Likewise.
7364         * hurd/hurd/signal.h: Likewise.
7365         * hurd/hurd/threadvar.h: Likewise.
7366         * hurd/hurd/userlink.h: Likewise.
7367         * io/sys/stat.h: Likewise.
7368         * libio/bits/stdio.h: Likewise.
7369         * libio/bits/stdio2.h: Likewise.
7370         * mach/lock-intern.h: Likewise.
7371         * mach/mach/mig_support.h: Likewise.
7372         * math/bits/cmathcalls.h: Likewise.
7373         * posix/bits/unistd.h: Likewise.
7374         * socket/bits/socket2.h: Likewise.
7375         * stdlib/bits/stdlib.h: Likewise.
7376         * stdlib/stdlib.h: Likewise.
7377         * string/argz.h: Likewise.
7378         * string/bits/string2.h: Likewise.
7379         * string/bits/string3.h: Likewise.
7380         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7381         * sysdeps/generic/inttypes.h: Likewise.
7382         * sysdeps/generic/machine-lock.h: Likewise.
7383         * sysdeps/generic/machine-sp.h: Likewise.
7384         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7385         * sysdeps/i386/i486/bits/string.h: Likewise.
7386         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7387         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7388         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7389         * sysdeps/mach/i386/machine-lock.h: Likewise.
7390         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7391         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7392         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7393         * sysdeps/s390/bits/string.h: Likewise.
7394         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7395         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7396         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7397         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7398         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7399         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7400         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7401         * wcsmbs/bits/wchar2.h: Likewise.
7402         * wcsmbs/wchar.h: Likewise.
7403         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7404         __extern_inline definition.
7405
7406 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7407
7408         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7409         NULL.
7410
7411         [BZ #3919]
7412         * math/libm-test.inc (log_test): Test -Inf and NaN.
7413         (log10_test, log1p_test, log2_test): Test -Inf.
7414         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7415         FE_INVALID when argument is qNaN.
7416         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7417         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7418         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7419         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7420         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7421         testb $4, %ah and jump if non-zero.
7422         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7423         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7424
7425         [BZ #4101]
7426         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7427         ancestors with the same depths.
7428         Patch by Niels Moeller <nisse@lysator.liu.se>.
7429         (filter_doc): Don't crash if argp is NULL.
7430         * argp/Makefile (tests): Add tst-argp2.
7431         * argp/tst-argp2.c: New test.
7432
7433         [BZ #4130]
7434         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7435         open_not_cancel_2.
7436         (updwtmp_file): Likewise.
7437
7438         [BZ #4181]
7439         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7440         (inet6_opt_append): Don't check extlen is big enough if extbuf
7441         is NULL.
7442         (inet6_opt_finish): Likewise.
7443         * inet/Makefile (tests): Add test-inet6_opt.
7444         * inet/test-inet6_opt.c: New test.
7445
7446         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7447         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7448         NLMSG_ERR.  Instead use a page sized buffer.
7449         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7450         buffer.
7451
7452 2007-03-14  Richard Henderson  <rth@redhat.com>
7453
7454         * sysdeps/alpha/fpu/s_llround.c: New file.
7455         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7456         * sysdeps/alpha/fpu/s_lround.c: New file.
7457         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7458         * sysdeps/alpha/fpu/s_round.c: New file.
7459         * sysdeps/alpha/fpu/s_roundf.c: New file.
7460         * sysdeps/alpha/fpu/s_trunc.c: New file.
7461         * sysdeps/alpha/fpu/s_truncf.c: New file.
7462
7463         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7464         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7465         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7466         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7467         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7468         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7469
7470         * sysdeps/alpha/fpu/s_fmax.S: New file.
7471         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7472         * sysdeps/alpha/fpu/s_fmin.S: New file.
7473         * sysdeps/alpha/fpu/s_fminf.S: New file.
7474         * sysdeps/alpha/fpu/s_isnan.c: New file.
7475         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7476         * sysdeps/alpha/fpu/s_llrint.c: New file.
7477         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7478         * sysdeps/alpha/fpu/s_lrint.c: New file.
7479         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7480         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7481         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7482
7483         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7484         (__fdimf, fdimf, __fdim, fdim): Remove.
7485         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7486         (__isnanf, __isnan, __isnanl): New.
7487
7488 2007-03-13  Richard Henderson  <rth@redhat.com>
7489
7490         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7491
7492 2007-03-13  Richard Henderson  <rth@redhat.com>
7493
7494         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7495         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7496         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7497         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7498         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7499         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7500
7501 2007-03-13  Richard Henderson  <rth@redhat.com>
7502
7503         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7504         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7505         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7506         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7507         Move to dl-auxv.h; initialize instead of extern weak.
7508         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7509         weak symbol.
7510         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7511         Extern instead of initialized.
7512
7513 2007-03-13  Richard Henderson  <rth@redhat.com>
7514
7515         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7516         __sigsuspend_nocancel.
7517
7518 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7519
7520         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7521         172.16/12 address range.
7522
7523 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7524
7525         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7526         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7527         message.
7528
7529 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7530
7531         [BZ #4069]
7532         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7533         earlier.
7534         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7535
7536         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7537         for x qNaN and y either +-inf or non-integer value.
7538         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7539         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7540         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7541
7542 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7543
7544         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7545         from sysdep_headers.
7546
7547 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7548
7549         * time/tzfile.c (find_transition): Instead of a linear search try to
7550         guess the transition index, use a linear search if the result is at
7551         most 10 transitions away from the guess or binary search otherwise.
7552
7553 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7554
7555         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7556         memory reallocation.
7557
7558 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7559
7560         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7561         and fix some typos.
7562         Optimize use of TOLOWER.
7563
7564         [BZ #3325]
7565         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7566         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7567         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7568
7569         [BZ #3458]
7570         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7571         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7572
7573         [BZ #4076]
7574         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7575         (open_dir_stream): Likewise.
7576         * io/Makefile (tests): Add bug-ftw5.
7577         * io/bug-ftw5.c: New file.
7578
7579         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7580         * nscd/servicescache.c (cache_addserv): Likewise.
7581
7582         * nscd/grpcache.c (cache_addgr): In case a record changed on
7583         refresh, adjust key_copy.
7584
7585         [BZ #4074]
7586         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7587         refresh, adjust key_copy.
7588
7589         [BZ #4070]
7590         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7591         special cases.
7592         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7593
7594 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7595
7596         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7597         optimization.
7598
7599         * stdio-common/vfscanf.c: Small cleanups throughout.
7600
7601 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7602
7603         [BZ #3325]
7604         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7605         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7606         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7607         Patch by Jared Casper <jaredcasper@gmail.com>.
7608
7609         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7610         * sysdeps/unix/opendir.c: Likewise.
7611         * sysdeps/unix/readdir.c: Likewise.
7612
7613         [BZ #2211]
7614         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7615         point numbers.
7616         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7617
7618         * stdio-common/vfscanf.c: Fix problems in width accounting.
7619         * stdio-common/tst-sscanf.c (double_tests): New tests.
7620         (main): Hook them up.
7621
7622         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7623         More simplifications of floating-point reader.
7624
7625         * stdio-common/Makefile (tests): Add tst-swscanf.
7626         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7627         testing.
7628         * stdio-common/tst-swscanf.c: New file.
7629
7630 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7631
7632         [BZ #2633]
7633         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7634         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7635         Remove using for __jmp_buf_tag.
7636         * locale/locale.h (struct lconv): Also define in std namespace.
7637         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7638
7639         [BZ #3842]
7640         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7641         using __libc_enable_secure.
7642
7643         [BZ #3818]
7644         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7645
7646         [BZ #3745]
7647         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7648         of names for ellipsises.
7649
7650         [BZ #3348]
7651         * malloc/memusage.sh: Cleanups.
7652         * debug/xtrace.sh: Quoting and trap changes.
7653
7654 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7655
7656         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7657
7658         * locale/iso-3166.def: Update entry for Serbia.
7659         * locale/iso-4217.def: Define RSD, remove CSD.
7660
7661         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7662         and 64-bit operations.
7663
7664         [BZ #4040]
7665         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7666         16-bit operations.
7667
7668         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7669         of writev.
7670
7671 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7672
7673         [BZ #3991]
7674         * assert/assert.h (assert): Simplify.
7675         (assert_perror): Likewise.
7676         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7677
7678         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7679         reqdata.
7680
7681         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7682         change: don't pass NULL in place of an integer.
7683
7684 2007-02-02  Bruno Haible  <bruno@clisp.org>
7685
7686         [BZ #3954]
7687         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7688         Add mapping for U+327E.
7689         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7690         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7691         mapping of 0xD9 0xE8.
7692         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7693         mapping of U+327E.
7694         Reported by Jungshik Shin <jungshik@google.com>.
7695
7696         [BZ #3955]
7697         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7698         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7699         Reported by Jungshik Shin <jungshik@google.com>.
7700
7701 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7702
7703         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7704         byte variants.
7705
7706         [BZ #4040]
7707         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7708         byte variants.  Patch mostly be tom@tommay.net.
7709
7710 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7711
7712         [BZ #3996]
7713         * posix/glob.c (attribute_hidden): Define if not defined.
7714         (glob): Unescape dirname, filename or username when needed and not
7715         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7716         is NULL.  Handle unescaped [ in pattern without closing ].
7717         Don't pass GLOB_CHECK down to recursive glob for directories.
7718         (__glob_pattern_type): New function.
7719         (__glob_pattern_p): Implement using __glob_pattern_type.
7720         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7721         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7722         Remove unreachable code.
7723         * posix/globtest.sh: Add a couple of new tests.
7724
7725 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7726
7727         * po/ru.po: Update from translation team.
7728
7729 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7730
7731         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7732         to the list of i486+ CPUs.
7733         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7734
7735 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7736
7737         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7738         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7739         references.
7740
7741 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7742
7743         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7744
7745         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7746         * resolv/res_mkquery.c: Define __res_nopt.
7747         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7748         try adding EDNS0 record.
7749         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7750         EDNS0 record was send make sure we don't try it again.
7751         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7752         * include/resolv.h: Declare __res_nopt.
7753
7754 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7755
7756         [BZ #3944]
7757         * time/strptime_l.c (__strptime_internal): Set have_mon for
7758         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7759         have been computed from tm_yday and tm_year.  Don't crash
7760         in day_of_the_week or day_of_the_year if not have_mon
7761         and tm_mon contains bogus value.
7762         * time/Makefile (tests): Add tst-strptime3.
7763         * time/tst-strptime3.c: New test.
7764
7765 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7766
7767         [BZ #3957]
7768         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7769         bit for RE_HAT_LISTS_NOT_NEWLINE.
7770         (build_charclass_op): Remove bogus comment.
7771         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7772         * posix/bug-regex27.c: New test.
7773         * posix/bug-regex28.c: New test.
7774
7775 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7776
7777         * po/sv.po: Update from translation team.
7778
7779 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7780
7781         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7782
7783 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7784
7785         * include/locale.h (__uselocale): Add libc_hidden_proto.
7786         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7787
7788         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7789         gettimeofday.
7790
7791 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7792
7793         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7794         returning.
7795         (PTR_DEMANGLE): Real definition now that it's not the same as
7796         PRT_MANGLE anymore.
7797         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7798
7799         * string/strerror_l.c: New file.
7800         * string/Makefile (routines): Add strerror_l.
7801         * string/string.h: Declare strerror_l.
7802         * string/Versions: Export strerror_l for GLIBC_2.6.
7803
7804 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7805
7806         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7807         as parameter.  Construct request record.  Try sending request
7808         before the first poll use, it usually succeeds.  Adjust all
7809         callers.
7810         * nscd/nscd-client.h: Define MAXKEYLEN.
7811         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7812
7813 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7814
7815         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7816         from return value.
7817         * nscd/nscd_helper.c: Include string.h.
7818         (__nscd_cache_search): Remove const qualifier from return value.
7819         On strict alignment architectures check hash entry and data head
7820         alignment.
7821         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7822         mmapped data during GC cycle contains garbage.  If
7823         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7824         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7825         dropped to 0.
7826         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7827         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7828         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7829         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7830         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7831
7832 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7833
7834         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7835
7836 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7837
7838         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7839         names not numbers in cfi_*.
7840
7841 2007-01-26  Andreas Jaeger  <aj@suse.de>
7842
7843         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7844         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7845         Correct values of PER_HPUX and PER_OSF4.
7846
7847 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7848
7849         * elf/dl-minimal.c: Undefine _itoa first.
7850         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7851         * malloc/mtrace.c: Revert last change.
7852         * posix/wordexp.c: Likewise.
7853
7854 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7855
7856         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7857         and __geode__ to the list of i486+ CPUs.
7858         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7859
7860 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7861
7862         * stdio-common/_itoa.c: Include <limits.h>.
7863         * stdio-common/_itowa.c: Likewise.
7864
7865 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7866
7867         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7868         platforms.
7869         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7870         64-bit platforms.
7871         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7872         possible.
7873         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7874         if possible.
7875
7876         [BZ #3902]
7877         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7878         * stdio-common/Makefile (tests): Add bug17.
7879         * stdio-common/bug17.c: New file.
7880
7881 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7882
7883         * iconvdata/brf.c: New file.
7884         * iconvdata/testdata/BRF: New file.
7885         * iconvdata/testdata/BRF..UTF8: New file.
7886         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7887         * iconvdata/Makefile: Add rules to build BRF.
7888         * iconvdata/TESTS: Add BRF entry.
7889         * iconvdata/gconv-modules: Likewise.
7890         * iconvdata/tst-tables.sh: Likewise.
7891
7892 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7893
7894         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7895         type `long long int', not `long int'.
7896         (wcstoq): Likewise.
7897
7898 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7899
7900         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7901         of values on 64-bit platforms which are too large.
7902
7903 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7904             Joe Kerian  <jkerian@us.us.ibm.com>
7905
7906         [BZ #2749]
7907         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7908         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7909         (__copysignl): Use signbit() for comparison.
7910         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7911         SET_LDOUBLE_WORDS64.
7912
7913         [BZ #2423, #2749]
7914         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7915         (__ceill): Remove calls to fegetround(), fesetround().
7916         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7917         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7918         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7919
7920 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7921
7922         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7923
7924         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7925
7926 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7927
7928         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7929         demangle pointer.
7930         * csu/libc-start.c: Likewise.
7931
7932 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7933
7934         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7935         really work anyway.
7936
7937 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7938
7939         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7940         users.
7941         (handle_request): Remove unnecessary tests.
7942
7943         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7944
7945 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7946
7947         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7948         workbits in semi-raw fraction.
7949
7950         * math/test-misc.c: Add new tests.
7951
7952 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7953
7954         * math/basic-test.c: Include test-skeleton.c.
7955         (TEST_TRUNC): Define.
7956         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7957         (main): Rename to ...
7958         (do_test): ...this.  Run new tests.
7959         (TEST_FUNCTION): Define.
7960
7961 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7962             Joe Kerian  <jkerian@us.us.ibm.com>
7963
7964         [BZ #2749]
7965         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7966         handling for high words.
7967         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7968         and overflow for infinity.
7969
7970 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7971
7972         * nscd/connections.c (handle_request): Add a __builtin_expect.
7973
7974         * nscd/connections.c (serv2db): Change type into structure which
7975         also says whether this is a request for data.  Renamed to
7976         servinfo.  All users changed.
7977         (handle_request): Much simpler test whether we should search the cache.
7978
7979         * nscd/connections.c (handle_request): Fix thinko in selinux test
7980         invocation.
7981
7982         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7983         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7984         it before getting dl_load_lock and then relock.
7985         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7986         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7987         case we unlocked the scope.
7988         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7989         _dl_lookup_symbol_x in case we locked the scope.
7990         (_dl_profile_fixup): Likewise.
7991         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7992         set DL_LOOKUP_SCOPE_LOCK.
7993
7994 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7995
7996         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7997         CFLAGS-getsrvbynpt_r.c.
7998         * nscd/getsrvbynm_r.c: New file.
7999         * nscd/getsrvbypt_r.c: New file.
8000         * nscd/nscd_getserv_r.c: New file.
8001         * nscd/servicescache.c: New file.
8002         * nscd/Makefile (routines): Add nscd_getserv_r.
8003         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8004         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8005         CFLAGS-getsrvbypt_r.c.
8006         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8007         table.  Add entries for services database.
8008         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8009         services database.
8010         (dbs): Add .reset_res and servdb initialization.
8011         (serv2db): Add entries for services database.
8012         (verify_persistent_db): Accept dbnr == servdb.
8013         (invalidate_cache): Rewrite database name recognition to use a table.
8014         Call res_init() if .reset_res is set for database.
8015         (handle_request): Add code to handle services database.
8016         * nscd/gai.c: Don't define __getservbyname_r.
8017         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8018         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8019         (serv_response_header): Define.
8020         (struct datahead): Add serv_response_header member.
8021         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8022         using table.
8023         * nscd/nscd.conf: Add entries for services database.
8024         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8025         Declare serv_iov_disabled.
8026         Declare addservbyname, readdservbyname, addservbyport, and
8027         readdservbyport.
8028         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8029         (find_db): Fix error message.
8030         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8031         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8032         * nscd/selinux.c (perms): Add entries for services database.
8033         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8034         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8035
8036         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8037         * nscd/hstcache.c: Likewise.
8038         * nscd/pwdcache.c: Likewise.
8039
8040         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8041         computation of keylen.
8042
8043         * include/string.h: Only redefine strndupa if this is really for
8044         libc code.
8045
8046 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8047
8048         * nscd/nscd_gethst_r.c: Minor cleanups.
8049
8050         * nscd/connections.c (handle_request): Check selinux permissions
8051         for all non-admin commands.
8052
8053         * sysdeps/i386/i486/bits/atomic.h: Define
8054         atomic_compare_and_exchange_val_acq,
8055         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8056         using __sync_* built-ins for gcc >= 4.1.
8057         * sysdeps/x86_64/bits/atomic.h: Likewise.
8058
8059         [BZ #3840]
8060         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8061         and .oS.d files.
8062
8063 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8064
8065         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8066         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8067         (do_test): Check errno and exit(0) if ENOSYS.
8068
8069 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8070
8071         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8072         thousands separators.
8073         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8074         * stdlib/tst-strtod4.c: New test.
8075
8076         [BZ #3855]
8077         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8078         hexadecimal digit should accept just the initial 0.
8079         * stdlib/tst-strtod2.c (tests): New variable.
8080         (do_test): Run several tests rather than just one.
8081
8082 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8083
8084         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8085         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8086
8087 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8088
8089         * io/fts.c: Make sure fts_cur is always valid after return from
8090         fts_read.
8091         Patch by Miloslav Trmac <mitr@redhat.com>.
8092
8093 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8094
8095         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8096         (R_MIPS_NUM): Bump by 1.
8097
8098 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8099
8100         * posix/execvp.c: Include alloca.h.
8101         (allocate_scripts_argv): Renamed to...
8102         (scripts_argv): ... this.  Don't allocate buffer here nor count
8103         arguments.
8104         (execvp): Use alloca if possible.
8105         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8106         * posix/tst-vfork3.c: New test.
8107
8108 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8109
8110         * string/Makefile (tst-strxfrm2-ENV): Define.
8111         * stdlib/Makefile (tst-strtod3-ENV): Define.
8112
8113 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8114
8115         * posix/getconf.c: Update copyright year.
8116         * nss/getent.c: Likewise.
8117         * iconv/iconvconfig.c: Likewise.
8118         * iconv/iconv_prog.c: Likewise.
8119         * elf/ldconfig.c: Likewise.
8120         * catgets/gencat.c: Likewise.
8121         * csu/version.c: Likewise.
8122         * elf/ldd.bash.in: Likewise.
8123         * elf/sprof.c (print_version): Likewise.
8124         * locale/programs/locale.c: Likewise.
8125         * locale/programs/localedef.c: Likewise.
8126         * nscd/nscd.c (print_version): Likewise.
8127         * debug/xtrace.sh: Likewise.
8128         * malloc/memusage.sh: Likewise.
8129         * malloc/mtrace.pl: Likewise.
8130         * debug/catchsegv.sh: Likewise.
8131
8132 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8133
8134         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8135         attempts.
8136
8137 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8138
8139         * posix/wordexp.c: Remove some unnecessary tests.
8140
8141 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8142
8143         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8144         blacklist the group till after we look it up.
8145
8146 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8147
8148         * include/atomic.h (atomic_forced_read): New macro.
8149
8150 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8151
8152         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8153
8154 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8155
8156         * nss/getXXbyYY_r.c: Include atomic.h.
8157         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8158         add atomic_write_barrier () in between.
8159
8160         * stdlib/Makefile (tests): Add tst-makecontext.
8161         * stdlib/tst-makecontext.c: New test.
8162
8163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8164         (__makecontext): Don't realign uc_mcontext.uc_regs.
8165
8166 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8167
8168         * elf/dl-support.c: Include dl-procinfo.h.
8169         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8170         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8171         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8172         Define.
8173         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8174         hardcoded constants.
8175         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8176         PPC_PLATFORM_* macros for array designators.
8177
8178 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8179
8180         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8181         names to the beginning.
8182         (_dl_powerpc_platforms): Add "power6x".
8183         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8184         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8185         (_DL_PLATFORMS_COUNT): Increase.
8186         (_dl_string_platform): Handle power6x case.
8187         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8188         PPC_FEATURE_POWER6_EXT): Define.
8189         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8190
8191 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8192
8193         [BZ #3747]
8194         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8195         [-2^31 .. 2^31) range.
8196         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8197         targets.
8198         * stdlib/tst-rand48-2.c: New test.
8199         * stdlib/Makefile (tests): Add tst-rand48-2.
8200
8201 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8202
8203         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8204
8205 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8206
8207         * misc/tst-pselect.c (do_test): Make sure the helper process is
8208         terminating when the test is aborted.
8209
8210 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8211
8212         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8213         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8214         Handle relatime mount option.
8215
8216         [BZ #2337]
8217         * libio/Makefile (tests): Add tst-setvbuf1.
8218         * libio/tst-setvbuf1.c: New file.
8219
8220 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8221
8222         [BZ #2337]
8223         * libio/genops.c (__uflow): Fix a typo.
8224         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8225         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8226         the narrow buffer size.
8227
8228 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8229
8230         [BZ #2337]
8231         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8232         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8233         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8234         in _flags.
8235         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8236         _IO_wstr_finish): Likewise.
8237         * libio/wmemstream.c (open_wmemstream): Likewise.
8238         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8239         even for wide streams.
8240
8241 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8242
8243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8244         kernel-features.h.
8245
8246 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8247
8248         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8249         separators also if no non-zero digits found.
8250         * stdlib/Makefile (tests): Add tst-strtod3.
8251
8252 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8253
8254         [BZ #3632]
8255         * include/features.h: Fix comment about default value for
8256         _POSIX_C_SOURCE.
8257
8258         [BZ #3664]
8259         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8260         empty parsed strings.
8261         * stdlib/Makefile (tests): Add tst-strtod2.
8262         * stdlib/tst-strtod2.c: New file.
8263
8264         [BZ #3673]
8265         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8266         computation.
8267         * stdlib/Makefile (tests): Add tst-atof2.
8268         * stdlib/tst-atof2.c: New file.
8269
8270         [BZ #3674]
8271         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8272         correctly if removing trailing zero of hex-float.
8273         * stdlib/Makefile (tests): Add tst-atof1.
8274         * stdlib/tst-atof1.c: New file.
8275
8276 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8277
8278         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8279         Start searching for next comma at p rather than rest.
8280         * misc/Makefile (tests): Add tst-mntent2.
8281         * misc/tst-mntent2.c: New test.
8282
8283         * misc/getusershell.c (initshells): Check for integer overflows.
8284         Make strings buffer one bigger as fgets always succeeds when second
8285         argument is 1.  Don't use calloc for shells array.  Disallow
8286         / as shell.
8287
8288 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8289
8290         * malloc/memusage.c: Handle realloc with new size of zero and
8291         non-NULL pointer correctly.
8292         (me): Really write first record twice.
8293         (struct entry): Make format bi-arch safe.
8294         (dest): Write out more realloc statistics.
8295         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8296
8297 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8298
8299         * nis/nis_subr.c (nis_getnames): Revert last change.
8300
8301 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8302
8303         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8304         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8305         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8306         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8307         ENOTTY.
8308         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8309         * io/tst-ttyname_r.c: New test.
8310
8311 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8312
8313         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8314
8315 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8316
8317         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8318         jump table entries.
8319
8320 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8321
8322         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8323         `clone' function to ensure proper unwinding stop of gdb.
8324         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8325
8326 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8327
8328         * nscd/nscd.init: Remove obsolete and commented-out -S option
8329         handling.
8330
8331 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8332
8333         [BZ #3514]
8334         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8335
8336         [BZ #3515]
8337         * manual/string.texi (strtok): Remove duplicate paragraph.
8338
8339 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8340
8341         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8342         libgcc not supporting `rflags' unwinding (register # >= 17).
8343
8344 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8347         succeeded.
8348
8349 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8350             Jakub Jelinek  <jakub@redhat.com>
8351             Jan Kratochvil  <jan.kratochvil@redhat.com>
8352
8353         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8354         unwind information.
8355         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8356         'restore_rt' even in the 'signal' directory.
8357         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8358
8359 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8360
8361         [BZ #3559]
8362         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8363         malloc crashed.  Don't allocate memory unnecessarily in each
8364         loop.
8365
8366 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8367
8368         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8369
8370 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8371
8372         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8373
8374 2006-11-18  Bruno Haible  <bruno@clisp.org>
8375
8376         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8377         __sysconf only after having tried to call getgroups32.
8378
8379 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8380
8381         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8382         addresses for IPv4 queries if they can be mapped.
8383
8384 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8385
8386         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8387         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8388         (signmask): Add .size directive.
8389         (othermask): Add .type directive.
8390
8391 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8392
8393         * po/nl.po: Update from translation team.
8394
8395         * timezone/zdump.c: Redo fix for BZ #3137.
8396
8397 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8398
8399         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8400         to first_unused after parsing :include: file.
8401
8402 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8403
8404         * timezone/africa: Update from tzdata2006o.
8405         * timezone/antarctica: Likewise.
8406         * timezone/asia: Likewise.
8407         * timezone/australasia: Likewise.
8408         * timezone/backward: Likewise.
8409         * timezone/europe: Likewise.
8410         * timezone/iso3166.tab: Likewise.
8411         * timezone/northamerica: Likewise.
8412         * timezone/southamerica: Likewise.
8413         * timezone/zone.tab: Likewise.
8414
8415         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8416         on machines with 64-bit time_t.
8417
8418         * timezone/checktab.awk: Update from tzcode2006o.
8419         * timezone/ialloc.c: Likewise.
8420         * timezone/private.h: Likewise.
8421         * timezone/scheck.c: Likewise.
8422         * timezone/tzfile.h: Likewise.
8423         * timezone/tzselect.ksh: Likewise.
8424         * timezone/zdump.c: Likewise.
8425         * timezone/zic.c: Likewise.
8426
8427         [BZ #3483]
8428         * elf/ldconfig.c (main): Call setlocale and textdomain.
8429         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8430
8431         [BZ #3480]
8432         * manual/argp.texi: Fix typos.
8433         * manual/charset.texi: Likewise.
8434         * manual/errno.texi: Likewise.
8435         * manual/filesys.texi: Likewise.
8436         * manual/lang.texi: Likewise.
8437         * manual/maint.texi: Likewise.
8438         * manual/memory.texi: Likewise.
8439         * manual/message.texi: Likewise.
8440         * manual/resource.texi: Likewise.
8441         * manual/search.texi: Likewise.
8442         * manual/signal.texi: Likewise.
8443         * manual/startup.texi: Likewise.
8444         * manual/stdio.texi: Likewise.
8445         * manual/sysinfo.texi: Likewise.
8446         * manual/syslog.texi: Likewise.
8447         * manual/time.texi: Likewise.
8448         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8449
8450         [BZ #3465]
8451         * sunrpc/clnt_raw.c: Minimal message improvements.
8452         * sunrpc/pm_getmaps.c: Likewise.
8453         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8454         * nis/nis_print_group_entry.c: Likewise.
8455         * locale/programs/repertoire.c: Likewise.
8456         * locale/programs/charmap.c: Likewise.
8457         * malloc/memusage.sh: Likewise.
8458         * elf/dl-deps.c: Likewise.
8459         * locale/programs/ld-collate.c: Likewise.
8460         * libio/vswprintf.c: Likewise.
8461         * malloc/memusagestat.c: Likewise.
8462         * sunrpc/auth_unix.c: Likewise.
8463         * sunrpc/rpc_main.c: Likewise.
8464         * nscd/cache.c: Likewise.
8465         * locale/programs/repertoire.c: Unify output messages.
8466         * locale/programs/charmap.c: Likewise.
8467         * locale/programs/ld-ctype.c: Likewise.
8468         * locale/programs/ld-monetary.c: Likewise.
8469         * locale/programs/ld-numeric.c: Likewise.
8470         * locale/programs/ld-time.c: Likewise.
8471         * elf/ldconfig.c: Likewise.
8472         * nscd/selinux.c: Likewise.
8473         * elf/cache.c: Likewise.
8474         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8475
8476         [BZ #3451]
8477         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8478         change atomic.
8479         (ceil): Likewise.
8480
8481 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8482
8483         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8484         if N is one bigger than return value.
8485         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8486         and l1 last arguments, if buf is defined, verify the return value
8487         equals to strlen (buf) and verify no byte beyond passed length
8488         is modified.
8489
8490 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8491
8492         * po/sv.po: Update from translation team.
8493
8494 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8495
8496         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8497         noinline attribute.
8498
8499 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8500
8501         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8502         noinline attribute.
8503
8504         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8505         Use __new_sys_siglist instead of _sys_siglist_internal as
8506         second macro argument.
8507         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8508         strong_alias.
8509
8510 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8511
8512         [BZ #3493]
8513         * posix/unistd.h (sysconf): Remove const attribute.
8514
8515         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8516         temporary or deprecated addresses.
8517         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8518
8519         * string/Makefile (tests): Add tst-strxfrm2.
8520         * string/tst-strxfrm2.c: New file.
8521
8522 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8523
8524         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8525         rather than r->r_brk.
8526
8527 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8528
8529         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8530         optimization even if needed > n.
8531
8532         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8533         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8534         return false, otherwise return true.
8535         (cache_rpath): Return decompose_rpath return value.
8536
8537 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8538
8539         * include/libc-symbols.h (declare_symbol): Rename to...
8540         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8541         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8542         .size directive.
8543         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8544         changes.
8545         * sysdeps/gnu/siglist.c: Likewise.
8546
8547 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8548
8549         * sysdeps/powerpc/fpu/bits/mathinline.h
8550         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8551         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8552
8553 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8554
8555         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8556         Update handling of cache descriptor 0x49 for new models.
8557         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8558         Likewise.
8559
8560 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8561
8562         * malloc/memusage.c (dest): Reset not_me back to false after
8563         printing statistics.
8564
8565 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8566
8567         * configure.in: Work around ld --help change and avoid -z relro
8568         test completely if the architecture doesn't care about security.
8569
8570 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8571
8572         * po/sv.po: Update from translation team.
8573
8574 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8575
8576         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8577         generate compatibility version.
8578
8579 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8580
8581         * configure.in: Relax -z relro requirement a bit.
8582
8583         * po/sv.po: Update from translation team.
8584
8585 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8586
8587         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8588         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8589         * elf/dl-close.c (_dl_close_worker): Likewise.
8590         * elf/dl-open.c (_dl_open_worker): Likewise.
8591         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8592
8593 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8594
8595         * configure.in: Require assembler support for visibility, compiler
8596         support for visibility and aliases, linker support for various -z
8597         options.
8598         * Makeconfig: Remove conditional code which now is unnecessary.
8599         * config.h.in: Likewise.
8600         * config.make.in: Likewise.
8601         * dlfcn/Makefile: Likewise.
8602         * elf/Makefile: Likewise.
8603         * elf/dl-load.c: Likewise.
8604         * elf/rtld.c: Likewise.
8605         * include/libc-symbols.h: Likewise.
8606         * include/stdio.h: Likewise.
8607         * io/Makefile: Likewise.
8608         * io/fstat.c: Likewise.
8609         * io/fstat64.c: Likewise.
8610         * io/fstatat.c: Likewise.
8611         * io/fstatat64.c: Likewise.
8612         * io/lstat.c: Likewise.
8613         * io/lstat64.c: Likewise.
8614         * io/mknod.c: Likewise.
8615         * io/mknodat.c: Likewise.
8616         * io/stat.c: Likewise.
8617         * io/stat64.c: Likewise.
8618         * libio/stdio.c: Likewise.
8619         * nscd/Makefile: Likewise.
8620         * stdlib/Makefile: Likewise.
8621         * stdlib/atexit.c: Likewise.
8622         * sysdeps/generic/ldsodefs.h: Likewise.
8623         * sysdeps/i386/dl-machine.h: Likewise.
8624         * sysdeps/i386/sysdep.h: Likewise.
8625         * sysdeps/i386/i686/memcmp.S: Likewise.
8626         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8627         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8628         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8629
8630         * Makerules: USE_TLS support is now default.
8631         * tls.make.c: Likewise.
8632         * csu/Versions: Likewise.
8633         * csu/libc-start.c: Likewise.
8634         * csu/libc-tls.c: Likewise.
8635         * csu/version.c: Likewise.
8636         * dlfcn/dlinfo.c: Likewise.
8637         * elf/dl-addr.c: Likewise.
8638         * elf/dl-cache.c: Likewise.
8639         * elf/dl-close.c: Likewise.
8640         * elf/dl-iteratephdr.c: Likewise.
8641         * elf/dl-load.c: Likewise.
8642         * elf/dl-lookup.c: Likewise.
8643         * elf/dl-object.c: Likewise.
8644         * elf/dl-open.c: Likewise.
8645         * elf/dl-reloc.c: Likewise.
8646         * elf/dl-support.c: Likewise.
8647         * elf/dl-sym.c: Likewise.
8648         * elf/dl-sysdep.c: Likewise.
8649         * elf/dl-tls.c: Likewise.
8650         * elf/ldconfig.c: Likewise.
8651         * elf/rtld.c: Likewise.
8652         * elf/tst-tls-dlinfo.c: Likewise.
8653         * elf/tst-tls1.c: Likewise.
8654         * elf/tst-tls10.h: Likewise.
8655         * elf/tst-tls14.c: Likewise.
8656         * elf/tst-tls2.c: Likewise.
8657         * elf/tst-tls3.c: Likewise.
8658         * elf/tst-tls4.c: Likewise.
8659         * elf/tst-tls5.c: Likewise.
8660         * elf/tst-tls6.c: Likewise.
8661         * elf/tst-tls7.c: Likewise.
8662         * elf/tst-tls8.c: Likewise.
8663         * elf/tst-tls9.c: Likewise.
8664         * elf/tst-tlsmod1.c: Likewise.
8665         * elf/tst-tlsmod13.c: Likewise.
8666         * elf/tst-tlsmod13a.c: Likewise.
8667         * elf/tst-tlsmod14a.c: Likewise.
8668         * elf/tst-tlsmod2.c: Likewise.
8669         * elf/tst-tlsmod3.c: Likewise.
8670         * elf/tst-tlsmod4.c: Likewise.
8671         * elf/tst-tlsmod5.c: Likewise.
8672         * elf/tst-tlsmod6.c: Likewise.
8673         * include/errno.h: Likewise.
8674         * include/link.h: Likewise.
8675         * include/tls.h: Likewise.
8676         * locale/global-locale.c: Likewise.
8677         * locale/localeinfo.h: Likewise.
8678         * malloc/arena.c: Likewise.
8679         * malloc/hooks.c: Likewise.
8680         * malloc/malloc.c: Likewise.
8681         * resolv/Versions: Likewise.
8682         * sysdeps/alpha/dl-machine.h: Likewise.
8683         * sysdeps/alpha/libc-tls.c: Likewise.
8684         * sysdeps/generic/ldsodefs.h: Likewise.
8685         * sysdeps/generic/tls.h: Likewise.
8686         * sysdeps/i386/dl-machine.h: Likewise.
8687         * sysdeps/ia64/dl-machine.h: Likewise.
8688         * sysdeps/ia64/libc-tls.c: Likewise.
8689         * sysdeps/mach/hurd/fork.c: Likewise.
8690         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8691         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8692         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8693         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8694         * sysdeps/s390/libc-tls.c: Likewise.
8695         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8696         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8697         * sysdeps/sh/dl-machine.h: Likewise.
8698         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8699         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8700         * sysdeps/x86_64/dl-machine.h: Likewise.
8701
8702         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8703         split out locking and parameter checking.
8704         (_dl_close): Call _dl_close_worker after locking and checking.
8705         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8706         _dl_close.
8707         * elf/Makefile: Add rules to build and run tst-thrlock.
8708         * elf/tst-thrlock.c:  New file.
8709
8710         [BZ #3426]
8711         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8712         reality.
8713
8714         [BZ #3429]
8715         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8716         we are sure we do not need it anymore for _dl_close.  Also move
8717         the asserts inside the lock region.
8718         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8719
8720 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8721
8722         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8723         argument.
8724         (_dl_lookup_symbol_x): Adjust caller.
8725
8726         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8727         _ns_global_scope.
8728         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8729
8730         * elf/dl-libc.c: Revert l_scope name changes.
8731         * elf/dl-load.c: Likewise.
8732         * elf/dl-object.c: Likewise.
8733         * elf/rtld.c: Likewise.
8734         * elf/dl-close.c (_dl_close): Likewise.
8735         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8736         always use __rtld_mrlock_{change,done}.  Always free old scope list
8737         here if not l_scope_mem.
8738         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8739         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8740         the lookup and __rtld_mrlock_unlock it after the lookup.
8741         * elf/dl-sym.c: Likewise.
8742         * include/link.h (struct r_scoperec): Remove.
8743         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8744         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8745
8746 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8747
8748         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8749
8750 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8751
8752         * configure.in: Disable building profile libraries by default.
8753
8754 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8755
8756         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8757         as signed longs, check for x_base + pos overflow.
8758         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8759         * sunrpc/tst-xdrmem2.c: New test.
8760
8761 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8762
8763         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8764         _dl_lookup_symbol_x code.
8765
8766 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8767
8768         * elf/dl-runtime.c: Include sysdep-cancel.h.
8769         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8770         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8771         instead of catomic_* macros.
8772         * elf/dl-sym.c: Include sysdep-cancel.h.
8773         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8774         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8775         * elf/dl-close.c: Include sysdep-cancel.h.
8776         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8777         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8778         * elf/dl-open.c: Include sysdep-cancel.h.
8779         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8780         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8781
8782 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8783
8784         [BZ #3313]
8785         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8786         fastbin rather than end of fastbin array.
8787
8788 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8789
8790         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8791         body macro.
8792         * sysdeps/x86_64/bits/atomic.h
8793         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8794         (catomic_decrement): Use correct body macro.
8795
8796 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8797
8798         * include/atomic.h: Add a unique prefix to all local variables
8799         in macros.
8800         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8801
8802 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8803
8804         [BZ #3369]
8805         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8806         and 7.
8807
8808 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8809
8810         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8811
8812 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8813
8814         [BZ #3313]
8815         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8816         determine highest fast bin to consolidate, always look into all of
8817         them.
8818         (do_check_malloc_state): Only require for empty bins for large
8819         sizes in main arena.
8820
8821         * libio/stdio.h: Add more __wur attributes.
8822
8823         * elf/dl-minimal.c (realloc): Optimize last patch.
8824
8825 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8826
8827         [BZ #3352]
8828         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8829         and use memcpy() if it does.
8830
8831 2006-11-12  Andreas Jaeger  <aj@suse.de>
8832
8833         [BZ #2510]
8834         * manual/search.texi (Hash Search Function): Clarify.
8835         (Array Search Function): Clarify.
8836
8837 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8838
8839         [BZ #2830]
8840         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8841         shifting.
8842         * math/atest-exp2.c (read_mpn_hex): Likewise.
8843         * math/atest-sincos.c (main): Likewise.
8844
8845 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8846
8847         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8848         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8849         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8850         version GLIBC_2.6.
8851         * Versions.def: Add GLIBC_2.6 for libc.
8852
8853         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8854
8855         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8856
8857 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8858
8859         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8860
8861         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8862
8863         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8864         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8865
8866 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8867
8868         * include/atomic.c: Define catomic_* operations.
8869         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8870         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8871         * malloc/memusage.c: Likewise.
8872         * gmon/mcount.c: Likewise.
8873         * elf/dl-close.c: Likewise.
8874         * elf/dl-open.c: Likewise.
8875         * elf/dl-profile.c: Likewise.
8876         * elf/dl-sym.c: Likewise.
8877         * elf/dl-runtime.c: Likewise.
8878         * elf/dl-fptr.c: Likewise.
8879         * resolv/res_libc.c: Likewise.
8880
8881 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8882
8883         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8884         components which lack them.
8885
8886         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8887         at least one entry consisting of the parameter concatenated with
8888         the domain.
8889
8890 2006-10-10  Roland McGrath  <roland@frob.com>
8891
8892         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8893         * sysdeps/mach/hurd/futimes.c: Likewise.
8894         * sysdeps/mach/hurd/lutimes.c: Likewise.
8895
8896 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8897             Jakub Jelinek  <jakub@redhat.com>
8898
8899         Implement reference counting of scope records.
8900         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8901         from the list in objects which remain.  Always allocate new scope
8902         record.
8903         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8904         don't resize, allocate a new one.
8905         * elf/dl-runtime.c: Update reference counters before using a scope
8906         array.
8907         * elf/dl-sym.c: Likewise.
8908         * elf/dl-libc.c: Adjust for l_scope name change.
8909         * elf/dl-load.c: Likewise.
8910         * elf/dl-object.c: Likewise.
8911         * elf/rtld.c: Likewise.
8912         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8913         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8914         Add l_scoperec_lock.
8915         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8916         * sysdeps/generic/rtld-lowlevel.h: New file.
8917
8918         * include/atomic.h: Rename atomic_and to atomic_and_val and
8919         atomic_or to atomic_or_val.  Define new macros atomic_and and
8920         atomic_or which do not return values.
8921         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8922         Various cleanups.
8923         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8924
8925         * po/sv.po: Update from translation team.
8926
8927 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8928
8929         * Versions.def: Add GLIBC_2.6 to libpthread.
8930
8931         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8932         (versioned_symbol): Likewise.
8933         (compat_symbol): Likewise.
8934
8935         * po/tr.po: Update from translation team.
8936
8937 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8938
8939         * nis/Banner: Removed.  It's been integral part forever and the
8940         author info is incomplete anyway.
8941         * libio/Banner: Likewise.
8942
8943         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8944         code, make sure the nis_freeresult call doesn't crash and that the
8945         result is reported correctly.
8946
8947 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8948
8949         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8950         when callback is NULL.
8951
8952         * nis/Versions (libnss_nisplus): Add
8953         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8954         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8955         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8956         _nss_create_tablename): Rename to...
8957         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8958         ... these.  No longer static.
8959         (internal_setgrent): Adjust users.
8960         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8961         Don't use locking around _nss_grp_create_tablename call.
8962         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8963
8964 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8965
8966         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8967
8968 2006-10-06  Andreas Jaeger  <aj@suse.de>
8969
8970         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8971
8972 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8973
8974         * po/pl.po: Update from translation team.
8975
8976         * nscd/nscd.c (main): Fix typo in message.
8977         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8978
8979 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8980
8981         [BZ #3291]
8982         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8983         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8984         (__sigprocmask): Define.
8985
8986 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8987
8988         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8989         used.
8990
8991 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8992
8993         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8994         in oldtotal and newtotal calculation.
8995         * nscd/nscd-client.h (struct mapped_database): Add datasize
8996         field.
8997         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8998         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8999         increased.
9000         (__nscd_cache_search): Add checks to make sure we never reference
9001         data beyond the current mapping.
9002
9003 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9004
9005         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9006         variables const to avoid compiler warnings.
9007
9008         * io/fts.c (fts_close): Remove redundant checks.
9009         (fts_build): Likewise.
9010         (fts_palloc): Likewise.
9011
9012         * manual/message.texi (Advanced gettext functions,
9013         Using gettextized software): Fix typos.
9014
9015 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9016
9017         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9018         explain why there are no leaks.
9019
9020 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9021
9022         * libio/wmemstream.c: Include <wchar.h>.
9023         * libio/bug-wmemstream1.c: Likewise.
9024         * libio/tst-wmemstream1.c: Likewise.
9025         * libio/tst-wmemstream2.c: Likewise.
9026
9027         * version.h (RELEASE): Bump to 2.5.
9028         * README: Regenerated.
9029
9030         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9031
9032         [BZ #3273]
9033         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9034         found no group members.
9035         Patch by Petr Baudis.
9036
9037 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9038
9039         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9040         assert bootstrap_map.l_tls_modid is zero.
9041         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9042         if USE___THREAD.
9043
9044 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9045
9046         * libio/stdio.h: Move open_wmemstream prototype to ...
9047         * wcsmbs/wchar.h: ... here.
9048
9049 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9050
9051         [BZ #3252]
9052         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9053         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9054         __{,l}chown to handle the rest.
9055         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9056         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9057         __{,l}chown to handle the rest.
9058         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9059         i386/fchownat.c.
9060         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9061         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9062
9063         [BZ #3253]
9064         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9065         time, rather allocate increasingly bigger arrays of pointers, if
9066         possible with alloca, if too large with malloc.
9067
9068 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9069
9070         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9071
9072         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9073
9074 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9075
9076         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9077         home addresses.
9078         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9079         IFA_F_HOMEADDRESS flag for interfaces.
9080         * include/ifaddrs.h (struct in6addrinfo): Define
9081         in6ai_homeaddress.
9082
9083 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9084
9085         [BZ #3225]
9086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9087         PTR_DEMANGLE3): Define.
9088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9089         PTR_DEMANGLE3): Likewise.
9090         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9091         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9092         Likewise.
9093         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9094
9095 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9096
9097         * po/libc.pot: Regenerated.
9098         * po/be.po: Updated.
9099         * po/ca.po: Likewise.
9100         * po/cs.po: Likewise.
9101         * po/da.po: Likewise.
9102         * po/de.po: Likewise.
9103         * po/el.po: Likewise.
9104         * po/en_GB.po: Likewise.
9105         * po/es.po: Likewise.
9106         * po/fi.po: Likewise.
9107         * po/fr.po: Likewise.
9108         * po/gl.po: Likewise.
9109         * po/hr.po: Likewise.
9110         * po/hu.po: Likewise.
9111         * po/ja.po: Likewise.
9112         * po/ko.po: Likewise.
9113         * po/nb.po: Likewise.
9114         * po/nl.po: Likewise.
9115         * po/pl.po: Likewise.
9116         * po/pt_BR.po: Likewise.
9117         * po/ru.po: Likewise.
9118         * po/rw.po: Likewise.
9119         * po/sk.po: Likewise.
9120         * po/sv.po: Likewise.
9121         * po/tr.po: Likewise.
9122         * po/zh_CN.po: Likewise.
9123         * po/zh_TW.po: Likewise.
9124
9125         [BZ #3137]
9126         * iconv/iconv_prog.c (main): Fix spelling in error message.
9127         * iconv/iconvconfig.c (main): Likewise.
9128         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9129         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9130         * locale/programs/localedef.c (main): Likewise.
9131         * locale/programs/repertoire.c (repertoire_read): Likewise.
9132         * timezone/zdump.c (main): Likewise.
9133         * nscd/connections.c (handle_request): Fix spelling in log message.
9134         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9135
9136 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9137
9138         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9139         interfaces.
9140
9141 2006-09-20  Andreas Jaeger  <aj@suse.de>
9142
9143         * math/libm-test.inc (lrint_test_upward): Fix typo.
9144
9145 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9146
9147         [BZ #2592]
9148         * math/libm-test.inc (lrint_test_tonearest): New function.
9149         (lrint_test_towardzero): New function.
9150         (lrint_test_downward): New function.
9151         (lrint_test_upward): New function.
9152         (main): Run these new tests.
9153         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9154         of values near to 0.
9155         (two52): Use double not long double.
9156         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9157         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9158         (two23): Use float not double.
9159         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9160         (two23): Use float not double.
9161         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9162         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9163         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9164         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9165
9166 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9167
9168         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9169         Cast sp to unsigned long to avoid compiler warning.
9170         Use __makecontext_ret function instead of a trampoline on the stack.
9171         (__makecontext_ret): New function.
9172         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9173
9174 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9175
9176         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9177         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9178         bits.
9179
9180 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9181
9182         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9183         sure no reference to the unloaded map's search list remains in the
9184         dependency's scope.
9185
9186 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9187
9188         * elf/Makefile: Add rules to build and run unload7 test.
9189         * elf/unload7.c: New test.
9190         * elf/unload7mod1.c: New file.
9191         * elf/unload7mod2.c: New file.
9192
9193 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9194
9195         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9196         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9197         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9198         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9199         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9200         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9201         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9202         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9203         PTRACE_GETEVENTMSG): Likewise.
9204         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9205         values.
9206
9207 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9208
9209         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9210         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9211         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9212         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9213
9214 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9215
9216         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9217         write '\0' to the fd.
9218         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9219         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9220         Change regs to unsigned long pointer from unsigned int, fix fscr
9221         offset.
9222
9223 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9224
9225         * io/Makefile (CFLAGS-fstatat.c): Set.
9226         (CFLAGS-fstatat64.c): Likewise.
9227         (CFLAGS-mknodat.c): Likewise.
9228
9229         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9230         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9231         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9232         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9233
9234 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9235             Steven Munroe  <sjmunroe@us.ibm.com>
9236
9237         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9238         names to the beginning.  Rename "cell" to "cellbe".
9239         (_dl_powerpc_platforms): New.
9240         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9241         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9242         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9243         (_DL_HWCAP_PLATFORM): Define to new mask.
9244         (_dl_platform_string, _dl_string_platform): New functions.
9245         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9246         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9247
9248 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9249
9250         [BZ #2526]
9251         * README.libm: Fix a thinko in sqrt algorithm description.
9252
9253         [BZ #3143]
9254         * manual/string.texi (argz_delete): Fix prototype.
9255         Patch by <alpt@freaknet.org>.
9256
9257 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9258
9259         [BZ #3138]
9260         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9261         * io/tst-fcntl.c (do_prepare): Likewise.
9262         * posix/tst-exec.c (do_prepare): Likewise.
9263         * posix/tst-preadwrite.c (do_prepare): Likewise.
9264         * posix/tst-spawn.c (do_prepare): Likewise.
9265         * posix/tst-truncate.c (do_prepare): Likewise.
9266         * rt/tst-aio.c (do_prepare): Likewise.
9267         * rt/tst-aio64.c (do_prepare): Likewise.
9268         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9269         size_t.
9270
9271 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9272
9273         [BZ #2821]
9274         * time/mktime.c (guess_time_tm): Fix overflow detection.
9275         * time/Makefile (tests): Add bug-mktime1.
9276         * time/bug-mktime1.c: New file.
9277
9278         [BZ #3189, #3188]
9279         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9280         (mremap): Likewise.
9281
9282 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9283
9284         [BZ #1006]
9285         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9286         Ensure relocation doesn't clobber any bits outside of the
9287         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9288         R_SPARC_HI22 and R_SPARC_H44.
9289
9290         [BZ #2775]
9291         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9292         (long) (MINSIZE + nb - old_size) is positive.
9293
9294         * malloc/arena.c (grow_heap): When growing bail even if new_size
9295         is negative.
9296
9297         [BZ #3155]
9298         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9299         stack below r1.
9300
9301 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9302
9303         * posix/regex_internal.c (re_string_reconstruct): Handle
9304         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9305         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9306         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9307         re_string_context_at.
9308         * posix/Makefile: Add rules to build and run bug-regex26 test.
9309         * posix/bug-regex26.c: New test.
9310
9311         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9312         rather than col_sym_free.  Move seqp declaration earlier.
9313
9314         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9315
9316 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9317
9318         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9319         decl before first goto out.
9320
9321 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9322
9323         * Makerules (shlib.lds): If have-hash-style, put .hash section
9324         at the end of the RO segment.
9325
9326 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9327
9328         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9329         style hash table format is used.
9330
9331 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9332
9333         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9334         randomization rather than before.
9335         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9336
9337 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9338
9339         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9340
9341         * malloc/malloc.c (_int_malloc): Use full list insert and not
9342         shortcut which assumes the list is empty for large requests
9343         too.
9344
9345         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9346
9347 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9348
9349         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9350         and offout arguments to the prototype.
9351         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9352         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9353         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9354         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9355         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9356         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9357         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9358         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9359
9360 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9361
9362         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9363
9364         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9365         dlopen parameters.
9366
9367 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9368
9369         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9370         only if herrno is NETDB_INTERNAL.  Handle errors other than
9371         ERANGE outside of the loops, handle TRY_AGAIN.
9372
9373         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9374         if other's ctype category was missing.
9375         * locale/programs/ld-collate.c (collate_read): Return if
9376         copy_locale's collate category is missing.
9377
9378 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9379
9380         [BZ #2684]
9381         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9382         arenas if allocation failed.
9383         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9384
9385 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9386
9387         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9388         waste bins[0..1].
9389         (malloc_state): Reduce bins size by 2.
9390         (_int_malloc): Fix test for large enough buffer for early termination.
9391         When no unsorted block matches perfectly and an exiting block has
9392         to be split, use full list insert and not shortcut which assumes
9393         the list is empty.
9394
9395         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9396         failure.
9397
9398 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9399
9400         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9401         do anything.
9402
9403         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9404         symbol require exact match (these are PLTs).
9405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9406         (_dl_ppc64_addr_sym_match): Likewise.
9407
9408         [BZ #2683]
9409         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9410         If symbol has a value use it.
9411         * elf/tst-dladdr1.c: New file.
9412         * elf/Makefile: Add rules to build and run tst-addr1.
9413
9414 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9415
9416         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9417         keeps failing and heap growth or new heap creation isn't
9418         successful either.
9419         * malloc/tst-malloc.c (main): Add new tests.
9420
9421 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9422
9423         [BZ #2734]
9424         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9425         as in the x86-64 code to use bswap.
9426
9427 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9428
9429         [BZ #2680]
9430         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9431         __USE_UNIX98.
9432         * posix/bits/unistd.h: Likewise.
9433
9434 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9435
9436         [BZ #2751]
9437         * string/strchr.c: Add cast to avoid warning.
9438
9439 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9440
9441         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9442         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9443         limit is needed to avoid the exploding of the address space
9444         requirement for secondary heaps.
9445         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9446         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9447
9448 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9449
9450         [BZ #3018]
9451         * Makerules (depfiles): Handle extra-test-objs the same as
9452         extra-objs.
9453         (common-mostlyclean): Likewise.
9454         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9455         instead.
9456         * elf/Makefile (extra-objs): Likewise.
9457         * stdlib/Makefile (extra-objs): Likewise.
9458
9459 2006-08-14  Eric Blake  <ebb9@byu.net>
9460
9461         [BZ #3044]
9462         * misc/error.h: Assume C89 or better.
9463         * misc/error.c: Likewise.
9464
9465 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9466
9467         [BZ #3040]
9468         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9469         __ASSUME_ATFCTS is defined.
9470
9471 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9472
9473         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9474         to sort in each call.
9475
9476         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9477         is empty simply return and use next service.
9478         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9479
9480         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9481         tells us when not finding a charmap file is an error.
9482         * locale/programs/charmap.h: Adjust charmap_read prototype.
9483         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9484         cannot find a charmap.
9485         * locale/programs/localedef.c (main): Adjust charmap_read call.
9486
9487 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9488
9489         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9490         sysdeps/posix/pause.c implementation instead.
9491
9492 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9493
9494         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9495         to EPERM.
9496
9497 2006-08-13  Andreas Schwab  <schwab@suse.de>
9498
9499         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9500         Don't clobber caller's LRSAVE.
9501         (_dl_prof_resolve): Likewise.
9502
9503 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9504
9505         [BZ #1996]
9506         * libio/memstream.c (open_memstream): Allocate initial buffer with
9507         calloc.
9508         * libio/wmemstream.c (open_wmemstream): Likewise.
9509         * libio/strops.c: Pretty printing.
9510         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9511         (enlarge_userbuf): New function.
9512         (_IO_str_seekoff): Call it if seek position is larger than current
9513         buffer.
9514         * libio/wstrops.c: Likewise.
9515         * libio/vasprintf.c: Add comment as to why we do not have to use
9516         calloc instead of malloc to allocate initial buffer.
9517         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9518         * libio/bug-memstream1.c: New file.
9519         * libio/bug-wmemstream1.c: New file.
9520
9521 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * libio/wstrops.c: Remove dead macro definitions and comments.
9524         * libio/strops.c: Likewise.
9525
9526         [BZ #2764]
9527         * login/utmpname.c (__utmpname): Remove unnecessary test.
9528
9529 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9530
9531         [BZ #2832]
9532         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9533         0s from integers.
9534
9535 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9536
9537         [BZ #2987]
9538         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9539         for CPU clocks.
9540         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9541         setting of CPU clocks.
9542
9543 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         [BZ #2841]
9546         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9547         since C99 requires the result to promote to 'int' when uint_least8_t
9548         and uint_least16_t promote to 'int'.
9549
9550 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9551
9552         [BZ #3013]
9553         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9554         lenght of one output field, correct bitmask creation.
9555         * locale/programs/ld-time.c: Add alignment.
9556
9557         [BZ #2997]
9558         * misc/error.c: Add space between program name and message if file
9559         name is missing.
9560
9561 2006-08-03  Eric Blake  <ebb9@byu.net>
9562
9563         [BZ #2998]
9564         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9565
9566 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9567
9568         * malloc/memusagestat.c: Silence warnings.
9569
9570         * malloc/malloc.c: Dynamically size mmap treshold if the program
9571         frees mmaped blocks.
9572         Patch by Valerie Henson and Arjan van de Ven.
9573
9574 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9575
9576         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9577         __USE_GNU.
9578
9579         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9580         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9581         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9582         Only provide var definitions in strtol_l (or for *ull*
9583         in strtoll_l).
9584
9585         * stdio-common/bug16.c (tests): New array.
9586         (do_tests): Allow the first hexadecimal digit
9587         to be 1, 2, 4 or 8.  Do 3 additional tests.
9588
9589         * sysdeps/s390/fpu/libm-test-ulps: Update.
9590
9591         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9592         fchownat syscall if available.
9593         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9594         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9595         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9596
9597 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9598
9599         * nis/nis_xdr.c: Avoid some function calls.
9600
9601 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9602             Ulrich Drepper  <drepper@redhat.com>
9603
9604         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9605         short cut if only one name component is stripped away.
9606
9607 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9608
9609         * nis/nis_call.c: Minor cleanups throughout.
9610         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9611         (first_shoot): Add search_parent_first parameter.  Only if it is set
9612         search parent server first.
9613         If directory for table found through cold start cache is not the same
9614         as referenced in the cache, don't use it.
9615         (__nisfind_server): Take additional parameter.  Pass it on to
9616         first_shoot.
9617         (__prepare_niscall): Adjust __nisfind_server call.
9618         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9619         * nis/nis_table.c: Adjust __nisfind_server call.
9620         * nis/nis_lookup.c: Likewise.
9621         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9622
9623 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9624
9625         [BZ #2182]
9626         * math/s_cacosh.c: Return values from positive branch.
9627         * math/s_cacoshf.c: Likewise.
9628         * math/s_cacoshl.c: Likewise.
9629
9630         [BZ #2883]
9631         * sysvipc/sys/msg.h: Change return value to ssize_t.
9632         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9633         * sysvipc/msgrcv.c: Likewise.
9634         * include/sys/msg.h: Likewise.
9635
9636         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9637         test introduced in patch for bz #661.
9638         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9639         element for NEWGROUPS.
9640
9641         [BZ #2908]
9642         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9643         'f', use '1' as leading digit not '\1'.
9644         * stdio-common/Makefile (tests): Add bug16.
9645         * stdio-common/bug16.c: New file.
9646
9647         [BZ #2914]
9648         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9649         and don't try to open it.  The patch introducing the macro
9650         contained a bug and used the same file name as the new file
9651         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9652         this out completely.
9653
9654         [BZ #2926]
9655         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9656         Patch by Jerry James <Jerry.James@usu.edu>.
9657
9658         * rt/Makefile (tests): Add tst-clock2.
9659         * rt/tst-clock2.c: New file.
9660
9661         [BZ #2978]
9662         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9663         function and its parameters and pass it to new thread.
9664         (__gai_notify): Add support for alternative waiting for completion.
9665         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9666         waiting for completion.
9667         * resolv/getaddrinfo_a.c: Likewise.
9668         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9669         waiting for completion is used.
9670         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9671         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9672         * resolv/gai_error.c: Likewise.
9673         * resolv/gai_sigqueue.c: Likewise.
9674
9675 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9676
9677         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9678         errno to EBADF and return MACH_PORT_NULL.
9679
9680 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9681
9682         [BZ #2980]
9683         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9684
9685 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9686
9687         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9688         walk them instead of the symbol table.
9689
9690 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9691
9692         [BZ #2098]
9693         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9694         status of NSS calls, not the number of returned entries.
9695
9696         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9697         request_key, keyctl.
9698
9699 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9700
9701         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9702
9703 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9704
9705         * elf/tst-auditmod1.c: Fix typo in #error.
9706
9707 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9708
9709         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9710
9711         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9712
9713 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9714
9715         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9716         that the directory is empty even on non-POSIX filesystems.
9717
9718 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9719
9720         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9721
9722         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9723         the backend NSS module.  If backend setgrent call failed, don't have
9724         internal_setgrent fail.  Just remember this until it is needed.
9725         * nis/nss_compat/compat-pwd.c: Likewise.
9726         * nis/nss_compat/compat-spwd.c: Likewise.
9727
9728 2006-07-30  Roland McGrath  <roland@redhat.com>
9729
9730         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9731         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9732         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9733         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9734
9735         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9736         (nanosleep_not_cancel): New macro.
9737         (sigsuspend_not_cancel): new macro.
9738         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9739         (do_sigsuspend): Define as inline.
9740         (__sigsuspend): Always use do_sigsuspend.
9741         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9742         * include/signal.h: Declare __sigsuspend_nocancel.
9743         * sysdeps/posix/pause.c
9744         [! NO_CANCELLATION] (__pause_nocancel): New function.
9745
9746         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9747         * include/time.h (__nanosleep_nocancel): Likewise.
9748
9749 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9750
9751         * locale/programs/localedef.c (add_to_readlist): Rename local
9752         variables to avoid confusion.
9753
9754         * locale/programs/charmap.c (charmap_read): Emit error message if
9755         charmap couldn't be found or read.
9756
9757 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9758
9759         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9760         __ASSUME_FUTEX_LOCK_PI.
9761         * include/time.h: Declare __nanosleep_nocancel.
9762         * include/unistd.h: Declare __pause_nocancel.
9763
9764         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9765         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9766         get the __stack_chk_fail_local definition when it's needed.
9767
9768 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9769
9770         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9771         * dlfcn/bug-atexit3.c: New file.
9772         * dlfcn/bug-atexit3-lib.cc: New file.
9773
9774         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9775         used when the namespace is not the base namespace.
9776
9777 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9778
9779         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9780         (__new_exitfn): Bump it in every successful call.
9781         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9782         more exit handlers, call them right away.
9783         * stdlib/exit.h: Declare __new_exitfn_called.
9784
9785 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9786
9787         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9788         calling registered handler.
9789
9790         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9791         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9792         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9793         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9794         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9795         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9796         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9797         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9798
9799 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9800
9801         * elf/dl-lookup.c (dl_new_hash): New functions.
9802         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9803         value here.  Compute new-style hash value.  Pass new hash value
9804         and reference to variable with the old value to do_lookup_x.
9805         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9806         old-style hash table.
9807         (_dl_debug_bindings): Pass new hash value and reference to variable
9808         with the old value to do_lookup_x.
9809         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9810         new-style hash value and change old-style hash value parameter to
9811         be a reference.  Reoganize functions to determine whether
9812         new-style hash table is available.  Only fall back on old-style
9813         table.  If old-style hash value is needed, compute it here.
9814         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9815         entry.
9816         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9817         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9818         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9819         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9820         * Makeconfig: If linker supports --hash-style option add it to all
9821         linker command lines to build DSOs.
9822         * config.make.in: Define have-hash-style.
9823         * configure.in: Test whether linker supports --hash-style option.
9824
9825         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9826         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9827
9828 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9829
9830         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9831         auditing.
9832
9833         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9834         RPATH of main map twice.
9835
9836 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9837
9838         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9839         look further, return original strings.
9840         (_nl_find_msg): Do not return found translation if the conversion
9841         failed.  Either signal the string is unusable or that something went
9842         wrong and the original should be used.
9843
9844 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9845
9846         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9847
9848 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9849
9850         [BZ #2766]
9851         * misc/insremque.c (insque): Handle prev == NULL.
9852         * misc/Makefile (tests): Add tst-insremque.
9853         * misc/tst-insremque.c: New test.
9854
9855 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9856
9857         [BZ #2792]
9858         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9859         conflict with DL_DST_REQUIRED.
9860
9861 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9862
9863         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9864         match what Solaris does.
9865
9866 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9867
9868         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9869         local_setegid instead of seteuid and setegid.
9870         * sysdeps/generic/local-setxid.h: New file.
9871         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9872
9873         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9874
9875         * string/Makefile (tests): Add bug-envz1.
9876         * string/bug-envz1.c: New file.
9877
9878 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9879
9880         * posix/regex_internal.c (re_string_skip_chars): If no character has
9881         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9882         to the byte which couldn't be converted.
9883         (re_string_reconstruct): Don't clear valid_raw_len before calling
9884         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9885         tip_context using re_string_context_at.
9886         * posix/Makefile: Add rules to build and run bug-regex25 test.
9887         * posix/bug-regex25.c: New test.
9888
9889 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9890
9891         [BZ #2703]
9892         * string/envz.c (envz_strip): Correct erroneously reversed src
9893         and dest parameters to memmove() invocation.
9894
9895 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9896
9897         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9898         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9899         to make sure the database has been already invalidated.
9900         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9901         after the cache has been invalidated.  Use pthread_mutex_lock rather
9902         than pthread_mutex_trylock if fd != -1.
9903         * nscd/connections.c (invalidate_cache): Add fd argument, write
9904         response to fd if not calling prune_cache, pass fd to prune_cache.
9905         (handle_request): Adjust invalidate_cache caller.
9906         (nscd_run): Pass -1 as fd to prune_cache.
9907
9908 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9909
9910         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9911         the correct place.
9912
9913 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9914
9915         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9916         * nscd/cache.c (prune_cache): Take prunelock before starting the
9917         work.  Just return in case it is already taken.
9918         * nscd/connections.c (dbs): Initialize .prunelock.
9919
9920 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9921
9922         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9923         copying.  No need to allocate new array for group members.  Just
9924         move the pointers and update the size.
9925
9926         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9927         Avoid memory leak in case realloc fails.  Simplification for
9928         better code generation.
9929
9930         Avoid deprecation warning because of libc_hidden_proto for
9931         inet6_option_alloc.
9932         * inet/inet6_option.c (option_alloc): Renamed from
9933         inet6_option_alloc.  Made static.
9934         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9935         (inet6_option_append): Call option_alloc.
9936         * include/netinet/in.h: Remove libc_hidden_proto for
9937         inet6_option_alloc.
9938
9939         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9940         for cleanup when cb!=NULL [Coverity CID 233].
9941
9942 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9943
9944         [BZ #2693]
9945         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9946         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9947         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9948         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9949         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9950         and inet6_rth_getaddr.
9951         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9952         array.
9953         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9954         Mark inet6_option_* interfaces as deprecated.
9955         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9956         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9957         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9958         inet6_rth_segments, and inet6_rth_getaddr.
9959         * inet/inet6_opt.c: New file.
9960         * inet/inet6_rth.c: New file.
9961
9962         * inet/netinet/icmp6.h: Pretty printing.
9963
9964         [BZ #2683]
9965         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9966
9967 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9968
9969         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9970         doing it all here.  When server does not know the answer do not
9971         fail immediate, try parent first.
9972
9973         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9974         overflow test.
9975
9976 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9977
9978         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9979         from __do_niscall.
9980         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9981         and exported.
9982         (__follow_path): New function.  Split out from nis_list.
9983         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9984         _xdr_nis_result.
9985         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9986         _xdr_nis_result.
9987         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9988         and __follow_path.
9989         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9990         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9991         from libnsl for version GLIBC_PRIVATE.
9992         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9993         Remove entry parameter from _nss_nisplus_parse_pwent and
9994         _nss_nisplus_parse_grent.
9995         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9996         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9997         again.  Rewrite getpwent handling to not use nis_first_entry and
9998         nis_next_entry.  Roll out own niscall handling.
9999         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10000
10001         * sunrpc/xdr_rec.c: Fix typo in comment.
10002
10003 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10004
10005         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10006         handling.
10007
10008         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10009         to allocate memory for my_pollfd.  Better initialization of
10010         cb_is_running.  Use TEMP_FAILURE_RETRY.
10011
10012         * malloc/memusage.sh (memusageso): Add quotes.
10013         (memusagestat): Likewise.
10014         * debug/xtrace.sh (pcprofileso): Likewise.
10015         (pcprofiledump): Likewise.
10016         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10017         replacement.
10018         * malloc/Makefile ($(objpfx)memusage): Likewise.
10019
10020         * nis/nis_callback.c (__nis_create_callback): Calls to
10021         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10022         asprintf call fails.
10023
10024         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10025         no uninitialized memory is passed to sendto.
10026
10027 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10028
10029         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10030         of snprintf+strdup.  Handle OOM.
10031         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10032         cb->serv together.  Remove now obsolete free calls.
10033         (__nis_destroy_callback): Remove now obsolete free call.
10034
10035 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10036
10037         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10038         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10039         and ULA respectively). Set precedence for IPv4 address to 10 as
10040         defined in RFC3484 for preferring IPv6.
10041         * posix/gai.conf: Update to match the new default tables.
10042
10043 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10044
10045         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10046         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10047         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10048         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10049
10050         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10051         Removed.
10052         (init_nss_interface): Remove initialization of these variables.
10053
10054 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10055
10056         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10057         nis_free_directory forward to avoid duplication.
10058
10059 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10060
10061         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10062         rec_dirsearch returning NULL.
10063         (first_shoot): Handle __nis_finddirectory returning NULL.
10064         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10065
10066         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10067         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10068
10069 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10070
10071         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10072         pid changed.
10073
10074 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10075
10076         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10077
10078         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10079         * nscd/nscd_getgr_r.c: Likewise.
10080
10081         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10082
10083         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10084         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10085
10086         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10087
10088         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10089
10090         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10091
10092         * include/rpc/auth.h: Mark xdr_des_block_internal and
10093         xdr_opaque_auth_internal as hidden.
10094
10095         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10096         hidden.
10097
10098         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10099
10100         * misc/getusershell.c (okshells): Don't use static initializers,
10101         do it dynamically.
10102
10103         * stdlib/fmtmsg.c (keywords): Change type of len element to
10104         uint32_t to not waste space on 64bit machines.
10105
10106         * locale/setlocale.c: Change _nl_category_names into a string.
10107         Add new _nl_category_name_idxs.  Change all users.
10108         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10109         Declare _nl_category_name_idxs.
10110         * locale/findlocale.c: Adjust for _nl_category_names change.
10111         * locale/loadlocale.c: Likewise.
10112         * locale/newlocale.c: Likewise.
10113         * intl/dcigettext.c: Likewise.
10114
10115         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10116         (add_alias2): ...here.  New function.
10117         (__gconv_read_conf): Simplify builtin alias handling.
10118         (builtin_aliases): Convert to string to avoid relocations.
10119         * iconv/gconv_builtin.h: Add comment about correct formatting.
10120
10121 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10122
10123         * resolv/res_debug.c (loc_ntoa): Make error const.
10124
10125 2006-05-14  Andreas Schwab  <schwab@suse.de>
10126
10127         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10128
10129 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10130
10131         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10132         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10133         sizeof (cpu_set_t).
10134
10135 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10136
10137         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10138
10139         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10140
10141         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10142         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10143
10144         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10145         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10146
10147         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10148         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10149         xdr_cback_data.
10150
10151         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10152         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10153         xdr_ypupdate_args.
10154
10155         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10156         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10157
10158         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10159         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10160
10161         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10162         * include/rpcsvc/nis_callback.h: New file.
10163
10164         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10165         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10166
10167         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10168         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10169
10170         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10171         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10172
10173         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10174         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10175
10176         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10177         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10178         xdr_ypdelete_args.
10179
10180         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10181         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10182
10183         * nis/nis_error.c: Remove table of strings.  Use position
10184         independent mechanism.
10185         * nis/nis_error.h: New file.
10186
10187 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10188
10189         * locale/programs/ld-time.c (time_finish): If wide era name or
10190         format aren't provided, set both wname and wformat to L"".
10191
10192 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10193
10194         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10195         results if the call was succesful.
10196
10197         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10198
10199         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10200         as hidden.
10201
10202 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10203
10204         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10205
10206 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10207
10208         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10209         caller makes sure this is not the case.
10210         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10211
10212 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10213
10214         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10215         calls.
10216
10217         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10218         [Coverity CID 229, 230]
10219
10220         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10221         DGETTEXT calls.
10222         (hol_help): Likewise.  [Coverity CID 226, 227]
10223
10224         * string/argz-replace.c (__argz_replace): Unconditionally call
10225         free on SRC.  [Coverity CID 225]
10226
10227         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10228         the return value of __nis_default_owner and __nis_default_group,
10229         it has been especially allocated.  [Coverity CID 224]
10230
10231         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10232         searchgroup and searchowner.  Significantly simplified.
10233         (__nis_default_owner): Remove duplication.  Do not locally copy the
10234         string before duplicating it.
10235         (__nis_default_group): Likewise.
10236
10237         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10238         we must clear the variable before calling __nisfind_server.
10239
10240         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10241         nis_getnames.  [Coverity CID 223]
10242
10243         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10244         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10245
10246         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10247         allocate memory for the input to add_bytes.  [Coverity CID 221]
10248
10249         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10250         was allocated here.  [Coverity CID 219, 220]
10251
10252         * posix/getconf.c (print_all): Free confstr data after printing.
10253         [Coverity CID 218]
10254
10255         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10256         list allocation fails.  [Coverity CID 215]
10257
10258         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10259         [Coverity CID 213]
10260
10261         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10262         string is NULL.  [Coverity CID 212]
10263         * argp/Makefile: Add rules to build and run bug-argp1.
10264         * argp/bug-argp1.c: New file.
10265
10266         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10267         end of string.
10268         * stdlib/canonicalize.c (__realpath): Likewise.
10269
10270         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10271         pointer.  [Coverity CID 206]
10272
10273         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10274         in statically linked code.
10275         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10276         statically built code, be prepared to have no link map.
10277         [Coverity CID 205]
10278
10279         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10280         dgettext calls. [Coverity CID 204]
10281
10282         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10283         the one user.
10284         (uparam_names): Reduce size.  Avoid relative relocations.
10285         Moved to read-only segment.
10286         (fill_in_uparams): Update for new layout.
10287
10288         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10289         assumed to always be != NULL. [Coverity CID 202]
10290
10291         * argp/argp-help.c (hol_entry_help): Remove some dead code
10292         [Coverity CID 200].
10293
10294         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10295         away a few more unconditional yperr2nss calls.
10296         (_nss_nis_getservbyname_r): Likewise.
10297
10298 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10299
10300         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10301         architectures.
10302
10303         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10304         that unused memory passed to sendto is nevertheless initialized.
10305
10306         [BZ #2499]
10307         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10308         possibly unaligned memory accesses.
10309
10310         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10311         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10312         and __putlong respectively.  Correct buffer overflow check for
10313         NS_NOTIFY_OP.
10314
10315         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10316
10317         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10318         (send_dg): Rewrite error handling to be more compact and avoid
10319         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10320
10321         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10322
10323         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10324         instead of ns_get16.
10325         (res_queriesmatch): Likewise.  Minor optimization.
10326
10327         [BZ #2499]
10328         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10329         __libc_res_nsend might reallocate the buffer for the answer.  In
10330         this case we have to reload the HP pointer.
10331
10332 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10333
10334         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10335         some branch prediction hints.
10336
10337         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10338         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10339         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10340         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10341         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10342         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10343         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10344         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10345
10346 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10347
10348         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10349         by a GOT relocation to make Scrt1.o position independent.
10350         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10351
10352         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10353         six system call parameters.
10354         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10355
10356 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10357
10358         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10359         malloc&bzero.
10360
10361         * sunrpc/svc_udp.c (BZERO): Remove definition.
10362         (CALLOC): Define.
10363         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10364
10365         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10366         (des_SPtrans): Use uint32_t type.
10367         (des_skb): Likewise.
10368
10369         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10370
10371 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10372
10373         [BZ #2509]
10374         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10375         on 32-bit arches.
10376
10377 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10378
10379         * locale/programs/ld-address.c (address_finish): Fix one more
10380         place where the iso639 array might be accessed beyond the limits.
10381
10382 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10383
10384         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10385         filling it for the first time.
10386
10387         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10388         Adjust all callers.
10389         Free res object content before returning.
10390
10391         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10392
10393         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10394         client->cl_auth.
10395
10396         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10397         cleanup for initial thread, just the free call on TVP.
10398
10399         * nscd/gai.c (__getline): Define.
10400
10401
10402 See ChangeLog.16 for earlier changes.