regex: avoid internal re_realloc overflow
[platform/upstream/glibc.git] / ChangeLog
1 2010-01-22  Jim Meyering  <jim@meyering.net>
2
3         * posix/regex_internal.c (re_string_realloc_buffers):
4         Detect and handle internal overflow.  Patch by Paul Eggert
5
6 2010-01-20  Andreas Schwab  <schwab@redhat.com>
7
8         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
9         (CHECK_SP): Fix check for alternate stack.
10         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
11         (CHECK_SP): Likewise.
12
13 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
14
15         * sysdeps/i386/i686/multiarch/memmove.S: Also check
16         bit_Fast_Rep_String when SHARED isn't defined.
17
18 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
19
20         [BZ #11194]
21         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
22
23 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24
25         * sysdeps/mach/hurd/bits/libc-lock.h
26         (__rtld_lock_recursive_t): New type.
27         (__rtld_lock_initialize): New macro.
28
29 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
30
31         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
32         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
33         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
34         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
35
36 2010-01-18  Andreas Schwab  <schwab@redhat.com>
37
38         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
39         definitions of O_DSYNC and O_RSYNC.
40
41         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
42         casting d_tag.
43
44         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
45         dynamic entry types.
46
47 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
48
49         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
50         constant.
51         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
52         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
53         overflow.
54         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
55
56         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
57         math_opt_barrier and math_force_eval macros.
58
59 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
60
61         * posix/regcomp.c: Fix a few more cases of ignored return values.
62         * posix/regex_internal.c: Likewise.
63         * posix/regexec.c: Likewise.
64
65         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
66         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
67         if _XOPEN_SOURCE is not defined as well.
68
69 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70
71         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
72         high gprs kernel facility.
73         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
74         Added high gprs check for DSOs.
75         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
76         new elf header flag.
77
78 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79
80         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
81         dl_main.
82         * elf/dl-open.c (_dl_sysdep_start): Likewise..
83         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
84         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
85         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
86         started.
87
88 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
89
90         [BZ #11027]
91         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
92         to RFC 2474.
93         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
94
95         [BZ #11141]
96         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
97         addresses.
98
99         [BZ #11127]
100         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
101         re_node_set_insert failure; return REG_ESPACE.
102         Patch by Paul Eggert.
103
104         * bits/confname.h: Make pre-C99-safe.
105
106 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
107
108         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
109         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
110         files are found by GCC.
111
112 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
113
114         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
115         brk, and sbrk.
116
117         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
118         index, and rindex.
119
120         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
121
122         * Versions.def: Add GLIBC_2.12 for libpthread.
123
124         [BZ #11126]
125         * malloc/malloc.c (malloc_info): Initialize malloc if not already
126         done.  Handle empty bin lists.
127
128         * posix/unistd.h: Change getpagesize and getdtablesize declaration
129         visibility some more.
130
131         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
132
133         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
134
135         [BZ #11120]
136         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
137         needed outside libc.
138
139 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
140
141         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
142
143 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
144
145         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
146
147 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
148
149         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
150
151 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
152
153         * conform/data/complex.h-data: Test for POSIX2008.
154
155         * conform/data/ctype.h-data: Fix POSIX testing.
156
157         * conform/data/dirent.h-data: ino_t only needed for XSI.
158
159         * grp/grp.h: Declare getgrent and endgrent for XPG7.
160
161         * conform/data/inttypes.h-data: Use same types as the headers.
162
163         * resolv/netdb.h: Don't define old resolver macros for XPG7.
164
165         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
166
167         * conform/conformtest.pl: Implement tag for allow-header.
168         Fix newline handling in allow-header implementation.
169
170         * conform/data/time.h-data: Use allow-header instead of duplicating
171         information.
172
173         * conform/data/time.h-data: Allow sigevent tag.
174
175         * posix/sched.h: Define time_t and pid_t for XPG7.
176
177 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
178
179         * sysdeps/i386/i686/bcopy.S: New file.
180
181         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
182
183         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
184         and END_CHK.
185         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
186         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
187         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
188
189         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
190
191         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
192         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
193         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
194         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
195         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
196         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
197         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
198         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
199         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
200         * sysdeps/i386/i686/multiarch/bzero.S: New file.
201         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
202         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
203         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
204         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
205         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
206         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
207         * sysdeps/i386/i686/multiarch/memmove.S: New file.
208         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
209         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
210         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
211         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
212         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
213         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
214         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
215         * sysdeps/i386/i686/multiarch/memset.S: New file.
216         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
217
218         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
219         (END_CHK): Likewise.
220
221         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
222         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
223         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
224
225         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
226         for 0x0e and 0x80.
227         (__x86_64_data_cache_size): New.
228         (init_cacheinfo): Set __x86_64_data_cache_size.
229
230         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
231         on bit_Fast_Rep_String for Intel Core i7.
232
233         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
234         (index_Fast_Rep_String): Likewise.
235         (FEATURE_INDEX_1): Likewise.
236         (FEATURE_INDEX_MAX): Likewise.
237         (cpu_features): Add feature.
238
239 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
240
241         * conform/data/sys/select.h-data: Fix up for XPG7.
242
243 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
244
245         * posix/sys/wait.h: Don't define W* macros etc. if
246         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
247
248 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
249
250         * io/sys/stat.h: Declare fchmod for XPG7.
251         * conform/data/sys/stat.h-data: Fix up for XPG7.
252
253         * termios/termios.h: Define pid_t for XPG7.
254
255         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
256         * conform/data/tgmath.h-data: Likewise.
257
258         * conform/data/time.h-data: Fix POSIX tests.
259
260         * conform/data/wchar.h-data: Fix up XPG7 tests.
261
262         * include/features.h: Fix __USE_ISOC95 handling.
263
264         * conform/data/wordexp.h-data: Fix typo in last change.
265
266         * conform/data/unistd.h-data: Fix up older POSIX tests.
267
268         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
269         * posix/unistd.h: Likewise.
270
271         * posix/unistd.h: Include environments.h also for XPG6 and up.
272         Define intptr_t for XPG6 and up.
273         Fix up for XPG7.
274         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
275
276         * conform/data/sys/types.h-data: Fix up for XPG7.
277
278         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
279         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
280         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
281         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
282         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
283         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
284         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
285         * sysdeps/unix/sysv/bits/stat.h: Likewise.
286         * sysdeps/mach/hurd/bits/stat.h: Likewise.
287
288         * bits/confname.h: Fix typo in last change.
289
290         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
291
292 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
293
294         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
295         and SA_RESETHAND now available in Base.
296         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
297         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
298         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
299         * conform/data/signal.h-data: Update for XPG7.
300
301         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
302
303         * string/strings.h: Don't declare obsolete functions for XPG7.
304         Declare ffs only for XSI.
305         * conform/data/strings.h-data: Update for XPG7.
306
307 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
308
309         [BZ #11125]
310         * libio/stdio.h: Define va_list, off_t, and ssize_t.
311
312         * posix/glob.h: Define size_t.
313
314         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
315
316         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
317
318 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
319
320         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
321         be self-contained.
322
323         * conform/data/stdio.h-data: Expect off_t and ssize_t.
324
325 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
326
327         * libio/stdio.h: Define va_list also for XPG7.
328
329         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
330         * conform/data/ctype.h-data: Likewise.
331         * conform/data/dirent.h-data: Likewise.
332         * conform/data/errno.h-data: Likewise.
333         * conform/data/fcntl.h-data: Likewise.
334         * conform/data/fmtmsg.h-data: Likewise.
335         * conform/data/fnmatch.h-data: Likewise.
336         * conform/data/ftw.h-data: Likewise.
337         * conform/data/glob.h-data: Likewise.
338         * conform/data/grp.h-data: Likewise.
339         * conform/data/iconv.h-data: Likewise.
340         * conform/data/langinfo.h-data: Likewise.
341         * conform/data/libgen.h-data: Likewise.
342         * conform/data/limits.h-data: Likewise.
343         * conform/data/locale.h-data: Likewise.
344         * conform/data/math.h-data: Likewise.
345         * conform/data/monetary.h-data: Likewise.
346         * conform/data/mqueue.h-data: Likewise.
347         * conform/data/ndbm.h-data: Likewise.
348         * conform/data/netdb.h-data: Likewise.
349         * conform/data/pthread.h-data: Likewise.
350         * conform/data/pwd.h-data: Likewise.
351         * conform/data/regex.h-data: Likewise.
352         * conform/data/sched.h-data: Likewise.
353         * conform/data/search.h-data: Likewise.
354         * conform/data/semaphore.h-data: Likewise.
355         * conform/data/setjmp.h-data: Likewise.
356         * conform/data/signal.h-data: Likewise.
357         * conform/data/spawn.h-data: Likewise.
358         * conform/data/stdio.h-data: Likewise.
359         * conform/data/stdlib.h-data: Likewise.
360         * conform/data/string.h-data: Likewise.
361         * conform/data/strings.h-data: Likewise.
362         * conform/data/sys/ipc.h-data: Likewise.
363         * conform/data/sys/msg.h-data: Likewise.
364         * conform/data/sys/resource.h-data: Likewise.
365         * conform/data/sys/sem.h-data: Likewise.
366         * conform/data/sys/shm.h-data: Likewise.
367         * conform/data/sys/socket.h-data: Likewise.
368         * conform/data/sys/stat.h-data: Likewise.
369         * conform/data/sys/time.h-data: Likewise.
370         * conform/data/sys/types.h-data: Likewise.
371         * conform/data/sys/uio.h-data: Likewise.
372         * conform/data/sys/wait.h-data: Likewise.
373         * conform/data/syslog.h-data: Likewise.
374         * conform/data/tar.h-data: Likewise.
375         * conform/data/termios.h-data: Likewise.
376         * conform/data/time.h-data: Likewise.
377         * conform/data/ulimit.h-data: Likewise.
378         * conform/data/unistd.h-data: Likewise.
379         * conform/data/utmpx.h-data: Likewise.
380         * conform/data/wchar.h-data: Likewise.
381         * conform/data/wctype.h-data: Likewise.
382         * conform/data/wordexp.h-data: Likewise.
383
384         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
385         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
386         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
387         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
388         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
389         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
390         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
391         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
392         * sysdeps/unix/sysv/bits/stat.h: Likewise.
393         * sysdeps/mach/hurd/bits/stat.h: Likewise.
394
395         * stdlib/stdlib.h: Define wait-related bits for XPG7.
396         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
397         Declare mkstemp and getsubopt for XPG7.
398         Declare posix_openpt for XPG6 XSI.
399
400         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
401         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
402
403         * string/string.h: Declare strdup for XPG7.
404
405 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
406
407         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
408         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
409
410         * dirent/dirent.h: Really fix feature selection.
411
412         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
413         Fix all users.
414         * locale/C-address.c: Fix all users.
415         * locale/C-collate.c: Likewise.
416         * locale/C-ctype.c: Likewise.
417         * locale/C-identification.c: Likewise.
418         * locale/C-measurement.c: Likewise.
419         * locale/C-messages.c: Likewise.
420         * locale/C-monetary.c: Likewise.
421         * locale/C-name.c: Likewise.
422         * locale/C-numeric.c: Likewise.
423         * locale/C-paper.c: Likewise.
424         * locale/C-telephone.c: Likewise.
425         * locale/C-time.c: Likewise.
426         * locale/findlocale.c: Likewise.
427         * locale/global-locale.c: Likewise.
428         * locale/loadarchive.c: Likewise.
429         * locale/loadlocale.c: Likewise.
430         * locale/nl_langinfo_l.c: Likewise.
431         * locale/setlocale.c: Likewise.
432         * locale/xlocale.c: Likewise.
433         * locale/xlocale.h: Likewise.
434         * stdio-common/vfscanf.c: Likewise.
435         * stdlib/strfmon_l.c: Likewise.
436         * stdlib/strtod_l.c: Likewise.
437         * stdlib/strtol_l.c: Likewise.
438         * string/strcoll_l.c: Likewise.
439         * string/strxfrm_l.c: Likewise.
440         * time/alt_digit.c: Likewise.
441         * time/asctime.c: Likewise.
442         * time/era.c: Likewise.
443         * time/lc-time-cleanup.c: Likewise.
444         * time/strftime_l.c: Likewise.
445         * time/strptime_l.c: Likewise.
446         * wcsmbs/wcsmbsload.c: Likewise.
447         * wcsmbs/wcsmbsload.h: Likewise.
448
449         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
450         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
451         for XPG7.
452         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
453         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
454         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
455         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
456         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
457         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
458
459 2010-01-07  Roland McGrath  <roland@redhat.com>
460
461         * elf/elf.h (PN_XNUM): New macro.
462
463         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
464         literal 2.
465
466 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
467
468         * dirent/dirent.h: Fix typo in feature selection macro use.
469
470 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
471
472         [BZ #11115]
473         * stdlib/tst-makecontext3.c: New file.
474         * stdlib/Makefile (tests): Add new test.
475
476         * stdlib/tst-setcontext.c (check_called): Fix a typo.
477
478 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
479
480         * configure.in: Enable multi-arch by default if the assembler
481         supports gnu_indirect_function symbol type and the architecture
482         supports it.
483
484 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
485
486         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
487         is defined.
488
489 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
490
491         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
492         MACH_PORT_NULL when id != cttyid.
493
494 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
495
496         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
497         __mach_port_deallocate on rootdevid.
498
499 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
500
501         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
502         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
503         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
504         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
505
506 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
507
508         [BZ #10992]
509         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
510         Patch by Eric Blake <ebb9@byu.net>.
511
512 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
513
514         [BZ #11093]
515         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
516         POLLWRBAND also for POSIX 2008.
517         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
518         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
519
520         * include/link.h (struct link_map): Move l_used into its own word.
521         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
522         still zero.
523         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
524         never really used.
525
526 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
527
528         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
529         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
530         check processor feature.
531         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
532         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
533         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
534         (index_SSE2): Likewise.
535
536 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
537
538         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
539         if __ASSEMBLER__ is defined.
540         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
541         (bit_SSE4_2): Likewise.
542         (index_SSSE3): Likewise.
543         (index_SSE4_2): Likewise.
544         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
545         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
546         check processor feature.
547         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
548         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
549         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
550         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
551         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
552         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
553         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
554
555 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
556
557         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
558
559 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
560
561         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
562
563 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
564
565         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
566         O_DSYNC to match 2.6.33+ kernels.
567         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
568         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
569         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
570         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
571         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
572         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
573
574 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
575
576         [BZ #11000]
577         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
578         *herrnop before returning.
579         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
580         Likewise.
581         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
582         TRYAGAIN errors separately.
583         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
584         *name4_r after functions.
585
586 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
587
588         [BZ #11046]
589         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
590         version check.
591
592 2009-11-05  Bruno Haible  <bruno@clisp.org>
593
594         [BZ #11056]
595         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
596         argv argument as non-NULL.
597         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
598
599 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
600
601         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
602         recvmmsg.
603         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
604         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
605
606 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
607
608         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
609         registers.
610         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
611         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
612         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
613
614 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
615
616         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
617         SCHED_RESET_ON_FORK.
618
619 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
620
621         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
622         only used on truly ancient kernel if configuration requires a more
623         recent kernel.
624
625 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
626
627         [BZ #3662]
628         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
629         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
630
631         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
632         pass it on to __ptsname_internal.
633         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
634         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
635         All the code from __ptsname_r but take additional parameter.  Use that
636         instead of pointer to local stat64 variable.
637         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
638         variable.
639         * include/stdlib.h: Declare __ptsname_internal.
640
641         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
642         before the exec.
643         * sysdeps/unix/sysv/linux/grantpt.c: New file.
644         * login/programs/pt_chown.c (main): Don't print message on errors
645         when doing real work.
646
647         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
648         once.
649
650         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
651         irel relocations split out from...
652         (__libc_csu_init): ...here.
653         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
654
655 2009-11-23  Andreas Schwab  <schwab@redhat.com>
656
657         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
658         for timestamps also if __USE_XOPEN2K8.
659         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
660         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
661         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
662         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
663
664 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
665
666         * nscd/connections.c (restart): Try harder to re-exec.
667
668         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
669
670         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
671         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
672         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
673         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
674         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
675         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
676
677         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
678         Define.
679         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
680
681 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
682
683         [BZ #10162]
684         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
685         than software pipeline.  Properly recover from shorter read.
686
687 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
688
689         [BZ #10958]
690         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
691         initialized before using it.
692         (_IO_putwc_unlocked): Likewise.
693
694         [BZ #10918]
695         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
696         in cast to not throw away const-ness of parameters.
697         (__CPU_EQUAL_S): Likewise.
698         (__CPU_OP_S): Likewise.
699
700         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
701         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
702         this gratuitous change and we have to keep compatibility.
703         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
704         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
705         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
706         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
707         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
708         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
709
710 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
711
712         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
713         of parameters of sync_file_range.
714         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
715         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
716         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
717         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
718         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
719         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
720
721 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
722
723         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
724         Implement using sync_file_range2 syscall if __NR_sync_file_range2
725         is defined.
726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
727         file.
728
729 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
730
731         * posix/bug-regex30.c: New file.
732         * posix/Makefile: Add rules to build and run bug-regex30.
733         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
734         character lead bytes when there is a range in a COMPLEX_BRACKET.
735         Reported by Oleg Bylatov.
736
737 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
738
739         [BZ #10969]
740         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
741         * locale/tst-duplocale.c: New file.
742         * locale/Makefile (tests): Add tst-duplocale.
743
744         [BZ #10968]
745         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
746         Patch by Bruno Haible <bruno@clisp.org>.
747         * locale/tst-locname.c: New file.
748         * locale/Makefile (tests): Add tst-locname.
749
750         [BZ #10972]
751         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
752         constants from recent kernels.
753         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
754         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
755         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
756         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
757         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
758         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
759
760 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
761
762         [BZ #10162]
763         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
764         software pipeline.
765
766 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
767
768         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
769         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
770         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
771
772 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
773
774         * posix/bug-regex29.c: Include stdio.h.
775
776 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
777
778         [BZ #10939]
779         * Versions.def: Define GLIBC_2.12 for libc.
780         * manual/errno.texi: Add ERFKILL entry.
781         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
782         for 2.12.
783         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
784         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
785
786         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
787         F_GETOWN_EX definitions according to corrected kernel definitions.
788         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
789         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
790         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
791         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
793         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
794
795 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
796
797         * version.h: Bump for 2.12 development.
798
799 2009-11-10  Andreas Schwab  <schwab@redhat.com>
800
801         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
802         out of buffer space.
803         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
804         map_v4v6_hostent running out of space.
805
806 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
807
808         * string/bits/string3.h (memset): If the second parameter is constant
809         and zero there is likely no transposition.
810         Patch by Caolan McNamara <caolanm@redhat.com.
811
812 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
813
814         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
815         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
816
817 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
818
819         * malloc/memusagestat.c (main): Fix spelling in an error message.
820
821 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
822
823         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
824         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
825
826 2009-11-03  Andreas Schwab  <schwab@redhat.com>
827
828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
829         readahead.
830
831 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
832
833         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
834         relocate opd entry when resolving prelink conflicts.
835
836 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
837
838         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
839         when -D_FILE_OFFSET_BITS=64.
840
841         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
842         of last two arguments when -D_FILE_OFFSET_BITS=64.
843         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
844         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
845         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
846         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
847         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
848         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
849
850 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
851
852         [BZ #4457]
853         * sysdeps/generic/libgcc_s.h: New file.
854         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
855
856 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
857
858         * malloc/hooks.c (free_check): Restore locking and call _int_free
859         appropriately.
860
861 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
862
863         * version.h (VERSION): Bump for 2.11 release.
864         * include/features.h (__GLIBC_MINOR__): Bump to 11.
865
866         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
867
868         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
869
870         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
871         to avoid warning.
872         * stdlib/tst-strtoll.c (tests): Likewise.
873
874         [BZ #9986]
875         * time/strftime_l.c (__strftime_internal): Allow %OC.
876
877         * misc/mkostemps.c: New file.
878         * misc/mkostemps64.c: New file.
879
880 2009-10-30  Andreas Schwab  <schwab@redhat.com>
881
882         * locale/programs/locale-spec.c: Include <error.h> and
883         <libintl.h>.
884
885         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
886
887 2009-10-28  Roland McGrath  <roland@redhat.com>
888
889         * Makefile (dist-prepare): New target.
890         (tag-for-dist): Target removed.
891         (glibc-%.tar): Pattern rule removed.
892         (%.tar): New pattern rule, does simple use of git archive.
893         (dist-version): Remove variable definition.
894         (dist): Just depend on that.  Add .tar.xz dependency.
895         If dist-version variable not set on command line, depend on
896         dist-prepare, re-invoke with dist-version set via git describe.
897
898         * Makerules (%.xz): New pattern rule.
899
900 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
901
902         * elf/ifuncdep2.c: Include ifunc-sel.h.
903         (global): Delete.
904         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
905         * elf/ifuncmain1.c (global): Delete.
906         * elf/ifuncmain1vis.c: Likewise.
907         * elf/ifuncmain2.c: Likewise.
908         * elf/ifuncmain5.c: Likewise.
909         * elf/ifuncmod3.c: Likewise.
910         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
911         (foo_ifunc): Use ifunc_one.
912         * elf/ifuncmain7.c: Likewise.
913         * elf/ifuncmod1.c: Include ifunc-sel.h.
914         (global): Define protected var.
915         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
916         * elf/ifuncmod5.c: Likewise.
917         * sysdeps/generic/elf/ifunc-sel.h: New file.
918         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
919
920 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
921
922         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
923         (R_PPC_REL16*): Correct comments.
924         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
925         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
926          R_PPC64_REL16_HA): Define.
927         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
928         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
929         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
930         Delete unused "reloc" param.
931         (__process_machine_rela): Handle R_PPC_IRELATIVE.
932         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
933         Delete "reloc" param.
934         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
935         R_PPC_IRELATIVE.
936         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
937         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
938         relocations.
939
940 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
941
942         [BZ #10315]
943         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
944         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
945         UDP_ENCAP_L2TPINUDP.
946
947         [BZ #10349]
948         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
949         parameter, specifying length of prefix.
950         * stdio-common/tempname.c: Likewise.
951         * include/stdio.h: Adjust prototypes.
952         * libio/oldtmpfile.c: Adjust caller.
953         * misc/mkdtemp.c: Likewise.
954         * misc/mkostemp.c: Likewise.
955         * misc/mkostemp64.c: Likewise.
956         * misc/mkstemp.c:  Likewise.
957         * misc/mkstemp64.c: Likewise.
958         * misc/mktemp.c: Likewise.
959         * stdio-common/tempnam.c: Likewise.
960         * stdio-common/tmpfile.c: Likewise.
961         * stdio-common/tmpnam.c: Likewise.
962         * stdio-common/tmpnam_r.c: Likewise.
963         * misc/mkstemps.c: New file.
964         * misc/mkstemps64.c: New file.
965         * stdlib/stdlib.h: Add prototypes.
966         * misc/Makefile (routines): Add mkstemps and mkstemps64.
967         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
968
969 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
970
971         * locale/iso-639.def: Add sml entry.
972
973         [BZ #10391]
974         * resolv/res_send.c (send_dg): Initialize resplen.
975
976         [BZ #10446]
977         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
978         definition to the kernel's.
979         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
980
981 2009-08-18  Anders Johansson  <ajohansson@novell.com>
982
983         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
984         offsets and record sizes in assert()s and response sending.
985         * nscd/grpcache.c: Likewise.
986         * nscd/hstcache.c: Likewise.
987         * nscd/initgrcache.c: Likewise.
988         * nscd/pwdcache.c: Likewise.
989
990 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
991
992         [BZ #10540]
993         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
994         /etc/hosts does not exist set errnop and herrnop appropriately.
995         Patch by Steve Langasek <vorlon@debian.org>.
996
997         [BZ #10553]
998         * malloc/malloc.c (malloc_info): Fix typos in format strings.
999         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1000
1001         [BZ #10564]
1002         * login/utmp_file.c (TIMEOUT): Increase to 10.
1003
1004         [BZ #10609]
1005         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1006         for file names in case the syscall is not available.
1007         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1008         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1009         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1010         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1011         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1012         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1013         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1014         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1015         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1016         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1017         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1018         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1019         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1020         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1021         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1022         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1023         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1024
1025         [BZ #10643]
1026         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1027         creation filed, remove the request from the 'requests' list and signal
1028         the caller that the request is finished.
1029
1030         [BZ #10692]
1031         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1032         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1033
1034         [BZ #10713]
1035         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1036         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1037
1038         [BZ #10780]
1039         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1040         overflows the int return type.
1041
1042         [BZ #10717]
1043         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1044         have to compute maxsize_total, we have to update the variables, and
1045         the also_total handling must happen after the repair.
1046
1047         [BZ #10742]
1048         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1049         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1050
1051 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1052
1053         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1054         errno is always set when returning unsuccessfully.
1055
1056 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1057
1058         * malloc/memusage.c (update_data): Fix index wraparound handling
1059         so that buffer_cnt is actually reset.
1060
1061 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1062
1063         [BZ #10784]
1064         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1065         of the directory we look at into the static buffer if there is one
1066         at the start of the loop.
1067
1068         [BZ #10789]
1069         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1070         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1071
1072         [BZ #10840]
1073         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1074         __ASSUME_F_GETOWN_EX.
1075         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1076         if possible.
1077         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1078
1079         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1080         and f_owner_ex.
1081         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1082         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1083         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1084         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1085         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1086         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1087
1088         [BZ #10847]
1089         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1090         getutmpx symbol.
1091
1092         [BZ #10823]
1093         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1094         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1095
1096 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1097
1098         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1099
1100 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1101
1102         [BZ #10817]
1103         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1104         Reported by Ray Chason.
1105
1106 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1107
1108         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1109         strend-sse4.
1110         * sysdeps/x86_64/multiarch/strchr.S: New file.
1111         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1112         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1113
1114 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1115
1116         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1117
1118 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1119
1120         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1121         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1122         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1123         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1124         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1125         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1126         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1127         __ieee751_expl to handle overflow.
1128
1129 2009-10-14  David S. Miller  <davem@davemloft.net>
1130
1131         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1132         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1133
1134 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1135
1136         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1137         !USE_MULTIARCH.
1138
1139 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1140
1141         [BZ #10730]
1142         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1143         Patch in part by Steve Ward <planet36@gmail.com>.
1144
1145         [BZ #10731]
1146         * stdlib/rand_r.c: Fix typo.
1147
1148         * po/cs.po: Update from translation team.
1149
1150 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1151
1152         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1153         returning if RTLD_NOLOAD.
1154
1155 2009-10-06  Roland McGrath  <roland@redhat.com>
1156
1157         * sysdeps/x86_64/multiarch/strstr-c.c
1158         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1159
1160         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1161         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1162
1163         * sysdeps/x86_64/multiarch/init-arch.h
1164         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1165         (HAS_CPU_FEATURE): New macro.
1166         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1167         * sysdeps/x86_64/multiarch/init-arch.c
1168         (__get_cpu_features): #undef it before definition.
1169
1170 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1171
1172         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1173         first_weekday to 1 and first_workday to 2.
1174
1175 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1176
1177         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1178         F_GETOWN_EX.
1179         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1180         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1181         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1182         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1183         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1184         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1185
1186 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1187
1188         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1189         * stdio-common/vfprintf.c: Likewise.
1190
1191 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1192
1193         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1194         (mkdirat): Call __directory_name_split_at instead of
1195         __directory_name_split.
1196
1197 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1198
1199         * locale/programs/locale-spec.c (locale_special): If nothing matches
1200         fail with an appropriate message.
1201
1202 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1203
1204         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1205         and XX.
1206
1207 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1208
1209         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1210         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1211
1212 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1213
1214         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1215
1216 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1217
1218         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1219         character size elements in step data.
1220
1221 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1222
1223         * po/hu.po: Update from translation team.
1224         * po/vi.po: Likewise.
1225
1226 2009-09-19  Roland McGrath  <roland@redhat.com>
1227
1228         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1229
1230 2009-09-15  Roland McGrath  <roland@redhat.com>
1231
1232         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1233         * nptl/sysdeps/pthread/configure: Regenerated.
1234         * nptl/sysdeps/x86_64/configure: Regenerated.
1235         * sysdeps/unix/sysv/linux/configure: Regenerated.
1236         * sysdeps/x86_64/elf/configure: Regenerated.
1237
1238         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1239
1240         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1241         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1242         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1243         * configure: Regenerated.
1244
1245 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1246
1247         * posix/getconf.c (main): Handle -- on command line.
1248
1249 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1250
1251         * configure.in: Support binutils 2.100 and 3.0.
1252
1253 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1254
1255         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1256         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1257         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1258         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1259
1260 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1261
1262         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1263         unnamed_section_defined field.
1264         (collate_read): Test and set unnamed_section_defined.
1265
1266         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1267         _POSIX2_LINE_MAX.
1268
1269 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1270
1271         * configure.in: Support binutils 2.20.
1272
1273 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1274
1275         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1276         __strstr_ia32): Add attribute_hidden.
1277
1278 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1279
1280         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1281         parsing of group entry.
1282
1283 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1284
1285         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1286         external buffer.  Always discard readahead in internal buffer.
1287         * libio/Makefile (tests): Add bug-wsetpos.
1288         * libio/bug-wsetpos.c: New file.
1289
1290 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1291
1292         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1293         Add attribute_hidden.
1294         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1295         __strcasestr_sse2): Likewise.
1296         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1297         (__fma_fma): Make static.
1298         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1299         (__fmaf_fma): Make static.
1300
1301 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1302
1303         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1304         reformulate in-buffer optimisation check to match code in
1305         _IO_new_file_seekoff.
1306
1307 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1308
1309         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1310         to srwi in 32-bit memcpy for power6.
1311
1312 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1313
1314         * include/stdio.h: Declare hidden proto for fflush.
1315         * libio/iofflush.c: Add hidden weak alias for fflush.
1316
1317 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1318
1319         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1320         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1321
1322 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1323
1324         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1325
1326 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1327
1328         [BZ #10560]
1329         * malloc/malloc.c: Add local assert definition to avoid problems with
1330         memory allocation in the real one.
1331
1332 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1333
1334         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1335         Removed.
1336         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1337         turn off SSSE3 on Atom.
1338
1339 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1340
1341         * stdlib/tst-strtol.c (tests): More tests.
1342         * stdlib/tst-strtoll.c (tests): Likewise.
1343
1344 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1345
1346         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1347
1348         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1349
1350 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1351
1352         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1353         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1354
1355         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1356
1357         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1358
1359         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1360
1361 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1362
1363         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1364
1365 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1366
1367         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1368         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1369
1370         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1371
1372         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1373         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1374
1375         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1376         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1377
1378         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1379         leftover YMM_SIZE definition.
1380
1381 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1382
1383         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1384         union.
1385         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1386         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1387         Redefine.
1388         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1389
1390         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1391         and SET_FLOAT_WORD definitions.
1392
1393 2009-08-24  Roland McGrath  <roland@redhat.com>
1394
1395         * sysdeps/unix/syscall-template.S: New file.
1396         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1397         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1398         (compile-syscall): Pass mkdep and -g options as normal.
1399         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1400         (common-generated): Don't add them here.
1401
1402 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1403
1404         * math/s_fdim.c: In case of overflows set errno.
1405         * math/s_fdimf.c: Likewise.
1406         * math/s_fdiml.c: Likewise.
1407
1408         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1409         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1410         are using the inline optimizations.
1411
1412         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1413         (__signbitf): Likewise.
1414
1415 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1418         terminated.
1419         * posix/Makefile (tests): Add bug-regex29.
1420         * posix/bug-regex29.c: New file.
1421
1422         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1423         older POSIX versions are selected.
1424
1425         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1426         as well.
1427         * stdio-common/printf_fphex.c: Likewise.
1428         * stdio-common/tstdiomisc.c: Add more tests.
1429
1430         * locale/locale.h: Include xlocale.h and the thread-local locale
1431         declarations for XPG7, not XPG6.
1432
1433 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1434
1435         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1436         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1439         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1440         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1441
1442 2009-08-20  Roland McGrath  <roland@redhat.com>
1443
1444         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1445         Use l_addr instead of l_map_start (dli_fbase).
1446         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1447         address when there is no proximate symbol.
1448         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1449         Likewise.
1450
1451 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1452
1453         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1454
1455 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1456
1457         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1458         Also handle SIGINT.  In that case only do the cleanup and then
1459         re-raise the signal.
1460         (main): Install handler for SIGINT.
1461
1462 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1463
1464         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1465         clobber list.
1466
1467 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1468
1469         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1470         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1471         tst-auditmod7b.c.
1472         (tests): Add tst-audit6 tst-audit7.
1473         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1474         tst-auditmod7a tst-auditmod7b.
1475         ($(objpfx)tst-audit6): New.
1476         ($(objpfx)tst-audit6.out): Likewise.
1477         ($(objpfx)tst-audit7): Likewise.
1478         ($(objpfx)tst-audit7.out): Likewise.
1479         (tst-audit6-ENV): Likewise.
1480         (tst-audit7-ENV): Likewise.
1481         (CFLAGS-tst-auditmod6b.c): Likewise.
1482         (CFLAGS-tst-auditmod6c.c): Likewise.
1483         (CFLAGS-tst-auditmod7b.c): Likewise.
1484         * elf/tst-audit6.c: New file.
1485         * elf/tst-audit7.c: New file.
1486         * elf/tst-auditmod6a.c: New file.
1487         * elf/tst-auditmod6b.c: New file.
1488         * elf/tst-auditmod6c.c: New file.
1489         * elf/tst-auditmod7a.c: New file.
1490         * elf/tst-auditmod7b.c: New file.
1491         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1492         saving and restoring SSE/AVX registers to ...
1493         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1494
1495 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1496
1497         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1498         only if SHARED is defined.
1499         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1500
1501 2009-08-03  Jim Meyering  <meyering@redhat.com>
1502
1503         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1504
1505 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1506
1507         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1508         section as the other functions for this architecture.
1509         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1510
1511 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1512
1513         * sysdeps/x86_64/strcmp.S: Add support to compile with
1514         USE_SSSE3.  In this case palignr is used.
1515         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1516         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1517         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1518         Add strcmp-ssse3 and strncmp-ssse3.
1519         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1520         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1521
1522         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1523         warning through fake initialization.
1524
1525 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1526
1527         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1528
1529 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1530
1531         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1532         unique symbols.
1533
1534 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1535
1536         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1537         EBX from EAX = 1.  Handle EAX = 11.
1538
1539 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1540
1541         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1542         inside ''.
1543
1544 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1545
1546         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1547         hidden IFUNC functions.
1548         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1549
1550         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1551
1552         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1553         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1554         strcasestr-c.
1555         (CFLAGS-strcspn-c.c): Define.
1556         (CFLAGS-strpbrk-c.c): Define.
1557         (CFLAGS-strspn-c.c): Define.
1558         (CFLAGS-strstr.c): Define.
1559         (CFLAGS-strcasestr.c): Define.
1560         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1561         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1562         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1563         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1564         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1565         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1566         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1567         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1568         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1569         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1570         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1571         -16L instead of 0xfffffffffffffff0L.
1572         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1573
1574 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1575
1576         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1577
1578 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1579
1580         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1581         another rewrite.  Much smaller and faster.
1582         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1583
1584         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1585         ss_flags from the correct location.
1586
1587 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1588
1589         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1590         * sysdeps/i386/i686/cacheinfo.c: New file.
1591         * sysdeps/i386/i686/multiarch/Makefile: New file.
1592         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1593         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1594         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1595         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1596         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1597         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1598         (__cpuid_count): New. Provide the default.
1599         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1600         (__x86_64_preferred_memory_instruction): Define only if
1601         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1602         (intel_check_word): Use __cpuid.
1603         (handle_intel): Likewise.
1604         (handle_amd): Likewise.
1605         (__cache_sysconf): Likewise.
1606         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1607         (__cache_sysconf): Likewise.
1608         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1609         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1610         (get_common_indeces): Use __cpuid.
1611         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1612         if ENABLE_SSSE3_ON_ATOM is not defined.
1613         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1614         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1615         popcnt instead of popcntq.
1616
1617 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1618
1619         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1620
1621 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1622
1623         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1624         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1625         which always causes a compile error.
1626
1627         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1628
1629         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1630         comes from...
1631         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1632         which always causes a compile error.
1633
1634         * debug/Makefile (tests): Add tst-longjmp_chk2.
1635         * debug/tst-longjmp_chk2.c: New file.
1636
1637         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1638         Remove incorrect use of BP_SYM.
1639         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1640         here now since it is more complex than just a simple check.
1641
1642         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1643         we make no more progress.
1644
1645 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1646
1647         * math/s_fma.c: Don't define alias if __fma is a macro.
1648         * math/s_fmaf.c: Likewise.
1649         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1650         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1651         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1652
1653         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1654         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1655         New macro HAS_FMA.
1656         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1657         function.
1658         * include/libc-symbols.h (libm_ifunc): Define.
1659         * sysdeps/x86_64/multiarch/Versions: New file.
1660
1661         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1662
1663 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1664
1665         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1666
1667 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1668
1669         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1670         call that registers used in calling conventions need to be preserved.
1671         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1672         to preserve register content if necessary.
1673         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1674         (_dl_x86_64_restore_sse): New function.
1675         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1676         is allowed to modify xmm/ymm registers.
1677
1678         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1679         application's perspective.
1680         * stdio-common/scanf17.c: Likewise.
1681
1682 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1683
1684         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1685         size to memsz.
1686         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1687         here.
1688         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1689         two steps to catch bugs.
1690
1691 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1692
1693         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1694         determines which files are used in runtime lookups and only checks
1695         those for SSE use.
1696         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1697         testing.
1698         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1699         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1700         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1701         take a while.
1702
1703         * elf/dl-open.c: Move _dl_scope_free to...
1704         * elf/dl-scope.c: ...here.  New file.
1705         * elf/Makefile (dl-routines): Add scope.
1706
1707         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1708         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1709         RES_USE_DNSSEC.
1710         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1711         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1712         all the places we handled RES_USE_EDNS0 only before.
1713         Patch by Adam Tkac <atkac@redhat.com>.
1714
1715 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1716
1717         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1718         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1719         Update size when reallocating.
1720
1721 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1722
1723         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1724         functions used in ld.so modify xmm/ymm registers.
1725         * sysdeps/x86_64/Makefile:  Hook new test up.
1726         * sysdeps/x86_64/rtld-memchr.c: New file.
1727         * sysdeps/x86_64/rtld-memcmp.c: New file.
1728         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1729         * sysdeps/x86_64/rtld-strchr.S: New file.
1730         * sysdeps/x86_64/rtld-strlen.S: New file.
1731         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1732         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1733
1734 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1735
1736         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1737         strncmp-c.
1738         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1739         (exit): Likewise.
1740         (Byte1): Likewise.
1741         (Byte2): Likewise.
1742         (Byte3): Likewise.
1743         (Byte4): Likewise.
1744         (Byte5): Likewise.
1745         (Byte6): Likewise.
1746         (next_8_bytes): Likewise.
1747         (Byte0): Remove commented out codes.
1748         (unaligned_table): Align jump table at 8 bytes.
1749         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1750         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1751         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1752         * sysdeps/x86_64/strncmp.S: New file.
1753
1754 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1755
1756         [BZ #10422]
1757         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1758         kernels, dropped when eventfd2 support was added.
1759         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1760         kernels, dropped when signalfd4 support was added.
1761         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1762         added, name them.
1763
1764         [BZ #10452]
1765         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1766         replies up.
1767
1768         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1769
1770 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1771
1772         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1773         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1774
1775         [BZ #10448]
1776         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1777         callback we must touch the status to avoid using stale value.
1778
1779         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1780         compiled in.
1781
1782 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1783
1784         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1785         /lib/modules/* headers anymore.  We have sane headers in the standard
1786         place now.
1787
1788 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1789
1790         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1791         "etf3enh" and "highgprs" added.
1792         (_dl_s390_platforms): "z10" added.
1793         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1794         Increased for the new entries.
1795         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1796         HWCAP_S390_HIGH_GPRS added.
1797
1798         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1799         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1800         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1801         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1802         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1803
1804 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1805
1806         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1807         avoid additional cpuid instructions.  Most of the information is
1808         stored somewhere.
1809
1810         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1811         cache descriptors.
1812         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1813
1814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1815         SSSE3 bit for Atoms.
1816         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1817         here anymore.
1818
1819         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1820         structure before copying it to avoid warning.
1821         * posix/tst-rfc3484-2.c (do_test): Likewise.
1822         * posix/tst-rfc3484-3.c (do_test): Likewise.
1823
1824         [BZ #10416]
1825         * include/unistd.h: Make header file suitable for C++ test cases.
1826         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1827
1828         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1829         stack alignment in the exit code.
1830
1831         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1832         potentially be zero.
1833
1834         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1835         unique symbol definition.
1836         Patch by Jakub Jelinek.
1837         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1838         make sure the object with the definition cannot be unloaded.  Adjust
1839         a few types.
1840         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1841         the unique symbol hash table should not be const.
1842
1843 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1844
1845         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1846         unnecesary variables.  Comment fixes.
1847
1848 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1849
1850         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1851         Use NONASCII_CASE information provided by the locale to determine
1852         whether optimized string load function can be used.  Minor cleanups.
1853
1854 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1855
1856         * string/strcasestr.c (STRCASESTR): New macro.
1857         (__strcasestr): Renamed to ..
1858         (STRCASESTR): ...this.
1859         * string/strstr.c (STRSTR): New macro.
1860         (strstr): Renamed to ..
1861         (STRSTR): ...this.
1862         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1863         strstr-c strcasestr-c
1864         (CFLAGS-strstr.c): New.
1865         (CFLAGS-strcasestr.c): Likewise.
1866         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1867         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1868         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1869         * sysdeps/x86_64/multiarch/strstr.c: New file.
1870
1871 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1872
1873         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1874         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1875         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1876         _NL_CTYPE_NONASCII_CASE.
1877         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1878         field.
1879         (ctype_finish): Check whether there are any 8-bit characters outside
1880         the range ASCII has or whether the mapping isn't the same as for
1881         ASCII (±0x20).  Set nonascii_case appropriately.
1882         (ctype_output): Add output handler for nonascii_case.
1883
1884 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1885
1886         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1887         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1888
1889 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1890
1891         [BZ #10360]
1892         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1893         0xffff in the EDNS0 record.
1894
1895 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1896
1897         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1898         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1899         is written before the list head update.
1900         Patch by Andreas Schwab <aschwab@redhat.com>.
1901
1902 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1903             Jakub Jelinek  <jakub@redhat.com>
1904
1905         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1906         corruption thread-safe.
1907
1908 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1909
1910         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1911         overrides atomic_compare_and_exchange_val_rel, define to
1912         atomic_compare_and_exchange_val_rel by default, otherwise default
1913         to catomic_compare_and_exchange_val_acq.
1914         (catomic_compare_and_exchange_bool_rel): If arch overrides
1915         atomic_compare_and_exchange_bool_rel, define to
1916         atomic_compare_and_exchange_bool_rel by default.
1917         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1918         Use catomic_compare_and_exchange_val_rel instead of
1919         catomic_compare_and_exchange_val_acq.
1920
1921 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1922
1923         * sysdeps/generic/ldsodefs.h: Add prototype for
1924         _dl_higher_prime_number.
1925         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1926
1927         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1928         restoring of ymm registers a bit.
1929
1930 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1931
1932         * sysdeps/x86_64/memcmp.S: New file.
1933
1934 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1935
1936         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1937         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1938         pointers in writable memory.
1939
1940 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1941
1942         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1943         * config.make.in: Add config-cflags-avx entry.
1944         * configure.in: Substitute libc_cv_cc_avx.
1945         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1946         * elf/tst-audit4.c: New file.
1947         * elf/tst-audit5.c: New file.
1948         * elf/tst-auditmod4a.c: New file.
1949         * elf/tst-auditmod4b.c: New file.
1950         * elf/tst-auditmod5a.c: New file.
1951         * elf/tst-auditmod5b.c: New file.
1952         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1953         link-defines.sym.
1954         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1955         (La_x86_64_vector): Likewise.
1956         (La_x86_64_regs): Append lr_vector.
1957         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1958         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1959         saving and restoring SSE registers to ...
1960         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1961         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1962         <link-defines.h>.
1963         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1964         La_x86_64_regs.  Allocate extra space and jump to memory at
1965         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1966         (save_and_restore_vector_sse): New.
1967         (save_and_restore_vector_avx): Likewise.
1968         (check_avx): Likewise.
1969         (save_and_restore_vector): Likewise.
1970         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1971         HAVE_AVX_SUPPORT.
1972         * sysdeps/x86_64/link-defines.sym: New file.
1973
1974 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1975
1976         * elf/do-lookup.h: Removed after folding content into...
1977         * elf/dl-lookup.c: ...here.
1978
1979         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1980
1981 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1982
1983         * configure.in: Check for gnu_unique_symbol symbol type.
1984         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1985         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1986         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1987         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1988         change.
1989         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1990         unique symbol table.
1991         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1992         for first namespace.
1993         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1994         unique symbol hash table.
1995         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1996         * elf/tst-unique1.c: New file.
1997         * elf/tst-unique1mod1.c: New file.
1998         * elf/tst-unique1mod2.c: New file.
1999         * elf/tst-unique2.c: New file.
2000         * elf/tst-unique2mod1.c: New file.
2001         * elf/tst-unique2mod2.c: New file.
2002
2003 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2004
2005         * elf/elf.h (STB_GNU_UNIQUE): Define.
2006
2007         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2008         from...
2009         * include/inline-hashtab.h: ...here.
2010         (htab_expand): Adjust for renamed function.  Correct memory handling.
2011
2012 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2013
2014         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2015
2016 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2017
2018         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2019         (PPC_FEATURE_HAS_VSX): Likewise.
2020
2021 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2022
2023         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2024         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2025
2026         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2027         aligned to 16 byte boundaries.
2028         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2029         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2030         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2031
2032 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2033
2034         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2035         * config.make.in (config-cflags-sse4): New variable.
2036         * configure.in: Substitute libc_cv_cc_sse4.
2037         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2038         HAVE_SSE4_SUPPORT.
2039         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2040         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2041         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2042         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2043         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2044         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2045         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2046         * sysdeps/x86_64/multiarch/strspn.S: New file.
2047
2048 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2049
2050         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2051         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2052         (tests): Add tst-audit3 for x86_64.
2053         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2054         ($(objpfx)tst-audit3): Define.
2055         ($(objpfx)tst-audit3.out): Define.
2056         (tst-audit3-ENV): Define.
2057         * elf/tst-audit3.c: New file.
2058         * elf/tst-auditmod3a.c: New file.
2059         * elf/tst-auditmod3b.c: New file.
2060         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2061         and restore xmm6.
2062
2063         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2064         (__stpncpy): Renamed to ...
2065         (STPNCPY): This.
2066         (stpncpy): Create alias only if STPNCPY is not defined.
2067         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2068         defined.
2069         (strncpy): Renamed to ...
2070         (STRNCPY): This.
2071         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2072          stpncpy-c strncpy-c for string.
2073         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2074         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2075         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2076         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2077         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2078         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2079
2080 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2081
2082         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2083         adding to fast bin list.
2084
2085 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2086
2087         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2088         inet_makeaddr.  This worked only with class-based networks.
2089         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2090         Likewise.
2091
2092         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2093         recognize all types.
2094         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2095         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2096         be in host byte order.
2097
2098 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2099
2100         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2101         (MODEL_OFFSET): Define.
2102         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2103         family and model.
2104         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2105         out common code into new function get_common_indeces. Determine
2106         extended family and model for Intel processors.
2107
2108 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2111         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2112         option.
2113         * resolv/res_send.c (reopen): New function.  Broken out of...
2114         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2115         fallback mechanism.  If single-request fails switch to
2116         single-request-reopen mode which opens a new socket for the second
2117         request.
2118
2119 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2120
2121         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2122         (CHECK_SP): Use it.
2123
2124 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2125
2126         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2127         for saved registers.
2128         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2129         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2130         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2131
2132 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2133
2134         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2135
2136 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2137
2138         * po/id.po: Update from translation team.
2139
2140         * po/bg.po: Update from translation team.
2141
2142 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2143
2144         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2145         defined.
2146         (strncmp): Renamed to STRNCMP.
2147         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2148         strncmp-c for string.
2149         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2150         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2151         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2152         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2153
2154 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2155
2156         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2157         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2158         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2159         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2160         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2161         ifuncmain7static.c.
2162         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2163         ifuncmain7static, and ifuncmain7picstatic.
2164         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2165         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2166         $(objpfx)ifuncmain7pie.out.
2167         (modules-names): Add ifuncmod5 ifuncmod6
2168         (ifuncmod5.so-no-z-defs): Define.
2169         (ifuncmod6.so-no-z-defs): Define.
2170         (CFLAGS-ifuncmain5pic.c): Define.
2171         (CFLAGS-ifuncmain5picstatic.c): Define.
2172         (CFLAGS-ifuncmain5staticpic.c): Define.
2173         (CFLAGS-ifuncdep5pic.c): Define.
2174         (CFLAGS-ifuncmain7pic.c): Define.
2175         (CFLAGS-ifuncmain7picstatic.c): Define.
2176         (CFLAGS-ifuncmain1staticpie.c): Define.
2177         (CFLAGS-ifuncmain5pie.c): Define.
2178         (CFLAGS-ifuncmain6pie.c): Define.
2179         (CFLAGS-ifuncmain7pie.c): Define.
2180         ($(objpfx)ifuncmain1staticpie.out): Define.
2181         ($(objpfx)ifuncmain1staticpie): Define.
2182         ($(objpfx)ifuncmain5pie.out): Define.
2183         ($(objpfx)ifuncmain5pie): Define.
2184         ($(objpfx)ifuncmain6pie.out): Define.
2185         ($(objpfx)ifuncmain6pie): Define.
2186         ($(objpfx)ifuncmain5): Define.
2187         ($(objpfx)ifuncmain5pic): Define.
2188         ($(objpfx)ifuncmain5static): Define.
2189         ($(objpfx)ifuncmain5staticpic): Define.
2190         ($(objpfx)ifuncmain5picstatic): Define.
2191         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2192         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2193         ifuncmain6pie.out.
2194         * elf/b/elf/ifuncmain1staticpie.c: New file.
2195         * elf/ifuncdep5.c: New file.
2196         * elf/ifuncdep5pic.c: New file.
2197         * elf/ifuncmain5.c: New file.
2198         * elf/ifuncmain5pic.c: New file.
2199         * elf/ifuncmain5picstatic.c: New file.
2200         * elf/ifuncmain5pie.c: New file.
2201         * elf/ifuncmain5static.c: New file.
2202         * elf/ifuncmain5staticpic.c: New file.
2203         * elf/ifuncmain6pie.c: New file.
2204         * elf/ifuncmain7.c: New file.
2205         * elf/ifuncmain7pic.c: New file.
2206         * elf/ifuncmain7picstatic.c: New file.
2207         * elf/ifuncmain7pie.c: New file.
2208         * elf/ifuncmain7static.c: New file.
2209         * elf/ifuncmod5.c: New file.
2210         * elf/ifuncmod6.c: New file.
2211
2212 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2213
2214         [BZ #10085]
2215         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2216         (nss_endgrent): New variable.
2217         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2218         fields. Change type of files to bool and adjust all users.
2219         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2220         (internal_endgrent): Call nss_endgrent if necessary.
2221         (add_group): New function.  Broken out of...
2222         (check_and_add_group): ...here.
2223         (getgrent_next_nss): Remove test that any callback is available.
2224         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2225         callback.  If there is no blacklist we can trust the results returned
2226         by the initgroups_dyn callback.  In case there is a callback and we
2227         find a group entry for the group ID but it doesn't contain the
2228         correct member, switch to the slow mode and use getgrent_r.
2229         (internal_getgrent_r): When we see a +: entry, determine whether
2230         there is any callback and which we can use the initgroups_dyn
2231         callback.
2232
2233 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2234
2235         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2236         (_int_free): Likewise.
2237
2238         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2239         AF_IEEE802154.
2240         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2241         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2242         and ARPHRD_IEEE802154_PHY.
2243
2244         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2245         relative to generic Linux version.
2246
2247 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2248
2249         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2250         ($(objpfx)ifuncmain1vispie): Likewise.
2251
2252 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2253
2254         * login/Makefile: Build pt_chown as PIE.
2255
2256 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2257
2258         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2259         a format string.
2260         * elf/sln.c (usage): Likewise.
2261         * malloc/memusage.sh (do_help): Likewise.
2262         * nss/getent.c (more_help): Likewise.
2263         * posix/getconf.c (main): Likewise.
2264         * sunrpc/rpcinfo.c (usage): Likewise.
2265         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2266
2267 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2268
2269         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2270         those needed.
2271         * login/Makefile: If necessary link pt_chown with -lcap.
2272         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2273         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2274
2275 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2276
2277         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2278         comparisons.
2279         * string/test-memchr.c (do_random_tests): Test very large lengths
2280         as well.
2281
2282 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2283
2284         * Makeconfig (+link-pie): Define.
2285         (+prectorS): Define.
2286         (+postctorS): Define.
2287         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2288         * nscd/Makefile ($(objpfx)nscd): Likewise.
2289
2290 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2291
2292         [BZ #10107]
2293         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2294         with cmplwi.
2295         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2296
2297 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2298
2299         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2300         into ...
2301         * sysdeps/unix/grantpt.c: ...here.
2302
2303 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2304
2305         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2306         chmod if it is necessary.
2307
2308         [BZ #10166]
2309         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2310         when the slave device is in devpts or devfs.
2311
2312         [BZ #10183]
2313         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2314
2315         [BZ #10195]
2316         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2317         of nd_opt_home_agent_info_preference to uint16_t.
2318         Patch by Arnaud Ebalard <arno@natisbad.org>.
2319
2320         [BZ #10207]
2321         * nss/getent.c: Add support for printing gshadow data.
2322
2323         [BZ #10203]
2324         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2325         not just the currently used one and those which follow.
2326         Patch by Joe Landers <jlanders@vmware.com>.
2327
2328         [BZ #10196]
2329         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2330         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2331         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2332
2333         [BZ #10217]
2334         * stdlib/abort.c: Define variable __abort_msg.
2335         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2336         * include/stdlib.h: Declare __abort_msg.
2337         * assert/assert-perr.c: Don't free buffer for message immediately.
2338         Store atomically in __abort_msg and free old buffer if necessary.
2339         * assert/assert.c: Likewise.
2340         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2341         store pointer in __abort_msg, and possibly free old string.
2342         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2343
2344         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2345
2346         [BZ #10211]
2347         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2348         handle leap seconds if they are available.
2349         Patch by Akinori Hattori <hattya@gentoo.org>.
2350
2351         * timezone/tzselect.ksh: Update from tzcode2009i.
2352         * timezone/zdump.c: Likewise.
2353         * timezone/zic.c: Likewise.
2354
2355         * timezone/africa: Update from tzdata2009i.
2356         * timezone/antarctica: Likewise.
2357         * timezone/asia: Likewise.
2358         * timezone/australasia: Likewise.
2359         * timezone/backward: Likewise.
2360         * timezone/etcetera: Likewise.
2361         * timezone/europe: Likewise.
2362         * timezone/factory: Likewise.
2363         * timezone/iso3166.tab: Likewise.
2364         * timezone/leapseconds: Likewise.
2365         * timezone/northamerica: Likewise.
2366         * timezone/pacificnew: Likewise.
2367         * timezone/solar87: Likewise.
2368         * timezone/solar88: Likewise.
2369         * timezone/solar89: Likewise.
2370         * timezone/southamerica: Likewise.
2371         * timezone/systemv: Likewise.
2372         * timezone/yearistype: Likewise.
2373         * timezone/zone.tab: Likewise.
2374
2375 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2376
2377         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2378         STT_GNU_IFUNC symbol or in 8 into type_class.
2379
2380         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2381         instead of Elf64_Addr.
2382
2383 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2384
2385         * po/sv.po: Update from translation team.
2386
2387         [BZ #10229]
2388         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2389         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2390         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2391         the C version.
2392
2393 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2394
2395         * Versions.def: Add GLIBC_2.11 for libpthread.
2396
2397 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2398
2399         * resolv/res_send.c (send_dg): Remember we switched to
2400         single-request mode.
2401
2402 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2403
2404         * dlfcn/dlfcn.h: Remove comma at end of enum.
2405         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2406
2407         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2408         parsing mode string.
2409
2410 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2411
2412         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2413
2414         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2415
2416         * sysdeps/x86_64/multiarch/strlen.S: New file.
2417         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2418         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2419         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2420         content.
2421
2422         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2423         is defined.
2424
2425 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2426
2427         * sysdeps/x86_64/strlen.S: Minor optimizations.
2428
2429 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2430
2431         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2432         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2433         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2434         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2435         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2436         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2437         ifuncmain3.c, ifuncmod3.c,.
2438         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2439         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2440         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2441         ifuncmain4picstatic.
2442         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2443         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2444         ifuncmain3, ifuncmain4.
2445         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2446         $(objpfx)ifuncmain1vispie.out.
2447         (modules-names): Add ifuncmod1 ifuncmod3.
2448         (generated): Add ifuncmain1pie ifuncmain1pie.out
2449         ifuncmain1vispie ifuncmain1vispie.out.
2450         Define rules to build and run the tests.
2451         * elf/ifuncdep1.c: New file.
2452         * elf/ifuncdep1pic.c: New file.
2453         * elf/ifuncdep2.c: New file.
2454         * elf/ifuncdep2pic.c: New file.
2455         * elf/ifuncmain1.c: New file.
2456         * elf/ifuncmain1pic.c: New file.
2457         * elf/ifuncmain1picstatic.c: New file.
2458         * elf/ifuncmain1pie.c: New file.
2459         * elf/ifuncmain1static.c: New file.
2460         * elf/ifuncmain1staticpic.c: New file.
2461         * elf/ifuncmain1vis.c: New file..
2462         * elf/ifuncmain1vispic.c: New file..
2463         * elf/ifuncmain1vispie.c: New file.
2464         * elf/ifuncmain2.c: New file.
2465         * elf/ifuncmain2pic.c: New file.
2466         * elf/ifuncmain2picstatic.c: New file.
2467         * elf/ifuncmain2static.c: New file.
2468         * elf/ifuncmain3.c: New file.
2469         * elf/ifuncmain4.c: New file.
2470         * elf/ifuncmain4picstatic.c: New file.
2471         * elf/ifuncmain4static.c: New file.
2472         * elf/ifuncmod1.c: New file.
2473         * elf/ifuncmod3.c: New file.
2474
2475 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2476
2477         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2478
2479 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2480
2481         [BZ #10221]
2482         * posix/Makefile (routines): Add execvpe.
2483         * posix/Versions: Export execvpe for GLIBC_2.11.
2484         * posix/execvp.c: Now only a wrapper.  Move code to...
2485         * posix/execvpe.c: ...here.  New file.
2486         * posix/unistd.h: Declare execvpe.
2487
2488 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2489
2490         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2491         for STT_GNU_IFUNC handling for efficiency.
2492         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2493
2494         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2495         _exit.
2496         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2497
2498 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2499
2500         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2501         for !SHARED.
2502
2503 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2506         is not defined.
2507         (__rela_iplt_start): New declaration.
2508         (__rela_iplt_end): Likewise.
2509         (__rel_iplt_start): Likewise.
2510         (__rel_iplt_end): Likewise.
2511         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2512         * elf/elf.h (R_386_IRELATIVE): New macro.
2513         (R_X86_64_IRELATIVE): New macro.
2514         (R_386_NUM): Updated.
2515         (R_X86_64_NUM): Likewise.
2516         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2517         (libc_ifunc_hidden_def): New macro.
2518         * sysdeps/generic/dl-irel.h: New file.
2519         * sysdeps/i386/dl-irel.h: New file.
2520         * sysdeps/x86_64/dl-irel.h: New file.
2521         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2522         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2523         Handle R_386_IRELATIVE.
2524         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2525         (elf_machine_lazy_rela): Likewise.
2526         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2527         R_X86_64_IRELATIVE.
2528         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2529
2530 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2531
2532         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2533         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2534         are no differences.  If an architecture has bits in CPUID index 1
2535         meaning different things the values for the COMMON_CPUID_INDEX_1
2536         index must not be set.
2537         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2538         (HAS_POPCOUNT): ...this.  New macro.
2539         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2540         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2541         to set the value for Intel and AMD architectures.
2542         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2543         INTEL_CPUID_INDEX_1.
2544         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2545         change.
2546
2547 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2548
2549         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2550         and $build.
2551
2552 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2553
2554         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2555         (__expm1l): Set errno to ERANGE on overflow.
2556         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2557         (__tanl): Set errno to EDOM for Â±Inf.
2558         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2559         (__cosl): Set errno to EDOM for Â±Inf.
2560         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2561         (__sinl): Set errno to EDOM for Â±Inf.
2562
2563         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2564         defined, use it.
2565         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2566         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2567         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2568
2569 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2570
2571         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2572         code accessing it.
2573         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2574
2575 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2576
2577         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2578         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2580         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2581
2582         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2583         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2584         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2585         defined.
2586         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2587         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2588
2589 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2590
2591         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2592         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2593         is, either do nothing at all if __ASSUME_ACCEPT4, or
2594         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2595         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2596         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2597         define.
2598         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2599         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2600         internal_accept4 in socket directory.
2601
2602 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2603
2604         * sysdeps/ia64/configure.in: New file.
2605
2606 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2607
2608         [BZ #10162]
2609         * sysdeps/ia64/memchr.S: Use speculative load.
2610
2611         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2612         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2613         use it.
2614
2615         * sysdeps/i386/__longjmp.S: Add .text.
2616         * sysdeps/x86_64/__longjmp.S: Likewise.
2617
2618 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2619
2620         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2621         __ASSUME_ACCEPT4 for IA-64.
2622
2623 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2624
2625         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2626
2627         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2628         (SOCKOP_accept4): Define.
2629
2630 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2631
2632         Sun approved the change of the license.
2633         * sunrpc/auth_des.c: Replace license text.
2634         * sunrpc/auth_none.c: Likewise.
2635         * sunrpc/auth_unix.c: Likewise.
2636         * sunrpc/authdes_prot.c: Likewise.
2637         * sunrpc/authuxprot.c: Likewise.
2638         * sunrpc/bindrsvprt.c: Likewise.
2639         * sunrpc/clnt_gen.c: Likewise.
2640         * sunrpc/clnt_perr.c: Likewise.
2641         * sunrpc/clnt_raw.c: Likewise.
2642         * sunrpc/clnt_simp.c: Likewise.
2643         * sunrpc/clnt_tcp.c: Likewise.
2644         * sunrpc/clnt_udp.c: Likewise.
2645         * sunrpc/clnt_unix.c: Likewise.
2646         * sunrpc/des_crypt.c: Likewise.
2647         * sunrpc/des_soft.c: Likewise.
2648         * sunrpc/get_myaddr.c: Likewise.
2649         * sunrpc/getrpcport.c: Likewise.
2650         * sunrpc/key_call.c: Likewise.
2651         * sunrpc/key_prot.c: Likewise.
2652         * sunrpc/openchild.c: Likewise.
2653         * sunrpc/pm_getmaps.c: Likewise.
2654         * sunrpc/pm_getport.c: Likewise.
2655         * sunrpc/pmap_clnt.c: Likewise.
2656         * sunrpc/pmap_prot.c: Likewise.
2657         * sunrpc/pmap_prot2.c: Likewise.
2658         * sunrpc/pmap_rmt.c: Likewise.
2659         * sunrpc/rpc/auth.h: Likewise.
2660         * sunrpc/rpc/auth_unix.h: Likewise.
2661         * sunrpc/rpc/clnt.h: Likewise.
2662         * sunrpc/rpc/des_crypt.h: Likewise.
2663         * sunrpc/rpc/key_prot.h: Likewise.
2664         * sunrpc/rpc/netdb.h: Likewise.
2665         * sunrpc/rpc/pmap_clnt.h: Likewise.
2666         * sunrpc/rpc/pmap_prot.h: Likewise.
2667         * sunrpc/rpc/pmap_rmt.h: Likewise.
2668         * sunrpc/rpc/rpc.h: Likewise.
2669         * sunrpc/rpc/rpc_des.h: Likewise.
2670         * sunrpc/rpc/rpc_msg.h: Likewise.
2671         * sunrpc/rpc/svc.h: Likewise.
2672         * sunrpc/rpc/svc_auth.h: Likewise.
2673         * sunrpc/rpc/types.h: Likewise.
2674         * sunrpc/rpc/xdr.h: Likewise.
2675         * sunrpc/rpc_clntout.c: Likewise.
2676         * sunrpc/rpc_cmsg.c: Likewise.
2677         * sunrpc/rpc_common.c: Likewise.
2678         * sunrpc/rpc_cout.c: Likewise.
2679         * sunrpc/rpc_dtable.c: Likewise.
2680         * sunrpc/rpc_hout.c: Likewise.
2681         * sunrpc/rpc_main.c: Likewise.
2682         * sunrpc/rpc_parse.c: Likewise.
2683         * sunrpc/rpc_parse.h: Likewise.
2684         * sunrpc/rpc_prot.c: Likewise.
2685         * sunrpc/rpc_sample.c: Likewise.
2686         * sunrpc/rpc_scan.c: Likewise.
2687         * sunrpc/rpc_scan.h: Likewise.
2688         * sunrpc/rpc_svcout.c: Likewise.
2689         * sunrpc/rpc_tblout.c: Likewise.
2690         * sunrpc/rpc_util.c: Likewise.
2691         * sunrpc/rpc_util.h: Likewise.
2692         * sunrpc/rpcinfo.c: Likewise.
2693         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2694         * sunrpc/rpcsvc/key_prot.x: Likewise.
2695         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2696         * sunrpc/rpcsvc/mount.x: Likewise.
2697         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2698         * sunrpc/rpcsvc/rex.x: Likewise.
2699         * sunrpc/rpcsvc/rstat.x: Likewise.
2700         * sunrpc/rpcsvc/rusers.x: Likewise.
2701         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2702         * sunrpc/rpcsvc/spray.x: Likewise.
2703         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2704         * sunrpc/rtime.c: Likewise.
2705         * sunrpc/svc.c: Likewise.
2706         * sunrpc/svc_auth.c: Likewise.
2707         * sunrpc/svc_authux.c: Likewise.
2708         * sunrpc/svc_raw.c: Likewise.
2709         * sunrpc/svc_run.c: Likewise.
2710         * sunrpc/svc_simple.c: Likewise.
2711         * sunrpc/svc_tcp.c: Likewise.
2712         * sunrpc/svc_udp.c: Likewise.
2713         * sunrpc/svc_unix.c: Likewise.
2714         * sunrpc/svcauth_des.c: Likewise.
2715         * sunrpc/xcrypt.c: Likewise.
2716         * sunrpc/xdr.c: Likewise.
2717         * sunrpc/xdr_array.c: Likewise.
2718         * sunrpc/xdr_float.c: Likewise.
2719         * sunrpc/xdr_mem.c: Likewise.
2720         * sunrpc/xdr_rec.c: Likewise.
2721         * sunrpc/xdr_ref.c: Likewise.
2722         * sunrpc/xdr_sizeof.c: Likewise.
2723         * sunrpc/xdr_stdio.c: Likewise.
2724
2725         * po/da.po: Update from translation team.
2726
2727 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2728
2729         * sysdeps/sh/____longjmp_chk.S: New file.
2730         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2731         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2732
2733 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2734             Ulrich Drepper  <drepper@redhat.com>
2735
2736         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2737         (__nscd_cache_search): Assume each entry in the
2738         hash chain needs one hashentry and half of datahead.  Use
2739         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2740
2741 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2742
2743         * posix/sys/wait.h: Fix typos.  Pretty printing.
2744         * stdlib/stdlib.h: Likewise.  Correct comments.
2745
2746         [BZ #10159]
2747         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2748
2749         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2750         patch.
2751
2752 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2753
2754         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2755         Use it if we absolutely cannot reach any more correct list elements
2756         because that many do not fit into the currently mapped database.
2757
2758 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2759
2760         * nscd/nscd_helper.c: Include stddef.h.
2761         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2762         in a couple of places.  Return NULL if trail is not less than
2763         datasize, don't consider dataheads with length smaller than
2764         offsetof (struct datahead, data) + datalen.
2765         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2766         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2767         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2768         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2769         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2770         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2771         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2772
2773         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2774         Rename ...
2775         (fallocate64): ... to this.
2776         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2777         Rename ...
2778         (fallocate64): ... to this.
2779         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2780         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2781         fallocate64@@GLIBC_2.10.
2782         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2783         fallocate64@@GLIBC_2.11.
2784         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2786         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2787         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2788
2789         * nscd/selinux.c (nscd_avc_destroy): Removed.
2790         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2791         * nscd/nscd.c (termination_handler): Don't call
2792         nscd_avc_destroy.
2793
2794 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2795
2796         * include/atomic.h: Formatting.
2797         (catomic_compare_and_exchange_val_acq): Don't define if already
2798         defined by bits/atomic.h.
2799
2800 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2801
2802         * math/libm-test.inc (expm1_test): Add test for range error.
2803
2804         * Versions.def: Add GLIBC_2.11 for libc.
2805         * debug/Makefile (routines): Add longjmp_chk.
2806         Add rules to build and run tst-longjmp_chk.
2807         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2808         * debug/longjmp_chk.c: New file.
2809         * debug/tst-longjmp_chk.c: New file.
2810         * include/bits/setjmp2.: New file.
2811         * include/stdio.h: Mark __fortify_fail as internal_function.
2812         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2813         * setjmp/bits/setjmp2.h: New file.
2814         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2815         of the aliases.
2816         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2817         defined.
2818         * sysdeps/i386/____longjmp_chk.S: New file.
2819         * sysdeps/x86_64/____longjmp_chk.S: New file.
2820         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2821         * sysdeps/x86_64/__longjmp.S: Likewise.
2822
2823         * version.h: Bump for 2.11 development.
2824
2825         * elf/check-execstack.c: New file.
2826         * elf/Makefile: Add rules to build and run check-execstack.
2827
2828 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2829
2830         * version.h (VERSION): Bump to 2.10.1.
2831
2832         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2833         compatibility functions.
2834         * nss/getXXent_r.c: Likewise.
2835         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2836         * gshadow/getsgnam_r.c: Likewise.
2837         * gshadow/Version: Remove duplicate entries.
2838
2839         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2840         for recent processor.
2841         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2842         Likewise.
2843
2844 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2845
2846         * version.h (VERSION): Bump for 2.10 release.
2847         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2848
2849         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2850         same place we add ASFLAGS-config.
2851
2852 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2853
2854         [BZ #10128]
2855         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2856         or FORMERR and the other NOERROR, don't raise an error.
2857
2858 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2859
2860         [BZ #10118]
2861         * Makeconfig (+asflags): New variable based upon ASFLAG or
2862         asflags-cpu.
2863         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2864         * config.make.in (asflags-cpu): Add variable based upon
2865         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2866         the assembler.
2867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2868         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2869         recognizes power6 instruction set due to passing -mcpu=power6 from
2870         --with-cpu=power6 when compiling .S files.
2871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2872         Likewise.
2873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2874         Likewise.
2875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2876         Likewise.
2877
2878 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2879
2880         * string/stratcliff.c (do_test): Test for zero length
2881         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2882         at the end of the page.
2883
2884 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2885
2886         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2887
2888         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2889         count is zero.
2890
2891         * po/da.po: Update from translation team.
2892
2893 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2894
2895         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2896         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2897
2898 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2899
2900         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2901         and READ_IMPLIES_EXEC.
2902
2903 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2904
2905         * po/da.po: Update from translation team.
2906
2907 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2908
2909         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2910         comment change.
2911
2912 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2913
2914         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2915         to MAP_ANON in PROT_NONE mmap64 call.
2916         (open_archive): Likewise.
2917         (file_data_available_p): Use mmap64 instead of mremap.
2918         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2919         Attempt to reserve address space after mmap64 region.
2920
2921 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2922
2923         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2924         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2925         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2926
2927         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2928         atanh should set ERANGE.
2929
2930         [BZ #10087]
2931         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2932         result of lookup to make call to implement STT_GNU_IFUNC.
2933         (_dl_profile_fixup): Likewise.
2934         Patch by H.J. Lu <hjl.tools@gmail.com>.
2935
2936         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2937         warning.
2938
2939         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2940         from definition.
2941
2942         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2943         label if it is not used.
2944
2945         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2946         of gmon_hist_hdr and gmon_hdr structures and use them.
2947         * elf/sprof.c: Likewise.
2948
2949         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2950         warning.
2951
2952         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2953
2954         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2955         to avoid cast.
2956
2957         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2958         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2959         to avoid warnings.
2960         (iruserok_af): Use ss_family instead of casts.
2961
2962         * gmon/gmon.c (write_hist): Define real-type variant of
2963         gmon_hist_hdr structure and use it.
2964         (write_gmon): Likewise for gmon_hdr.
2965
2966         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2967         function if we are not going to define it.
2968         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2969
2970         * inet/inet6_option.c (option_alloc): Add temporary variable to
2971         avoid warning.
2972
2973         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2974         name of VTable element.
2975         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2976         * libio/iovsscanf.c: Likewise.
2977         * libio/vasprintf.c: Likewise.
2978         * libio/vsnprintf.c: Likewise.
2979         * stdio-common/isoc99_vsscanf.c: Likewise.
2980         * stdlib/strfmon_l.c: Likewise.
2981         * debug/vasprintf_chk.c: Likewise.
2982         * debug/vsnprintf_chk.c: Likewise.
2983         * debug/vsprintf_chk.c: Likewise.
2984
2985         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2986         function pointers.
2987
2988 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2989
2990         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2991
2992 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2993
2994         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2995
2996         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2997         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2998         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2999         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3000         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3001         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3002         * math/libm-test.inc: Add tests for errno after tan calls with
3003         Â±Inf.
3004
3005         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3006         errno value vor pow(+-0,neg).
3007         * math/libm-test.inc (pow_test): Add tests for errno value for
3008         pole errors.
3009
3010         * math/w_fmod.c: Also handle x=±Inf as error.
3011         * math/w_fmodf.c: Likewise.
3012         * math/w_fmodl.c: Likewise.
3013         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3014         x=±Inf or y=0.
3015
3016         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3017         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3018         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3019         * sysdeps/i386/fpu/s_sin.S: Likewise.
3020         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3021         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3022         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3023         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3024         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3025         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3026         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3027         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3028         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3029         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3030         Â±Inf.
3031
3032         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3033         ERANGE for underflows.
3034         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3035
3036         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3037         the 2001 revision.
3038
3039         * libio/tst-widetext.input: Remove surrogates.
3040
3041         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3042
3043         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3044         for lgamma should set errno to ERANGE, not EDOM.
3045         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3046
3047 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3048
3049         [BZ #10093]
3050         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3051         UTF-16 surrogates.
3052
3053         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3054         space when temporarily mapping the whole content of the old file.
3055
3056         [BZ #10100]
3057         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3058         not zero.
3059
3060 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3061
3062         * iconvdata/sjis.c (BODY): Don't advance inptr before
3063         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3064         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3065         two byte chars.
3066
3067 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3068
3069         * locale/locarchive.h (struct locarhandle): Rename len field to
3070         mmaped and add new reserved field.
3071         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3072         (create_archive): Reserve address space and then map file into it.
3073         (open_archive): Likewise.
3074         (file_data_available_p): New function.
3075         (compare_from_file): New function.
3076         (close_archive): Adjust to member name changes.
3077         (add_locale): Before comparing locale data, check it is mapped.
3078         Otherwise fall back to reading from the file.
3079
3080 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3081
3082         * stdio-common/psiginfo.c: Include <errno.h>.
3083
3084 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3085
3086         [BZ #9920]
3087         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3088         to get consistency between 32 and 64 bit architectures.
3089
3090         [BZ #10052]
3091         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3092         directory for dummy syscall rules.
3093         Patch by Chris Steinbroner <hesh@pobox.com>.
3094
3095 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3096
3097         [BZ #10092]
3098         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3099         MNT_EXPIRE.
3100
3101 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3102
3103         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3104         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3105
3106 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3107
3108         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3109         data from vector to temporary buffer and call PWRITEV after it
3110         instead of vice versa.
3111         * sysdeps/posix/preadv.c: Fix up comment.
3112         * misc/preadv.c: Likewise.
3113         * misc/preadv64.c: Likewise.
3114         * misc/pwritev.c: Likewise.
3115         * misc/pwritev64.c: Likewise.
3116         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3117
3118 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3119
3120         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3121
3122         * shadow/Makefile (tests): Add tst-shadow.
3123         * shadow/tst-shadow.c: New file.
3124
3125         [BZ #9955]
3126         * gshadow/Makefile: New file.
3127         * gshadow/Versions: New file.
3128         * gshadow/fgetsgent.c: New file.
3129         * gshadow/fgetsgent_r.c: New file.
3130         * gshadow/getsgent.c: New file.
3131         * gshadow/getsgent_r.c: New file.
3132         * gshadow/getsgnam.c: New file.
3133         * gshadow/getsgnam_r.c: New file.
3134         * gshadow/gshadow.h: New file.
3135         * gshadow/putsgent.c: New file.
3136         * gshadow/sgetsgent.c: New file.
3137         * gshadow/sgetsgent_r.c: New file.
3138         * gshadow/tst-gshadow.c: New file.
3139         * include/gshadow.h: New file.
3140         * Makeconfig (all-subdirs): Add gshadow.
3141         * Makefile (installed-headers): Add gshadow/gshadow.h.
3142         * nss/Makefile (databases): Add sgrp.
3143         * nss/Versions: Add gshadow functions as private exports.
3144         * nss/nsswitch.conf: Add gshadow entry.
3145         * nss/sgrp-lookup.c: New file.
3146         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3147         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3148         * nss/nss_files/files-sgrp.c: New file.
3149         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3150         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3151
3152 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3153
3154         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3155         * stdio-common/reg-modifier.c: Likewise.
3156
3157 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3158
3159         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3160         is no FPU.
3161
3162 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3163
3164         [BZ #10086]
3165         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3166         headers up to 2.6.30.
3167
3168         * po/ca.po: Update from translation team.
3169
3170 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3171
3172         [BZ #10069]
3173         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3174         an object that uses static TLS if the TLS modid is higher than the
3175         reserve we always allocate.  At least for multi-threaded code.
3176
3177 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3178
3179         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3180         Numerically stable check for valid width.
3181
3182         * locale/programs/locarchive.c (open_archive): Map the entire file
3183         and not just the administrative data.
3184         (add_locale): When we find a hash sum match compare the content
3185         to be sure.
3186
3187         * malloc/malloc.c (malloc_info): Output address space information.
3188
3189 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3190
3191         * malloc/malloc.c (malloc_info): Also output system memory information.
3192
3193         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3194         architectures have preadv/pwritev in 2.6.30.
3195
3196         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3197         * sysdeps/posix/readv.c: Likewise.
3198         Reported by Markus Armbruster <armbru@redhat.com>.
3199
3200         * malloc/hooks.c (top_check): Force hook value into register.
3201
3202 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3203
3204         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3205         calls to _dl_relocate_object.
3206
3207 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3208
3209         [BZ #9957]
3210         * malloc/malloc.c (force_reg): Define.
3211         (sYSMALLOc): Load hook variable into variable
3212         before test and force into register.
3213         (sYSTRIm): Likewise.
3214         (public_mALLOc): Force hook value into register.
3215         (public_fREe): Likewise.
3216         (public_rEALLOc): Likewise.
3217         (public_mEMALIGn): Likewise.
3218         (public_vALLOc): Likewise.
3219         (public_pVALLOc): Likewise.
3220         (public_cALLOc): Likewise.
3221         (__posix_memalign): Likewise.
3222         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3223         before test and force into register.
3224         * malloc/hooks.c (top_check): Likewise.
3225         (public_sET_STATe): Pretty printing.
3226
3227         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3228         in case we only receive one reply in single-request mode.
3229
3230 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3231
3232         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3233         are dlopened in statically linked program even for __LM_ID_CALLER.
3234
3235 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3236
3237         * resolv/res_send.c (send_dg): Don't switch into single-request
3238         mode if we already are in it.
3239
3240 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3241
3242         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3243         are always at least 4 bytes in the returned line.
3244
3245 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3246
3247         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3248         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3249         instead of 8K.  Stop searching in /proc/stat after hitting first
3250         line not starting with cpu.
3251         (next_line): Truncate too long
3252         lines at buffer size * 3/4 instead of pretending there were line
3253         breaks inside of large lines.
3254
3255 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3256
3257         * sysdeps/x86_64/mp_clz_tab.c: New file.
3258
3259 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3260             Ulrich Drepper  <drepper@redhat.com>
3261
3262         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3263         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3264         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3265
3266 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3267
3268         * sysdeps/sh/libc-tls.c: New file.
3269
3270         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3271
3272 2009-04-14  Roland McGrath  <roland@redhat.com>
3273
3274         * elf/elf.h: Add various missing ARM constants, to match binutils.
3275
3276 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3277
3278         Optimizations from GMP.
3279         * sysdeps/x86_64/add_n.S: New file.
3280         * sysdeps/x86_64/addmul_1.S: New file.
3281         * sysdeps/x86_64/lshift.S: New file.
3282         * sysdeps/x86_64/mul_1.S: New file.
3283         * sysdeps/x86_64/rshift.S: New file.
3284         * sysdeps/x86_64/sub_n.S: New file.
3285         * sysdeps/x86_64/submul_1.S: New file.
3286
3287 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3288
3289         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3290         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3291         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3292         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3293
3294 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3295
3296         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3297         preadv/pwritev.
3298
3299 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3300
3301         * sysdeps/x86-64/strrchr.S: New file.
3302
3303 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3304
3305         * stdio-common/printf.h (struct printf_info): Add user element.
3306         New types printf_arginfo_size_function, printf_va_arg_function.
3307         Declare register_printf_specifier, register_printf_modifier,
3308         register_printf_type.
3309         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3310         (union printf_arg): Add pa_user element.
3311         Adjust __printf_arginfo_table type.
3312         Add __printf_va_arg_table, __printf_modifier_table,
3313         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3314         declarations.
3315         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3316         If registered arginfo call failed try normal specifier.
3317         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3318         function.
3319         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3320         * stdio-common/Versions: Export register_printf_modifier,
3321         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3322         * stdio-common/reg-modifier.c: New file.
3323         * stdio-common/reg-type.c: New file.
3324         * stdio-common/reg-printf.c (__register_printf_specifier): New
3325         function.  Mostly the old __register_printf_function function but
3326         uses locking and type of third parameter changed.
3327         (__register_printf_function): Implement using
3328         __register_printf_specifier.
3329         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3330         calls to arginfo functions.  Allocate enough memory for user-defined
3331         types.  Call new va_arg functions to get user-defined types.
3332         Try installed handlers even for existing format specifiers first.
3333
3334 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3335
3336         * sysdeps/x86_64/rawmemchr.S: New file.
3337
3338         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3339         Simplified code and possible copy problem fixed.
3340
3341         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3342         function if it is not defined.  Add some necessary casts.
3343         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3344
3345         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3346         have preadv/pwritev in 2.6.30.
3347
3348 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3349
3350         * malloc/malloc.c (malloc_info): New function.
3351         * malloc/malloc.h: Declare it.
3352         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3353
3354         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3355         to avoid PLT slot.
3356
3357         * malloc/malloc.c (_int_realloc): Add parameter with old block
3358         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3359         Adjust all callers.
3360         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3361
3362 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3363
3364         * sysdeps/x86_64/strchrnul.S: New file.
3365
3366         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3367         depending libcrypt on -lfreebl3.
3368
3369         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3370         preadv/pwritev in 2.6.30.
3371
3372         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3373         instead of __strcasecmp.
3374
3375         * string/stratcliff.c (do_test): Add memchr tests..
3376         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3377         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3378         first read quad word.
3379
3380 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3381
3382         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3383         * string/tst-svc.input: Add new test case.
3384         * string/tst-svc.expect: Adjust.
3385         * string/Makefile: Don't ignore tst-svc error.
3386
3387         * sysdeps/x86_64/memchr.S: New file.
3388
3389         * resolv/resolv.h (RES_SNGLKUP): Define.
3390         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3391         * resolv/res_send.c (send_dg): If we sent two requests at once and
3392         only get one reply before timeout switch to mode where we send the
3393         second request only after the first answer has been received.
3394
3395 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3396
3397         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3398         * sysdeps/x86_64/strchr.S: Likewise.
3399
3400 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3401
3402         * configure.in: We need to test for the compiler earlier.
3403
3404         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3405         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3406         GLIBC_2.10.
3407         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3408         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3409         and pwritev.
3410         * misc/preadv.c: New file.
3411         * misc/preadv64.c: New file.
3412         * misc/pwritev.c: New file.
3413         * misc/pwritev64.c: New file.
3414         * sysdeps/posx/preadv.c: New file.
3415         * sysdeps/posx/preadv64.c: New file.
3416         * sysdeps/posx/pwritev.c: New file.
3417         * sysdeps/posx/pwritev64.c: New file.
3418         * sysdeps/unix/sysv/linux/preadv.c: New file.
3419         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3420         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3421         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3422         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3423         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3424
3425         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3426         compatibility code.
3427         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3428
3429         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3430         __ASSUME_COMPLETE_READV_WRITEV.
3431         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3432         with modern kernels.
3433         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3434
3435         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3436         to free a possible malloced buffer in case of cancellation.
3437         * sysdeps/posix/writev.c: Likewise for write.
3438
3439 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3440
3441         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3442
3443         * configure.in: Recognize --enable-nss-crypt.
3444         * config.make.in: Add nss-crypt entry.
3445         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3446         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3447         and include path for NSS directory to compiler for md5-crypt,
3448         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3449         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3450         function implementation, use NSS.  Introduce wrappers around the
3451         hash function calls.  Little code size optimization.
3452         * crypt/sha256-crypt.c: Likewise.
3453         * crypt/sha512-crypt.c: Likewise.
3454         * scripts/check-local-headers.sh: Ignore nss3 directory.
3455
3456         * configure.in: Rename pic_default to libc_cv_pic_default.
3457         * config.make.in: Likewise.
3458
3459 2009-04-01  Roland McGrath  <roland@redhat.com>
3460
3461         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3462         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3463         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3464         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3465         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3466         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3467         (R_SPARC_NUM): Update.
3468         From Dave Miller <davem@davemloft.net>.
3469
3470 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3471
3472         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3473
3474 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3475
3476         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3477         those which are used.
3478         * elf/dl-addr.c: Likewise.
3479         * elf/dl-caller.c: Likewise.
3480         * elf/dl-fini.c: Likewise.
3481         * elf/dl-iteratephdr.c: Likewise.
3482         * elf/dl-libc.c: Likewise.
3483         * elf/dl-load.c: Likewise.
3484         * elf/dl-support.c: Likewise.
3485         * elf/dl-sym.c: Likewise.
3486         * elf/rtld.c: Likewise.
3487         * sysdeps/generic/ldsodefs.h: Likewise.
3488
3489         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3490         * elf/dl-minimal.c: Likewise.
3491         * elf/dl-misc.c: Likewise.
3492         * elf/rtld.c: Likewise.
3493         * sysdeps/generic/ldsodefs.h: Likewise.
3494
3495 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3496
3497         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3498         Avoid reuse of complex expression.
3499
3500         * po/fr.po: Update from translation team.
3501
3502 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3503
3504         * include/dirent.h: Yet more changes to match sort function type
3505         change.
3506         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3507         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3508         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3509
3510 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3511
3512         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3513
3514 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3515
3516         * nscd/connections.c (restart): Try to preserve the process name
3517         by reading the /proc/self/exe symlink and using the return name.
3518         Patch by Jeff Bastian <jbastian@redhat.com>.
3519
3520 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3521
3522         [BZ #9733]
3523         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3524         if we are not loading a new audit library.
3525         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3526         Only use profiling trampoline for auditing if we are not relocating
3527         an audit library.
3528         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3529         * elf/rtld.c: Likewise.
3530         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3531
3532         * elf/rtld.c (dl_main): Extend help message for --audit option.
3533
3534         [BZ #9759]
3535         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3536         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3537         * dirent/alphasort.c: Adjust implementation to type change.
3538         * dirent/alphasort64.c: Likewise.
3539         * dirent/scandir.c: Likewise.
3540         * dirent/versionsort.c: Likewise.
3541         * dirent/versionsort64.c: Likewise.
3542         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3543         declaration.
3544         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3545         declaration.
3546
3547         [BZ #9880]
3548         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3549         correctly.  Set segleft member in output as required.
3550         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3551         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3552
3553         [BZ #9881]
3554         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3555         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3556         * inet/Makefile (tests): Add tst-inet6_rth.
3557         * inet/tst-inet6_rth.c: New file.
3558
3559         [BZ #5807]
3560         * string/strlen.c (strlen): Fix omission in the expression to test
3561         for NUL bytes.
3562
3563 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3564
3565         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3566
3567         * elf/dl-runtime.c (reloc_offset): Define.
3568         (reloc_index): Define.
3569         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3570         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3571         computing index from reloc_offset.
3572         (_dl_call_pltexit): Likewise.
3573         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3574         the relocation index to _dl_fixup.
3575         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3576         _dl_call_pltexit.
3577         * sysdeps/x86_64/dl-runtime.c: New file.
3578
3579         [BZ #9893]
3580         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3581         alignment of La_x86_64_regs.  Store xmm parameters.
3582         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3583
3584         [BZ #9913]
3585         * string/strverscmp.c (__strverscmp): Fix case of different digits
3586         in fractional part of string.
3587         Patch by Jingyu Liu <jyliu@fortinet.com>.
3588         * string/Makefile (tests): Add tst-svc2.
3589         * string/tst-svc2.c: New file.
3590
3591         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3592
3593         * locale/iso-639.def: Add Min Nan.
3594
3595 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3596
3597         [BZ #9948]
3598         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3599
3600 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3601
3602         * elf/dl-sysdep.c (auxvars): Compress data structure.
3603
3604         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3605         STT_GNU_IFUNC handling.
3606         (elf_machine_rela): Likewise.
3607
3608 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3609
3610         * config.h.in (USE_MULTIARCH): Define.
3611         * configure.in: Handle --enable-multi-arch.
3612         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3613         (_dl_fixup_profile): Likewise.
3614         * elf/do-lookup.c (dl_lookup_x): Likewise.
3615         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3616         * elf/elf.h (STT_GNU_IFUNC): Define.
3617         * include/libc-symbols.h (libc_ifunc): Define.
3618         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3619         framework in init-arch.h to get CPUID values.
3620         * sysdeps/x86_64/multiarch/Makefile: New file.
3621         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3622         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3623         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3624
3625         * config.make.in (experimental-malloc): Define.
3626         * configure.in: Handle --enable-experimental-malloc.
3627         * malloc/Makefile: Handle experimental-malloc flag.
3628         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3629         * malloc/arena.c: Likewise.
3630         * malloc/hooks.c: Likewise.
3631         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3632
3633 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3634
3635         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3636         prediction.  A few size optimizations.
3637
3638 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3639
3640         * time/tzset.c: Optimize a bit for size.
3641
3642 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3643
3644         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3645         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3646
3647         * elf/sprof.c: Avoid warning about multi-line comment.
3648
3649 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3650
3651         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3652         DST name.
3653         * time/tst-posixtz.c: Add tests for quoted timezone names.
3654
3655 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3656
3657         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3658         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3659         200809L instead of 200112L.
3660         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3661         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3662
3663         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3664         instead of __quick_exit_funcs to __run_exit_handlers.
3665         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3666         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3667         (__cxa_at_quick_exit): Remove attribute_hidden.
3668         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3669         to __run_exit_handlers.
3670         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3671         attribute_hidden.
3672
3673 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3674
3675         * po/id.po: Update from translation team.
3676
3677 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3678
3679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3680         .machine push; .machine "power6" and .machine pop around mtfsf
3681         insns outside of _ARCH_PWR6 define.
3682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3684         Likewise.
3685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3686         Likewise.
3687         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3688         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3689         relax_fenv_state): Likewise.
3690
3691 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3692
3693         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3694         cxa_at_quick_exit.
3695         (static-only-routines): Add at_quick_exit.
3696         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3697         GLIBC_2.10.
3698         * stdlib/quick_exit.c: New file.
3699         * stdlib/at_quick_exit.c: New file.
3700         * stdlib/cxa_at_quick_exit.c: New file.
3701         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3702         it appropriately.
3703         (__internal_atexit): New function.
3704         (__new_exitfn): Now takes parameter to point to the list to use.
3705         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3706         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3707         (exit): ...here.  Just call __run_exit_handlers appropriately.
3708         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3709         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3710         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3711         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3712
3713         * po/id.po: Update from translation team.
3714
3715 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3716
3717         * po/ru.po: Update from translation team.
3718
3719 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3720
3721         * po/nl.po: Update from translation team.
3722
3723 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3724
3725         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3726         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3727         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3728         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3729         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3730         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3731         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3732
3733         * po/pl.po: Update from translation team.
3734
3735 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3736
3737         [BZ #7083]
3738         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3739         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3740         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3741         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3742         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3743         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3744         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3745         for GLIBC_2.10.
3746         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3747         Add fallocate and fallocate64.
3748
3749         * io/fcntl.h: Pretty printing.
3750
3751 2009-03-02  Richard Guenther  <rguenther@suse.de>
3752
3753         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3754         attribute also for non-C99 inline semantics variant.
3755
3756 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3757
3758         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3759         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3760         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3761         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3763         Likewise.
3764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3765         Likewise.
3766
3767 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3768
3769         * po/cs.po: Update from translation team.
3770
3771 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3772
3773         * po/bg.po: Update from translation team.
3774         * po/sv.po: Likewise.
3775         * po/fi.po: Likewise.
3776         * po/vi.po: Likewise.
3777
3778 2009-02-27  Roland McGrath  <roland@redhat.com>
3779
3780         * Makeconfig (%.v.i): Depend on Makeconfig.
3781         Exclude % lines from initial #-comment removal.
3782
3783 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3784
3785         * po/ko.po: Update from translation team.
3786
3787 2009-02-26  Roland McGrath  <roland@redhat.com>
3788
3789         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3790         avoids unused warning.
3791
3792 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3793             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3794
3795         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3796         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3797         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3798         and asm/user.h.  Include asm/ptrace.h.
3799         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3800         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3801         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3802         Undefine.
3803         (start_thread): Don't undefine.
3804         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3805         Define.
3806
3807 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3808
3809         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3810         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3811         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3812         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3813         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3814         200112L to 200809L.
3815         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3816         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3817         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3818         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3819         _SC_THREAD_ROBUST_PRIO_PROTECT.
3820         * posix/unistd.h: fexecve is in POSIX 2008.
3821         * time/time.h: strftime_l is in POSIX 2008.
3822         * io/sys/stat.h: futimens is in POSIX 2008.
3823         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3824         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3825         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3826         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3827         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3828         open_memstream, and vdprintf are in POSIX 2008.
3829
3830 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3831
3832         * include/features.h: Define macros for XPG7/POSIX 2008.
3833         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3834         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3835         POSIX 2008.
3836         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3837         * locale/xlocale.h: Define locale_t type.
3838         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3839         in POSIX 2008.  Don't define locale_t here.
3840         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3841         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3842         UTIME_OMIT only with __USE_ATFILE.
3843         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3844         * stdio-common/psiginfo.c: New file.
3845         * stdio-common/psiginfo-data.h: New file.
3846         * stdio-common/psiginfo-define.h: New file.
3847         * stdio-common/Makefile (routines): Add psiginfo.
3848         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3849         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3850         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3851         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3852         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3853         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3854         * io/sys/stat.h: Move mknodat definition into same conditional as
3855         mknod.
3856         * time/sys/time.h: futimesat is not among the functions accepted
3857         into the POSIX standard.
3858
3859         * include/features.h: If no feature selection given and we select
3860         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3861         * posix/Versions: Export __posix_getopt.
3862         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3863         Use it to alternatively initialize __posixly_correct.
3864         (_getopt_internal_r): Take addition parameter.  Pass on to
3865         _getopt_initialize.
3866         (_getopt_internal): Take addition parameter.  Pass on to
3867         _getopt_internal_r.
3868         (getopt): Pass additional zero to _getopt_internal.
3869         (__posix_getopt): New function.
3870         * posix/getopt.h: Add redirection for getopt.
3871         * posix/getopt1.c (getopt_long): Pass additional zero to
3872         _getopt_internal.
3873         (getopt_long_only): Likewise.
3874         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3875         (_getopt_long_only_r): Likewise.
3876         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3877         _getopt_internal_r.
3878
3879 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3880
3881         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3882         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3883         * sysdeps/posix/sysconf.c (__sysconf): Handle
3884         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3885         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3886
3887 2009-02-24  Roland McGrath  <roland@redhat.com>
3888
3889         [BZ #9895]
3890         * README.template: Reworded not to use substituted version number.
3891         Renamed to ...
3892         * README: ... here (no longer generated).
3893         * Makefile (README): Target removed.
3894
3895 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3896
3897         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3898         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3899         instead.
3900
3901         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3902
3903         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3904
3905 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3906
3907         * po/bg.po: Update from translation team.
3908
3909 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3910
3911         * stdlib/monetary.h: Uglify function parameter names.
3912         * sunrpc/rpc/pmap_clnt.h: Likewise.
3913         * sunrpc/rpc/svc.h: Likewise.
3914         * sunrpc/rpc/xdr.h: Likewise.
3915         * sunrpc/rpc/clnt.h: Likewise.
3916         * resolv/netdb.h: Likewise.
3917         * resolv/arpa/nameser.h: Likewise.
3918         * resolv/resolv.h: Likewise.
3919         * argp/argp.h: Likewise.
3920         * locale/langinfo.h: Likewise.
3921         * io/sys/stat.h: Likewise.
3922         * posix/spawn.h: Likewise.
3923         * nis/rpcsvc/nislib.h: Likewise.
3924         * malloc/obstack.h: Likewise.
3925         * sysdeps/ia64/bits/link.h: Likewise.
3926         * sysdeps/i386/bits/link.h: Likewise.
3927         * sysdeps/s390/bits/link.h: Likewise.
3928         * sysdeps/powerpc/bits/link.h: Likewise.
3929         * sysdeps/x86_64/bits/link.h: Likewise.
3930         * sysdeps/sparc/bits/link.h: Likewise.
3931         * sysdeps/sh/bits/link.h: Likewise.
3932         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3933         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3934         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3935         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3936
3937 2008-12-01  Fredrik Unger  <fred@tree.se>
3938
3939         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3940         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3941         _FP_UNPACK_RAW_2, fix up first argument.
3942
3943 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3944
3945         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3946         (GET_NPROCS_PARSER): Change parameters and use next_line.
3947         (__get_nprocs): Rewrite to not use stdio routines.
3948         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3949         Change parameters and use next_line.
3950
3951 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3952
3953         [BZ #5381]
3954         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3955         Change mempool_alloc prototype.
3956         * nscd/mem.c (gc): Don't handle mem_in_flight.
3957         (mempool_alloc): Third parameter now only indicates whether this is the
3958         first call (to allocate data) or not.  If it is, get db rdlock.
3959         Release it on error.  Don't handle mem_in_flight.
3960         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3961         Adjust third parameter of mempool_alloc calls.
3962         Nothing to do here in case mempool_alloc fails.
3963         Avoid local variable shadowing parameter.  No need to get db rdlock
3964         before calling cache_add.
3965         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3966         no mem_in_flight array anymore.
3967         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3968         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3969         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3970         in case mempool_alloc fails. No need to get db rdlock before calling
3971         cache_add.
3972         * nscd/hstcache.c (cache_addhst): Likewise.
3973         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3974         * nscd/servicescache.c (cache_addserv): Likewise.
3975         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3976
3977 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3978
3979         * po/lt.po: Update from translation team.
3980
3981 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3982
3983         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3984         defined, allow additional data to be added using the optional
3985         MORE_ELF_HEADER_DATA macro.
3986         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3987         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3988
3989 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3990
3991         * include/atomic.h: Define catomic_and if not already defined.
3992         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3993         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3994
3995 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3996
3997         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3998         Change all callers.
3999         (_int_realloc): Likewise.  Third argument is now padded size
4000         All _int_* functions are now static.
4001
4002         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4003         * malloc/arena.c: Likewise.
4004         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4005         functions.
4006
4007         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4008         easily.
4009
4010         * malloc/malloc.c: Add branch prediction for use of the hooks.
4011
4012         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4013
4014 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4015
4016         [BZ #7095]
4017         * bits/confname.h: Add SUSv7 macros for getconf environments.
4018         * bits/environments.h: Likewise.
4019         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4020         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4021         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4022         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4023         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4024         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4025         * posix/getconf.c: Likewise.
4026         * posix/sysconf.c: Likewise.
4027         * sysdeps/posix/sysconf.c: Likewise.
4028         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4029         environments.
4030
4031 2009-01-16  Petr Baudis  <pasky@suse.cz>
4032
4033         [BZ #9753]
4034         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4035         even if we currently have zero nscount.
4036
4037 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4038
4039         [BZ #9781]
4040         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4041         the input line is too long.
4042
4043         * po/Makefile (libc.pot): Add f_print as function taking c-format
4044         parameter.
4045
4046         * debug/xtrace.sh: Unify translatable messages.
4047         * elf/ldd.bash.in: Likewise.
4048         * elf/sprof.c: Likewise.
4049         * locale/programs/locale.c: Likewise.
4050         * malloc/memusage.sh: Likewise.
4051         * nss/getent.c: Likewise.
4052
4053 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4054
4055         * debug/pcprofiledump.c (print_version,
4056         argp_program_version_hook): New function.
4057         * elf/ldconfig.c (more_help): New function.
4058         (argp): Use it.
4059         * elf/sln.c (usage): New function.
4060         (main): Support --help and --version.
4061         * malloc/memusagestat.c (print_version): New function.
4062         (argp_program_version_hook): New variable.
4063         * nscd/nscd.c (more_help): New function.
4064         (argp): Use it.
4065         * posix/getconf.c (main): Send --version output to stdout.
4066         Support --help.
4067         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4068         arguments.  All callers changed.
4069         (print_version): New function.
4070         (parseargs): Support --help and --version.
4071         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4072         changed.
4073         (print_version): New function.
4074         (main): Use getopt_long.  Support --help and --version.
4075         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4076         --version.
4077
4078 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4079
4080         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4081         (update_data): Fix handling of wrapping back
4082         to the beginning of the buffer.
4083
4084         [BZ #9823]
4085         * stdio-common/psignal.c (psignal): Fix test for empty string.
4086
4087 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4088
4089         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4090         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4091         move _null_auth to .rodata.
4092
4093         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4094         value of 24.
4095
4096         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4097
4098         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4099         today than when the original code was written.  Use larger
4100         buffers.  This also makes it unnecessary to have stat information,
4101         if this causes extra efforts.
4102         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4103         __alloc_dir.
4104
4105 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4106
4107         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4108         is set.
4109         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4110         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4111         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4112         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4113         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4114         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4115
4116 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4117
4118         * po/ru.po: Update from translation team.
4119
4120 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4121
4122         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4123         Add _tid slot to maintain consistency with kernel.
4124
4125 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4126
4127         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4128         incomplete characters at end of input buffer.
4129         * libio/Makefile (tests): Add tst-fgetwc.
4130         * libio/tst-fgetwc.c: New file.
4131         * libio/tst-fgetwc.input: New file.
4132
4133 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4134
4135         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4136
4137 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4138
4139         [BZ #9793]
4140         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4141         *OUTBUFSTART unless the whole output fit into the buffer.
4142         * iconv/Makefile (tests): Add tst-iconv4.
4143         * iconv/tst-iconv4.c: New file.
4144
4145 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4146
4147         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4148         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4149
4150 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4151
4152         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4153         newer linker scripts.
4154
4155 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4156
4157         [BZ #7040]
4158         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4159         inotify_rm_watch should have type int.
4160
4161 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4162
4163         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4164         Make aligned_restore_vmx a local symbol.
4165         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4166         Likewise.
4167
4168 2009-01-30  Andreas Jaeger  <aj@suse.de>
4169
4170         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4171         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4172         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4173         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4174         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4175         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4176         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4177
4178 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4179
4180         [BZ #9726]
4181         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4182         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4183
4184 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4185
4186         [BZ #9726]
4187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4188         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4190         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4191
4192 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4193
4194         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4195         memcpy instead of memcmp.
4196         (_dl_setup_pointer_guard): Likewise.
4197
4198 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4199
4200         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4201         manipulated brk, use malloc_printerr.
4202         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4203         requests.
4204
4205 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4206
4207         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4208         rindex): For C++ add inlines so that they can be recognized as
4209         builtins.
4210         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4211
4212 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4213             Jakub Jelinek  <jakub@redhat.com>
4214
4215         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4216         * wcsmbs/wchar.h: Likewise.
4217
4218 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4219
4220         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4221         (stackinfo_sub_sp): Define.
4222
4223 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4224
4225         [BZ #9750]
4226         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4227         * include/alloca.h (alloca_account): Define.
4228         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4229         (stackinfo_sub_sp): Define.
4230
4231         * nscd/connections.c (nscd_init): If database file access fails
4232         check whether this is due to permission problems and bail in that
4233         case.
4234
4235         [BZ #9741]
4236         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4237         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4238
4239 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4240
4241         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4242         Add "t" to clobber list.
4243         (INTERNAL_SYSCALL_NCS): Likewise.
4244
4245 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4246
4247         * nss/getent.c (print_networks): Don't print comma between aliases.
4248
4249 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4250
4251         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4252
4253         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4254         the hash table.
4255         * misc/Makefile (tests): Add bug-hsearch1.
4256         * misc/bug-hsearch1.c: New file.
4257
4258 2009-01-22  Roland McGrath  <roland@redhat.com>
4259
4260         * Makeconfig (%.v.i): Strip trailing # comments,
4261         not only whole-line comments.
4262
4263 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4264
4265         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4266         one parameter.  If non-NULL use it to initialize return value.
4267         (_dl_setup_pointer_guard): New function.
4268         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4269         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4270         * elf/rtld.c (security_init): Pass _dl_random to
4271         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4272         pointer_chk_guard.
4273         * elf/dl-sysdep.c (_dl_random): New variable.
4274         (_dl_sysdep_start): Handle AT_RANDOM.
4275         (_dl_show_auxv): Likewise.
4276         * elf/dl-support.c (_dl_random): New variable.
4277         (_dl_aux_init): Handle AT_RANDOM.
4278         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4279         to _dl_setup_stack_chk_guard.
4280
4281         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4282
4283 2009-01-10  Roland McGrath  <roland@redhat.com>
4284
4285         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4286
4287 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4288
4289         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4290
4291         [BZ #9706]
4292         * nss/nss_files/files-parse.c (strtou32): New function.
4293         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4294         across 32-bit and 64-bit platforms.
4295         (INT_FIELD_MAYBE_NULL): Likewise.
4296
4297 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4298
4299         [BZ #9720]
4300         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4301         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4302         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4303         Likewise.
4304
4305 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4306
4307         [BZ #697]
4308         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4309         being NULL also if there are no backreferences.
4310         * posix/rxspencer/tests: Add testcases.
4311
4312 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4313
4314         [BZ #9697]
4315         * posix/bug-regex17.c: Add testcases.
4316         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4317         handling.
4318
4319 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4320
4321         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4322         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4323         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4324         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4325         for elf subdir.
4326         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4327         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4328         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4329         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4330         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4331         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4332
4333 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4334
4335         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4336         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4337         re_string_skip_chars, re_string_reconstruct): Likewise.
4338         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4339
4340 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4341
4342         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4343         adjust the buffer alignment.
4344
4345 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4346
4347         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4348         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4349         net/route.h.
4350
4351         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4352         flavor to description only when flavor is not NULL.
4353
4354         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4355         mutex after SIGIO/SIGURG lookup loop.
4356
4357 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4358
4359         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4360
4361 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4362
4363         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4364         handling.
4365
4366 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4367
4368         * sysdeps/unix/sysv/linux/kernel-features.h
4369         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4370
4371         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4372         if no output is written.
4373
4374         * version.h: Bump to 2.10 development.
4375
4376         * posix/getconf.c: Update copyright year.
4377         * nss/getent.c: Likewise.
4378         * iconv/iconvconfig.c: Likewise.
4379         * iconv/iconv_prog.c: Likewise.
4380         * elf/ldconfig.c: Likewise.
4381         * catgets/gencat.c: Likewise.
4382         * csu/version.c: Likewise.
4383         * elf/ldd.bash.in: Likewise.
4384         * elf/sprof.c (print_version): Likewise.
4385         * locale/programs/locale.c: Likewise.
4386         * locale/programs/localedef.c: Likewise.
4387         * nscd/nscd.c (print_version): Likewise.
4388         * debug/xtrace.sh: Likewise.
4389         * malloc/memusage.sh: Likewise.
4390         * malloc/mtrace.pl: Likewise.
4391         * debug/catchsegv.sh: Likewise.
4392
4393 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4394
4395         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4396         script.
4397
4398 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4399
4400         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4401         gethostbyname4_r function call succeeded, just leave the loop.
4402
4403         [BZ #9694]
4404         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4405         very end.
4406         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4407         * wctype/Makefile (tests): Add bug-wctypeh.
4408         * wctype/bug-wctypeh.c: New file.
4409
4410         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4411         LOCALDOMAIN is defined.
4412         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4413
4414         * sysdeps/x86_64/bits/select.h: New file.
4415
4416         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4417
4418 2008-12-21  Bruno Haible  <bruno@clisp.org>
4419
4420         [BZ #9677]
4421         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4422         if no output is written.
4423
4424 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4425
4426         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4427         libc internal symbol __dup2 to avoid access through the PLT.
4428
4429 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4430
4431         [BZ #6545]
4432         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4433         available only for __USE_GNU.
4434
4435         * inet/Makefile (tests): Add tst-getni2.
4436         * inet/tst-getni2.c: New file.
4437
4438         [BZ #7080]
4439         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4440         NULL when NI_NAMEREQD is set.
4441         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4442         * inet/Makefile (tests): Add tst-getni1.
4443         * inet/tst-getni1.c: New file.
4444
4445 2008-12-03  Petr Baudis  <pasky@suse.cz>
4446
4447         [BZ #7067]
4448         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4449         instead of prune_lock.
4450         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4451         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4452
4453 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4454
4455         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4456         use.
4457
4458         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4459         handling.
4460
4461         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4462         after reading name server list.
4463
4464         [BZ #7058]
4465         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4466         handling for host name aliases.
4467
4468 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4469
4470         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4471         instead of doing things manually.
4472
4473 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4474
4475         * posix/regex_internal.h (build_wcs_upper_buffer):
4476         Return type is reg_error_t.
4477
4478 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4479
4480         * posix/globtest.sh: Use mktemp to create temporary file and
4481         directory.
4482
4483         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4484         sets correctly.
4485         (__CPU_CLR_S): Likewise.
4486         (__CPU_ISSET_S): Likewise.
4487
4488 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4489             Ulrich Drepper  <drepper@redhat.com>
4490
4491         * scripts/firstversion.awk: Use custom comparison function to compare
4492         version numbers.
4493         * scripts/versions.awk: Use sort invocation which can handle
4494         multi-digit sub-version numbers.
4495
4496 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4497
4498         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4499         * locale/iso-639.def: Add Chhattisgarhi entry.
4500
4501 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4502
4503         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4504         ESRCH return value.
4505         (_nss_dns_gethostbyname4_r): Likewise.
4506         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4507         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4508         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4509         the no_data variable.
4510
4511         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4512         information at the correct index.
4513
4514         * socket/sys/socket.h: Declare accept4.
4515         * socket/accept4.c: New file.
4516         * sysdeps/unix/sysv/linux/accept4.c: New file.
4517         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4518         * socket/Makefile (routines): Add accept4.
4519         * socket/Versions: Export accept4 with version GLIBC_2.10.
4520         * socket/paccept.c: Removed.
4521         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4522         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4523         * Versions.def: Define GLIBC_2.10 for libc.
4524         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4525
4526         * nscd/connections.c: Use accept4.
4527
4528         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4529
4530 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4531
4532         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4533         flag already set.
4534
4535         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4536         not exist.
4537         * stdlib/Makefile (tests): Add tst-unsetenv1.
4538         * stdlib/tst-unsetenv1.c: New file.
4539
4540 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4541
4542         * login/utmp_file.c (file_writable): New variable.
4543         (setutent_file): Don't try to open file for writing.
4544         (pututline_file): Before writing, make descriptor writable if
4545         necessary.
4546
4547 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4548
4549         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4550         to IPv4 or IPv6 if an interface has been found.
4551
4552 2008-11-26  Roland McGrath  <roland@redhat.com>
4553
4554         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4555         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4556
4557         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4558         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4559         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4560
4561         * elf/elf.h (NT_386_IOPERM): New macro.
4562         (NT_PPC_VSX): New macro.
4563
4564 2008-11-25  Roland McGrath  <roland@redhat.com>
4565
4566         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4567         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4568         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4569         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4570         Subdirectories moved to ports repository.
4571         * configure.in (base_machine): Remove alpha case.
4572
4573 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4574
4575         * sysdeps/mach/strerror_l.c: New file.
4576
4577 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4578
4579         [BZ #6411]
4580         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4581         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4582         magic numbers.
4583         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4584         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4585         (relax_fenv_state): Same as above.
4586         (FPSCR_29): Reserve bit in ISA 2.05.
4587         (FPSCR_NI): Provide define for compat.
4588         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4589         magic numbers.
4590         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4591         magic numbers.
4592         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4593         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4594         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4595         access to hwcap to account for hwcap size increase to uint64_t.
4596         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4597         Likewise.
4598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4599         (*setcontext): Likewise.
4600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4601         New file.
4602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4603         New file.
4604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4605         (*setcontext): dynamically select mtfsf insn based on
4606         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4607         increase to uint64_t.
4608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4609         (*swapcontext): dynamically select mtfsf insn based on
4610         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4611         increase to uint64_t.
4612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4613         New file.
4614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4615         New file.
4616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4617         (*setcontext): dynamically select mtfsf insn based on
4618         PPC_FEATURE_HAS_DFP.
4619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4620         (*swapcontext): dynamically select mtfsf insn based on
4621         PPC_FEATURE_HAS_DFP.
4622
4623 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4624
4625         * version.h: Bump for 2.9 release.
4626         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4627
4628         [BZ #7029]
4629         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4630         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4631         all the rounding.
4632
4633 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4634
4635         [BZ #7009]
4636         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4637         unknown request types for now.
4638
4639 2008-11-11  Roland McGrath  <roland@redhat.com>
4640
4641         * sysdeps/x86_64/configure: New file.
4642
4643         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4644         * configure: Regenerated.
4645
4646 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4647
4648         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4649         correct instruction to remove the stack frame.
4650
4651 2008-11-03  Michael Matz  <matz@suse.de>
4652
4653         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4654         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4655
4656 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4657
4658         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4659         Remove.
4660
4661         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4662         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4663         of the thread variable instead of void *.
4664         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4665         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4666         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4667         __libc_tsd_define arguments.
4668         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4669         __libc_tsd_address arguments.  Remove union hack.
4670         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4671         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4672         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4673         Adjust __libc_tsd_{set,get} arguments.
4674         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4675         __libc_tsd_define arguments.
4676         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4677         arguments.
4678         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4679         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4680         (LOCALE): Adjust __libc_tsd_define arguments.
4681         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4682         arguments.
4683         (LOCALE): Adjust __libc_tsd_define arguments.
4684         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4685         arguments.
4686         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4687         arguments.
4688
4689 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4690
4691         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4692         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4693
4694 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4695
4696         [BZ #6966]
4697         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4698
4699 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4700             Ulrich Drepper  <drepper@redhat.com>
4701
4702         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4703         definition for GCC 3.1 and later.
4704
4705 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4706
4707         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4708         refetch dtv, as it might have changed.
4709         * elf/Makefile: Add rules to build and run tst-tls18.
4710         * elf/tst-tls18.c: New test.
4711         * elf/tst-tlsmod18a.c: New file.
4712
4713 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4714
4715         [BZ #6875]
4716         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4717
4718 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4719
4720         [BZ #6867]
4721         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4722
4723         [BZ #6919]
4724         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4725         Fix length of copy operation.
4726
4727 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4728
4729         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4730         and fix its calling convention.
4731
4732 2008-10-07  Andreas Schwab  <schwab@suse.de>
4733
4734         [BZ #6942]
4735         * resolv/res_send.c (send_vc): Fix last change.
4736         (send_dg): Align here as well.
4737
4738 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4739
4740         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4741         return value in case rlimit is RLIM_INFINITY.
4742
4743         [BZ #6947]
4744         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4745         for UL_SETFSIZE.
4746         * resource/Makefile (tests): Add bug-ulimit1.
4747         * resource/bug-ulimit1.c: New file.
4748
4749         [BZ #6974]
4750         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4751         without dot.  Properly terminate the string with a null byte.
4752         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4753
4754         [BZ #6980]
4755         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4756         negative sizees.
4757         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4758         negative __size.
4759
4760         [BZ #6995]
4761         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4762
4763 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4764
4765         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4766         abort if there is no initgroups_dyn function.
4767
4768         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4769         result if any of the queries really provided an answer.
4770
4771 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4772
4773         * po/lt.po: Update from translation team.
4774
4775 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4776
4777         * po/id.po: Update from translation team.
4778
4779 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4780
4781         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4782         Fix tests for existence of second reply.
4783
4784 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4785
4786         * po/id.po: New file.
4787         Contributed by the Indonesian translation team.
4788
4789 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4790
4791         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4792         initialization.
4793
4794 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4795
4796         * elf/Makefile: Add rules to build and run tst-tls17.
4797         * elf/tst-tls17.c: New test.
4798         * elf/tst-tlsmod17a.c: New file.
4799         * elf/tst-tlsmod17b.c: Likewise.
4800
4801 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4802
4803         * stdlib/divmod_1.c: Use correct type for dummy variable.
4804         * stdlib/mod_1.c: Likewise.
4805
4806 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4807
4808         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4809
4810 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4811
4812         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4813         __nonnull order for C++.
4814         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4815         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4816
4817 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4818
4819         * stdlib/longlong.h: Update from GCC.
4820
4821 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4822             David S. Miller  <davem@davemloft.net>
4823
4824         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4825         make sure any registers used with 64-bit 'branch-on-register'
4826         instructions have their top 32-bits clear.
4827         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4828         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4829
4830 2008-09-18  Andreas Schwab  <schwab@suse.de>
4831
4832         [BZ #6942]
4833         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4834         Properly handle partial reads.
4835
4836 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4837
4838         * elf/elf.h (STO_MIPS_PLT): New.
4839         (R_MIPS_COPY): New.
4840         (R_MIPS_JUMP_SLOT): New.
4841         (R_MIPS_NUM): Redefine to 128.
4842         (DT_MIPS_PLTGOT): New.
4843         (DT_MIPS_RWPLT): New.
4844         (DT_MIPS_NUM): Redefine to 0x35.
4845
4846 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4847
4848         * timezone/africa: Update from tzdata2008f.
4849         * timezone/asia: Likewise.
4850         * timezone/australasia: Likewise.
4851         * timezone/europe: Likewise.
4852         * timezone/leapseconds: Likewise.
4853         * timezone/northamerica: Likewise.
4854         * timezone/southamerica: Likewise.
4855         * timezone/zone.tab: Likewise.
4856
4857 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4858
4859         * nscd/connections.c: Disable use of paccept for now.
4860
4861 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4862
4863         * socket/Versions: Remove paccept export for GLIBC_2.9.
4864         * socket/Makefile (routines): Remove paccept.
4865         * socket/sys/socket.h: Remove paccept declaration.
4866
4867         * po/sv.po: Update from translation team.
4868
4869 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4870
4871         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4872         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4873
4874 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4875
4876         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4877         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4878
4879 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4880
4881         * sunrpc/rpc/svc.h: Declare svcfd_create.
4882         Patch by Michael Solberg <msolberg@redhat.com>.
4883
4884 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4885             Ulrich Drepper  <drepper@redhat.com>
4886
4887         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4888         _int_valloc fails.
4889         (public_pVALLOc): Likewise.
4890
4891 2008-09-02  Andreas Jaeger  <aj@suse.de>
4892
4893         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4894         commit.
4895
4896 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4897
4898         [BZ #6860]
4899         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4900
4901 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4902
4903         * Makefile (check-data): Check data directory in add-ons.
4904         * elf/Makefile (check-data): Likewise.
4905
4906 2008-08-18  Roland McGrath  <roland@redhat.com>
4907
4908         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4909         * configure: Regenerated.
4910         * config.make.in (cflags-cpu): New substituted variable.
4911         (with-cpu): Variable removed.
4912         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4913
4914 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4915
4916         [BZ #6845]
4917         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4918         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4919         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4920         redundant.  Functions which call floating point assembler operations
4921         should go into a sysdeps powerpc/fpu directory.
4922
4923 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4924
4925         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4926         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4927
4928 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4929
4930         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4931
4932         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4933         change related to AT_EXECFN.  We cannot use that string.
4934         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4935         _dl_execfn member.
4936         * elf/dl-support.c: Remove _dl_execfn variable.
4937         (_dl_aux_init): Remove handling of AT_EXECFN.
4938         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4939         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4940
4941 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4942
4943         [BZ #6544]
4944         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4945         byte gets added to writes and seeks from the end use the length of
4946         the buffer and not the currently terminating NUL byte.
4947
4948         [BZ #6634]
4949         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4950         Set to true if locking failed.
4951         (getutid_r_file): Adjust caller.
4952         (pututline_file): Likewise.  Return NULL in this case.
4953         Patch mostly by halesh.s@gmail.com.
4954
4955 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4956
4957         [BZ #6589]
4958         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4959         Define.
4960         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4961
4962 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4963
4964         [BZ #6839]
4965         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4966         macro since it is now available in elf/dynamic-link.h.
4967
4968 2008-08-12  Roland McGrath  <roland@frob.com>
4969
4970         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4971         in case used outside of libc.
4972         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4973
4974 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4975
4976         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4977         directly instead of going through dn_comp.
4978
4979 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4980
4981         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4982         Fix asm constraints.
4983
4984 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4985
4986         [BZ #6790]
4987         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4988         (IPV6_PMTUDISC_PROBE): Likewise.
4989
4990 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4991
4992         [BZ #6791]
4993         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4994
4995 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4996             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4997
4998         [BZ #6817]
4999         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5000         Added the members 'vsx' and 'arch_2_06'.
5001         (_dl_powerpc_platforms): Add the member 'power7'.
5002         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5003         to reflect the changes required by VSX and ISA 2.06.
5004         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5005         'power7'.
5006         Defined PPC_PLATFORM_POWER7.
5007         (_dl_string_platform): Add support for POWER7.
5008         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5009         capability and ISA 2.06.
5010
5011 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5012
5013         [BZ #6824]
5014         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5015         macro to detect use of 128 bit long double.
5016         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5017
5018 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5019
5020         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5021
5022         [BZ #5794]
5023         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5024         parameters.
5025         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5026         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5027
5028 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5029
5030         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5031         guaranteed to be large enough to read inotify event.  Ignore
5032         EAGAIN error.  Better error message.  Add branch predicition.
5033         (main_loop_epoll): Likewise.
5034
5035 2008-08-02  Roland McGrath  <roland@frob.com>
5036
5037         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5038         Add memory clobbers.
5039
5040 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5041
5042         * manual/arith.texi: Avoid @strong{Note:}.
5043         * manual/creature.texi: Likewise.
5044         * manual/filesys.texi: Likewise.
5045         * manual/math.texi: Likewise.
5046         * manual/memory.texi: Likewise.
5047         * manual/resource.texi: Likewise.
5048         * manual/syslog.texi: Likewise.
5049         * manual/time.texi: Likewise.
5050
5051         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5052         to prevent warning.
5053
5054 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5055
5056         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5057         new epoll_create1 interface.
5058         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5059         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5060         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5061
5062         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5063         (NS_GET32): Likewise.
5064
5065         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5066         syscalls, too.
5067
5068         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5069         use the AT_EXECFN value if it is no absolute path.
5070         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5071         __ASSUME_AT_EXECFN.
5072
5073         * Versions.def: Add GLIBC_2.9 to libresolv.
5074         * include/resolv.h: Remove hidden proto declarations for __ns_*
5075         functions.  Add them for __dn_count_labels and __p_secstodate.
5076         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5077         Define ns_msg_getflags macro here.
5078         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5079         and __p_secstodate.
5080         * resolv/Versions: Export functions from <arpa/nameser.h> from
5081         libresolv in version GLIBC_2.9.
5082         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5083         hidden definitions.
5084         * resolv/ns_netint.c: Likewise.
5085         * resolv/ns_parse.c: Likewise.
5086         * resolv/ns_print.c: Likewise.
5087         * resolv/ns_samedomain.c: Likewise.
5088         * resolv/ns_ttl.c: Likewise.
5089         * resolv/arpa/nameser_compat.h: Likewise.
5090         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5091         function calls.
5092         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5093         instead of ns_get16.
5094         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5095         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5096         (gaih_getanswer_slice): Likewise.
5097         * resolv/Makefile (libresolv-routines): Add ns_date.
5098         * resolv/ns_date.c: New file.
5099
5100         * elf/Makefile (check-localplt.out): Also check libresolv and
5101         libcrypt.
5102
5103 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5104
5105         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5106         __ASSUME_O_CLOEXEC.
5107
5108 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5109
5110         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5111         buffer passed to NSS functions.
5112
5113         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5114
5115         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5116         Define.
5117
5118         * misc/syslog.c (openlog_internal): Fix compile problem.
5119
5120 2008-07-28  Roland McGrath  <roland@redhat.com>
5121
5122         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5123
5124 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5125
5126         * io/ftw.c (add_object): Remove inline to avoid warning.
5127
5128         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5129
5130         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5131         Use it instead of locally defined resplen2 variable.
5132         (res_nsend): Adjust for __libc_res_nsend interface change.
5133         (send_vc): Initialize *resplen2 if necessary.  Read length of
5134         package into an appropriately aligned variable.  Store converted length
5135         in new variable and use it appropriately.
5136         Add branch prediction help.
5137         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5138         and pass it on to __libc_res_nsend.  Adjust all callers.
5139         (__libc_res_nsearch): Likewise.
5140         (__libc_res_nqeurydomain): Likewise.
5141         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5142         change.
5143         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5144         Define resplen2 variable and pass it to __libc_res_nsearch and then
5145         to gaih_getanswer.
5146         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5147         Add branch prediction.
5148         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5149         (gaih_getanswer): Don't decode second slice if first one failed due
5150         to a too small buffer.  Don't let not found status of second
5151         decoder shadow results of the first.
5152         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5153         and __libc_res_nquery interface changes
5154         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5155         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5156         __libc_res_nsearch, and __libc_res_nsend.
5157         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5158         change.
5159         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5160         __libc_res_nsearch interface changes.
5161
5162 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5163
5164         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5165
5166         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5167         file descriptors with close-on-exec set.
5168         (exec_comm_child): Fix the case where the write end of the pipe is
5169         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5170
5171         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5172         * io/pipe2.c: Likewise.
5173         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5174         instead of __ASSUME_PACCEPT.
5175         * include/unistd.h: Declare __have_pipe2.
5176         * libio/iopopen.c: Implement "e" flag.
5177         * libio/Makefile (tests): Add tst-popen1.
5178         * libio/tst-popen1.c: New file.
5179
5180         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5181         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5182
5183 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5184
5185         [BZ #6771]
5186         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5187         success call of _IO_SEEKOFF or calls which failed because the
5188         descriptor is for a pipe.
5189
5190         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5191         magic number.
5192
5193         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5194
5195         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5196         F_SETFD use if we know fopen set the flag.
5197
5198         * login/utmp_file.c (setutent_file): Minor optimization in case
5199         O_CLOEXEC is available.
5200
5201 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5202
5203         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5204         * elf/Makefile: Use pie-ccflag variable.
5205         * nscd/Makefile: Likewise.
5206         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5207
5208 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5209
5210         [BZ #6724]
5211         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5212         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5213         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5214         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5215         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5216         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5217         utmp32, utmpx32 and login32.
5218         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5219         versions of struct utmp functions to libc and libutil.
5220         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5221         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5222         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5223         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5224         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5225         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5226         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5227         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5228         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5229         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5230         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5231         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5232         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5233         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5234         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5235         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5236         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5237         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5238         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5239         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5240         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5241         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5242
5243 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5244
5245         * scripts/gen-as-const.awk: Generate more widely usable code by
5246         using 64-bit arithmetic.
5247
5248         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5249         the same treatment as narrow output code in last patch.
5250
5251         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5252
5253         [BZ #6763]
5254         * elf/dl-load.c (local_strdup): Remove inline.
5255         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5256         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5257         part of the object.
5258
5259         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5260
5261 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5262
5263         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5264         the new syscalls, too.
5265
5266         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5267         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5268
5269         [BZ #6698]
5270         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5271         parameter for end of buffer.  If temporary copy is too large use
5272         malloc.
5273         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5274         interface change.
5275         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5276         string rewrite when allocating buffer.
5277
5278         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5279         syscalls, too.
5280
5281         * nscd/connections.c (nscd_init): Clean up fcntl call.
5282
5283         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5284         SOCK_NONBLOCK if possible.
5285
5286         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5287         SOCK_CLOEXEC if available.
5288
5289         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5290         __libc_clntudp_bufcreate_internal.
5291         * include/sys/socket.h: Declare __have_sock_cloexec.
5292         * socket/Makefile (aux): Add have_sock_cloexec.
5293         * socket/have_sock_cloexec.c: New file.
5294         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5295         __libc_clntudp_bufcreate.
5296         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5297         which takes an additional parameter.  Create socket with non-blocking
5298         mode and close-on-exec flag set, if wanted.
5299         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5300         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5301         instead of clntudp_create.  The socket has already the close-on-exec
5302         flag set if SOCK_CLOEXEC is defined.
5303
5304 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5305
5306         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5307         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5308         appropriate.
5309         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5310         non-blocking mode by using socket, paccept, and inotify_init1.
5311
5312         * Versions.def (glibc): Add GLIBC_2.9.
5313         * io/Makefile (routines): Add dup3 and pipe2.
5314         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5315         * io/dup3.c: New file.
5316         * io/pipe2.c: New file.
5317         * posix/unistd.h: Declare dup3 and pipe2.
5318         * socket/Makefile (routines): Add paccept.
5319         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5320         * socket/paccept.c: New file.
5321         * socket/sys/socket.h: Declare paccept.
5322         * sysdeps/unix/syscalls.list: Add entry for dup3.
5323         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5324         epoll_create2 and inotify_init1.
5325         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5326         * sysdeps/unix/sysv/linux/paccept.c: New file.
5327         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5328         possible.
5329         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5330         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5331         inotify_init1, and pipe2 entries.
5332         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5333         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5334         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5335         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5336         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5337         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5338         SOCK_NONBLOCK.
5339         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5340         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5341         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5342         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5343         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5344         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5345         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5346         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5347         EPOLL_NONBLOCK.  Declare epoll_create2.
5348         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5349         EFD_NONBLOCK.
5350         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5351         IN_NONBLOCK.  Declare inotify_init1.
5352         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5353         SFD_NONBLOCK.
5354         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5355         TFD_NONBLOCK.
5356
5357         * elf/elf.h: Define AT_EXECFN.
5358         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5359         LD_ORIGIN_PATH.
5360         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5361         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5362         if __ASSUME_AT_EXECFN is defined.
5363         (_dl_aux_init): Handle AT_EXECFN.
5364         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5365         for 2.6.27 and up.
5366         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5367         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5368         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5369         _dl_execfn if available and avoid compatibility code if
5370         __ASSUME_AT_EXECFN is defined.
5371
5372         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5373         _dl_discover_osversion only for older kernels.
5374
5375 2008-07-22  Roland McGrath  <roland@frob.com>
5376
5377         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5378
5379 2008-07-21  Roland McGrath  <roland@frob.com>
5380
5381         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5382         returned too much data out of line.
5383
5384 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5385
5386         * locale/setlocale.c (setname): Remove inline to avoid compiler
5387         warning.
5388
5389         [BZ #6712]
5390         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5391
5392 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5393
5394         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5395         doesn't manage to write anything, fail.
5396
5397         * malloc/hooks.c (__malloc_check_init): Remove printf.
5398
5399 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5400
5401         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5402
5403 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5404
5405         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5406         from inotify.
5407         (main_loop_epoll): Likewise.
5408
5409 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5410
5411         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5412
5413         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5414         if DEBUG is defined.
5415
5416         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5417         query.  Adjust buffer size computation for padding.
5418
5419 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5420
5421         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5422         * stdio-common/tst-setvbuf1.c: New file.
5423         * stdio-common/tst-setvbuf1.expect: New file.
5424
5425         [BZ #6719]
5426         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5427         when selecting fully-buffered stream.
5428         Patch by Wang Xin <wxinee@gmail.com>.
5429
5430 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5431
5432         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5433         (__open_2): New function.
5434         (__open64_2): New alias to __open_2.
5435         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5436         (__openat_2): New function.
5437         (__openat64_2): New alias to __openat_2.
5438
5439 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5440
5441         [BZ #6723]
5442         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5443
5444 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5445
5446         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5447         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5448         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5449         __hurd_dfail.
5450         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5451         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5452         * sysdeps/mach/hurd/send.c (__send): Likewise.
5453         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5454         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5455
5456 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5457
5458         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5459         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5460         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5461         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5462         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5463         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5464
5465 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5466
5467         [BZ #6657]
5468         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5469         of %EY.
5470         Patch by Petr Baudis.
5471
5472 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5473
5474         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5475         Patch by Peter Jones <pjones@redhat.com>.
5476
5477 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5478
5479         [BZ #6654]
5480         * stdlib/canonicalize.c (__realpath): readlink can write too much
5481         into the buffer on platforms without PATH_MAX.
5482
5483 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5484
5485         [BZ #6653]
5486         * posix/tst-regex.c (main): Rename to...
5487         (do_test): ... this. Remove cmdline option processing.
5488         (TIMEOUT): Define.
5489         (TEST_FUNCTION): Define.
5490         (CMDLINE_OPTIONS): Define.
5491
5492 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5493
5494         [BZ #5210]
5495         * configure.in: Add -Werror to -fstack-protector test to catch
5496         unsupported architectures.
5497         Patch by Gilles Esponasse <g.esp@free.fr>.
5498
5499 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5500
5501         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5502         getcontext returns ENOSYS.
5503
5504 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5505
5506         * nscd/connections.c (main_loop_poll): Fix test for read error.
5507         (main_loop_epoll): Likewise.
5508
5509 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5510
5511         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5512         better place so it is not called when nscd is used.
5513
5514         * nscd/connections.c: Also recognize and handle changes to the
5515         resolver configuration file.
5516
5517 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5518
5519         * time/strftime.c: Pass reference to tzset_called around to handle
5520         recursive calls.
5521
5522         [BZ #6612]
5523         * time/strftime.c (__strftime_internal): Call tzset() only
5524         when printing timezone-dependent values.
5525         Based on a patch by Petr Baudis <pasky@suse.cz>.
5526
5527         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5528         unconditionally use second gaih_getanswer_slice result.
5529
5530         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5531         (getaddrinfo): RES must always be non-NULL.
5532
5533 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5534
5535         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5536         cr[34] registers.
5537         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5538         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5539         Likewise.
5540         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5541         register.
5542
5543 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5544
5545         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5546         fields.
5547         * nscd/connections.c (inotify_fd): New variable.
5548         (nscd_init): Try to open an inotify descriptor.
5549         If successful, watch files for databases using inotify instead of
5550         having prune threads stat the files.
5551         (nscd_run_prune): Recognize clear_cache flag being set and call
5552         prune_cache appropriately.
5553         (main_loop_poll): Add inotify descriptor to wait set and handle the
5554         reported changes.
5555         (main_loop_epoll): Likewise.
5556         * nscd/cache.c (prune_cache): Don't stat files for databases if
5557         inotify is used.
5558         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5559         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5560
5561         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5562         fixed-size portion of the record.
5563         * nscd/servicescache.c (cache_addserv): Likewise.
5564         * nscd/pwdcache.c (cache_addpw): Likewise.
5565         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5566
5567 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5568
5569         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5570         out we don't use uninitialized memory.
5571
5572         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5573         the client.
5574
5575 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5576
5577         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5578         ignore T_DNAME messages.
5579         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5580
5581 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5582
5583         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5584         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5585
5586 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5587
5588         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5589         instead of portstr to nscd_getserv_r.  Patch by
5590         Roman Kagan <rkagan@mail.ru>.
5591
5592 2008-05-26  Jim Meyering  <meyering@redhat.com>
5593
5594         Remove more useless "if" tests before "free".
5595         * include/inline-hashtab.h (htab_delete): Likewise.
5596         * libio/freopen.c (freopen): Likewise.
5597         * libio/freopen64.c (freopen64): Likewise.
5598         * locale/programs/ld-collate.c (collate_read): Likewise.
5599         * misc/fstab.c (libc_freeres_fn): Likewise.
5600         * posix/glob.c (globfree): Likewise.
5601
5602 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5603
5604         * string/Makefile (strop-tests): Add memmem.
5605         * string/test-memmem.c: New file.
5606         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5607         (test_init): Size buf1 according to BUF1PAGES.
5608
5609 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5610
5611         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5612         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5613         (CFLAGS-scanf17.c): New.
5614         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5615         * stdio-common/scanf15.c (main): Likewise.
5616         * stdio-common/scanf16.c: New file.
5617         * stdio-common/scanf17.c: New file.
5618
5619 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5620
5621         * resolv/res_send.c (send_dg): If we already have one of two
5622         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5623         use the one answer insted of failing.
5624
5625 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5626
5627         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5628         being executed on PowerPC as the expected result exceeds IBM
5629         long double 128 __LDBL_MAX__.
5630
5631 2008-05-21  Roland McGrath  <roland@redhat.com>
5632
5633         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5634
5635         * Makefile (check-data): Use $(abi-name) before other guesses.
5636         Look in $(add-ons) dirs before scripts/data/.
5637         * elf/Makefile (check-data): Likewise.
5638
5639         * scripts/soversions.awk: Grok ABI line.
5640         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5641         Emit definition for abi-name variable.
5642
5643 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5644
5645         * string/endian.h: Define new fixed-size hto* and *toh macros only
5646         if [__USE_BSD].
5647
5648         * iconvdata/Depend: Add localedata.
5649
5650 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5651
5652         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5653
5654 2008-05-08  David S. Miller  <davem@davemloft.net>
5655
5656         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5657         HIDDEN_JUMPTARGET.
5658         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5659         (__SYSCALL_CLOBBERS): Remove %g* registers.
5660         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5661         (__SYSCALL_CLOBBERS): Likewise.
5662         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5663         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5664
5665 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5666
5667         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5668         (CALL_ERRNO_LOCATION): Define.
5669         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5670         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5671         (CALL_ERRNO_LOCATION): Define.
5672         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5673         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5674         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5675
5676 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5677
5678         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5679         variable.
5680
5681 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5682
5683         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5684         (FIRST_FRAME_POINTER): Define.
5685
5686 2008-05-09  David S. Miller  <davem@davemloft.net>
5687
5688         * sysdeps/sparc/sparc64/backtrace.c: New file.
5689
5690 2008-05-14  David S. Miller  <davem@davemloft.net>
5691
5692         * sysdeps/sparc/machine-gmon.h: New file.
5693         * sysdeps/sparc/sparc-mcount.S: Likewise.
5694         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5695         sysdep_routines in gmon directory.
5696
5697 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5698
5699         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5700
5701 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5702
5703         * resolv/res_query.c (__libc_res_nquery): In case one of two
5704         answer was too short don't try to read that answer's header.
5705
5706         * resolv/res_send.c (send_dg): In case of timeout and there are
5707         two queries and one has been answered, return value indicating
5708         success.
5709
5710 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5711
5712         * nscd/cache.c (cache_add): Take additional parameter specifying
5713         whether this is in response of a cache refill.  Check alignment
5714         of package data.  Revamp waking of pruning thread.
5715         (prune_cache): Small optimization.
5716         * nscd/nscd.h: Adjust cache_add prototypes.
5717         * nscd/aicache.c: Adjust cache_add calls.
5718         * nscd/grpcache.c: Likewise.
5719         * nscd/hstcache.c: Likewise.
5720         * nscd/initgrcache.c: Likewise.
5721         * nscd/pwdcache.c: Likewise.
5722         * nscd/servicescache.c: Likewise.
5723         * nscd/connections.c (restart): Really disable cache use before
5724         exec attempt.  If it fails, reenable cache.
5725         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5726         time to max to be able to notice concurrent cache additions.  Unlock
5727         prune_lock while performing gc.  Afterwards compute wakeup time with
5728         current wakeup_time value in mind.
5729
5730 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5731
5732         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5733
5734         * nscd/mem.c (gc): Correctly determine highest used array element
5735         in mark.
5736
5737         * nscd/mem.c (markrange): Add assert to check entries are all
5738         aligned.  Small cleanup in bitmap use.
5739
5740         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5741         blockoff of type nscd_ssize_t.
5742         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5743         (mempoll_alloc): Record block offset and not address.
5744
5745         * nscd/mem.c (gc): Fix test for stack overuse.
5746
5747         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5748         more asserts.
5749
5750         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5751         entry is available, believe it.
5752
5753         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5754         no answers return NSS_STATUS_NOTFOUND.
5755         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5756         buffer does not have any content.
5757
5758 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5759
5760         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5761
5762         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5763         lookup, don't assign canon unconditionally.
5764
5765 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5766
5767         * string/Makefile (distribute): Add str-two-way.h.
5768
5769 2008-03-29  Eric Blake  <ebb9@byu.net>
5770
5771         Rewrite string searches to O(n) rather than O(n^2).
5772         * string/str-two-way.h: New file.  For linear fixed-allocation
5773         string searching.
5774         * string/memmem.c: New implementation.
5775         * string/strstr.c: New implementation.
5776         * string/strcasestr.c: New implementation.
5777
5778 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5779
5780         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5781         opr.ctx_type.
5782         (calc_first): Initialize constraint field.
5783         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5784         Use search_duplicated_node to avoid loops.  Fix grammar.
5785         (duplicate_node): Merge constraint field for all node types.
5786         (calc_eclosure_iter): Look at constraint field for all node types.
5787         * posix/regex_internal.c (create_cd_newstate): Don't look at
5788         create_cd_newstate.
5789
5790 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5791
5792         [BZ #6428]
5793         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5794
5795         [BZ #6442]
5796         * string/endian.h: Add macros for fixed-size endian conversion.
5797         * bits/byteswap.h: Allow inclusion from <endian.h>.
5798         * sysdeps/i386/bits/byteswap.h: Likewise.
5799         * sysdeps/ia64/bits/byteswap.h: Likewise.
5800         * sysdeps/s390/bits/byteswap.h: Likewise.
5801         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5802         * string/Makefile (tests): Add tst-endian.
5803         * string/tst-endian.c: New file.
5804
5805         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5806         Patch by Reuben Thomas.
5807
5808 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5811
5812 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5813
5814         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5815
5816         [BZ #6461]
5817         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5818         Add missing braces.
5819         (BODY for __gconv_transform_internal_ascii): Likewise.
5820
5821         [BZ #6472]
5822         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5823         to be treated like link-local addresses.
5824         (match_prefix): Don't treat IPv4 loopback address special when
5825         converting to v4 mapped addressed.
5826
5827         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5828         if necessary.
5829         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5830         * posix/tst-rfc3484-2.c: Likewise.
5831         * posix/tst-rfc3484-3.c: Likewise.
5832
5833         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5834         and SCTP.
5835
5836         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5837
5838         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5839
5840         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5841
5842 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5843
5844         * po/lt.po: New file.  From Lituanian translation team.
5845
5846 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5847
5848         Introduce TLS descriptors for i386 and x86_64.
5849         * include/inline-hashtab.h: New file, copied from 2005's
5850         libiberty, with fix for memory leak imported afterwards by
5851         Glauber de Oliveira Costa.
5852         * elf/tlsdeschtab.h: New file.
5853         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5854         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5855         (CHECK_STATIC_TLS): Move to...
5856         * elf/dynamic-link.h: ... this file.
5857         (TRY_STATIC_TLS): New macro.
5858         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5859         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5860         R_386_TLS_DESC): Define.
5861         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5862         binutils.
5863         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5864         R_X86_64_TLSDESC): Define.
5865         (R_386_NUM, R_X86_64_NUM): Adjust.
5866         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5867         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5868         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5869         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5870         release tlsdesc_table.
5871         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5872         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5873         (elf_machine_rel): Handle R_386_TLS_DESC.
5874         (elf_machine_rela): Likewise.
5875         (elf_machine_lazy_rel): Likewise.
5876         (elf_machine_lazy_rela): Likewise.
5877         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5878         * sysdeps/i386/dl-tlsdesc.S: New file.
5879         * sysdeps/i386/dl-tlsdesc.h: New file.
5880         * sysdeps/i386/tlsdesc.c: New file.
5881         * sysdeps/i386/tlsdesc.sym: New file.
5882         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5883         tlsdesc_table.
5884         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5885         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5886         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5887         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5888         release tlsdesc_table.
5889         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5890         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5891         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5892         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5893         (elf_machine_rela): Likewise.
5894         (elf_machine_lazy_rel): Likewise.
5895         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5896         (__tls_get_addr): Do not declare for non-shared compiles.
5897         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5898         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5899         * sysdeps/x86_64/tlsdesc.c: New file.
5900         * sysdeps/x86_64/tlsdesc.sym: New file.
5901         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5902         tlsdesc_table for both 32- and 64-bit structs.
5903
5904 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5905
5906         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5907         its own function.  This reduces the frame setup costs and more.
5908
5909 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5910
5911         [BZ #3406]
5912         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5913         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5914
5915 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5916
5917         * io/openat.c (__openat_2): Also pass fd to __openat.
5918         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5919         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5920
5921         * string/tester.c (test_memcmp): Add a few more tests.
5922         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5923
5924 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5925
5926         * nscd/cache.c (cache_add): Before returning with failure and this
5927         is the first use of the record, mark it as unusable.
5928         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5929         reporting a failure.
5930         * nscd/grpcache.c: Likewise
5931         * nscd/hstcache.c: Likewise.
5932         * nscd/initgrcache.c: Likewise.
5933         * nscd/pwdcache.c: Likewise.
5934         * nscd/servicescache.c: Likewise.
5935
5936 2008-05-10  Roland McGrath  <roland@redhat.com>
5937
5938         [BZ #6505]
5939         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5940
5941 2008-05-08  David S. Miller  <davem@davemloft.net>
5942
5943         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5944
5945         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5946         (__ieee754_y0l): Likewise.
5947         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5948         (__ieee754_y1l): Likewise.
5949         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5950         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5951         frexpl and ldexpl.  math_private.h provides them and the latter
5952         is not even used.
5953         (__log1pl): Use __frexpl.
5954
5955 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5956
5957         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5958         prototypes.
5959         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5960         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5961         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5962         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5963         af==AF_UNSPEC.
5964         (_nss_nis_gethostbyname4_r): New function.
5965         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5966         Change to also handle af==AF_UNSPEC.
5967         (get_tablename): New function.  Use it to avoid duplication.
5968         (_nss_nisplus_gethostbyname4_r): New function.
5969         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5970         available.
5971         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5972         * nss/nss.h: Define struct gaih_addrtuple.
5973         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5974         af==AF_UNSPEC.
5975         (_nss_files_gethostbyname4_r): New function.
5976         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5977         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5978         calls.
5979         * resolv/res_query.c (__libc_res_nquery): Take two additional
5980         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5981         look up IPv4 and IPv6.
5982         Change all callers.
5983         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5984         for an additional query and answer buffer.  Pass to send_vc and
5985         send_dg.
5986         (send_vc): Send possibly two requests and receive two answers.
5987         (send_dg): Likewise.
5988         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5989         __libc_res_nquery.
5990         (_nss_dns_gethostbyname4_r): New function.
5991         (gaih_getanswer_slice): Likewise.
5992         (gaih_getanswer): Likewise.
5993         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5994         __libc_res_nquery call.
5995         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5996         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5997         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5998         available.
5999
6000 2008-05-05  David S. Miller  <davem@davemloft.net>
6001
6002         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6003         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6004
6005 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6006
6007         Fix termios bit macros.
6008         Move *DLY definitions where they belong, in termios.h.
6009         Add *[0-3] definitions.
6010         Fixes confusion between VT and FF.
6011         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6012         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6013         are already defined to avoid collision with termios.h.
6014         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6015         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6016         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6017         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6018         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6019         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6020         VTDLY, VT0, VT1): New macros.
6021         [__USE_GNU] (OLCUC): Change value of macro.
6022         [__USE_XOPEN] (OFILL): New macro.
6023         [__USE_BSD] (CRTSCTS): Change value.
6024         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6025         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6026         (B7200, B14400, B28800, B76800): New macros.
6027
6028 2008-05-01  David S. Miller  <davem@davemloft.net>
6029
6030         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6031         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6032         (gen-as-const-headers): Add it.
6033         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6034         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6035         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6036         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6037
6038         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6039         six system call parameters.
6040         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6041
6042 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6043
6044         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6045         RUSAGE_LWP.
6046         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6047         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6048
6049 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6050
6051         * stdlib/tst-setcontext.c: Include unistd.h.
6052
6053 2008-04-25  David S. Miller  <davem@davemloft.net>
6054
6055         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6056         Pass "union semun" properly in to sys_ipc, it must be passed
6057         by value, not by reference.
6058
6059 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6060
6061         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6062         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6063         * nscd/connections.c (mem_in_flight): Likewise.
6064
6065         * nscd/nscd.h (dbs): Make hidden.
6066
6067         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6068         Avoid returning -1, return 0 instead.
6069
6070 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6071
6072         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6073
6074 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6075
6076         [BZ #5209]
6077         * sysdeps/unix/sysv/linux/times.c: New file.
6078
6079         [BZ #5381]
6080         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6081         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6082         prototype.
6083         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6084         appropriate mem_in_flight element.
6085         (gc): Take allocations which have not yet been committed to the
6086         database into account.
6087         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6088         Reset mem_in_flight before returning.
6089         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6090         cue it up in mem_in_flight_list.
6091         * nscd/aicache.c: Adjust mempool_alloc call.
6092         * nscd/grpcache.c: Likewise.
6093         * nscd/hstcache.c: Likewise.
6094         * nscd/initgrcache.c: Likewise.
6095         * nscd/pwdcache.c: Likewise.
6096         * nscd/servicescache.c: Likewise.
6097         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6098         of -fpie.
6099
6100         * nscd/connections.c (handle_request): Provide better error message
6101         in case SELinux forbids the service.
6102
6103         * version.h (VERSION): Bump to 2.8.90.
6104
6105 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6106
6107         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6108
6109 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6110
6111         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6112         Also use for 32-bit.
6113         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6114         __nextafter instead of nextafter to avoid local PLT.
6115         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6116         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6117
6118         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6119
6120         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6121         __fe_nomask_env.
6122         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6123         <fenv_libc.h> instead of <fenv.h>.
6124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6126
6127         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6128
6129         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6130         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6131         function from fegetexcept and make old name weak alias.
6132         * include/fenv.h: Declare __fegetexcept.
6133         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6134         fegetexcept.
6135         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6136         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6137         to fetestexcept.
6138         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6139         instead of frexpl to avoid local PLT.
6140         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6141         ilogbl to avoid local PLT.
6142         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6143         instead of ldexpl to avoid local PLT.
6144         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6145         __roundl not roundl to avoid local PLT.
6146         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6147         local PLTs.  Use __sincosl instead of separate sinl and cosl
6148         calls.
6149         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6150
6151         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6152         version for ppc64 to 2.4.21 since without it makecontext will fail.
6153
6154         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6155         to the ABI in use.
6156         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6157         .__tls_get_addr.
6158         [__powerpc64__] (TLS_GD): Likewise.
6159
6160 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6161
6162         [BZ #4997]
6163         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6164         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6165         mantissa.
6166         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6167         Likewise.  Also account for when x is an odd number between 2^52
6168         and 2^53-1.
6169         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6170         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6171         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6172         detect aforementioned erroneous conditions.
6173
6174 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6175
6176         * configure.in: Check for -fno-section-anchors in addition to
6177         -fno-toplevel-reorder.
6178
6179 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6180
6181         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6182
6183         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6184         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6185         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6186         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6187         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6188         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6189
6190 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6191
6192         [BZ #5443]
6193         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6194         * time/alt_digit.c: Likewise.
6195         * wcsmbs/wcsmbsload.c: Likewise.
6196
6197 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6198
6199         * version.h (VERSION): Bump to 2.8.
6200
6201         * timzeone/asia: Update from tzdata2008b.
6202         * timezone/backward: Likewise.
6203         * timezone/europe: Likewise.
6204         * timezone/northamerica: Likewise.
6205         * timezone/southamerica: Likewise.
6206         * timezone/iso3166.tab: Likewise.
6207         * timezone/leapseconds: Likewise.
6208         * timezone/zone.tab: Likewise.
6209         * timezone/private.h: Update from tzcode2008a.
6210         * timezone/zdump.c: Likewise.
6211         * timezone/zic.c: Likewise.
6212
6213 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6214
6215         [BZ #5741]
6216         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6217         Define additonal Data Cache Block instruction macros.
6218         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6219         Replace dcbst with dcbf and sync with sync/isync.
6220
6221 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6222
6223         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6224         Always set ELF_RTYPE_CLASS_PLT.
6225         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6226
6227 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6228
6229         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6230         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6231         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6232         For ISA 2.01 and later replace mftb with mfspr 268.
6233
6234 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6235
6236         [BZ #5768]
6237         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6238         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6239
6240 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6241
6242         [BZ #5768]
6243         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6244         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6245         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6246         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6247
6248 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6249
6250         * stdlib/tst-makecontext.c (othervar): New variable.
6251         (cf): Test sign extending the argument to long.
6252
6253 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6254
6255         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6256         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6257         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6258         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6259         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6260         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6261         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6262
6263 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6264
6265         * elf/Makefile (tests): Substitute tests-vis-yes here.
6266         (tests-vis-yes): Delete.
6267         (modules-name, modules-vis-yes): Similarly.
6268
6269 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6270
6271         [BZ #4407]
6272         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6273         Preserve sign in signgamp when x is zero.
6274
6275 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6276
6277         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6278         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6279         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6280         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6281         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6282         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6283
6284 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6285
6286         [BZ #4314]
6287         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6288         buffers.
6289
6290         [BZ #5209]
6291         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6292         a reserved error value.
6293
6294         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6295         value to check for correct sign extension.
6296
6297         [BZ #5436]
6298         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6299         Copy 64-bit parameter values even though this is not required in
6300         the standard.
6301
6302         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6303         PC save.
6304
6305 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6306
6307         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6308         PC save.
6309
6310 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6311
6312         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6313
6314 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6315
6316         [BZ #5998]
6317         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6318         in line-buffered stream failed.
6319         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6320
6321 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6322
6323         [BZ #6024]
6324         * scripts/abi-versions.awk: If the version specified by
6325         --enable-oldest-abi is older than the first version for this
6326         architecture, use the default version.
6327
6328         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6329         as well when ignoring the whole category.
6330
6331 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6332
6333         [BZ #6042]
6334         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6335         ETHERTYPE_* definitions.
6336         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6337
6338 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6339
6340         * stdlib/mbtowc.c (__no_r_state): Remove.
6341         (mbtowc): New static state variable.  Use it instead of
6342         __no_r_state.
6343         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6344         (__wctomb_state): New hidden variable.
6345         (wctomb): Use __wctomb_state instead of __no_r_state.
6346         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6347         (__wctomb_state): New extern decl.
6348         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6349
6350 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6351
6352         [BZ #5475]
6353         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6354
6355 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6356
6357         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6358
6359 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6360
6361         * po/nl.po: Update from translation team.
6362
6363 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6364
6365         [BZ #6007]
6366         * string/strfry.c: Handle empty strings again.
6367
6368 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6369
6370         [BZ #5443]
6371         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6372         before looking for translation.
6373         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6374         * locale/freelocale.c: Likewise.
6375         * locale/newlocale.c: Likewise.
6376         * locale/setlocale.c: Likewise.
6377         Based partially on a patch by ryo@np.css.fujitsu.com.
6378
6379 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6380
6381         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6382         acquiring wrlock.  Do conv_tab allocation while holding lock.
6383         * intl/Makefile: Add rules to build and run tst-gettext6.
6384         * intl/tst-gettext6.c: New test.
6385         * intl/tst-gettext6.sh: New file.
6386
6387 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6388
6389         * po/nl.po: Update from translation team.
6390
6391         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6392         provided through st_blksize, try the default size before giving up.
6393
6394 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6395
6396         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6397
6398         [BZ #5939]
6399         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6400
6401         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6402         error message.  POSIX today does not require the messages to be in
6403         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6404
6405         [BZ #5979]
6406         * sunrpc/auth_unix.c: Unify printed strings.
6407         * sunrpc/clnt_tcp.c: Likewise.
6408         * sunrpc/clnt_udp.c: Likewise.
6409         * sunrpc/clnt_unix.c: Likewise.
6410         * sunrpc/svc_tcp.c: Likewise.
6411         * sunrpc/svc_udp.c: Likewise.
6412         * sunrpc/svc_unix.c: Likewise.
6413         * sunrpc/xdr.c: Likewise.
6414         * sunrpc/xdr_array.c: Likewise.
6415         * sunrpc/xdr_rec.c: Likewise.
6416         * sunrpc/xdr_ref.c: Likewise.
6417         * locale/programs/ld-time.c (time_finish): Unify messages.
6418         * locale/programs/locfile.c (handle_copy): Fix typo.
6419         * nscd/nscd.c (options): Fix typo.
6420
6421         [BZ #5995]
6422         * stdlib/strtod_l.c: Use correct sign for result in one more
6423         underflow case.
6424         Patch by Eric Blake <ebb9@byu.net>.
6425
6426 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6427
6428         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6429         and creat system calls.
6430         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6431         call.
6432         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6433         system calls.
6434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6435         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6436         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6437
6438 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6439
6440         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6441         <linux/limits.h> has defined it.
6442         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6443         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6444         headers.
6445         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6446         it instead of ARG_MAX.
6447
6448 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6449
6450         * posix/gai.conf: Fix comment for scope nullbits.
6451         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6452         default to 128 bits for v4 mapped addresses.
6453
6454 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6455
6456         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6457         ptrace call to get the ieee_instruction_pointer from the kernel.
6458         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6459         ptrace call to set the ieee_instructtion_pointer.
6460         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6461         Add comment that ieee_instruction_pointer is always 0.
6462
6463 2008-03-09  Andreas Jaeger  <aj@suse.de>
6464
6465         [BZ #5857]
6466         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6467         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6468         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6469
6470         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6471         (rint_test): Likewise.
6472
6473 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6474
6475         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6476         call.
6477         (__nisfind_server): Similar for open readColdStartFile call.
6478         Patch partially by Jim Meyering.
6479         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6480         around internal_setent call.
6481
6482         * po/vi.po: New Vietnamese translation.
6483
6484         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6485         ADJ_OFFSET_SS_READ.
6486
6487         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6488         remove CLONE_STOPPED.
6489
6490 2008-02-10  Jim Meyering  <meyering@redhat.com>
6491
6492         Remove useless "if" before "free":
6493         * elf/ldconfig.c (parse_conf_include): Likewise.
6494         * gmon/gmon.c (weak_alias): Likewise.
6495         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6496         * inet/rcmd.c (__validuser2_sa): Likewise.
6497         * intl/bindtextdom.c (set_binding_values): Likewise.
6498         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6499         * libio/genops.c (save_for_backup): Likewise.
6500         * libio/wgenops.c (save_for_wbackup): Likewise.
6501         * locale/programs/ld-collate.c (collate_read): Likewise.
6502         * locale/programs/linereader.c (get_string): Likewise.
6503         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6504         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6505         * resolv/res_debug.c (do_section): Likewise.
6506         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6507         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6508         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6509         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6510         * time/tzset.c (tzset_internal): Likewise.
6511
6512 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6513
6514         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6515         of ASSEMBLER.
6516
6517 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6518
6519         [BZ #5903]
6520         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6521         not stream for output file.  Open output file here.
6522         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6523         and output file name.
6524         (process_fd): Likewise.
6525         (process_file): Likewise.
6526         (main): Adjust callers of changed functions.
6527         * iconv/iconv_prog.h: Adjust prototype.
6528
6529 2008-03-09  Andreas Jaeger  <aj@suse.de>
6530
6531         [BZ #5753]
6532         * sysdeps/ia64/ieee754.h: Use protected namespace
6533         __BIG_ENDIAN/__LITTLE_ENDIAN.
6534         * sysdeps/ieee754/ieee754.h: Likewise.
6535         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6536
6537 2008-03-08  Roland McGrath  <roland@frob.com>
6538
6539         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6540         ignore a signal that came from a machine exception, treat it as a
6541         fatal core-dump signal instead.
6542         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6543
6544         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6545         Clear DF bit in thread state's eflags.
6546         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6547
6548 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6549
6550         [BZ #5774]
6551         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6552         of NAN(...) sequence.
6553         * stdlib/Makefile (tests): Add tst-strtod6.
6554         * stdlib/tst-strtod6.c: New file.
6555
6556         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6557
6558         [BZ #5762]
6559         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6560         putting offending option character in quotes.  Clean up error
6561         messages.
6562         * po/be.po: Adjust msgstr in translation file.
6563         * po/bg.po: Likewise.
6564         * po/ca.po: Likewise.
6565         * po/cs.po: Likewise.
6566         * po/da.po: Likewise.
6567         * po/de.po: Likewise.
6568         * po/es.po: Likewise.
6569         * po/fr.po: Likewise.
6570         * po/hr.po: Likewise.
6571         * po/ko.po: Likewise.
6572         * po/nl.po: Likewise.
6573         * po/rw.po: Likewise.
6574         * po/sk.po: Likewise.
6575         * po/sv.po: Likewise.
6576         * po/tr.po: Likewise.
6577         * po/zh_CN.po: Likewise.
6578         * po/zh_TW.po: Likewise.
6579
6580         [BZ #5760]
6581         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6582         Patch by Roland Bless <roland@bless.de>.
6583
6584         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6585         .o file.
6586         * elf/Makefile (routines): Add dl-sysdep.
6587         (elide-routines.os): Likewise.
6588
6589 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6590
6591         [BZ #5786]
6592         * elf/dl-sysdep.c: Undefine ROUND after use.
6593         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6594         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6595         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6596         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6597         to ...
6598         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6599         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6600         if necessary.
6601         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6602
6603         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6604         _dl_tls_get_addr_soft element.
6605         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6606         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6607         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6608         GLRO.
6609         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6610         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6611         of internal_function.
6612
6613         * stdlib/Makefile (aux): Add tens_in_limb.
6614         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6615         * stdlib/tens_in_limb.c: ...here.  New file.
6616
6617         [BZ #5778]
6618         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6619         __statfs_chown_restricted.
6620         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6621         for _PC_CHOWN_RESTRICTED.
6622         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6623         Implement __statfs_chown_restricted.
6624         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6625         _POSIX_CHOWN_RESTRICTED value to zero.
6626         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6627         defined to zero.
6628
6629         * sysdeps/x86_64/rtld-memset.c: New file.
6630
6631 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6632
6633         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6634
6635         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6636         Barcelona machine.  Make default fall through branch of
6637         __x86_64_preferred_memory_instruction check as the integer code path.
6638
6639 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6640
6641         * sysdeps/x86_64/cacheinfo.c
6642         (__x86_64_preferred_memory_instruction): New variable.
6643         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6644
6645         * sysdeps/x86_64/memset.S: Rewrite.
6646
6647 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6648
6649         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6650         __obstack_printf_chk): New prototypes.
6651         (__vasprintf_chk, __vdprintf_chk,
6652         __obstack_vprintf_chk): Likewise.
6653         Add libc_hidden_proto.
6654         * libio/obprintf.c
6655         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6656         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6657         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6658         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6659         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6660         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6661         __obstack_vprintf_chk): New prototypes.
6662         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6663         obstack_vprintf): New inlines.
6664         * debug/dprintf_chk.c: New file.
6665         * debug/vdprintf_chk.c: New file.
6666         * debug/asprintf_chk.c: New file.
6667         * debug/vasprintf_chk.c: New file.
6668         * debug/obprintf_chk.c: New file.
6669         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6670         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6671         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6672         @@GLIBC_2.8.
6673         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6674         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6675         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6676         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6677         libc_hidden_proto.
6678         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6679         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6680         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6681         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6682         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6683         @@GLIBC_2.8.
6684         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6685         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6686         obstack_vprintf_chk.
6687         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6688         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6689         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6690         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6691         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6692         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6693
6694 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6695
6696         [BZ #5779]
6697         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6698         Patch by Roy Marples <roy@marples.name>.
6699
6700         [BZ #5736]
6701         * malloc/malloc.c: Fix typo in comment.
6702
6703         [BZ #5627]
6704         * locale/iso-639.def: Add Shuswap.
6705
6706 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6707
6708         [BZ #5790]
6709         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6710         overwrite *h_errnop/*errnop values from getanswer_r in case of
6711         failure.
6712
6713 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6714
6715         [BZ #5818]
6716         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6717         (verify_persistent_db): Remove one unnecessary test and add a new one
6718         for bad configuration.
6719         (nscd_init): Improve error reported when persistent database cannot
6720         be reused.
6721         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6722         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6723         .suggested_module and .max_db_size and case config file says the
6724         values are zero.
6725         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6726
6727         [BZ #5854]
6728         * nis/ypclnt.c (yp_order): Fix handling of return value of
6729         do_ypcall_tr call.
6730         Patch by Jeff Moyer <jmoyer@redhat.com>.
6731
6732         * po/fr.po: Update from translation team.
6733
6734 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6735             Carlos O'Donell <carlos@systemhalted.org>
6736
6737         [BZ #5012]
6738         * FAQ.in: Describe why glibc needs to be compiled with
6739         optimization.
6740
6741 2008-02-19  Roland McGrath  <roland@redhat.com>
6742
6743         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6744
6745 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6746
6747         [BZ #5737]
6748         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6749         __USE_MISC is defined.
6750
6751 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6752
6753         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6754         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6755         sys/timerfd.h.
6756         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6757         timerfd_gettime, timerfd_settime.
6758         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6759         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6760
6761 2008-02-08  Roland McGrath  <roland@redhat.com>
6762
6763         * elf/elf.h (NT_PPC_SPE): New macro.
6764
6765 2008-02-06  Roland McGrath  <roland@redhat.com>
6766
6767         * Makerules ($(common-objpfx)sysd-rules):
6768         Depend on $(sysdep-makeconfigs).
6769
6770 2008-01-31  Roland McGrath  <roland@redhat.com>
6771
6772         [BZ #5442]
6773         * configure.in: Use -print-file-name if it yields a directory,
6774         for each of include and include-fixed.
6775         * configure: Regenerated.
6776
6777         * Makeconfig (sysd-rules-targets): New variable.
6778         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6779         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6780
6781 2008-01-30  Roland McGrath  <roland@redhat.com>
6782
6783         * manual/libc.texinfo: Update back-cover text.
6784
6785         * elf/elf.h (NT_386_TLS): New macro.
6786
6787 2008-01-29  Roland McGrath  <roland@redhat.com>
6788
6789         * Makeconfig (sysd-rules-patterns): New variable.
6790         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6791         (check-inhibit-asm): New canned sequence, replaces ...
6792         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6793         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6794         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6795         (CFLAGS-rtld): Variable removed.
6796
6797 2008-01-24  Roland McGrath  <roland@redhat.com>
6798
6799         * configure.in: Let configure fragments set base_os.
6800         * configure: Regenerated.
6801
6802 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6803
6804         * po/ko.po: Update from translation team.
6805
6806 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6807
6808         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6809
6810 2008-01-12  Andreas Jaeger  <aj@suse.de>
6811
6812         [BZ #5040]
6813         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6814         Add EPOLLRDHUP.
6815
6816 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6817
6818         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6819         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6820         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6821
6822 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6823
6824         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6825         * elf/dl-close.c (_dl_close): Check for it.
6826         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6827         (_dl_allocate_static_tls): Likewise.
6828         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6829         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6830         to it.
6831         * elf/tst-tls16.c: New file.
6832         * elf/tst-tlsmod16a.c: New file.
6833         * elf/tst-tlsmod16b.c: New file.
6834         * elf/Makefile: Add rules to build and run tst-tls16.
6835
6836 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6837
6838         [BZ #5628]
6839         * bits/shm.h: Fix comment describing shmid_ds.
6840         * sysdeps/gnu/bits/shm.h: Likewise.
6841         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6842         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6843         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6844         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6845         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6846         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6847         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6848         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6849         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6850
6851         [BZ #5607]
6852         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6853         prototypes.
6854         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6855         additional suffixes.
6856         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6857         Add optional functions mq_timedreceive and mq_timedsend.
6858         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6859         * conform/data/pthread.h-data: Fix prototype of
6860         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6861         * conform/data/semaphore.h-data: Allow time.h definitions.
6862         * conform/data/signal.h-data: Likewise.
6863         * conform/data/stdio.h-data: getw and putw are not required in v6.
6864         * conform/data/stdlib.h-data: Change setstate prototype.
6865         * conform/data/string.h-data: Fix strerror_r prototype.
6866         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6867         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6868         Fix readlink prototype.
6869         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6870         in6addr_loopback.
6871         * inet/netinet/in.h: Cleanup namespace.
6872         * posix/regex.h: Likewise.
6873         * resolv/netdb.h: Likewise.
6874         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6875         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6876         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6877         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6878         of names of in in6_addr.
6879         (default_precedence): Likewise.
6880         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6881         NULL definition.
6882
6883 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6884
6885         * conform/data/fmtmsg.h-data: Add missing allows.
6886         * conform/data/ftw.h-data: Likewise.
6887         * conform/data/inttypes.h-data: Likewise.
6888         * conform/data/math.h-data: Likewise.
6889         * conform/data/signal.h-data: Likewise.
6890         * conform/data/net/if.h-data: Likewise.
6891         * conform/data/netinet/in.h-data: Likewise.
6892         * conform/data/sys/socket.h-data: Likewise.
6893
6894         [BZ #5614]
6895         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6896         (__strtok_r): Simplify.
6897         * string/tester.c (test_strtok_r): Add test case for futile search
6898         with single-character seach string.
6899
6900 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6901
6902         * po/ko.po: Update from translation team.
6903
6904 2008-01-11  Andreas Jaeger  <aj@suse.de>
6905
6906         [BZ #5600]
6907         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6908         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6909         kernel header.
6910
6911 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6912
6913         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6914         native interface lookup in all the relevant places.
6915
6916 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6917             Ulrich Drepper  <drepper@redhat.com>
6918
6919         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6920         field.  Use sockaddr_in6 for source_addr.
6921         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6922         (match_prefix): Likewise.
6923         (get_label): Likewise.
6924         (get_precedence): Likewise.
6925         (rfc3484_sort): Change to use indirect access to results array.
6926         Adjust to use of sockaddr_in6.  Replace service_order test with
6927         simple index comparison.
6928         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6929         service_order field.  Adjust qsort_t calls.  Access sorted result
6930         array indirectly through order array.
6931         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6932         * posix/tst-rfc3484-2.c: Likewise.
6933         * posix/tst-rfc3484-3.c: Likewise.
6934
6935 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6936
6937         [BZ #5541]
6938         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6939         pollfd structures.
6940         Patch by André Cruz.
6941
6942         [BZ #5545]
6943         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6944         (clnt_spcreateerror): Likewise.
6945
6946         [BZ #5553]
6947         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6948         (public_mEMALIGn): Likewise.
6949         Patch mostly by Daniel Jacobowitz.
6950
6951 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6952
6953         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6954         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6955         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6956         * stdlib/tst-makecontext2.c: New test.
6957
6958 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6959
6960         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6961         defined.
6962         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6963         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6964         transliteration hooks and REINIT_PARAMS afterwards.
6965         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6966         status.
6967         (REINIT_PARAMS): Define.
6968         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6969         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6970         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6971         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6972         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6973         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6974         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6975         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6976         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6977         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6978         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6979         * iconvdata/tst-iconv7.c: New test.
6980
6981 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6982
6983         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6984
6985 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6986
6987         [BZ #5112]
6988         * nscd/connections.c (restart): Fix condition.
6989
6990 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6991
6992         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6993         __ctype_toupper_loc): Add __THROW.
6994
6995 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6996
6997         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6998         recognition of interface family.
6999
7000         * posix/getconf.c: Update copyright year.
7001         * nss/getent.c: Likewise.
7002         * iconv/iconvconfig.c: Likewise.
7003         * iconv/iconv_prog.c: Likewise.
7004         * elf/ldconfig.c: Likewise.
7005         * catgets/gencat.c: Likewise.
7006         * csu/version.c: Likewise.
7007         * elf/ldd.bash.in: Likewise.
7008         * elf/sprof.c (print_version): Likewise.
7009         * locale/programs/locale.c: Likewise.
7010         * locale/programs/localedef.c: Likewise.
7011         * nscd/nscd.c (print_version): Likewise.
7012         * debug/xtrace.sh: Likewise.
7013         * malloc/memusage.sh: Likewise.
7014         * malloc/mtrace.pl: Likewise.
7015         * debug/catchsegv.sh: Likewise.
7016
7017 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7018
7019         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7020         second lookup.
7021
7022 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7023
7024         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7025         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7026
7027 2007-12-17  Roland McGrath  <roland@redhat.com>
7028
7029         * inet/ether_line.c (ether_line): Remove unused variable.
7030
7031 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7032
7033         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7034         and winp.
7035         * login/openpty.c (openpty): Likewise.
7036         * login/pty.h (openpty, forkpty): Likewise.
7037         * manual/terminal.texi (openpty, forkpty): Likewise.
7038
7039 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7040
7041         * malloc/malloc.c (public_cALLOc): For arenas other than
7042         main_arena, count all bytes inside the mprotect_size range of the
7043         heap as uninitialized.
7044
7045 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7046
7047         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7048         executable stacks.
7049
7050         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7051         mTRIm for all of them.
7052         (mTRIm): Additionally iterate over all free blocks and use madvise
7053         to free memory for all those blocks which contain at least one
7054         memory page.
7055         * malloc/tst-trim1.c: New file.
7056         * malloc/Makefile (tests): Add tst-trim1.
7057
7058         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7059
7060 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7061
7062         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7063         First cast argument to long
7064         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7065         Return long.
7066         (__vdso_clock_gettime): Likewise.
7067         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7068         return long.
7069
7070 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7071
7072         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7073         * locale/nl_langinfo_l.c: Real implementation, copied from
7074         nl_langinfo.c.
7075         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7076
7077 2007-12-01  Jim Meyering  <meyering@redhat.com>
7078
7079         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7080         that would inhibit utf8-optimization of a regexp containing line-
7081         or buffer-anchors, e.g., `^', `$'.
7082
7083 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7084
7085         * time/bug-getdate1.c (do_test): Don't use century values which
7086         aren't valid on 32-bit systems.
7087
7088 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7089
7090         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7091         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7092         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7093         __strcat_g, __strncat_g): Add __asm__.
7094
7095 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7096
7097         [BZ #5477]
7098         * io/fchmodat.c: Fix typo in stub_warning use.
7099         Patch by Petr Salinger.
7100
7101 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7102
7103         * iconvdata/hp-thai8.c: New file.
7104         * iconvdata/Makefile: Add rules for hp-thai8.c.
7105         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7106         * iconvdata/gconv-modules: Likewise.
7107
7108         [BZ #5464]
7109         * iconvdata/hp-greek8.c: New file.
7110         * iconvdata/Makefile: Add rules for hp-greek8.c.
7111         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7112         * iconvdata/gconv-modules: Likewise.
7113
7114         [BZ #5463]
7115         * iconvdata/hp-turkish8.c: New file.
7116         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7117         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7118         * iconvdata/gconv-modules: Likewise.
7119
7120         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7121         (shrink_heap): ... this new function.
7122         (heap_trim): Call shrink_heap instead of grow_heap.
7123
7124         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7125         case don't call alloc_perturb.
7126
7127 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7128
7129         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7130         possible.
7131         * sysdeps/unix/sysv/linux/kernel-features.h
7132         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7133         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7134
7135 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7136
7137         [BZ #5424]
7138         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7139         * stdio-common/Makefile (tests): Add bug22.
7140         * stdio-common/bug22.c: New file.
7141
7142         [BZ #5451]
7143         * time/getdate.c: Fix filling in default values.
7144         * time/bug-getdate1.c: New file.
7145         * time/Makefile: Add rules to build and run bug-getdate1.
7146
7147         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7148         * iconvdata/ebcdic-es.c: Likewise.
7149         * iconvdata/ebcdic-es-a.c: Likewise.
7150         * iconvdata/ebcdic-uk.c: Likewise.
7151         * iconvdata/iso8859-16.c: Likewise.
7152         * iconvdata/viscii.c: Likewise.
7153         * iconvdata/iso8859-9e.c: Likewise.
7154         * iconvdata/Makefile: Adjust appropriately.
7155
7156         [BZ #5428]
7157         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7158         __need_wint_t.
7159
7160 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7161
7162         [BZ #5427]
7163         * iconvdata/hp-roman9.c: New file.
7164         * iconvdata/Makefile: Add rules for hp-roman9.c.
7165         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7166         * iconvdata/gconv-modules: Likewise.
7167
7168         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7169         * iconvdata/Makefile: Adjust appropriately.
7170
7171         [BZ #5441]
7172         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7173         structure, it's allocated with alloca.
7174         * stdio-common/Makefile (tests): Add bug21.
7175         * stdio-common/bug21.c: New file.
7176
7177 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7178
7179         [BZ #5452]
7180         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7181         keyword for gcc's braced-groups.
7182
7183 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7184
7185         [BZ #5454]
7186         * inet/ether_line.c: Strip hostname of whitespaces.
7187         * inet/Makefile (tests): Add tst-ether_line.
7188         * inet/tst-ether_line.c: New file.
7189
7190 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7191
7192         [BZ #5439]
7193         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7194
7195         [BZ #5435]
7196         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7197
7198         * stdlib/tst-setcontext.c: Catch the case where the links gets
7199         messed up and we do not reach main again.
7200
7201         * po/ca.po: Update from translation team.
7202
7203 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7204
7205         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7206         * posix/regex.h (REG_ENOSYS): Likewise.
7207         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7208
7209 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7210
7211         * nscd/nscd.h (MAX_STACK_USE): Define.
7212         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7213         (gc): Initialize stack_used based on allocation in prune_cache.
7214         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7215         Clear array before use.
7216
7217         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7218         memory allocation failed.
7219         * nscd/hstcache.c (cache_addhst): Likewise.
7220         * nscd/grpcache.c (cache_addgr): Likewise.
7221         * nscd/servicescache.c (cache_addserv): Likewise.
7222         * nscd/pwdcache.c (cache_addpw): Likewise.
7223         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7224
7225 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7226
7227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7228         and creat system calls.
7229
7230         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7231
7232 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7233
7234         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7235         Add netiucv/iucv.h.
7236         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7237         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7238         protocol.
7239         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7240         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7241         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7242
7243 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7244
7245         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7246         strncat): Define as macros to avoid compile errors.
7247
7248         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7249         creat entries.
7250
7251 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7252
7253         [BZ #5382]
7254         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7255         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7256         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7257         overflow it.
7258         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7259
7260         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7261         Return zero in case the thread library is not NPTL.
7262
7263         [BZ #5375]
7264         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7265         initializing interface list.
7266
7267         [BZ #5378]
7268         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7269         use result of nss_getgrgid_r if nothing was found.  For other
7270         error return with a failure.
7271         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7272
7273         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7274         macro name.
7275
7276 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7277
7278         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7279         (get_scope): For IPv4 scope, use scopes table.
7280         (fini): Free scopes table if necessary.
7281         (free_scopelist): New function.
7282         (scopecmp): New function.
7283         (gaiconf_init): Also handle scopev4 entries.
7284         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7285         * posix/tst-rfc3484-2.c (do_test): Likewise.
7286         * posix/gai.conf: Document scopev4 defaults.
7287         * posix/Makefile (tests): Add tst-rfc3484-3.
7288         * posix/tst-rfc3484-3.c: New file.
7289
7290         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7291         Teredo tunnels.
7292         * posix/gai.conf: Update for current default tables.
7293
7294 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7295
7296         * po/tr.po: Update from translation team.
7297
7298 2007-11-18  Roland McGrath  <roland@frob.com>
7299
7300         * manual/arith.texi (Remainder Functions): Spelling fix.
7301         From Shaun Silk <genix@mysoul.com.au>.
7302
7303         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7304
7305 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7306
7307         * po/zh_CN.po: Update from translation team.
7308
7309         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7310         Add sys/signalfd.h and sys/eventfd.h.
7311
7312 2007-11-15  Bruno Haible  <bruno@clisp.org>
7313
7314         [BZ #5346]
7315         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7316         union.
7317         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7318         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7319         it needs only fixed stack space. Delay the initialization of
7320         msgid_len until it is needed.
7321
7322 2007-11-15  Andreas Jaeger  <aj@suse.de>
7323
7324         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7325         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7326
7327 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7328
7329         * po/ko.po: Update from translation team.
7330
7331 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7332
7333         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7334         significantly.  The device type is also part of the ifinfomsg data.
7335
7336         * po/sv.po: Update from translation team.
7337         * po/nl.po: Likewise.
7338
7339         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7340         to wake up in 24 hours.
7341
7342         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7343
7344 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7345
7346         * po/cs.po: Update from translation team.
7347         * po/pl.po: Likewise.
7348
7349         * include/ifaddrs.h: Remove in6ai_temporary.
7350         (struct in6addrinfo): Add index element.
7351         Declare __check_native.
7352         * inet/Makefile (aux): Add check_native.
7353         * sysdeps/unix/sysv/linux/check_native.c: New file.
7354         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7355         IFA_F_TEMPORARY.  Pass back ifa_index.
7356         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7357         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7358         call __check_native if necessary.
7359         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7360         to sort addresses.  Pass information about the results.
7361         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7362         of rfc3484_sort interface.
7363         * posix/tst-rfc3484-2.c: Likewise.
7364
7365         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7366         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7367         for _quicksort.
7368         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7369         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7370         on as third parameter to compare function and _quicksort.
7371         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7372         to the compare function.
7373         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7374         * Versions.def: Add GLIBC_2.8 for libc.
7375
7376         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7377         * posix/tst-rfc3484-2.c: Likewise.
7378
7379         * include/kernel-features.h: Moved to...
7380         * sysdeps/mach/hurd/kernel-features.h: ...here.
7381
7382 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7383
7384         * sysdeps/i386/i586/memcpy_chk.S: New file.
7385         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7386         * sysdeps/i386/i586/memset_chk.S: Likewise.
7387
7388 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7389
7390         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7391         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7392         list of interfaces.  Also store prefix length.
7393         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7394         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7395         prefix if source and destination address are in the same subnet.
7396         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7397         Always look for matching record in in6ai list.
7398         Correct source_addr_len value for IPv6->IPv4 converted records.
7399
7400 2007-11-11  Roland McGrath  <roland@frob.com>
7401
7402         * include/kernel-features.h: New file.
7403
7404 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7405
7406         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7407         complications for 64-bit platforms.
7408
7409         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7410         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7411         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7412         open64_2.
7413         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7414         entries.
7415         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7416         * sysdeps/wordsize-64/alphasort.c: New file.
7417         * sysdeps/wordsize-64/alphasort64.c: New file.
7418         * sysdeps/wordsize-64/fseeko.c: New file.
7419         * sysdeps/wordsize-64/fseeko64.c: New file.
7420         * sysdeps/wordsize-64/ftello.c: New file.
7421         * sysdeps/wordsize-64/ftello64.c: New file.
7422         * sysdeps/wordsize-64/ftw.c: New file.
7423         * sysdeps/wordsize-64/ftw64.c: New file.
7424         * sysdeps/wordsize-64/iofgetpos.c: New file.
7425         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7426         * sysdeps/wordsize-64/iofopen.c: New file.
7427         * sysdeps/wordsize-64/iofopen64.c: New file.
7428         * sysdeps/wordsize-64/iofsetpos.c: New file.
7429         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7430         * sysdeps/wordsize-64/lockf.c: New file.
7431         * sysdeps/wordsize-64/lockf64.c: New file.
7432         * sysdeps/wordsize-64/mkostemp.c: New file.
7433         * sysdeps/wordsize-64/mkostemp64.c: New file.
7434         * sysdeps/wordsize-64/mkstemp.c: New file.
7435         * sysdeps/wordsize-64/mkstemp64.c: New file.
7436         * sysdeps/wordsize-64/scandir.c: New file.
7437         * sysdeps/wordsize-64/scandir64.c: New file.
7438         * sysdeps/wordsize-64/tmpfile.c: New file.
7439         * sysdeps/wordsize-64/tmpfile64.c: New file.
7440         * sysdeps/wordsize-64/versionsort.c: New file.
7441         * sysdeps/wordsize-64/versionsort64.c: New file.
7442         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7443         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7444         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7445         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7446         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7447         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7448         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7449         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7450         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7451         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7452         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7453         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7454
7455         * crypt/sha256-crypt.c: Fix a comment.
7456         * crypt/sha512-crypt.c: Likewise.
7457
7458 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7461
7462 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7463
7464         [BZ #5277]
7465         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7466         because output buffer is too small break, don't loop.
7467         * iconvdata/Makefile (tests): Add bug-iconv6.
7468         * iconvdata/bug-iconv6.c: New file.
7469
7470 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7471
7472         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7473         with size_t type.
7474         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7475         size_t.  Add casts where needed.
7476
7477         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7478         old headers, don't call avc_has_perm if we don't have the
7479         permission information.
7480
7481 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7482
7483         * elf/rtld.c (dl_main): Use the page size to find the map start.
7484
7485 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7486
7487         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7488         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7489
7490         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7491         when the lookup call failed.
7492
7493         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7494         Add prune_cond and wakeup_time.
7495         (CACHE_PRUNE_INTERNAL): Define.
7496         Update declarations of prune_cache and setup_thread.
7497         * nscd/connections.c (dbs): Update initializers.
7498         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7499         (nscd_init): Default number of threads is now 4.
7500         (invalidate_cache): Take lock before calling prune_cache.
7501         (handle_request): If SELinux forbids the request, say so.
7502         (readylist_cond): Use static initializer.
7503         (nscd_run_prune): New function.  Used only by pruning threads.
7504         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7505         here.
7506         (fd_ready): Update nscd_run reference.
7507         (start_threads): No need to initialize readylist_cond.
7508         Start pruning threads separately.
7509         * nscd/nscd_setup_thread.c: Change return value type to int and always
7510         return 0.
7511         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7512         to int and return nonzero value if we can use the TID address hack.
7513         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7514         the database is later than the new entry's timeout, update the
7515         wakeup time and wake the cleanup thread.
7516         (prune_cache): Return seconds the next entry in the database is still
7517         valid.  Remove locking for pruning here.
7518         * nscd/nscd.conf: Document default number of threads.
7519
7520 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7521
7522         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7523         stack is properly aligned for the target function.
7524         Correct unwind info.
7525
7526         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7527         when using auditing libraries.
7528
7529 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7530
7531         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7532         _nss_dns_getnetbyaddr2_r.
7533         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7534         extra parameter to getanswer_r.
7535         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7536         _nss_dns_getnetbyaddr2_r.
7537
7538         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7539         gethstbynm3_r.
7540         * nscd/gethstbynm2_r.c: Remove.
7541         * nscd/gethstbynm3_r.c: New file.
7542         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7543         __gethostbyaddr_r.
7544         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7545         __gethostbyaddr_r compatibility wrapper.
7546         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7547         determining timeout of entry.
7548         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7549         __gethostbyaddr2_r.
7550         (addhstbyX): Pass reference to variable for TTL to lookup and
7551         cache_addhst.
7552         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7553         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7554         and __nss_next2.  Remove __nss_services_lookup.
7555         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7556         Add compat wrapper.
7557         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7558         __nss_next2.
7559         * nss/getXXent_r.c: Likewise.
7560         * nss/getnssent_r.c: Likewise.
7561         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7562         does not exist in module, try the optional second name.
7563         (__nss_next2): New function.
7564         (__nss_next): Now wrapper around __nss_next2.
7565         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7566         Declare __nss_next2.
7567         Adjust definition of db_lookup_function type.
7568         * nss/service-lookup.c: Define NO_COMPAT.
7569         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7570         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7571         * inet/ether_ntoh.c: Likewise.
7572         * sunrpc/netname.c: Likewise.
7573         * sunrpc/publickey.c: Likewise.
7574         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7575         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7576         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7577         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7578         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7579
7580         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7581
7582         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7583
7584 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7585
7586         [BZ #5204]
7587         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7588         * crypt/sha512c-test.c: Likewise.
7589
7590         [BZ #5225]
7591         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7592         to keep track of end of %[ format string element.
7593         * stdio-common/Makefile (tests): Add bug20.
7594         * stdio-common/bug20.c: New file.
7595
7596         [BZ #5222]
7597         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7598         path elements in counting mode.
7599
7600 2007-10-27  Andreas Jaeger  <aj@suse.de>
7601
7602         [BZ #5040]
7603         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7604
7605         [BZ #3112]
7606         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7607         (__cleanup): Free shared library when exiting.
7608         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7609         (__cleanup): Free shared library when exiting.
7610
7611 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7612
7613         [BZ #2549]
7614         * math/libm-test.inc (check_float_internal): Support
7615         denormalized return.
7616
7617 2007-10-23  Andreas Jaeger  <aj@suse.de>
7618
7619         [BZ #5208]
7620         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7621         __LONG_LONG_PAIR to handle little endian byte order.
7622         Suggested by abhishekrai@google.com
7623
7624 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7625
7626         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7627
7628 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7629
7630         * nscd/cache.c (prune_cache): Move test for modified file outside
7631         of locking.
7632
7633 2007-10-21  Andreas Jaeger  <aj@suse.de>
7634
7635         * manual/texinfo.tex: Update to latest version.
7636
7637         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7638
7639         * manual/arith.texi (Status bit operations): Fix formatting.
7640
7641         * manual/errno.texi (Error Messages): Fix formatting.
7642
7643         * manual/sysinfo.texi (System Parameters): Fix formatting.
7644
7645         * manual/libc.texinfo: Update VERSION and UPDATED.
7646
7647 2007-10-19  Roland McGrath  <roland@redhat.com>
7648
7649         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7650
7651 2007-10-06  David S. Miller  <davem@davemloft.net>
7652
7653         * configure.in: Add sparcv9v2 and sparc64v2.
7654         * scripts/config.sub: Likewise.
7655         * configure: Regenerate.
7656         * elf/elf.h (HWCAP_SPARC_N2): New.
7657         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7658         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7659         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7660         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7661         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7662         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7663         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7664
7665 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7666
7667         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7668         even if the poll result indicates there is data to read.
7669         Patch by Jeff Moyer <jmoyer@redhat.com>.
7670
7671 2007-10-18  Roland McGrath  <roland@redhat.com>
7672
7673         * elf/elf.h (NT_PPC_VMX): New macro.
7674
7675 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7676
7677         * version.h (VERSION): Set to 2.7.90.
7678
7679 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7680
7681         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7682         weak_alias.
7683
7684 2007-10-17  Roland McGrath  <roland@frob.com>
7685
7686         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7687         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7688
7689 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7690
7691         * version.h (VERSION): Bump to 2.7.
7692         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7693
7694         [BZ #5186]
7695         * time/tzset.c (__tz_convert): Don't force testing for a change of
7696         TZ if not called from localtime.  But then also see whether the
7697         file changed, in case __use_tzfile is set.
7698
7699         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7700         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7701         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7702         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7703         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7704         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7705         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7706         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7707
7708 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7709
7710         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7711         and admin selects to be able to replace the gai.conf file, lock
7712         data structures around the qsort call.
7713
7714 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7715
7716         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7717         new memset.
7718         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7719         too high for the improvements.  Implement bzero unconditionally for
7720         use in libc.
7721
7722 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7723             Jakub Jelinek  <jakub@redhat.com>
7724
7725         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7726         even when time_t is 32-bit.
7727         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7728         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7729         always set after the search.
7730
7731 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7732
7733         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7734         unreachable code on 32-bit machines.
7735
7736 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7737
7738         [BZ #5184]
7739         * time/strftime_l.c: Include stdbool.h.
7740         (my_strftime): New wrapper, old function renamed to...
7741         (__strftime_internal): ... new function.  Add tzset_called
7742         argument, pass it down to recursive calls, don't call tzset ()
7743         if already true, set to true after call to tzset ().
7744
7745 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7746
7747         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7748         into account when copying TZ string.
7749
7750 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7751
7752         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7753         num_transition rather than num_transitions - 1.
7754
7755 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7756
7757         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7758         PIC indirect jump.
7759
7760         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7761         a local label rather than HIDDEN_JUMPTARGET.
7762
7763 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7764
7765         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7766         (init_cacheinfo): Initialize it.
7767         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7768         Always define bzero.
7769         Remove non-glibc code.
7770         * sysdeps/x86_64/bzero.S: Make an empty file.
7771
7772 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7773
7774         * sysdeps/x86_64/cacheinfo.c
7775         (__x86_64_preferred_memory_instruction): New.
7776         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7777
7778         * sysdeps/x86_64/memset.S: Rewrite.
7779
7780 2007-10-15  Roland McGrath  <roland@redhat.com>
7781
7782         * po/libc.pot: Regenerated.
7783
7784 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7785
7786         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7787         pointers.
7788
7789         [BZ #3425]
7790         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7791         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7792         address record to T_A/T_AAAA requests.
7793
7794 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7795
7796         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7797
7798         * posix/glob.c: Add some branch prediction throughout.
7799
7800         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7801         read from nscd.
7802
7803         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7804         service_order.
7805         (rfc3484_sort): Make sure that even if qsort doesn't support
7806         stable sorting out sorting here is stable by comparing service_order.
7807         (getaddrinfo): Initialize service_order.
7808         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7809         service_order field to sorting structure.
7810         * posix/tst-rfc3484-2.c (do_test): Likewise.
7811
7812         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7813         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7814         __tzset_parse_tz and updating of daylight, timezone, tzname into
7815         update_vars.
7816         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7817         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7818         happens in __tz_compute.
7819         * time/tzfile.c (__tzfile_read): Also read TZ string.
7820         (find_transition): Fold into __tzfile_compute.
7821         (__tzfile_compute): For times beyond the last transition try to
7822         use the TZ string.
7823         * timezone/tst-timezone.c: Information in daylight and tzname does
7824         change for Asia/Tokyo timezone with more concrete information.
7825         Remove the test.
7826
7827         * include/stdio.h: Add libc_hidden_proto for ftello.
7828         * libio/ftello.c: Add libc_hidden_def.
7829
7830         [BZ #1140]
7831         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7832         on the specified time and not the last entries in the file.  Move
7833         code to determine tzname[] to...
7834         (find_transition): ...here.  Add ugly guess for times before the
7835         first transition.
7836
7837 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7838
7839         [BZ #3195]
7840         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7841         no entry.
7842         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7843         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7844         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7845         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7846
7847         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7848         read mechanism when there are no group members and avoid no-op
7849         read syscall in this case.
7850
7851         [BZ #3242]
7852         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7853         (__readall): If reading failed due to EAGAIN error wait a bit
7854         and possibly try again.
7855         (__readvall): Likewise.
7856
7857 2007-10-13  Bruno Haible  <bruno@clisp.org>
7858
7859         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7860         when we cannot recode the message.
7861
7862 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7863
7864         [BZ #4359]
7865         * libio/__freading.c (__freading): Don't return true for
7866         write-only streams.  For read/write streams, check whether we
7867         performed a read operation already.
7868         * libio/Makefile (tests): Add tst-ext2.
7869         * libio/tst-ext2.c: New file.
7870
7871 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7872
7873         * locale/programs/repertoire.c (repertoire_read): Always free
7874         memory for repertoire file name [Coverity CID 270].
7875
7876         * elf/cache.c (save_aux_cache): Free memory allocated for
7877         temporary file name [Coverity CID 267].
7878
7879 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7880
7881         * misc/Makefile (headers): Add bits/error.h.
7882
7883 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7884
7885         * posix/fnmatch_loop.c: Take rule index returned as part of
7886         findidx return value into account when accessing weights.
7887         * posix/regcomp.c: Likewise.
7888         * posix/regexec.c: Likewise.
7889
7890         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7891         (skip_to): Fix problems with parameter of elifdef/elifndef.
7892
7893 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7894
7895         * iconv/gconv_simple.c: Add some branch prediction.
7896
7897 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7898
7899         * locale/programs/ld-collate.c (collate_read): If ignore_content
7900         and nowtok is tok_define, eat any tok_eol tokens.
7901
7902 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7903
7904         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7905         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7906
7907         * inet/netinet/in.h: Don't include bits/socket.h.
7908         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7909         macro.
7910         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7911
7912 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7915         and tok_elifndef.
7916         * locale/programs/locfile-kw.gperf: Likewise.
7917         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7918
7919 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7920
7921         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7922         (__find_specwc): Change into __extern_always_inline function.
7923         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7924         (__parse_one_specmb): Remove ps argument.
7925         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7926         Adjust __find_specmb and __parse_one_specmb callers.
7927         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7928         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7929         Removed.
7930         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7931         caller.
7932
7933 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7934
7935         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7936         with some Pentium Ds.
7937
7938 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7939
7940         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7941         __read not read.
7942         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7943         __write not write.
7944
7945 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7946
7947         [BZ #181]
7948         * locale/C-time.c: Set week_1stday data to 19971201.
7949         * locale/programs/ld-time.c (time_finish): Default for
7950         first_workday is Monday.
7951
7952         [BZ #2633]
7953         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7954
7955         [BZ #5103]
7956         * posix/glob.c (glob): Recognize patterns starting \/.
7957         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7958         (main): Add test for pattern starting \/.
7959
7960         * misc/error.h: Use __const instead of const.
7961         * misc/bits/error.h: Likewise.
7962
7963 2007-10-07  Andreas Jaeger  <aj@suse.de>
7964
7965         * include/bits/error.h: New file.
7966
7967         * misc/bits/error.h (error_at_line): Fix prototype.
7968
7969 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7970
7971         [BZ #3924]
7972         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7973         more little bugs in creating the stack frame when pltexit has to
7974         be called.
7975
7976         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7977         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7978
7979         [BZ #4407]
7980         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7981         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7982         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7983         * math/libm-test.inc: Add test for this case.
7984
7985         [BZ #5010]
7986         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7987         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7988         map service succeeded.
7989         (svc_is_mapped): New function.
7990         (svc_unregister): Use it before trying to unmap service.
7991
7992 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7993
7994         * timezone/zic.c: Update from tzcode2007h.
7995
7996         [BZ #5063]
7997         * timezone/africa: Update from tzdata2007h.
7998         * timezone/antarctica: Likewise.
7999         * timezone/asia: Likewise.
8000         * timezone/australasia: Likewise.
8001         * timezone/europe: Likewise.
8002         * timezone/leapseconds: Likewise.
8003         * timezone/northamerica: Likewise.
8004         * timezone/southamerica: Likewise.
8005         * timzeone/zone.tab: Likewise.
8006
8007         [BZ #5104]
8008         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8009
8010         [BZ #5113]
8011         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8012         avoid warning with -Wconversion.
8013         (__strndup): Likewise.
8014         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8015
8016         [BZ #5112]
8017         * nscd/connections.c (restart): Don't resync if database is
8018         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8019
8020         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8021         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8022
8023         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8024         evetnfd_read, eventfd_write.
8025         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8026         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8027         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8028         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8029         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8030         eventfd_write for GLIBC_2.7.
8031
8032         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8033         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8034         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8035         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8036
8037 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8038
8039         * stdlib/msort.c: Include stdint.h.
8040         (struct msort_param): New type.
8041         (msort_with_tmp): Use struct msort_param pointer for unchanging
8042         parameters.  Add optimized handling for several common sizes
8043         and indirect sorting mode.
8044         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8045         sorting.
8046         Suggested by Belazougui Djamel .
8047
8048         * stdlib/Makefile (tests): Add tst-qsort2.
8049         * stdlib/tst-qsort2.c: New test.
8050
8051 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8052
8053         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8054         for dup2 in case another thread races with the current one.  Retry
8055         in this case.
8056
8057         * misc/error.h: Remove support for use outside of libc.  We have to
8058         include <features.h> now.  Include <bits/error.h> if possible.
8059         * misc/bits/error.h: New file.
8060
8061 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8062
8063         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8064         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8065         __extern_always_inline functions unconditionally, drop macros.
8066
8067         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8068         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8069         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8070
8071         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8072         add __artificial__ attribute.
8073
8074 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8075
8076         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8077         backward to forward direction.
8078
8079         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8080
8081         [BZ #645]
8082         * locale/programs/ld-collate.c (collate_finish): Compare against last
8083         used section which is known to have rules defined.
8084         (collate_read): After order_start, correctly record order of sections
8085         and queue sections up.
8086
8087 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8088
8089         [BZ #5071]
8090         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8091         the same number of pages.
8092         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8093
8094         * locale/programs/ld-collate.c (collate_read): After initial copy
8095         statement, continue in state 0.
8096
8097         * include/stdio_ext.h (__fsetlocking): Define as macro.
8098
8099 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8100
8101         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8102         of section order.
8103
8104         * po/pt_BR.po: Fix typo.
8105
8106 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8107
8108         * iconvdata/Makefile (modules): Add ISO8859-9E.
8109         (distribute): Add iso8859-9e.c.
8110         (gen-8bit-gap-modules): Add iso8859-9e.
8111         * iconvdata/iso8859-9e.c: New file.
8112         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8113         * iconvdata/TESTS: Likewise.
8114         * iconvdata/tst-tables.sh: Likewise.
8115
8116         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8117
8118         * locale/iso-639.def: Add several new entries.
8119
8120 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8121
8122         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8123         void * pointers instead of struct link_map **.
8124         (_dl_scope_free): Change argument type to void *.
8125         * include/link.h (struct link_map): Change type of l_reldeps
8126         to struct link_map_reldeps, move l_reldepsact into that
8127         struct too.
8128         * elf/dl-deps.c: Include atomic.h.
8129         (_dl_map_object_deps): Only change l->l_initfini when it is
8130         fully populated, use _dl_scope_free for freeing it.  Optimize
8131         removal of libs from reldeps by using l_reserved flag, when
8132         some removal is needed, allocate a new list instead of
8133         reallocating and free the old with _dl_scope_free.  Adjust
8134         for l_reldeps and l_reldepsact changes.
8135         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8136         searching in l_initfini and l_reldeps without holding dl_load_lock.
8137         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8138         l_reldepsact changes.
8139         * elf/dl-close.c (_dl_close_worker): Likewise.
8140         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8141
8142 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8143
8144         * iconvdata/Makefile (modules): Add KOI8-RU.
8145         (distribute): Add koi8-ru.c.
8146         (gen-8bit-gap-modules): Add koi8-ru.
8147         * iconvdata/koi8-ru.c: New file.
8148         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8149         * iconvdata/TESTS: Likewise.
8150         * iconvdata/tst-tables.sh: Likewise.
8151
8152         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8153
8154 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8155
8156         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8157         with __warning__/__error__ attributes.
8158         (__warnattr): Define.
8159         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8160         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8161         __warnattr.
8162         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8163         of __*_chk if compile time detectable overflow is found.
8164         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8165         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8166         with __warnattr.
8167         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8168         instead of __*_chk if compile time detectable overflow is found.
8169         (__gets_alias): Rename to...
8170         (__gets_warn): ... this.  Add __warnattr.
8171         (gets): Call __gets_warn instead of __gets_alias.
8172         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8173         aliases with __warnattr.
8174         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8175         time detectable overflow is found.
8176         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8177         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8178         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8179         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8180         __getdomainname_chk_warn): New aliases with __warnattr.
8181         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8182         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8183         __*_chk_warn instead of __*_chk if compile time detectable overflow
8184         is found.
8185         (__getgroups_chk): Rename argument to __listlen from listlen.
8186         (__getwd_alias): Rename to...
8187         (__getwd_warn): ... this.  Add __warnattr.
8188         (getwd): Call __getwd_warn instead of __getwd_alias.
8189         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8190         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8191         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8192         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8193         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8194         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8195         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8196         compile time detectable overflow is found.
8197         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8198         to use __*_chk or not.
8199         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8200         in comparisons which function should be called and in __*_chk*
8201         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8202         detectable overflow is found.
8203         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8204         __*_chk argument.
8205         * debug/tst-chk1.c (do_test): Add a few more tests.
8206
8207 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8208
8209         [BZ #5058]
8210         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8211         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8212         (_nl_unload_domain): Finalize conversions_lock.
8213         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8214         handling table of known conversions.
8215
8216 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8217
8218         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8219         close_not_cancel_no_status instead of close.
8220
8221 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8222
8223         [BZ #5028]
8224         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8225         nrules != 0 for multibyte chars.
8226
8227 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8228
8229         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8230         Provide better error message in case the type is unknown.
8231
8232         [BZ #4963]
8233         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8234         * string/stratcliff.c: Make usable to test wide char functions.
8235         * wcsmbs/wcsatcliff.c: New file.
8236         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8237
8238         [BZ #4972]
8239         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8240         (distribute): Add mac-centraleurope.c.
8241         (gen-8bit-gap-modules): Add mac-centraleurope.
8242         * iconvdata/mac-centraleurope.c: New file.
8243         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8244         * iconvdata/TESTS: Likewise.
8245         * iconvdata/tst-tables.sh: Likewise.
8246
8247         [BZ #5043]
8248         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8249
8250 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8251
8252         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8253         from __x86_64_core_cache_size_half.
8254         (init_cacheinfo): Compute shared cache size for AMD processors with
8255         shared L3 correctly.
8256         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8257         name change.
8258         Patch in large parts by Evandro Menezes.
8259
8260 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8261
8262         * elf/dl-lookup.c (add_dependency): Handle failing memory
8263         allocation for dependency list.  Remove unnecessary check.
8264
8265         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8266         open/close when determining source addresses.
8267
8268         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8269         sha512-crypt, and sha512.
8270         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8271         (distribute): Add sha256.h and sha512.h.
8272         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8273         and call the appropriate code.
8274         * crypt/sha256-crypt.c: New file.
8275         * crypt/sha256.c: New file.
8276         * crypt/sha256.h: New file.
8277         * crypt/sha256c-test.c: New file.
8278         * crypt/sha256test.c: New file.
8279         * crypt/sha512-crypt.c: New file.
8280         * crypt/sha512.c: New file.
8281         * crypt/sha512.h: New file.
8282         * crypt/sha512c-test.c: New file.
8283         * crypt/sha512test.c: New file.
8284
8285 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8286
8287         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8288         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8289         __syslog_chk.
8290
8291 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8292
8293         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8294         %as in fscanf format strings.
8295
8296         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8297         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8298         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8299         Likewise.
8300         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8301         Likewise.
8302
8303         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8304         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8305         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8306         * elf/dl-sym.c (do_sym): Likewise.
8307         * include/link.h (struct link_map): Add l_serial field.
8308         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8309         * elf/dl-lookup.c (add_dependency): Add flags argument.
8310         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8311         flags, use THREAD_GSCOPE_RESET_FLAG before and
8312         THREAD_GSCOPE_SET_FLAG after
8313         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8314         Don't dereference map until it has been found on some list.
8315         If map->l_serial changed, return -1.
8316
8317 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8318
8319         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8320         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8321         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8322         libc_hidden_proto.
8323         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8324         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8325         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8326         add libc_hidden_proto.
8327         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8328         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8329         conformance requested.
8330         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8331         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8332         conformance requested.
8333         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8334         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8335         conformance requested.
8336         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8337         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8338         ISO C99 or POSIX conformance requested.
8339         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8340         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8341         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8342         and __isoc99_vsscanf@@GLIBC_2.7.
8343         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8344         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8345         (tests): Add scanf14.
8346         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8347         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8348         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8349         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8350         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8351         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8352         from using internal headers.
8353         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8354         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8355         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8356         and __isoc99_vswscanf@@GLIBC_2.7.
8357         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8358         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8359         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8360         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8361         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8362         * stdio-common/isoc99_scanf.c: New file.
8363         * stdio-common/isoc99_vsscanf.c: New file.
8364         * stdio-common/isoc99_vscanf.c: New file.
8365         * stdio-common/isoc99_vfscanf.c: New file.
8366         * stdio-common/isoc99_fscanf.c: New file.
8367         * stdio-common/isoc99_sscanf.c: New file.
8368         * wcsmbs/isoc99_fwscanf.c: New file.
8369         * wcsmbs/isoc99_vswscanf.c: New file.
8370         * wcsmbs/isoc99_swscanf.c: New file.
8371         * wcsmbs/isoc99_wscanf.c: New file.
8372         * wcsmbs/isoc99_vwscanf.c: New file.
8373         * wcsmbs/isoc99_vfwscanf.c: New file.
8374         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8375         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8376         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8377         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8378         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8379         * stdio-common/scanf14.c: New test.
8380         * stdio-common/scanf15.c: New test.
8381         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8382         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8383         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8384         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8385         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8386         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8387         __nldbl___isoc99_scanf@@GLIBC_2.7,
8388         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8389         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8390         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8391         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8392         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8393         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8394         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8395         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8396         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8397         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8398         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8399         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8400         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8401         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8402         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8403         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8404         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8405         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8406         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8407         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8408         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8409         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8410         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8411         functions.
8412         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8413         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8414         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8415         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8416         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8417         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8418         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8419         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8420         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8421         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8422         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8423         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8424
8425         * stdio-common/Makefile (tests): Add scanf13.
8426         (scanf13-ENV): New.
8427         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8428         m modifier followed by l.
8429         (STRING_ARG): Add width argument.
8430         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8431         <case L_('C')>: Handle %mlc and %mC.
8432         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8433         arguments.
8434         * stdio-common/scanf13.c: New test.
8435
8436         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8437         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8438
8439 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8440
8441         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8442         type and __THROW marker of splice, vmsplice, and tee.
8443         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8444         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8445         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8446         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8447         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8448         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8449         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8450         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8451         as cancellation points.
8452
8453 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8454
8455         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8456         parse more than three parts of the version number.
8457
8458 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8459
8460         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8461         modifier.  Patch by Jakub Jelinek.
8462
8463 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8464
8465         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8466         call_fallocate in misc subdir.
8467         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8468         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8469         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8470         instead of __fallocate64.
8471         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8472
8473 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8474
8475         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8476         * rt/Makefile (headers): Add bits/mqueue2.h.
8477         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8478         optimizing with GCC and __va_arg_pack_len is defined.
8479         * rt/bits/mqueue2.h: New file.
8480         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8481         (mq_open): New strong_alias.
8482         (__mq_open_2): New function.
8483         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8484         (mq_open): New strong_alias.
8485         (__mq_open_2): New function.
8486         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8487         * Versions.def (librt): Add GLIBC_2.7 version.
8488         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8489         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8490
8491         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8492         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8493         is defined rather than when not C++.
8494         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8495         __openat64_alias): New redirects.
8496         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8497         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8498         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8499         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8500         functions instead of function-like macros.
8501
8502 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8503
8504         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8505         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8506         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8507
8508 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8509
8510         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8511         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8512
8513 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8514
8515         * inet/tst-network.c: Increment ERRORS for failing tests.
8516
8517 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8518
8519         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8520         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8521         implement as __extern_always_inline function.
8522         (vsyslog): Define as __extern_always_inline function unconditionally.
8523         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8524         When __va_arg_pack is defined, implement as __extern_always_inline
8525         functions.
8526         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8527         __extern_always_inline functions unconditionally.
8528         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8529         bits/stdio2.h will be included.
8530         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8531         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8532         implement as __extern_always_inline functions.
8533         (vswprintf, vwprintf, vfwprintf): Define as
8534         __extern_always_inline functions unconditionally.
8535         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8536
8537 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8538
8539         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8540         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8541         attribute.
8542         * include/features.h (__USE_EXTERN_INLINES): Define only when
8543         __extern_inline is defined.
8544         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8545         is defined instead of when not __cplusplus.
8546         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8547         is defined instead of when not __cplusplus.
8548         * socket/sys/socket.h: Include bits/socket2.h when
8549         __extern_always_inline is defined instead of when not __cplusplus.
8550         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8551         is defined instead of when not __cplusplus.
8552         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8553         is defined instead of when not __cplusplus.
8554         * string/string.h: Include bits/string3.h when __extern_always_inline
8555         is defined instead of when not __cplusplus.
8556         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8557         is defined instead of when not __cplusplus.
8558         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8559         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8560         is not defined.
8561         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8562         defined __extern_always_inline instead of !defined __cplusplus.
8563         * libio/bits/stdio-ldbl.h: Likewise.
8564         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8565         * misc/bits/syslog.h (syslog): Don't define for C++.
8566         (vsyslog): Use __extern_always_inline function for C++ instead of
8567         a macro.
8568         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8569         whenever that macro is defined.
8570         (vprintf): Don't provide the inline for C++.
8571         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8572         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8573         define the macros for C++.
8574         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8575         __extern_always_inline functions for C++.
8576         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8577         stat64, lstat64, fstat64, fstatat64): Don't define if not
8578         __USE_EXTERN_INLINES.
8579         * wcsmbs/bits/wchar2.h: Fix #error message.
8580         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8581         (vswprintf, vwprintf, vfwprintf): Define using
8582         __extern_always_inline functions for C++.
8583         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8584         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8585         strncpy, strcat, strncat): Define as __extern_always_inline
8586         functions instead of macros for C++.
8587         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8588         defined __extern_inline.
8589         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8590         to __extern_inline whenever that macro is defined.
8591         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8592         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8593         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8594         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8595         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8596         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8597         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8598         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8599         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8600         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8601         prototypes.  Only provide __extern_inline routines if
8602         __USE_EXTERN_INLINES.
8603         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8604         tests.
8605         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8606         For now avoid some *printf tests in C++.  Skip all testing
8607         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8608         is not.
8609         * debug/tst-chk4.cc: New file.
8610         * debug/tst-chk5.cc: New file.
8611         * debug/tst-chk6.cc: New file.
8612         * debug/tst-lfschk4.cc: New file.
8613         * debug/tst-lfschk5.cc: New file.
8614         * debug/tst-lfschk6.cc: New file.
8615         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8616         prototypes in C++.
8617         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8618         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8619         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8620
8621 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8622
8623         * po/cs.po: Update from translation team.
8624
8625 2007-09-11  Roland McGrath  <roland@redhat.com>
8626
8627         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8628         compiling.
8629
8630 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8631
8632         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8633
8634 2007-09-05  Roland McGrath  <roland@redhat.com>
8635
8636         * manual/signal.texi (Signaling Another Process): Typo fix.
8637         From Karl Berry <karl@freefriends.org>.
8638
8639 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8640
8641         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8642         zero if not defined.
8643         (make_request): Recognize optimistic addresses and treat them like
8644         deprecated addresses.
8645         Reported by Neil Horman <nhorman@redhat.com>.
8646
8647 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8648
8649         * nscd/connections.c (send_ro_fd): Also transfer file size.
8650         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8651         file size don't call fstat.
8652
8653         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8654         ahead and map the file.  This should always be correct and we can
8655         catch problems later.
8656
8657 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8658
8659         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8660         prototypes.
8661         (__fread_alias, __fread_unlocked_alias): New aliases.
8662         (fread): New extern inline.
8663         (fread_unlocked): Likewise.  Undef macro before definition of
8664         the inline function.
8665         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8666         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8667         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8668         and __fread_unlocked_chk@@GLIBC_2.7.
8669         * debug/fread_chk.c: New file.
8670         * debug/fread_u_chk.c: New file.
8671         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8672
8673 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8674
8675         * sysdeps/unix/sysv/linux/syscalls.list
8676         (personality): Change caller to EXTRA.
8677
8678 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8679
8680         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8681         to keep gcc quiet.
8682         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8683
8684         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8685         NDEBUG is defined.
8686
8687         * Makerules: Use -p option with mkdir.
8688
8689         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8690         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8691         (_xdr_directory_obj): Likewise.
8692         (xdr_entry_obj): Likewise.
8693         (xdr_group_obj): Likewise.
8694         (xdr_link_obj): Likewise.
8695         (xdr_table_obj): Likewise.
8696         (_xdr_nis_result): Likewise.
8697         (_xdr_ns_request): Likewise.
8698         (_xdr_ib_request): Likewise.
8699         (_xdr_nis_taglist): Likewise.
8700         (xdr_cback_data): Likewise.
8701         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8702         (xdr_ypresp_maplist): Likewise.
8703
8704         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8705
8706         * posix/regex_internal.h: Prevent some declarations and definitions
8707         to be seen when used in tests.
8708
8709         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8710         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8711
8712         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8713
8714         * config.make.in (datarootdir): Add to shut up configure.
8715
8716         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8717         associativity for fully-associative caches.
8718
8719         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8720         requests.  Fill on more associativity values for L2.
8721         Patch mostly by Evandro Menezes.
8722
8723 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8724
8725         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8726         (_libc_vdso_platform_setup): Avoid using exported variable by using
8727         alias.
8728
8729         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8730
8731         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8732         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8733         defined.
8734
8735 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8736
8737         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8738         align stack for call if pltexit is to be used.
8739
8740         [BZ #3924]
8741         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8742         align for function call in case pltexit has to be called later.
8743
8744         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8745         implicit atomic operation when storing function pointer.
8746         (_dl_runtime_profile): Likewise.
8747
8748 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8749
8750         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8751         NIS_NOTFOUND.
8752
8753 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8754
8755         [BZ #4566]
8756         * string/strtok.c: Fix typo in comment.
8757
8758         [BZ #4582]
8759         * debug/segfault.c: Fix typos in comments.
8760
8761         [BZ #4588]
8762         * stdio-common/tempnam.c: Fix comment, it is not checked that
8763         TMPDIR points to a writable directory.
8764
8765         [BZ #4726]
8766         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8767         memory allocated for the name server address.
8768
8769         [BZ #4946]
8770         * nscd/connections.c (handle_request): Using sendfile always
8771         requires that mmap is used for the database.
8772         Patch by Petr Baudis <pasky@suse.cz>.
8773
8774         [BZ #4905]
8775         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8776         suddenly has two or more addresses, ignore it and remove the old
8777         entry.
8778
8779         [BZ #4814]
8780         * resolv/res_hconf.c: Prepare for compiling outside libc.
8781         * nscd/res_hconf.c: New file.
8782         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8783         the new file.
8784         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8785         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8786
8787         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8788
8789         [BZ #4925]
8790         * debug/pcprofiledump.c: Turn on internationalization by calling
8791         setlocale.  Patch mostly by Benno Schulenberg.
8792
8793         [BZ #4936]
8794         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8795         the state.
8796         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8797         * iconvdata/bug-iconv5.c: New file.
8798
8799 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8800
8801         [BZ #4896]
8802         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8803         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8804         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8805         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8806         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8807         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8808         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8809         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8810
8811 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8812
8813         [BZ #4937]
8814         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8815         lookup loop.  Suggested by John Reiser.
8816
8817 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8818
8819         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8820
8821 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8822
8823         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8824         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8825         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8826         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8827         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8828         to...
8829         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8830
8831 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8832
8833         * po/nl.po: Update from translation team.
8834
8835 2007-08-16  Andreas Jaeger  <aj@suse.de>
8836
8837         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8838         Reported by Peter Festner <peter.festner@ewetel.net>.
8839
8840 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8841
8842         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8843
8844 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8845
8846         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8847         to check for undefined symbols.
8848
8849         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8850         If the syscall fails, set errno to the actual returned error number
8851         rather than EINVAL.
8852         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8853         arguments are incorrect, set errno to EINVAL, if the syscall
8854         fails, set errno to the actual returned error number.
8855
8856         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8857         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8858
8859         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8860         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8861         file.
8862         (ASI_PNF, ASI_BLK_P): Don't define.
8863         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8864         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8865         file.
8866         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8867         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8868         file.
8869
8870 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8871
8872         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8873         FE_UNDERFLOW on Niagara CPUs.
8874
8875         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8876         exceptions.
8877
8878 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8879
8880         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8881         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8882         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8883         flush should be used or not inside of the function.
8884         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8885
8886         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8887         __thread_start): Use HIDDEN_JUMPTARGET.
8888         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8889         __thread_start): Likewise.
8890         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8891
8892         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8893         Add libc_hidden_proto.
8894         (STRTOF): Add libc_hidden_proto.
8895         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8896         (strtold_l, wcstold_l): Use them as second argument for
8897         long_double_symbol.
8898
8899 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8900
8901         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8902
8903 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8904
8905         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8906
8907 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8908
8909         * po/bg.po: New file.  From the translation team.
8910
8911 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8912
8913         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8914         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8915         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8916         when each feature was introduced.
8917
8918         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8919         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8920         (CHECK_HASH): New macro.
8921         (PREPARE_VERSION): Use it.
8922
8923         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8924         prototype if not __ASSUME_PSELECT.
8925         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8926         prototype if not __ASSUME_PPOLL.
8927
8928         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8929
8930         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8931         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8932         is defined.
8933
8934 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8935
8936         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8937         (_libc_vdso_platform_setup): If vDSO is not available point
8938         __vdso_gettimeofday to the vsyscall.
8939         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8940         __vdso_gettimeofday instead of vsyscall.
8941
8942 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8943
8944         * nscd/servicescache.c: Include kernel-features.h.
8945         * nscd/gai.c: Likewise.
8946         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8947         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8948         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8949         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8950         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8951         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8952         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8953         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8954         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8955
8956 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8957
8958         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8959         and _dl_get_origin defines anymore.
8960
8961         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8962         Build fix for systems which might lack POSIX timer support.
8963
8964         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8965         (_libc_vdso_platform_setup): Mangle function pointers before storing
8966         them.
8967         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8968         Demangle vdso pointer before use.
8969         (INTERNAL_VSYSCALL): Likewise.
8970
8971         * elf/cache.c (primes): Mark as const.
8972         Noted by Roland McGrath.
8973
8974 2007-08-01  Andreas Jaeger  <aj@suse.de>
8975             Jakub Jelinek  <jakub@redhat.com>
8976
8977         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8978         (options): Add option.
8979         (parse_opt): Handle option.
8980         (manual_link): Adjust process_file caller.  Call implicit_soname.
8981         (search_dir): Formatting.  Use and populate auxiliary cache.
8982         (main): Load and save auxiliary cache.
8983         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8984         stat64 from fstat64 to caller.
8985         (implicit_soname): New function.
8986         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8987         leave *soname as NULL.
8988         * elf/cache.c: Include libgen.h.
8989         (print_entry, print_cache, compare, save_cache, add_to_cache):
8990         Formatting and cleanups.
8991         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8992         aux_cache_file): New structures.
8993         (AUX_CACHEMAGIC): Define.
8994         (primes): New array.
8995         (aux_hash_size, aux_hash): New variables.
8996         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8997         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8998         load_aux_cache, save_aux_cache): New functions.
8999         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9000         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9001         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9002         (process_file): Adjust prototype.
9003
9004 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9005
9006         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9007         with __need_size_t.
9008
9009 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9010
9011         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9012         r_found_version structure as second parameter.
9013         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9014         (_dl_vdso_vsym): Change type of second parameter accordingly.
9015         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9016         (_libc_vdso_platform_setup): Adjust.
9017         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9018         (_libc_vdso_platform_setup): Likewise.
9019
9020         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9021         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9022         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9023         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9024         * csu/libc-start.c: Pretty printing.
9025         Use VDSO_SETUP if defined.
9026         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9027         and let generic code call into _libc_vdso_platform_setup.
9028         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9029         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9030         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9031         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9032         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9033         for GLIBC_PRIVATE.
9034         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9035         (sysdep_rountines): Add dl-vdso.
9036
9037         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9038         of routines.
9039
9040         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9041         attribute_hidden to __vdso_gettimeofday prototype.
9042
9043 2007-08-12  Roland McGrath  <roland@redhat.com>
9044
9045         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9046         From: Karl Berry <karl@freefriends.org>.
9047
9048 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9049
9050         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9051         an atime update for the files we read.
9052
9053 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9054
9055         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9056
9057         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9058         instead of mkstemp.
9059
9060         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9061         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9062         * misc/mkostemp.c: New file.
9063         * misc/mkostemp64.c: New file.
9064         * stdlib/stdlib.h: Declare the new functions.
9065         * sysdeps/posix/tempname.c: Add new parameter which is added to
9066         the flags for open.  Remove __GT_BIGFILE handling.
9067         * stdio-common/tempname.c: Likewise.
9068         * include/stdio.h: Adjust __gen_tempname prototype.
9069         Renumber __GT_* constants.
9070         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9071         * misc/mkdtemp.c: Likewise.
9072         * misc/mkstemp.c: Likewise.
9073         * misc/mkstemp64.c: Likewise.
9074         * misc/mktemp.c: Likewise.
9075         * stdio-common/tempnam.c: Likewise.
9076         * stdio-common/tmpfile.c: Likewise.
9077         * stdio-common/tmpfile64.c: Likewise.
9078         * stdio-common/tmpnam.c: Likewise.
9079         * stdio-common/tmpnam_r.c: Likewise.
9080
9081 2007-08-10  Roland McGrath  <roland@frob.com>
9082
9083         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9084         New macros.
9085         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9086         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9087
9088 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9089
9090         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9091         possible.
9092         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9093         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9094         * nss/nss_files/files-have_o_cloexec.c: New file.
9095
9096         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9097         available.
9098
9099 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9100
9101         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9102         ___new_wcstold_l): New weak aliases.
9103         (strtold_l, wcstold_l): Use them as second argument for
9104         long_double_symbol.
9105
9106 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9107
9108         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9109         register in test for error.
9110
9111         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9112         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9113
9114         * po/sv.po: Update from translation team.
9115
9116 2007-08-06  Roland McGrath  <roland@redhat.com>
9117
9118         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9119         Remove __strto*_l inlines.
9120         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9121         * stdlib/strtod.c: Add libc_hidden_def.
9122         * stdlib/strtod_l.c: Likewise.
9123         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9124         for __new_strtold and __new_wcstold.
9125         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9126         __STRTOF, STRTOF.
9127         * stdlib/strtol.c: Add libc_hidden_def.
9128         * stdlib/strtol_l.c: Likewise.
9129         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9130         strtoq.
9131
9132         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9133
9134         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9135         * scripts/data/localplt-generic.data: ... here.
9136         * elf/Makefile (check-data): Get generic file if no other.
9137         ($(objpfx)check-localplt.out): Make target unconditional.
9138
9139         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9140         Use ElfW(Nhdr).
9141
9142 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9143
9144         * po/zh_CN.po: Updated translation from translation team.
9145
9146 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9147
9148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9149         Don't use CGOTSETUP and CGOTRESTORE macros.
9150
9151 2007-08-04  Roland McGrath  <roland@redhat.com>
9152
9153         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9154
9155 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9156
9157         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9158         __extension__ around the whole statement expression.
9159
9160 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9161
9162         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9163         elements during initialization.
9164
9165         * po/pl.po: Updated translation from translation team.
9166         * po/tr.po: Likewise.
9167         * po/nl.po: Likewise.
9168
9169 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9170
9171         * rt/aio.h: Add __nonnull attributes.
9172
9173 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9174
9175         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9176         * stdlib/Makefile (tests): Add tst-strtod5.
9177         (tst-strtod5-ENV): New.
9178         * stdlib/tst-strtod5.c: New file.
9179
9180         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9181         failed.
9182         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9183         on failure.
9184
9185         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9186         allocated.
9187
9188 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9189
9190         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9191         numbers.
9192
9193 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9194
9195         * io/Makefile (aux): Add have_o_cloexec.
9196         * include/fcntl.h: Declare __have_o_cloexec.
9197         * io/have_o_cloexec.c: New file.
9198         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9199         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9200         fcntl call if not necessary.
9201         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9202         of local variable.
9203
9204         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9205         Avoid memset, add explicit initialization.
9206         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9207         to the end and change into zero-sized array.
9208         Move lock member to fill a hole on 64-bit platforms.
9209
9210         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9211         inline functions.
9212         * include/stdlib.h: Add __strto*_internal prototypes here.
9213         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9214         inline functions.
9215         * include/wchar.h: Add __wcsto*_internal prototypes.
9216         * sysdeps/generic/inttypes.h: No need to protect the declaration
9217         of the __strto*_internal and __wcsto*_internal members here.
9218
9219         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9220
9221 2007-08-02  Roland McGrath  <roland@redhat.com>
9222
9223         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9224         $(inst_bindir)/getconf if possible.
9225
9226         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9227         (generated): Add it.
9228         ($(inst_libexecdir)/getconf): Use it.
9229
9230 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9231
9232         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9233         /proc is faster and sufficient.  /sys is still needed for
9234         __get_nprocs_conf.
9235
9236 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9237
9238         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9239         syscall as __fallocate64.
9240         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9241         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9242
9243 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9244
9245         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9246         value.
9247
9248         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9249         if off_t is different rank from size_t.
9250
9251         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9252         uw_frame_state_for): Avoid type punning warnings.
9253         * sysdeps/generic/unwind-dw2-fde-glibc.c
9254         (_Unwind_IteratePhdrCallback): Likewise.
9255         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9256         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9257         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9258         pointers.
9259
9260 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9261
9262         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9263         total processors using sysfs.
9264         (__get_nprocs): Use sysfs to determine which processors are online.
9265
9266 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9267
9268         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9269         syscall arguments count.
9270
9271         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9272
9273 2007-07-30  Roland McGrath  <roland@redhat.com>
9274
9275         * manual/libc.texinfo: Update copyrights, formatting magic, and
9276         @dircategory.  From Karl Berry <karl@freefriends.org>.
9277
9278 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9279
9280         [BZ #4860]
9281         * io/Makefile (headers): Add bits/fcntl2.h.
9282
9283         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9284         using gcc builtin.
9285         (__CPU_EQUAL_S): Likewise.
9286
9287         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9288         (tests): Add tst-cpuset.
9289         * posix/sched_cpualloc.c: New file.
9290         * posix/sched_cpufree.c: New file.
9291         * posix/tst-cpuset.c: New file.
9292         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9293         GLIBC_2.7.
9294         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9295         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9296         macros.  Define CPU_*_S macros.
9297
9298 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9299
9300         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9301         entry.
9302
9303         [BZ #4858]
9304         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9305         #.0g and value rounded to 1.0.
9306         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9307
9308 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9309
9310         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9311         for int_frac_digits and frac_digits.
9312
9313         * login/logout.c (logout): Avoid aliasing violation.
9314         * login/logwtmp.c (logwtmp): Likewise.
9315
9316         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9317
9318         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9319         to avoid warning.
9320         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9321         warning.
9322         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9323         warning.
9324         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9325         to avoid warnings.
9326
9327         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9328         void **.
9329         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9330
9331         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9332         char * to avoid warning.
9333         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9334
9335         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9336
9337         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9338         allocate_arrays): Cast second argument to charmap_find_symbol
9339         to char * to avoid warnings.
9340
9341         * locale/programs/repertoire.c (repertoire_new_char): Change
9342         from_nr, to_nr and cnt to unsigned long, adjust printf format
9343         string.
9344
9345         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9346         Cast second argument to new_element to char * to avoid warnings.
9347
9348         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9349
9350         * intl/gettextP.h (struct loaded_domain): Change plural to const
9351         struct expression *.
9352         * intl/plural-eval.c (plural_eval): Change first argument to
9353         const struct expression *.
9354         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9355         argument to const struct expression **.
9356         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9357         prototypes.
9358         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9359         in call to __gettext_free_exp.
9360
9361         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9362         unitialized wstring/wpattern var warnings.
9363
9364         * posix/runtests.c (struct a_test): Make data field const char *.
9365
9366         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9367         vars if not LDBL_MANT_DIG >= 106.
9368
9369         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9370
9371         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9372         __find_specmb to avoid warning.
9373
9374         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9375
9376         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9377         to avoid warnings.
9378
9379         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9380         initializer.
9381
9382         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9383         tv var when it will be actually used.
9384
9385         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9386         to avoid warnings.
9387
9388         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9389         char array resp. pointer.
9390         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9391         char array.
9392         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9393         to const unsigned char **.
9394         (ucs4_to_cns11643): Change second argument to unsigned char *.
9395         * iconvdata/euc-tw.c (BODY): Change endp type to
9396         const unsigned char *.
9397         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9398         to unsigned char *.
9399         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9400         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9401         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9402         types to unsigned char pointers/arrays instead of char.
9403         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9404         to unsigned char *.
9405         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9406         * iconvdata/jis0212.h: Include assert.h.
9407         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9408         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9409         of trying to handle that.
9410         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9411         shut up a warning.
9412         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9413         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9414         two dimensional const unsigned char arrays.
9415         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9416         Initialize endp to inptr to shut up a warning.
9417
9418 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9419
9420         [BZ #4772]
9421         * time/strptime_l.c (__strptime_internal): Silently ignore
9422         strftime modifiers and field width in recursive calls.
9423
9424         * include/time.h (enum ptime_locale_status): Remove.
9425         (__strptime_internal): Remove decided and era_cnt arguments,
9426         add statep argument.
9427         * time/strptime_l.c (__strptime_internal): Remove decided
9428         and era_cnt arguments, add statep argument.  Don't recompute
9429         any fields in recursive calls, only update caller's tm
9430         and state, if recursive call fails, don't change tm nor
9431         any state.
9432         (get_alt_number): Adjust.
9433         (recursive): Adjust caller.
9434         (strptime): Likewise.
9435         * time/strptime.c (strptime): Likewise.
9436
9437 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9438
9439         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9440         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9441         if from and to charsets are the same.
9442         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9443         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9444         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9445
9446 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9447
9448         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9449         Don't define wint_t when __need_mbstate_t unless it
9450         is necessary.
9451         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9452         in the typedef if possible.
9453         * wctype/wctype.h (wint_t): Define by including
9454         wchar.h with __need_wint_t instead of including stddef.h
9455         with __need_wint_t and as fallback definining it ourselves.
9456         * iconv/gconv.h (__need_wint_t): Define before including
9457         wchar.h.
9458         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9459         or _GLIBCPP_USE_WCHAR_T.
9460         (__need_wchar_t): Don't define
9461         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9462         (__need_wint_t): Don't define before including stddef.h,
9463         define before including wchar.h only if _LIBC or
9464         _GLIBCPP_USE_WCHAR_T.
9465         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9466         * sysdeps/mach/hurd/_G_config.h: Likewise.
9467         * sysdeps/generic/_G_config.h: Likewise.
9468         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9469         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9470         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9471         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9472
9473 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9474
9475         * sysdeps/posix/posix_fallocate64.c: Undefine
9476         __posix_fallocate64_l64 before alias handling.
9477         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9478         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9479         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9480         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9481
9482         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9483
9484 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9485
9486         * locale/programs/ld-collate.c (atwc): New variable.
9487         (add_to_tablewc): New toplevel function, moved from collate_output.
9488         (collate_output): Remove add_to_tablewc nested function.
9489
9490         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9491         (name_insert): New function.
9492         (write_output): Remove hash_table and hash_size vars and name_insert
9493         nested function.
9494
9495 2007-07-24  Roland McGrath  <roland@redhat.com>
9496
9497         * Makerules (install-others-programs-nosubdir): New target.
9498         (install-no-libc.a-nosubdir): Depend on it.
9499
9500         * iconv/Makefile (install-others-programs): Set this instead of
9501         install-others.
9502         * login/Makefile (install-others-programs): Likewise.
9503         * posix/Makefile (install-others-programs): Likewise.
9504
9505         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9506         dependencies.
9507
9508 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9509
9510         * io/Makefile (tests): Add tst-posix_fallocate.
9511         * io/tst-posix_fallocate.c: New file.
9512
9513         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9514         __ASSUME_FALLOCATE.
9515
9516 2007-07-22  Roland McGrath  <roland@frob.com>
9517
9518         * hurd/getdport.c: Add missing copyright year update.
9519
9520         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9521         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9522
9523 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9524
9525         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9526
9527         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9528         O_CLOEXEC is needed.
9529         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9530         Avoid additional fcntl to set O_CLOEXEC if not needed.
9531         * nis/nss_compat/compat-initgroups.c: Likewise.
9532         * nis/nss_compat/compat-pwd.c: Likewise.
9533         * nis/nss_compat/compat-spwd.c: Likewise.
9534
9535 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9536
9537         [BZ #3665]
9538         * manual/errno.texi: Change ECANCELED value to 119.
9539
9540         [BZ #4610]
9541         * mach/lock-intern.h: Include <sys/cdefs.h>.
9542
9543         [BZ #4178]
9544         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9545         reading A.
9546
9547         [BZ #4126]
9548         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9549         to __sigsuspend.
9550
9551         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9552
9553 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9554
9555         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9556         `__ASSEMBLER__'.
9557         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9558
9559 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9560
9561         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9562         descriptor received from nscd.
9563
9564         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9565
9566         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9567         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9568         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9569         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9570         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9571         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9572
9573 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9574
9575         [BZ #4816]
9576         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9577
9578         [BZ #4813]
9579         * login/forkpty.c (forkpty): Close master and slave fds on
9580         fork failure.  Patch by
9581         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9582
9583 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9584
9585         * include/features.h (__USE_ISOC95): New define.
9586         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9587         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9588         for -std=iso9899:199409.
9589         * CONFORMANCE: Remove comments about unsupported AMD1.
9590
9591 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9592
9593         * sysdeps/ia64/sched_cpucount.c: New file.
9594         * sysdeps/powerpc/sched_cpucount.c: New file.
9595
9596         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9597         __BEGIN_DECLS/__END_DECLS around the prototype.
9598         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9599         pointer to const cpu_set_t.
9600
9601         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9602         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9603         __need_size_t and include stddef.h.
9604         * sysvipc/sys/msg.h: Likewise.
9605         * posix/sched.h: Likewise.
9606         * hurd/hurd/signal.h (__need_size_t): Define.
9607
9608         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9609         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9610         no longer defines wint_t or wchar_t.
9611
9612         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9613         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9614         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9615         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9616         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9617         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9618         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9619         * debug/printf_chk.c (__printf_chk): Likewise.
9620         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9621         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9622
9623         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9624         Define.
9625
9626         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9627         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9628
9629 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9630
9631         [BZ #4792]
9632         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9633         * malloc/malloc.h (realloc): Likewise.
9634
9635         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9636         if one of proc_file_chain streams has that fileno.
9637         * stdio-common/Makefile (tests): Add tst-popen2.
9638         * stdio-common/tst-popen2.c: New test.
9639
9640 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9641
9642         * elf/ldconfig.c: Allow GPLv2 or any later version.
9643         * elf/readlib.c: Likewise.
9644         * elf/chroot_canon.c: Likewise.
9645         * elf/cache.c: Likewise.
9646         * nscd/mem.c: Likewise.
9647         * nscd/getpwuid_r.c: Likewise.
9648         * nscd/grpcache.c: Likewise.
9649         * nscd/aicache.c: Likewise.
9650         * nscd/getsrvbynm_r.c: Likewise.
9651         * nscd/nscd.c: Likewise.
9652         * nscd/servicescache.c: Likewise.
9653         * nscd/getsrvbypt_r.c: Likewise.
9654         * nscd/initgrcache.c: Likewise.
9655         * nscd/gethstbyad_r.c: Likewise.
9656         * nscd/gethstbynm2_r.c: Likewise.
9657         * nscd/getgrnam_r.c: Likewise.
9658         * nscd/nscd_setup_thread.c: Likewise.
9659         * nscd/getpwnam_r.c: Likewise.
9660         * nscd/gai.c: Likewise.
9661         * nscd/connections.c: Likewise.
9662         * nscd/dbg_log.c: Likewise.
9663         * nscd/cache.c: Likewise.
9664         * nscd/hstcache.c: Likewise.
9665         * nscd/nscd_conf.c: Likewise.
9666         * nscd/getgrgid_r.c: Likewise.
9667         * nscd/pwdcache.c: Likewise.
9668         * catgets/gencat.c: Likewise.
9669         * locale/programs/linereader.h: Likewise.
9670         * locale/programs/locarchive.c: Likewise.
9671         * locale/programs/ld-paper.c: Likewise.
9672         * locale/programs/locfile-kw.h: Likewise.
9673         * locale/programs/ld-address.c: Likewise.
9674         * locale/programs/xmalloc.c: Likewise.
9675         * locale/programs/ld-time.c: Likewise.
9676         * locale/programs/localedef.c: Likewise.
9677         * locale/programs/simple-hash.c: Likewise.
9678         * locale/programs/xstrdup.c: Likewise.
9679         * locale/programs/ld-numeric.c: Likewise.
9680         * locale/programs/locfile-kw.gperf: Likewise.
9681         * locale/programs/ld-collate.c: Likewise.
9682         * locale/programs/charmap-kw.gperf: Likewise.
9683         * locale/programs/charmap.h: Likewise.
9684         * locale/programs/charmap-kw.h: Likewise.
9685         * locale/programs/config.h: Likewise.
9686         * locale/programs/locfile.c: Likewise.
9687         * locale/programs/ld-ctype.c: Likewise.
9688         * locale/programs/charmap.c: Likewise.
9689         * locale/programs/ld-messages.c: Likewise.
9690         * locale/programs/repertoire.h: Likewise.
9691         * locale/programs/locale.c: Likewise.
9692         * locale/programs/ld-name.c: Likewise.
9693         * locale/programs/linereader.c: Likewise.
9694         * locale/programs/locfile.h: Likewise.
9695         * locale/programs/3level.h: Likewise.
9696         * locale/programs/ld-monetary.c: Likewise.
9697         * locale/programs/ld-measurement.c: Likewise.
9698         * locale/programs/charmap-dir.c: Likewise.
9699         * locale/programs/ld-identification.c: Likewise.
9700         * locale/programs/localedef.h: Likewise.
9701         * locale/programs/charmap-dir.h: Likewise.
9702         * locale/programs/repertoire.c: Likewise.
9703         * locale/programs/simple-hash.h: Likewise.
9704         * locale/programs/ld-telephone.c: Likewise.
9705         * locale/programs/locale-spec.c: Likewise.
9706         * locale/programs/locfile-token.h: Likewise.
9707         * posix/getconf.c: Likewise.
9708         * iconv/dummy-repertoire.c: Likewise.
9709         * iconv/iconv_charmap.c: Likewise.
9710         * iconv/iconvconfig.c: Likewise.
9711         * iconv/iconv_prog.c: Likewise.
9712         * malloc/memusagestat.c: Likewise.
9713         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9714
9715 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9716
9717         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9718         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9719         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9720         check for the first argument.
9721
9722 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9723
9724         [BZ #4775]
9725         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9726         (__tgmath_real_type): Fix if expr is const int or other const
9727         qualified integral type.
9728         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9729         expressions and handle const qualified arguments.
9730         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9731         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9732         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9733         statement expressions.
9734         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9735         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9736         (__TGMATH_UNARY_IMAG): Define.
9737         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9738         * math/Makefile (tests): Add test-tgmath2.
9739         (CFLAGS-test-tgmath2.c): Add.
9740         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9741         count_cfloat, count_cldouble): New variables.
9742         (NCCALLS): Define.
9743         (main): Check number of complex calls as well.
9744         (F(compile_test)): Add complex tests and tests with const qualified
9745         arguments.
9746         (y, z, ccount): Define.
9747         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9748         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9749         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9750         F(cproj)): New functions.
9751         * math/test-tgmath2.c: New test.
9752
9753 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9754
9755         [BZ #4776]
9756         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9757         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9758         instead output ".".
9759         * dlfcn/Makefile (distribute): Add glreflib3.c.
9760         (module-names): Add glreflib3.
9761         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9762         glreflib1.so.
9763         (LDFLAGS_glreflib3.so): New.
9764         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9765         glreflib1.so.
9766         * dlfcn/glreflib3.c: New file.
9767
9768         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9769         returned -1, return NULL.
9770         * intl/explodename.c (_nl_explode_name): Return -1 if
9771         _nl_normalize_codeset failed.
9772
9773 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9774
9775         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9776         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9777         and avoid branch misspredicts for > 31 bytes memset case.
9778         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9779         Remove toc ref to __cache_line_size.
9780
9781         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9782         to get ISA-V2.0 branch hints.
9783         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9784         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9785         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9786         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9787         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9788         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9789         Remove toc ref to __cache_line_size.
9790
9791         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9792         Include math_ldbl_opt.h.
9793
9794 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9795
9796         [BZ #4773]
9797         * time/strptime_l.c (__strptime_internal): Implement greedy
9798         matching of weekday and month names.
9799
9800 2007-07-09  Roland McGrath  <roland@redhat.com>
9801
9802         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9803         (ELF_NOTE_ABI): Use it.
9804         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9805
9806 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9807
9808         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9809         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9810
9811 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9812
9813         [BZ #4745]
9814         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9815         in loop to look for conversion specifier to avoid testing of
9816         wrong errno value.
9817         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9818         * stdio-common/bug18.c: New file.
9819         * stdio-common/bug18a.c: New file.
9820         * stdio-common/bug19.c: New file.
9821         * stdio-common/bug19a.c: New file.
9822
9823 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9824
9825         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9826         running awk script.
9827
9828 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9829
9830         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9831         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9832         Return NULL if mmap failed instead of asserting it does not.
9833         (calloc): Check for integer overflow.
9834
9835         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9836         than LONG_MAX / 10.
9837
9838 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9839
9840         [BZ #4702]
9841         * nis/nss-default.c: Include errno.h.
9842         (init): Preserve errno.
9843
9844 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9845
9846         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9847
9848 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9849
9850         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9851
9852 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9853
9854         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9855
9856 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9857
9858         * sysdeps/s390/dl-procinfo.c: New file.
9859         * sysdeps/s390/dl-procinfo.h: New file.
9860         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9861
9862 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9863
9864         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9865         in PT_NOTE segments with multiple notes.
9866         * elf/readelflib.c (process_elf_file): Likewise.
9867
9868 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9869
9870         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9871         ISO C compliant.
9872
9873 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9874
9875         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9876
9877 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9878
9879         * include/link.h: Don't include rtld-lowlevel.h.
9880         (struct link_map): Remove l_scope_lock.
9881         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9882         (_dl_scope_free_list): New field (variable) in _rtld_global.
9883         (DL_LOOKUP_SCOPE_LOCK): Remove.
9884         (_dl_scope_free): New prototype.
9885         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9886         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9887         (_dl_profile_fixup): Likewise.
9888         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9889         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9890         THREAD_GSCOPE_RESET_FLAG around it.
9891         * elf/dl-close.c (_dl_close_worker): Don't use
9892         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9893         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9894         scopes were queued or if l_scope_mem has been abandoned.
9895         * elf/dl-open.c (_dl_scope_free): New function.
9896         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9897         * elf/dl-support.c (_dl_scope_free_list): New variable.
9898         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9899         Remove DL_LOOKUP_SCOPE_LOCK handling.
9900         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9901         handling.
9902         * elf/dl-object.c (_dl_new_object): Don't use
9903         __rtld_mrlock_initialize.
9904
9905 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9906
9907         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9908         to fill in holes
9909         (rtld_global_ro): Likewise.
9910
9911 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9912
9913         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9914         Move PT_LOAD checking to...
9915         (_dl_addr_inside_object): ... here, new function.
9916         * elf/dl-sym.c (do_sym): If not l_contiguous,
9917         call _dl_addr_inside_object.
9918         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9919         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9920         * elf/dl-open.c (dl_open_worker): Likewise.
9921         (_dl_addr_inside_object): New function if IS_IN_rtld.
9922         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9923         holes are present or are PROT_NONE protected.
9924         * include/link.h (struct link_map): Add l_contiguous field.
9925         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9926
9927 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9928             Tomas Janousek  <tjanouse@redhat.com>
9929             Ulrich Drepper  <drepper@redhat.com>
9930
9931         [BZ #4647]
9932         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9933         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9934         socket.
9935         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9936         unused member a bitmap.
9937         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9938         servers are configured.
9939
9940 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9941
9942         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9943
9944 2007-06-17  Andreas Schwab  <schwab@suse.de>
9945
9946         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9947
9948 2007-06-16  Andreas Jaeger  <aj@suse.de>
9949
9950         [BZ #4125]
9951         * sysdeps/unix/sysv/linux/sys/ptrace.h
9952         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9953         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9954         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9955         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9956         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9957         Define.
9958         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9959         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9960         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9961         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9962
9963 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9964
9965         [BZ #4599]
9966         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9967         determining whether there are IPv4/IPv6 addresses, ignore loopback
9968         addresses.
9969
9970 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9971
9972         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9973         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9974         as the return type.  Change type of "r" variable to CMPtype.
9975         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9976         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9977         * soft-fp/gedf2.c (__gedf2): Likewise.
9978         * soft-fp/gesf2.c (__gesf2): Likewise.
9979         * soft-fp/getf2.c (__getf2): Likewise.
9980         * soft-fp/ledf2.c (__ledf2): Likewise.
9981         * soft-fp/lesf2.c (__lesf2): Likewise.
9982         * soft-fp/letf2.c (__letf2): Likewise.
9983         * soft-fp/unorddf2 (__unorddf2): Likewise.
9984         * soft-fp/unordsf2 (__unordsf2): Likewise.
9985         * soft-fp/unordtf2 (__unordtf2): Likewise.
9986
9987 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9988
9989         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9990         make sure gcc doesn't mess around with this.
9991
9992 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9995
9996 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9997
9998         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9999         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10000         at most once per _dl_close_worker.
10001
10002 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10003
10004         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10005         __sched_cpucount as const.
10006         * posix/sched_cpucount.c: Adjust.
10007
10008         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10009         instruction for counting bits.
10010         * sysdeps/x86_64/sched_cpucount.c: New file.
10011
10012 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10013
10014         * configure.in: Avoid variable named BASH.
10015         * config.make.in: Likewise.
10016         Patch in part by Mike Frysinger.
10017
10018 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10019
10020         [BZ #4586]
10021         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10022         pseudo-zeros as zero.
10023         * sysdeps/x86_64/ldbl2mpn.c: New file.
10024         * sysdeps/ia64/ldbl2mpn.c: New file.
10025
10026 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10027
10028         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10029         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10030         Remove unreachable code at the end.
10031
10032 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10033
10034         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10035         ldbl-128ibm in comment.
10036         (fpclassifyl): Correct classification of denormals.
10037         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10038         return value for MIN denormal. Rewrite using long double math too
10039         correctly handle denormals and canonicalize the results.
10040
10041 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10042
10043         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10044         (__mpn_construct_long_double): Fix conversion where result ought
10045         to be smaller than __LDBL_MIN__, or the low double should be
10046         denormal.  Fix decision where to negate low double - honor round
10047         to even rules.
10048         * stdio-common/tst-sprintf2.c: Include string.h.
10049         (COMPARE_LDBL): Define.
10050         (TEST): Also test whether a string hexadecimal float representation
10051         can be parsed back to the number.
10052         (main): Add a couple of further tests.
10053
10054 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10055
10056         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10057         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10058         is non-zero, but smaller than 2 * __DBL_MIN__.
10059         * stdio-common/tst-sprintf2.c: New test.
10060         * stdio-common/Makefile (tests): Add tst-sprintf2.
10061
10062         * math/test-misc.c (main): Don't run last batch of tests with
10063         IBM long double format.
10064
10065 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10066
10067         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10068         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10069         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10070         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10071         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10072         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10073         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10074         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10075         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10076         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10079         New file.
10080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10081         New file.
10082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10083         New file.
10084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10085         New file.
10086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10087         New file.
10088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10090         New file.
10091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10092         New file.
10093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10094         New file.
10095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10096         New file.
10097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10098         New file.
10099
10100 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10101
10102         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10103         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10104         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10105         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10106         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10107         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10108         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10109         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10110
10111 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10112
10113         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10114         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10115         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10116         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10117         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10118         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10119         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10120         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10121
10122 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10123
10124         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10125         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10126         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10127         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10128
10129 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10130
10131         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10132         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10133
10134 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10135
10136         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10137         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10138         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10139         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10140
10141 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10142
10143         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10144         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10145
10146 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10147
10148         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10149         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10150
10151         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10152         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10153         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10154         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10155
10156 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10157
10158         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10159         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10160         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10161         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10162
10163 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10164
10165         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10166         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10167         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10168         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10169         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10170         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10171
10172 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10173
10174         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10175         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10176         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10177         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10178
10179 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10180
10181         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10182         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10183         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10184         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10185         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10186         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10187         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10188         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10189         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10190         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10191         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10192         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10193         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10194         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10195         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10196         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10197
10198 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10199
10200         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10201         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10202
10203 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10204
10205         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10206         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10207
10208 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10209
10210         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10211         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10212         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10213         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10214         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10215         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10216         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10217         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10218         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10219         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10220
10221 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10222
10223         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10224
10225 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10226
10227         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10228         branch miss-predicts. Ensure that cache line crossing does not impact
10229         dispatch grouping.
10230
10231 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10232
10233         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10234         "../../powerpc32/power4/memcopy.h".
10235         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10236         "../../powerpc32/power4/wordcopy.c".
10237
10238 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10239
10240         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10241         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10242         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10243         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10244         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10245         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10246
10247 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10248
10249         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10250
10251 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10252
10253         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10254         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10255         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10256         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10257         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10258         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10259         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10260         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10261
10262 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10263
10264         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10265
10266 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10267
10268         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10269         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10270         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10271         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10272         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10273         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10274         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10275
10276 2007-05-29  Roland McGrath  <roland@redhat.com>
10277
10278         * po/Makefile (po-sed-cmd): New variable.
10279         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10280
10281 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10282
10283         * crypt/md5-crypt.c: Fix comment.
10284
10285         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10286         of crashing.  When this is the case or if the reply is malformed,
10287         don't try to close the new file descriptor since it does not
10288         exist.
10289         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10290
10291 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10292
10293         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10294         if __NR_utimensat is not defined.
10295
10296 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10297
10298         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10299
10300 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10301
10302         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10303         (open): Fix comment typos.  Don't call __open_2 if flags
10304         is a compile time constant without O_CREAT.
10305         (__open64_2): Add nonnull attribute.
10306         (open64): Fix comment typos.  Don't call __open64_2 if flags
10307         is a compile time constant without O_CREAT.
10308         (__openat_2): Add nonnull attribute, fix nonnull attribute
10309         on redirect.
10310         (openat): Fix comment typos.  Don't call __openat_2 if flags
10311         is a compile time constant without O_CREAT.
10312         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10313         on redirect.
10314         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10315         is a compile time constant without O_CREAT.
10316
10317 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10318
10319         * Makerules (sysd-rules): Define PTW for ptw-* files.
10320         * Versions: Define GLIBC_2.7 for libc.
10321         * include/stdio.h: Declare __fortify_fail.
10322         * debug/fortify_fail.c: New file.
10323         * debug/Makefile (routines): Add fortify_fail.
10324         * debug/chk_fail.c: Use __fortify_fail.
10325         * debug/stack_chk_fail.c: Likewise.
10326         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10327         __openat64_2 for GLIBC_2.7.
10328         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10329         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10330         and fails if necessary.
10331         * io/open64.c: Likewise.
10332         * io/openat.c: Likewise.
10333         * io/openat64.c: Likewise.
10334         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10335         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10336         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10337         * io/bits/fcntl2.h: New file.
10338         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10339         __openat64_2.
10340         * include/bits/fcntl2.h: New file.
10341         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10342         Add open_2.
10343         * sysdeps/unix/sysv/linux/open_2.c: New file.
10344
10345 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10346
10347         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10348         as second parameter to handle_intel.
10349
10350         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10351         the entry.
10352
10353         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10354         handling to ...
10355         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10356         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10357         cacheinfo.
10358         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10359         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10360         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10361
10362         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10363
10364 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10365
10366         [BZ #4525]
10367         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10368         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10369         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10370
10371         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10372
10373         [BZ #4514]
10374         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10375         reinitialize workend at the start of each do_positional format spec
10376         loop, free workstart before do_positional loops.
10377         (printf_unknown): Fix size of work_buffer.
10378         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10379
10380         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10381         (public_sET_STATe): If ms->version < 3, put all chunks into
10382         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10383         chunks.
10384
10385         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10386         * malloc/hooks.c: Likewise.
10387         * malloc/arena.c: Likewise.
10388         * malloc/malloc.c (do_check_malloc_state): Don't assert
10389         n_mmaps is not greater than n_mmaps_max.  This removes the need
10390         for the previous change.
10391
10392         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10393         2007-05-07 commit.
10394
10395 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10396
10397         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10398         Define for kernel >= 2.6.22.
10399
10400 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10401
10402         * elf/dl-close.c (_dl_close_worker): When removing object from
10403         global scope, wait for all lookups to finish afterwards.
10404         * elf/dl-open.c (add_to_global): When global scope array must
10405         grow, allocate a new one and free old array only after all
10406         lookups finish.
10407         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10408         (_dl_lookup_symbol_x): Likewise.
10409         * elf/dl-support.c: Define _dl_wait_lookup_done.
10410         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10411         _dl_wait_lookup_done.
10412
10413         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10414         not overlapping with arena.
10415
10416         * malloc/mcheck.c (reallochook): If size==0, free the block.
10417
10418         * rt/tst-shm.c: Use fstat64 instead of fstat.
10419
10420         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10421         __NR_sync_file_range is not defined.
10422
10423 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10424
10425         Dummy files to prevent stub versions from being used.
10426         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10427         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10428         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10429         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10430
10431         * version.h (VERSION): Set to 2.6.90.
10432
10433 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10434
10435         * version.h (VERSION): Define to 2.6.
10436         * include/features.h (__GLIBC_MINOR__): Define to 6.
10437
10438         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10439
10440         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10441         sizes.
10442
10443 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10444
10445         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10446         number of mmaps.  n_mmaps_max is the target.
10447         * malloc/hooks.c: Likewise.
10448         * malloc/arena.c: Likewise.
10449
10450 2007-05-12  Andreas Jaeger  <aj@suse.de>
10451
10452         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10453         getpid.
10454
10455 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10456
10457         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10458         adding new variables.
10459
10460         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10461         optimize.  Completely extend global scope array before making the
10462         new entries visible.
10463
10464 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10465
10466         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10467         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10468         tst-getcpu.
10469
10470         * include/link.h: Move l_version and l_nversion members around to
10471         fill gaps.
10472
10473         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10474
10475         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10476         (__sched_setaffinity_new): If syscall was successful and
10477         RESET_VGETCPU_CACHE is defined, use it before returning.
10478         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10479
10480         * io/sys/stat.h: Make sure struct timespec is defined for
10481         __USE_ATFILE.
10482
10483         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10484         UTIME_OMIT.
10485         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10486         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10487         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10488         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10489         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10490         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10491         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10492         * io/sys/stat.h: Declare utimensat, futimens.
10493         * io/utimensat.c: New file.
10494         * io/futimens.c: New file.
10495         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10496         * sysdeps/unix/sysv/linux/futimens.c: New file.
10497         * io/Makefile (routines): Add utimensat, futimens.
10498         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10499         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10500         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10501         available.
10502
10503         * include/sys/cdefs.h: Redefine __nonnull so that test for
10504         incorrect parameters in the libc code itself are not omitted.
10505
10506 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10507
10508         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10509         exception in addition to inexact when asked to raise only FE_INEXACT.
10510
10511         [BZ #3427]
10512         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10513         in *envp.
10514
10515 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10516
10517         [BZ #4403]
10518         * string/strfry.c (strfry): Make result more random.
10519
10520 2007-05-07  Richard Henderson  <rth@redhat.com>
10521
10522         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10523         if __NO_LONG_DOUBLE_MATH.
10524         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10525         available in the compiler, add .arch directive to the assembly.
10526
10527 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10528
10529         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10530         compat_symbol to GLIBC_2_1.
10531         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10532         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10533         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10534         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10535         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10536         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10537         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10538         libc, not libm.
10539         (__isnanl): New compat_symbol.
10540
10541 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10542             Jakub Jelinek  <jakub@redhat.com>
10543
10544         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10545         (new_heap): Initialize mprotect_size.
10546         (grow_heap): When growing, only mprotect from mprotect_size till
10547         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10548         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10549
10550 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10551             Peter Bergner  <bergner@us.ibm.com>
10552
10553         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10554         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10555         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10556         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10557         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10558         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10559         Call __fe_mask_env() if all FP exceptions disabled.
10560         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10561         from old FPSCR to new fenv to propagate DFP rounding modes.
10562         Call __fe_mask_env() if FP exceptions previously enabled.
10563         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10564         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10565         transitioning from all exceptions disabled to any exception enabled
10566         or visa versa.
10567         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10568         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10569         when transitioning from all exceptions disabled to any exception
10570         enabled or visa versa.
10571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10577
10578 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10579
10580         [BZ #4465]
10581         * posix/unistd.h: Remove __THROW from fdatasync.
10582
10583 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10584
10585         [BZ #4465]
10586         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10587
10588 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10589
10590         * stdio-common/vfprintf.c (process_string_arg): Optimize
10591         ridiculous precision in wide char code printing multi-byte string.
10592         Reported by Jim Meyering <jim@meyering.net>.
10593
10594         [BZ #4131]
10595         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10596         boundaries to work around systems with overlapping binary loading.
10597         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10598
10599 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10600
10601         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10602         __mbsnrtowcs after last change.
10603
10604         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10605         (get_ident): Likewise.
10606
10607 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10608
10609         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10610         with setting the sticky bit.
10611         * math/test-misc.c (main): Add more truncation tests.
10612
10613 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10614
10615         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10616         double in the function declaration.
10617         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10618         double in the function declaration.
10619         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10620         float in the function declaration.
10621         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10622         float in the function declaration.
10623
10624         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10625         denormal operands.  Do not generate FP_EX_DENORM exception.
10626         (FP_UNPACK_RAW_EP): Ditto.
10627         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10628         undefined _FP_UNPACK_RAW_E.
10629         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10630         undefined _FP_UNPACK_RAW_EP.
10631         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10632         undefined _FP_PACK_RAW_E.
10633         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10634         undefined _FP_PACK_RAW_EP.
10635
10636         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10637         _FP_FRAC_COPY_2.
10638         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10639         _FP_FRAC_COPY_4.
10640
10641 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10642             Jakub Jelinek  <jakub@redhat.com>
10643
10644         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10645         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10646         this case.
10647         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10648
10649 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10650
10651         * math/test-misc.c (main): Add tests for rounding long double
10652         values close to smallest double denormalized value to double.
10653
10654 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10655
10656         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10657         condition for truncating to 0.  Set sticky bit for such
10658         truncation.
10659
10660 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10661
10662         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10663         fixed length array for ignore.
10664
10665 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10666
10667         [BZ #4438]
10668         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10669         stack for large precisions.
10670         * stdio-common/test-vfprintf.c (main): Add test for large
10671         precision.
10672
10673 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10674
10675         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10676         for exponent 0.
10677         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10678
10679         [BZ #4439]
10680         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10681         account in the size check.
10682         * resolv/tst-inet_ntop.c: New test.
10683         * resolv/Makefile (tests): Add tst-inet_ntop.
10684
10685 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10686             Jakub Jelinek  <jakub@redhat.com>
10687
10688         [BZ #4349]
10689         * malloc/malloc.c: Keep separate list for first blocks on the bin
10690         lists with a given size.  This helps skipping over list elements
10691         we know won't fit in two places.
10692         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10693
10694 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10695
10696         [BZ #4102]
10697         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10698         label to Teredo tunnel addresses 2001://32.
10699
10700 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10701
10702         * locale/programs/ld-collate.c (collate_read): Allow order_start
10703         after copy.
10704
10705         * locale/programs/ld-collate.c (collate_read): Fix printing of
10706         error message.
10707
10708         [BZ #3213]
10709         * locale/C-translit.h.in: Add entry for U2044.
10710
10711         [BZ #4342]
10712         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10713         hexa-decimal floats without exponent.
10714         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10715
10716 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10717
10718         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10719         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10720         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10721         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10722         GLIBC_2.6.
10723         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10724         Add sched_getcpu.
10725
10726 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10727
10728         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10729         of 0 after the out_fail label.
10730
10731 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10732
10733         [BZ #4406]
10734         * iconv/gconv_charset.h (strip): Allow ':'.
10735         * iconv/iconv_open.c (iconv_open): Adjust comment.
10736
10737 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10738
10739         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10740         version.
10741
10742 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10743
10744         [BZ #4381]
10745         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10746         alignment of buffer and tmp_buffer.
10747         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10748         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10749         alignment of buffer.
10750         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10751         bigger than INT_MAX.
10752         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10753         h_errnop arguments.  Fail if buflen is too small.
10754         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10755
10756 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10757
10758         [BZ #4405]
10759         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10760         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10761
10762 2007-04-22  Roland McGrath  <roland@redhat.com>
10763
10764         * elf/elf.h (NT_PRXFPREG): New macro.
10765
10766 2007-04-19  Andreas Jaeger  <aj@suse.de>
10767
10768         [BZ #3905]
10769         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10770         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10771         Added.
10772
10773 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10774
10775         * include/sys/mman.h: Mark madvise hidden.
10776         * misc/madvise.c: Add libc_hidden_def.
10777
10778 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10779
10780         * nis/nis_domain_of.c (__nis_domain_of): New function.
10781         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10782         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10783         * nis/nis_call.c (rec_dirsearch): Likewise.
10784         (first_shoot): Likewise.  Remove search_parent_first argument.
10785         (struct nis_server_cache): Rename search_parent_first field
10786         to search_parent.
10787         (nis_server_cache_search, nis_server_cache_add): Rename
10788         search_parent_first argument to search_parent.
10789         (__nisfind_server): Likewise.  If search_parent, call
10790         __nis_domain_of.
10791
10792 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10793
10794         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10795
10796 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10797
10798         [BZ #4368]
10799         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10800
10801 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10802
10803         [BZ #4364]
10804         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10805
10806 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10807
10808         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10809         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10810         current number of locales in SUPPORTED.
10811         (create_archive): Initialize serial.
10812         (enlarge_archive): Preserve aliases rather than duplicating
10813         their locrecs.
10814
10815 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10816
10817         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10818         after _IO_un_link, not before it.
10819
10820         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10821         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10822         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10823
10824 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10825
10826         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10827         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10828         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10829         Remove __THROW.
10830         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10831         _IO_file_xsgetn_maybe_mmap): Likewise.
10832         * libio/oldfileops.c (old_do_write): Likewise.
10833         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10834         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10835         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10836         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10837         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10838         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10839         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10840         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10841         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10842         _IO_file_underflow, _IO_file_underflow_mmap,
10843         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10844         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10845         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10846         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10847         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10848         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10849         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10850         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10851         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10852         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10853         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10854         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10855         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10856         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10857         _IO_adjust_column_internal, _IO_default_uflow_internal,
10858         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10859         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10860         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10861         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10862         _IO_file_close_it_internal, _IO_file_underflow_internal,
10863         _IO_file_overflow_internal, _IO_file_attach_internal,
10864         _IO_file_fopen_internal, _IO_file_sync_internal,
10865         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10866         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10867         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10868         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10869         _IO_seekpos_unlocked): Likewise.
10870         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10871         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10872
10873 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10874
10875         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10876         argument in xmalloc size computation.
10877
10878 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10879
10880         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10881         math_opt_barrier and math_force_eval macros.
10882
10883 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10884
10885         [BZ #3306]
10886         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10887         * sysdeps/i386/fpu/math_private.h: New file.
10888         * sysdeps/x86_64/fpu/math_private.h: New file.
10889         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10890         math_force_eval macros.  Use "+m" constraint on asm rather than
10891         "=m" and "m".
10892         * math/s_nextafter.c (__nextafter): Likewise.
10893         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10894         Likewise.
10895         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10896         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10897         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10898         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10899         math_opt_barrier and math_force_eval macros.
10900         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10901         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10902         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10903         (__nexttoward): Use math_opt_barrier and
10904         math_force_eval macros.  Use "+m" constraint on asm rather than
10905         "=m" and "m".  Only use asm to force double result if
10906         FLT_EVAL_METHOD is 2.
10907         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10908         (__nexttowardf): Use math_opt_barrier and
10909         math_force_eval macros.  Use "+m" constraint on asm rather than
10910         "=m" and "m".  Only use asm to force double result if
10911         FLT_EVAL_METHOD is not 0.
10912         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10913         (__nexttowardf): Use math_opt_barrier and
10914         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10915         x to float using asm.
10916         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10917         (__nldbl_nexttowardf): Use math_opt_barrier and
10918         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10919         x to float using asm.
10920         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10921         (__nexttowardf): Use math_opt_barrier and math_force_eval
10922         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10923         * math/bug-nextafter.c (zero, inf): New variables.
10924         (main): Add new tests.
10925         * math/bug-nexttoward.c (zero, inf): New variables.
10926         (main): Add new tests.
10927
10928 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10929
10930         [BZ #3427]
10931         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10932         exceptions both in SW and MXCSR.
10933         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10934         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10935         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10936         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10937         in MXCSR if SSE is available.
10938         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10939         and ldsodefs.h.
10940         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10941         Fix comment typo.
10942         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10943         Return 0 rather than 1.
10944         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10945         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10946         * math/test-fenv.c (feholdexcept_tests): New function.
10947         (main): Call it.
10948
10949 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10950
10951         [BZ #3427]
10952         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10953         in SW.
10954
10955 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10956
10957         [BZ #4344]
10958         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10959         Reported by David Anderson <davea42@earthlink.net>.
10960
10961 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10962
10963         * posix/sys/wait.h: Remove unnecessary forward declaration.
10964
10965 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10966
10967         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10968         with obj->do_servers after first_shoot.
10969
10970 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10971
10972         * posix/Makefile (routines): Add sched_cpucount.
10973         (tests): Add tst-cpucount.
10974         * posix/sched_cpucount.c: New file.
10975         * posix/tst-cpucount.c: New file.
10976         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10977         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10978         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10979         * posix/sched.h: Define CPU_COUNT.
10980
10981 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10982
10983         * posix/fnmatch.c (STRUCT): Define.
10984         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10985         * posix/fnmatch_loop.c (struct STRUCT): New type.
10986         (FCT): Add ends argument.  If ends != NULL and normal * is
10987         seen in the pattern, store current pattern and string pointers
10988         and return.  Adjust recursive calls.
10989         (EXT): Adjust FCT callers.
10990         (STRUCT): Undef at the end of the file.
10991         * posix/Makefile (tests): Add tst-fnmatch2.
10992         * posix/tst-fnmatch2.c: New test.
10993
10994 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10995
10996         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10997         and 1 on failure.
10998
10999         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11000         Change last argument to unsigned int.
11001
11002 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11003
11004         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11005
11006 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11007
11008         * config.h.in (HAVE_LIBCAP): Add.
11009         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11010         sys/capabilities.h.
11011         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11012         free_caps.  Cast away const from 4th cap_set_flag argument.
11013
11014 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11015
11016         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11017         GLIBC_2.6.
11018         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11019         Add sync_file_range.
11020         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11021
11022 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11023
11024         * sysdeps/powerpc/bits/atomic.h
11025         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11026         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11027         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11028         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11029         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11030         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11031         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11032         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11033         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11034         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11035         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11036         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11037         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11038         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11039         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11040         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11041         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11042         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11043         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11044         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11045
11046 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11047
11048         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11049         (__cache_line_size): Define the variable here.  Add
11050         attribute_hidden, remove weak_extern.
11051         (__libc_start_main): Set __cache_line_size
11052         unconditionally.
11053         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11054         (__cache_line_size): Define the variable here.  Add
11055         attribute_hidden, remove weak_extern.
11056         (DL_PLATFORM_AUXV): Set __cache_line_size
11057         unconditionally.
11058         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11059         weak_extern, add attribute_hidden.
11060         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11061         defined in ld.so.
11062         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11063         definition.
11064         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11065
11066 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11067
11068         [BZ #4276]
11069         * timezone/africa: Update from tzdata2007d.
11070         * timezone/asia: Likewise.
11071         * timezone/australasia: Likewise.
11072         * timezone/backward: Likewise.
11073         * timezone/europe: Likewise.
11074         * timezone/iso3166.tab: Likewise.
11075         * timezone/leapseconds: Likewise.
11076         * timezone/northamerica: Likewise.
11077         * timezone/southamerica: Likewise.
11078         * timezone/zone.tab: Likewise.
11079
11080         * timezone/private.h: Update from tzcode2007d.
11081         * timezone/zdump.c: Likewise.
11082         * timezone/zic.c: Likewise.
11083
11084 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11085
11086         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11087         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11088         variables.
11089         (nis_server_cache_search, nis_server_cache_add): New functions.
11090         (__nisfind_server): Use them.  Add dbp and flags argument, if
11091         call __nisbind_create.
11092         (__nisbind_create): Add server_used and current_ep arguments,
11093         only call __nis_findfastest if server_used is ~0.
11094         (__do_niscall2, __prepare_niscall): Adjust callers.
11095         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11096         ckey_cache_euid, ckey_cache_lock): New variables.
11097         (get_ckey): New function.
11098         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11099         __pmap_getnisport.  Save __pmap_getnisport result in
11100         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11101         key.
11102         * nis/nis_lookup.c (nis_lookup): Likewise.
11103         * nis/nis_table.c (nis_list): Likewise.
11104         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11105         prototypes.
11106
11107         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11108         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11109         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11110         _nss_nisplus_getservbyport_r): Likewise.
11111         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11112         _nss_nisplus_getnetbyaddr_r): Likewise.
11113         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11114         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11115         _nss_nisplus_getntohost_r): Likewise.
11116         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11117         _nss_nisplus_getrpcbynumber_r): Likewise.
11118
11119 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11120
11121         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11122         * configure: Rebuilt.
11123
11124         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11125         bit-fields.
11126         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11127
11128 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11129
11130         [BZ #2831]
11131         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11132         bit-fields.
11133
11134 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11135
11136         * nscd/gai.c: Include alloca.h.
11137         (__libc_use_alloca): Define.
11138
11139 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11140
11141         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11142         smaller scopes.
11143         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11144         (DL_DST_REQUIRED): Adjust user.
11145
11146         * include/dlfcn.h (struct link_map): New forward decl.
11147
11148         * inet/getnameinfo.c: Include stddef.h.
11149         (getnameinfo): Use offsetof.
11150
11151         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11152
11153         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11154
11155         * string/strerror_l.c: Include stdlib.h.
11156
11157         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11158         * config.make.in (gnu89-inline-CFLAGS): New variable.
11159         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11160         -std=gnu99.
11161         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11162         * argp/argp.h: Use it.
11163         * bits/mathinline.h: Likewise.
11164         * bits/sigset.h: Likewise.
11165         * bits/string.h: Likewise.
11166         * ctype/ctype.h: Likewise.
11167         * hurd/hurd.h: Likewise.
11168         * hurd/hurd/fd.h: Likewise.
11169         * hurd/hurd/port.h: Likewise.
11170         * hurd/hurd/signal.h: Likewise.
11171         * hurd/hurd/threadvar.h: Likewise.
11172         * hurd/hurd/userlink.h: Likewise.
11173         * io/sys/stat.h: Likewise.
11174         * libio/bits/stdio.h: Likewise.
11175         * libio/bits/stdio2.h: Likewise.
11176         * mach/lock-intern.h: Likewise.
11177         * mach/mach/mig_support.h: Likewise.
11178         * math/bits/cmathcalls.h: Likewise.
11179         * posix/bits/unistd.h: Likewise.
11180         * socket/bits/socket2.h: Likewise.
11181         * stdlib/bits/stdlib.h: Likewise.
11182         * stdlib/stdlib.h: Likewise.
11183         * string/argz.h: Likewise.
11184         * string/bits/string2.h: Likewise.
11185         * string/bits/string3.h: Likewise.
11186         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11187         * sysdeps/generic/inttypes.h: Likewise.
11188         * sysdeps/generic/machine-lock.h: Likewise.
11189         * sysdeps/generic/machine-sp.h: Likewise.
11190         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11191         * sysdeps/i386/i486/bits/string.h: Likewise.
11192         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11193         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11194         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11195         * sysdeps/mach/i386/machine-lock.h: Likewise.
11196         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11197         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11198         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11199         * sysdeps/s390/bits/string.h: Likewise.
11200         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11201         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11202         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11203         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11204         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11205         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11206         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11207         * wcsmbs/bits/wchar2.h: Likewise.
11208         * wcsmbs/wchar.h: Likewise.
11209         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11210         __extern_inline definition.
11211
11212 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11213
11214         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11215         NULL.
11216
11217         [BZ #3919]
11218         * math/libm-test.inc (log_test): Test -Inf and NaN.
11219         (log10_test, log1p_test, log2_test): Test -Inf.
11220         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11221         FE_INVALID when argument is qNaN.
11222         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11223         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11224         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11225         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11226         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11227         testb $4, %ah and jump if non-zero.
11228         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11229         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11230
11231         [BZ #4101]
11232         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11233         ancestors with the same depths.
11234         Patch by Niels Moeller <nisse@lysator.liu.se>.
11235         (filter_doc): Don't crash if argp is NULL.
11236         * argp/Makefile (tests): Add tst-argp2.
11237         * argp/tst-argp2.c: New test.
11238
11239         [BZ #4130]
11240         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11241         open_not_cancel_2.
11242         (updwtmp_file): Likewise.
11243
11244         [BZ #4181]
11245         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11246         (inet6_opt_append): Don't check extlen is big enough if extbuf
11247         is NULL.
11248         (inet6_opt_finish): Likewise.
11249         * inet/Makefile (tests): Add test-inet6_opt.
11250         * inet/test-inet6_opt.c: New test.
11251
11252         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11253         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11254         NLMSG_ERR.  Instead use a page sized buffer.
11255         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11256         buffer.
11257
11258 2007-03-14  Richard Henderson  <rth@redhat.com>
11259
11260         * sysdeps/alpha/fpu/s_llround.c: New file.
11261         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11262         * sysdeps/alpha/fpu/s_lround.c: New file.
11263         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11264         * sysdeps/alpha/fpu/s_round.c: New file.
11265         * sysdeps/alpha/fpu/s_roundf.c: New file.
11266         * sysdeps/alpha/fpu/s_trunc.c: New file.
11267         * sysdeps/alpha/fpu/s_truncf.c: New file.
11268
11269         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11270         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11271         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11272         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11273         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11274         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11275
11276         * sysdeps/alpha/fpu/s_fmax.S: New file.
11277         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11278         * sysdeps/alpha/fpu/s_fmin.S: New file.
11279         * sysdeps/alpha/fpu/s_fminf.S: New file.
11280         * sysdeps/alpha/fpu/s_isnan.c: New file.
11281         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11282         * sysdeps/alpha/fpu/s_llrint.c: New file.
11283         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11284         * sysdeps/alpha/fpu/s_lrint.c: New file.
11285         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11286         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11287         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11288
11289         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11290         (__fdimf, fdimf, __fdim, fdim): Remove.
11291         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11292         (__isnanf, __isnan, __isnanl): New.
11293
11294 2007-03-13  Richard Henderson  <rth@redhat.com>
11295
11296         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11297
11298 2007-03-13  Richard Henderson  <rth@redhat.com>
11299
11300         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11301         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11302         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11303         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11304         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11305         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11306
11307 2007-03-13  Richard Henderson  <rth@redhat.com>
11308
11309         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11310         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11311         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11312         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11313         Move to dl-auxv.h; initialize instead of extern weak.
11314         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11315         weak symbol.
11316         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11317         Extern instead of initialized.
11318
11319 2007-03-13  Richard Henderson  <rth@redhat.com>
11320
11321         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11322         __sigsuspend_nocancel.
11323
11324 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11325
11326         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11327         172.16/12 address range.
11328
11329 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11330
11331         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11332         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11333         message.
11334
11335 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11336
11337         [BZ #4069]
11338         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11339         earlier.
11340         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11341
11342         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11343         for x qNaN and y either +-inf or non-integer value.
11344         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11345         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11346         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11347
11348 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11349
11350         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11351         from sysdep_headers.
11352
11353 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11354
11355         * time/tzfile.c (find_transition): Instead of a linear search try to
11356         guess the transition index, use a linear search if the result is at
11357         most 10 transitions away from the guess or binary search otherwise.
11358
11359 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11360
11361         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11362         memory reallocation.
11363
11364 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11365
11366         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11367         and fix some typos.
11368         Optimize use of TOLOWER.
11369
11370         [BZ #3325]
11371         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11372         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11373         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11374
11375         [BZ #3458]
11376         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11377         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11378
11379         [BZ #4076]
11380         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11381         (open_dir_stream): Likewise.
11382         * io/Makefile (tests): Add bug-ftw5.
11383         * io/bug-ftw5.c: New file.
11384
11385         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11386         * nscd/servicescache.c (cache_addserv): Likewise.
11387
11388         * nscd/grpcache.c (cache_addgr): In case a record changed on
11389         refresh, adjust key_copy.
11390
11391         [BZ #4074]
11392         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11393         refresh, adjust key_copy.
11394
11395         [BZ #4070]
11396         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11397         special cases.
11398         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11399
11400 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11401
11402         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11403         optimization.
11404
11405         * stdio-common/vfscanf.c: Small cleanups throughout.
11406
11407 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11408
11409         [BZ #3325]
11410         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11411         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11412         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11413         Patch by Jared Casper <jaredcasper@gmail.com>.
11414
11415         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11416         * sysdeps/unix/opendir.c: Likewise.
11417         * sysdeps/unix/readdir.c: Likewise.
11418
11419         [BZ #2211]
11420         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11421         point numbers.
11422         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11423
11424         * stdio-common/vfscanf.c: Fix problems in width accounting.
11425         * stdio-common/tst-sscanf.c (double_tests): New tests.
11426         (main): Hook them up.
11427
11428         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11429         More simplifications of floating-point reader.
11430
11431         * stdio-common/Makefile (tests): Add tst-swscanf.
11432         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11433         testing.
11434         * stdio-common/tst-swscanf.c: New file.
11435
11436 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11437
11438         [BZ #2633]
11439         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11440         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11441         Remove using for __jmp_buf_tag.
11442         * locale/locale.h (struct lconv): Also define in std namespace.
11443         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11444
11445         [BZ #3842]
11446         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11447         using __libc_enable_secure.
11448
11449         [BZ #3818]
11450         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11451
11452         [BZ #3745]
11453         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11454         of names for ellipsises.
11455
11456         [BZ #3348]
11457         * malloc/memusage.sh: Cleanups.
11458         * debug/xtrace.sh: Quoting and trap changes.
11459
11460 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11461
11462         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11463
11464         * locale/iso-3166.def: Update entry for Serbia.
11465         * locale/iso-4217.def: Define RSD, remove CSD.
11466
11467         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11468         and 64-bit operations.
11469
11470         [BZ #4040]
11471         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11472         16-bit operations.
11473
11474         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11475         of writev.
11476
11477 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11478
11479         [BZ #3991]
11480         * assert/assert.h (assert): Simplify.
11481         (assert_perror): Likewise.
11482         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11483
11484         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11485         reqdata.
11486
11487         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11488         change: don't pass NULL in place of an integer.
11489
11490 2007-02-02  Bruno Haible  <bruno@clisp.org>
11491
11492         [BZ #3954]
11493         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11494         Add mapping for U+327E.
11495         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11496         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11497         mapping of 0xD9 0xE8.
11498         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11499         mapping of U+327E.
11500         Reported by Jungshik Shin <jungshik@google.com>.
11501
11502         [BZ #3955]
11503         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11504         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11505         Reported by Jungshik Shin <jungshik@google.com>.
11506
11507 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11508
11509         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11510         byte variants.
11511
11512         [BZ #4040]
11513         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11514         byte variants.  Patch mostly be tom@tommay.net.
11515
11516 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11517
11518         [BZ #3996]
11519         * posix/glob.c (attribute_hidden): Define if not defined.
11520         (glob): Unescape dirname, filename or username when needed and not
11521         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11522         is NULL.  Handle unescaped [ in pattern without closing ].
11523         Don't pass GLOB_CHECK down to recursive glob for directories.
11524         (__glob_pattern_type): New function.
11525         (__glob_pattern_p): Implement using __glob_pattern_type.
11526         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11527         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11528         Remove unreachable code.
11529         * posix/globtest.sh: Add a couple of new tests.
11530
11531 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11532
11533         * po/ru.po: Update from translation team.
11534
11535 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11536
11537         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11538         to the list of i486+ CPUs.
11539         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11540
11541 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11542
11543         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11544         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11545         references.
11546
11547 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11548
11549         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11550
11551         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11552         * resolv/res_mkquery.c: Define __res_nopt.
11553         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11554         try adding EDNS0 record.
11555         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11556         EDNS0 record was send make sure we don't try it again.
11557         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11558         * include/resolv.h: Declare __res_nopt.
11559
11560 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11561
11562         [BZ #3944]
11563         * time/strptime_l.c (__strptime_internal): Set have_mon for
11564         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11565         have been computed from tm_yday and tm_year.  Don't crash
11566         in day_of_the_week or day_of_the_year if not have_mon
11567         and tm_mon contains bogus value.
11568         * time/Makefile (tests): Add tst-strptime3.
11569         * time/tst-strptime3.c: New test.
11570
11571 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11572
11573         [BZ #3957]
11574         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11575         bit for RE_HAT_LISTS_NOT_NEWLINE.
11576         (build_charclass_op): Remove bogus comment.
11577         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11578         * posix/bug-regex27.c: New test.
11579         * posix/bug-regex28.c: New test.
11580
11581 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11582
11583         * po/sv.po: Update from translation team.
11584
11585 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11586
11587         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11588
11589 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11590
11591         * include/locale.h (__uselocale): Add libc_hidden_proto.
11592         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11593
11594         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11595         gettimeofday.
11596
11597 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11598
11599         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11600         returning.
11601         (PTR_DEMANGLE): Real definition now that it's not the same as
11602         PRT_MANGLE anymore.
11603         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11604
11605         * string/strerror_l.c: New file.
11606         * string/Makefile (routines): Add strerror_l.
11607         * string/string.h: Declare strerror_l.
11608         * string/Versions: Export strerror_l for GLIBC_2.6.
11609
11610 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11611
11612         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11613         as parameter.  Construct request record.  Try sending request
11614         before the first poll use, it usually succeeds.  Adjust all
11615         callers.
11616         * nscd/nscd-client.h: Define MAXKEYLEN.
11617         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11618
11619 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11620
11621         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11622         from return value.
11623         * nscd/nscd_helper.c: Include string.h.
11624         (__nscd_cache_search): Remove const qualifier from return value.
11625         On strict alignment architectures check hash entry and data head
11626         alignment.
11627         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11628         mmapped data during GC cycle contains garbage.  If
11629         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11630         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11631         dropped to 0.
11632         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11633         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11634         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11635         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11636         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11637
11638 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11639
11640         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11641
11642 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11643
11644         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11645         names not numbers in cfi_*.
11646
11647 2007-01-26  Andreas Jaeger  <aj@suse.de>
11648
11649         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11650         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11651         Correct values of PER_HPUX and PER_OSF4.
11652
11653 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11654
11655         * elf/dl-minimal.c: Undefine _itoa first.
11656         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11657         * malloc/mtrace.c: Revert last change.
11658         * posix/wordexp.c: Likewise.
11659
11660 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11661
11662         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11663         and __geode__ to the list of i486+ CPUs.
11664         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11665
11666 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11667
11668         * stdio-common/_itoa.c: Include <limits.h>.
11669         * stdio-common/_itowa.c: Likewise.
11670
11671 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11672
11673         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11674         platforms.
11675         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11676         64-bit platforms.
11677         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11678         possible.
11679         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11680         if possible.
11681
11682         [BZ #3902]
11683         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11684         * stdio-common/Makefile (tests): Add bug17.
11685         * stdio-common/bug17.c: New file.
11686
11687 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11688
11689         * iconvdata/brf.c: New file.
11690         * iconvdata/testdata/BRF: New file.
11691         * iconvdata/testdata/BRF..UTF8: New file.
11692         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11693         * iconvdata/Makefile: Add rules to build BRF.
11694         * iconvdata/TESTS: Add BRF entry.
11695         * iconvdata/gconv-modules: Likewise.
11696         * iconvdata/tst-tables.sh: Likewise.
11697
11698 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11699
11700         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11701         type `long long int', not `long int'.
11702         (wcstoq): Likewise.
11703
11704 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11705
11706         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11707         of values on 64-bit platforms which are too large.
11708
11709 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11710             Joe Kerian  <jkerian@us.us.ibm.com>
11711
11712         [BZ #2749]
11713         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11714         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11715         (__copysignl): Use signbit() for comparison.
11716         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11717         SET_LDOUBLE_WORDS64.
11718
11719         [BZ #2423, #2749]
11720         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11721         (__ceill): Remove calls to fegetround(), fesetround().
11722         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11723         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11724         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11725
11726 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11727
11728         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11729
11730         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11731
11732 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11733
11734         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11735         demangle pointer.
11736         * csu/libc-start.c: Likewise.
11737
11738 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11739
11740         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11741         really work anyway.
11742
11743 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11744
11745         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11746         users.
11747         (handle_request): Remove unnecessary tests.
11748
11749         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11750
11751 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11752
11753         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11754         workbits in semi-raw fraction.
11755
11756         * math/test-misc.c: Add new tests.
11757
11758 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11759
11760         * math/basic-test.c: Include test-skeleton.c.
11761         (TEST_TRUNC): Define.
11762         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11763         (main): Rename to ...
11764         (do_test): ...this.  Run new tests.
11765         (TEST_FUNCTION): Define.
11766
11767 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11768             Joe Kerian  <jkerian@us.us.ibm.com>
11769
11770         [BZ #2749]
11771         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11772         handling for high words.
11773         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11774         and overflow for infinity.
11775
11776 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11777
11778         * nscd/connections.c (handle_request): Add a __builtin_expect.
11779
11780         * nscd/connections.c (serv2db): Change type into structure which
11781         also says whether this is a request for data.  Renamed to
11782         servinfo.  All users changed.
11783         (handle_request): Much simpler test whether we should search the cache.
11784
11785         * nscd/connections.c (handle_request): Fix thinko in selinux test
11786         invocation.
11787
11788         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11789         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11790         it before getting dl_load_lock and then relock.
11791         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11792         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11793         case we unlocked the scope.
11794         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11795         _dl_lookup_symbol_x in case we locked the scope.
11796         (_dl_profile_fixup): Likewise.
11797         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11798         set DL_LOOKUP_SCOPE_LOCK.
11799
11800 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11801
11802         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11803         CFLAGS-getsrvbynpt_r.c.
11804         * nscd/getsrvbynm_r.c: New file.
11805         * nscd/getsrvbypt_r.c: New file.
11806         * nscd/nscd_getserv_r.c: New file.
11807         * nscd/servicescache.c: New file.
11808         * nscd/Makefile (routines): Add nscd_getserv_r.
11809         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11810         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11811         CFLAGS-getsrvbypt_r.c.
11812         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11813         table.  Add entries for services database.
11814         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11815         services database.
11816         (dbs): Add .reset_res and servdb initialization.
11817         (serv2db): Add entries for services database.
11818         (verify_persistent_db): Accept dbnr == servdb.
11819         (invalidate_cache): Rewrite database name recognition to use a table.
11820         Call res_init() if .reset_res is set for database.
11821         (handle_request): Add code to handle services database.
11822         * nscd/gai.c: Don't define __getservbyname_r.
11823         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11824         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11825         (serv_response_header): Define.
11826         (struct datahead): Add serv_response_header member.
11827         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11828         using table.
11829         * nscd/nscd.conf: Add entries for services database.
11830         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11831         Declare serv_iov_disabled.
11832         Declare addservbyname, readdservbyname, addservbyport, and
11833         readdservbyport.
11834         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11835         (find_db): Fix error message.
11836         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11837         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11838         * nscd/selinux.c (perms): Add entries for services database.
11839         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11840         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11841
11842         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11843         * nscd/hstcache.c: Likewise.
11844         * nscd/pwdcache.c: Likewise.
11845
11846         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11847         computation of keylen.
11848
11849         * include/string.h: Only redefine strndupa if this is really for
11850         libc code.
11851
11852 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11853
11854         * nscd/nscd_gethst_r.c: Minor cleanups.
11855
11856         * nscd/connections.c (handle_request): Check selinux permissions
11857         for all non-admin commands.
11858
11859         * sysdeps/i386/i486/bits/atomic.h: Define
11860         atomic_compare_and_exchange_val_acq,
11861         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11862         using __sync_* built-ins for gcc >= 4.1.
11863         * sysdeps/x86_64/bits/atomic.h: Likewise.
11864
11865         [BZ #3840]
11866         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11867         and .oS.d files.
11868
11869 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11870
11871         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11872         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11873         (do_test): Check errno and exit(0) if ENOSYS.
11874
11875 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11876
11877         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11878         thousands separators.
11879         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11880         * stdlib/tst-strtod4.c: New test.
11881
11882         [BZ #3855]
11883         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11884         hexadecimal digit should accept just the initial 0.
11885         * stdlib/tst-strtod2.c (tests): New variable.
11886         (do_test): Run several tests rather than just one.
11887
11888 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11889
11890         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11891         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11892
11893 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11894
11895         * io/fts.c: Make sure fts_cur is always valid after return from
11896         fts_read.
11897         Patch by Miloslav Trmac <mitr@redhat.com>.
11898
11899 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11900
11901         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11902         (R_MIPS_NUM): Bump by 1.
11903
11904 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11905
11906         * posix/execvp.c: Include alloca.h.
11907         (allocate_scripts_argv): Renamed to...
11908         (scripts_argv): ... this.  Don't allocate buffer here nor count
11909         arguments.
11910         (execvp): Use alloca if possible.
11911         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11912         * posix/tst-vfork3.c: New test.
11913
11914 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11915
11916         * string/Makefile (tst-strxfrm2-ENV): Define.
11917         * stdlib/Makefile (tst-strtod3-ENV): Define.
11918
11919 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11920
11921         * posix/getconf.c: Update copyright year.
11922         * nss/getent.c: Likewise.
11923         * iconv/iconvconfig.c: Likewise.
11924         * iconv/iconv_prog.c: Likewise.
11925         * elf/ldconfig.c: Likewise.
11926         * catgets/gencat.c: Likewise.
11927         * csu/version.c: Likewise.
11928         * elf/ldd.bash.in: Likewise.
11929         * elf/sprof.c (print_version): Likewise.
11930         * locale/programs/locale.c: Likewise.
11931         * locale/programs/localedef.c: Likewise.
11932         * nscd/nscd.c (print_version): Likewise.
11933         * debug/xtrace.sh: Likewise.
11934         * malloc/memusage.sh: Likewise.
11935         * malloc/mtrace.pl: Likewise.
11936         * debug/catchsegv.sh: Likewise.
11937
11938 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11939
11940         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11941         attempts.
11942
11943 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11944
11945         * posix/wordexp.c: Remove some unnecessary tests.
11946
11947 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11948
11949         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11950         blacklist the group till after we look it up.
11951
11952 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11953
11954         * include/atomic.h (atomic_forced_read): New macro.
11955
11956 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11957
11958         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11959
11960 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11961
11962         * nss/getXXbyYY_r.c: Include atomic.h.
11963         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11964         add atomic_write_barrier () in between.
11965
11966         * stdlib/Makefile (tests): Add tst-makecontext.
11967         * stdlib/tst-makecontext.c: New test.
11968
11969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11970         (__makecontext): Don't realign uc_mcontext.uc_regs.
11971
11972 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11973
11974         * elf/dl-support.c: Include dl-procinfo.h.
11975         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11976         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11977         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11978         Define.
11979         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11980         hardcoded constants.
11981         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11982         PPC_PLATFORM_* macros for array designators.
11983
11984 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11985
11986         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11987         names to the beginning.
11988         (_dl_powerpc_platforms): Add "power6x".
11989         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11990         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11991         (_DL_PLATFORMS_COUNT): Increase.
11992         (_dl_string_platform): Handle power6x case.
11993         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11994         PPC_FEATURE_POWER6_EXT): Define.
11995         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11996
11997 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11998
11999         [BZ #3747]
12000         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12001         [-2^31 .. 2^31) range.
12002         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12003         targets.
12004         * stdlib/tst-rand48-2.c: New test.
12005         * stdlib/Makefile (tests): Add tst-rand48-2.
12006
12007 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12008
12009         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12010
12011 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12012
12013         * misc/tst-pselect.c (do_test): Make sure the helper process is
12014         terminating when the test is aborted.
12015
12016 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12017
12018         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12019         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12020         Handle relatime mount option.
12021
12022         [BZ #2337]
12023         * libio/Makefile (tests): Add tst-setvbuf1.
12024         * libio/tst-setvbuf1.c: New file.
12025
12026 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12027
12028         [BZ #2337]
12029         * libio/genops.c (__uflow): Fix a typo.
12030         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12031         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12032         the narrow buffer size.
12033
12034 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12035
12036         [BZ #2337]
12037         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12038         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12039         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12040         in _flags.
12041         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12042         _IO_wstr_finish): Likewise.
12043         * libio/wmemstream.c (open_wmemstream): Likewise.
12044         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12045         even for wide streams.
12046
12047 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12048
12049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12050         kernel-features.h.
12051
12052 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12053
12054         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12055         separators also if no non-zero digits found.
12056         * stdlib/Makefile (tests): Add tst-strtod3.
12057
12058 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12059
12060         [BZ #3632]
12061         * include/features.h: Fix comment about default value for
12062         _POSIX_C_SOURCE.
12063
12064         [BZ #3664]
12065         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12066         empty parsed strings.
12067         * stdlib/Makefile (tests): Add tst-strtod2.
12068         * stdlib/tst-strtod2.c: New file.
12069
12070         [BZ #3673]
12071         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12072         computation.
12073         * stdlib/Makefile (tests): Add tst-atof2.
12074         * stdlib/tst-atof2.c: New file.
12075
12076         [BZ #3674]
12077         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12078         correctly if removing trailing zero of hex-float.
12079         * stdlib/Makefile (tests): Add tst-atof1.
12080         * stdlib/tst-atof1.c: New file.
12081
12082 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12083
12084         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12085         Start searching for next comma at p rather than rest.
12086         * misc/Makefile (tests): Add tst-mntent2.
12087         * misc/tst-mntent2.c: New test.
12088
12089         * misc/getusershell.c (initshells): Check for integer overflows.
12090         Make strings buffer one bigger as fgets always succeeds when second
12091         argument is 1.  Don't use calloc for shells array.  Disallow
12092         / as shell.
12093
12094 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12095
12096         * malloc/memusage.c: Handle realloc with new size of zero and
12097         non-NULL pointer correctly.
12098         (me): Really write first record twice.
12099         (struct entry): Make format bi-arch safe.
12100         (dest): Write out more realloc statistics.
12101         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12102
12103 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12104
12105         * nis/nis_subr.c (nis_getnames): Revert last change.
12106
12107 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12108
12109         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12110         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12111         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12112         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12113         ENOTTY.
12114         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12115         * io/tst-ttyname_r.c: New test.
12116
12117 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12118
12119         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12120
12121 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12122
12123         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12124         jump table entries.
12125
12126 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12127
12128         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12129         `clone' function to ensure proper unwinding stop of gdb.
12130         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12131
12132 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12133
12134         * nscd/nscd.init: Remove obsolete and commented-out -S option
12135         handling.
12136
12137 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12138
12139         [BZ #3514]
12140         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12141
12142         [BZ #3515]
12143         * manual/string.texi (strtok): Remove duplicate paragraph.
12144
12145 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12146
12147         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12148         libgcc not supporting `rflags' unwinding (register # >= 17).
12149
12150 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12151
12152         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12153         succeeded.
12154
12155 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12156             Jakub Jelinek  <jakub@redhat.com>
12157             Jan Kratochvil  <jan.kratochvil@redhat.com>
12158
12159         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12160         unwind information.
12161         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12162         'restore_rt' even in the 'signal' directory.
12163         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12164
12165 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12166
12167         [BZ #3559]
12168         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12169         malloc crashed.  Don't allocate memory unnecessarily in each
12170         loop.
12171
12172 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12173
12174         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12175
12176 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12177
12178         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12179
12180 2006-11-18  Bruno Haible  <bruno@clisp.org>
12181
12182         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12183         __sysconf only after having tried to call getgroups32.
12184
12185 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12186
12187         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12188         addresses for IPv4 queries if they can be mapped.
12189
12190 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12191
12192         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12193         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12194         (signmask): Add .size directive.
12195         (othermask): Add .type directive.
12196
12197 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12198
12199         * po/nl.po: Update from translation team.
12200
12201         * timezone/zdump.c: Redo fix for BZ #3137.
12202
12203 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12204
12205         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12206         to first_unused after parsing :include: file.
12207
12208 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12209
12210         * timezone/africa: Update from tzdata2006o.
12211         * timezone/antarctica: Likewise.
12212         * timezone/asia: Likewise.
12213         * timezone/australasia: Likewise.
12214         * timezone/backward: Likewise.
12215         * timezone/europe: Likewise.
12216         * timezone/iso3166.tab: Likewise.
12217         * timezone/northamerica: Likewise.
12218         * timezone/southamerica: Likewise.
12219         * timezone/zone.tab: Likewise.
12220
12221         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12222         on machines with 64-bit time_t.
12223
12224         * timezone/checktab.awk: Update from tzcode2006o.
12225         * timezone/ialloc.c: Likewise.
12226         * timezone/private.h: Likewise.
12227         * timezone/scheck.c: Likewise.
12228         * timezone/tzfile.h: Likewise.
12229         * timezone/tzselect.ksh: Likewise.
12230         * timezone/zdump.c: Likewise.
12231         * timezone/zic.c: Likewise.
12232
12233         [BZ #3483]
12234         * elf/ldconfig.c (main): Call setlocale and textdomain.
12235         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12236
12237         [BZ #3480]
12238         * manual/argp.texi: Fix typos.
12239         * manual/charset.texi: Likewise.
12240         * manual/errno.texi: Likewise.
12241         * manual/filesys.texi: Likewise.
12242         * manual/lang.texi: Likewise.
12243         * manual/maint.texi: Likewise.
12244         * manual/memory.texi: Likewise.
12245         * manual/message.texi: Likewise.
12246         * manual/resource.texi: Likewise.
12247         * manual/search.texi: Likewise.
12248         * manual/signal.texi: Likewise.
12249         * manual/startup.texi: Likewise.
12250         * manual/stdio.texi: Likewise.
12251         * manual/sysinfo.texi: Likewise.
12252         * manual/syslog.texi: Likewise.
12253         * manual/time.texi: Likewise.
12254         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12255
12256         [BZ #3465]
12257         * sunrpc/clnt_raw.c: Minimal message improvements.
12258         * sunrpc/pm_getmaps.c: Likewise.
12259         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12260         * nis/nis_print_group_entry.c: Likewise.
12261         * locale/programs/repertoire.c: Likewise.
12262         * locale/programs/charmap.c: Likewise.
12263         * malloc/memusage.sh: Likewise.
12264         * elf/dl-deps.c: Likewise.
12265         * locale/programs/ld-collate.c: Likewise.
12266         * libio/vswprintf.c: Likewise.
12267         * malloc/memusagestat.c: Likewise.
12268         * sunrpc/auth_unix.c: Likewise.
12269         * sunrpc/rpc_main.c: Likewise.
12270         * nscd/cache.c: Likewise.
12271         * locale/programs/repertoire.c: Unify output messages.
12272         * locale/programs/charmap.c: Likewise.
12273         * locale/programs/ld-ctype.c: Likewise.
12274         * locale/programs/ld-monetary.c: Likewise.
12275         * locale/programs/ld-numeric.c: Likewise.
12276         * locale/programs/ld-time.c: Likewise.
12277         * elf/ldconfig.c: Likewise.
12278         * nscd/selinux.c: Likewise.
12279         * elf/cache.c: Likewise.
12280         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12281
12282         [BZ #3451]
12283         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12284         change atomic.
12285         (ceil): Likewise.
12286
12287 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12288
12289         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12290         if N is one bigger than return value.
12291         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12292         and l1 last arguments, if buf is defined, verify the return value
12293         equals to strlen (buf) and verify no byte beyond passed length
12294         is modified.
12295
12296 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12297
12298         * po/sv.po: Update from translation team.
12299
12300 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12301
12302         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12303         noinline attribute.
12304
12305 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12306
12307         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12308         noinline attribute.
12309
12310         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12311         Use __new_sys_siglist instead of _sys_siglist_internal as
12312         second macro argument.
12313         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12314         strong_alias.
12315
12316 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12317
12318         [BZ #3493]
12319         * posix/unistd.h (sysconf): Remove const attribute.
12320
12321         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12322         temporary or deprecated addresses.
12323         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12324
12325         * string/Makefile (tests): Add tst-strxfrm2.
12326         * string/tst-strxfrm2.c: New file.
12327
12328 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12329
12330         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12331         rather than r->r_brk.
12332
12333 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12334
12335         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12336         optimization even if needed > n.
12337
12338         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12339         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12340         return false, otherwise return true.
12341         (cache_rpath): Return decompose_rpath return value.
12342
12343 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12344
12345         * include/libc-symbols.h (declare_symbol): Rename to...
12346         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12347         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12348         .size directive.
12349         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12350         changes.
12351         * sysdeps/gnu/siglist.c: Likewise.
12352
12353 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12354
12355         * sysdeps/powerpc/fpu/bits/mathinline.h
12356         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12357         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12358
12359 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12360
12361         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12362         Update handling of cache descriptor 0x49 for new models.
12363         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12364         Likewise.
12365
12366 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12367
12368         * malloc/memusage.c (dest): Reset not_me back to false after
12369         printing statistics.
12370
12371 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12372
12373         * configure.in: Work around ld --help change and avoid -z relro
12374         test completely if the architecture doesn't care about security.
12375
12376 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12377
12378         * po/sv.po: Update from translation team.
12379
12380 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12381
12382         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12383         generate compatibility version.
12384
12385 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12386
12387         * configure.in: Relax -z relro requirement a bit.
12388
12389         * po/sv.po: Update from translation team.
12390
12391 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12392
12393         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12394         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12395         * elf/dl-close.c (_dl_close_worker): Likewise.
12396         * elf/dl-open.c (_dl_open_worker): Likewise.
12397         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12398
12399 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12400
12401         * configure.in: Require assembler support for visibility, compiler
12402         support for visibility and aliases, linker support for various -z
12403         options.
12404         * Makeconfig: Remove conditional code which now is unnecessary.
12405         * config.h.in: Likewise.
12406         * config.make.in: Likewise.
12407         * dlfcn/Makefile: Likewise.
12408         * elf/Makefile: Likewise.
12409         * elf/dl-load.c: Likewise.
12410         * elf/rtld.c: Likewise.
12411         * include/libc-symbols.h: Likewise.
12412         * include/stdio.h: Likewise.
12413         * io/Makefile: Likewise.
12414         * io/fstat.c: Likewise.
12415         * io/fstat64.c: Likewise.
12416         * io/fstatat.c: Likewise.
12417         * io/fstatat64.c: Likewise.
12418         * io/lstat.c: Likewise.
12419         * io/lstat64.c: Likewise.
12420         * io/mknod.c: Likewise.
12421         * io/mknodat.c: Likewise.
12422         * io/stat.c: Likewise.
12423         * io/stat64.c: Likewise.
12424         * libio/stdio.c: Likewise.
12425         * nscd/Makefile: Likewise.
12426         * stdlib/Makefile: Likewise.
12427         * stdlib/atexit.c: Likewise.
12428         * sysdeps/generic/ldsodefs.h: Likewise.
12429         * sysdeps/i386/dl-machine.h: Likewise.
12430         * sysdeps/i386/sysdep.h: Likewise.
12431         * sysdeps/i386/i686/memcmp.S: Likewise.
12432         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12433         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12434         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12435
12436         * Makerules: USE_TLS support is now default.
12437         * tls.make.c: Likewise.
12438         * csu/Versions: Likewise.
12439         * csu/libc-start.c: Likewise.
12440         * csu/libc-tls.c: Likewise.
12441         * csu/version.c: Likewise.
12442         * dlfcn/dlinfo.c: Likewise.
12443         * elf/dl-addr.c: Likewise.
12444         * elf/dl-cache.c: Likewise.
12445         * elf/dl-close.c: Likewise.
12446         * elf/dl-iteratephdr.c: Likewise.
12447         * elf/dl-load.c: Likewise.
12448         * elf/dl-lookup.c: Likewise.
12449         * elf/dl-object.c: Likewise.
12450         * elf/dl-open.c: Likewise.
12451         * elf/dl-reloc.c: Likewise.
12452         * elf/dl-support.c: Likewise.
12453         * elf/dl-sym.c: Likewise.
12454         * elf/dl-sysdep.c: Likewise.
12455         * elf/dl-tls.c: Likewise.
12456         * elf/ldconfig.c: Likewise.
12457         * elf/rtld.c: Likewise.
12458         * elf/tst-tls-dlinfo.c: Likewise.
12459         * elf/tst-tls1.c: Likewise.
12460         * elf/tst-tls10.h: Likewise.
12461         * elf/tst-tls14.c: Likewise.
12462         * elf/tst-tls2.c: Likewise.
12463         * elf/tst-tls3.c: Likewise.
12464         * elf/tst-tls4.c: Likewise.
12465         * elf/tst-tls5.c: Likewise.
12466         * elf/tst-tls6.c: Likewise.
12467         * elf/tst-tls7.c: Likewise.
12468         * elf/tst-tls8.c: Likewise.
12469         * elf/tst-tls9.c: Likewise.
12470         * elf/tst-tlsmod1.c: Likewise.
12471         * elf/tst-tlsmod13.c: Likewise.
12472         * elf/tst-tlsmod13a.c: Likewise.
12473         * elf/tst-tlsmod14a.c: Likewise.
12474         * elf/tst-tlsmod2.c: Likewise.
12475         * elf/tst-tlsmod3.c: Likewise.
12476         * elf/tst-tlsmod4.c: Likewise.
12477         * elf/tst-tlsmod5.c: Likewise.
12478         * elf/tst-tlsmod6.c: Likewise.
12479         * include/errno.h: Likewise.
12480         * include/link.h: Likewise.
12481         * include/tls.h: Likewise.
12482         * locale/global-locale.c: Likewise.
12483         * locale/localeinfo.h: Likewise.
12484         * malloc/arena.c: Likewise.
12485         * malloc/hooks.c: Likewise.
12486         * malloc/malloc.c: Likewise.
12487         * resolv/Versions: Likewise.
12488         * sysdeps/alpha/dl-machine.h: Likewise.
12489         * sysdeps/alpha/libc-tls.c: Likewise.
12490         * sysdeps/generic/ldsodefs.h: Likewise.
12491         * sysdeps/generic/tls.h: Likewise.
12492         * sysdeps/i386/dl-machine.h: Likewise.
12493         * sysdeps/ia64/dl-machine.h: Likewise.
12494         * sysdeps/ia64/libc-tls.c: Likewise.
12495         * sysdeps/mach/hurd/fork.c: Likewise.
12496         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12497         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12498         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12499         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12500         * sysdeps/s390/libc-tls.c: Likewise.
12501         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12502         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12503         * sysdeps/sh/dl-machine.h: Likewise.
12504         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12505         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12506         * sysdeps/x86_64/dl-machine.h: Likewise.
12507
12508         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12509         split out locking and parameter checking.
12510         (_dl_close): Call _dl_close_worker after locking and checking.
12511         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12512         _dl_close.
12513         * elf/Makefile: Add rules to build and run tst-thrlock.
12514         * elf/tst-thrlock.c:  New file.
12515
12516         [BZ #3426]
12517         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12518         reality.
12519
12520         [BZ #3429]
12521         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12522         we are sure we do not need it anymore for _dl_close.  Also move
12523         the asserts inside the lock region.
12524         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12525
12526 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12527
12528         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12529         argument.
12530         (_dl_lookup_symbol_x): Adjust caller.
12531
12532         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12533         _ns_global_scope.
12534         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12535
12536         * elf/dl-libc.c: Revert l_scope name changes.
12537         * elf/dl-load.c: Likewise.
12538         * elf/dl-object.c: Likewise.
12539         * elf/rtld.c: Likewise.
12540         * elf/dl-close.c (_dl_close): Likewise.
12541         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12542         always use __rtld_mrlock_{change,done}.  Always free old scope list
12543         here if not l_scope_mem.
12544         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12545         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12546         the lookup and __rtld_mrlock_unlock it after the lookup.
12547         * elf/dl-sym.c: Likewise.
12548         * include/link.h (struct r_scoperec): Remove.
12549         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12550         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12551
12552 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12553
12554         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12555
12556 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12557
12558         * configure.in: Disable building profile libraries by default.
12559
12560 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12561
12562         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12563         as signed longs, check for x_base + pos overflow.
12564         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12565         * sunrpc/tst-xdrmem2.c: New test.
12566
12567 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12568
12569         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12570         _dl_lookup_symbol_x code.
12571
12572 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12573
12574         * elf/dl-runtime.c: Include sysdep-cancel.h.
12575         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12576         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12577         instead of catomic_* macros.
12578         * elf/dl-sym.c: Include sysdep-cancel.h.
12579         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12580         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12581         * elf/dl-close.c: Include sysdep-cancel.h.
12582         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12583         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12584         * elf/dl-open.c: Include sysdep-cancel.h.
12585         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12586         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12587
12588 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12589
12590         [BZ #3313]
12591         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12592         fastbin rather than end of fastbin array.
12593
12594 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12595
12596         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12597         body macro.
12598         * sysdeps/x86_64/bits/atomic.h
12599         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12600         (catomic_decrement): Use correct body macro.
12601
12602 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12603
12604         * include/atomic.h: Add a unique prefix to all local variables
12605         in macros.
12606         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12607
12608 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12609
12610         [BZ #3369]
12611         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12612         and 7.
12613
12614 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12615
12616         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12617
12618 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12619
12620         [BZ #3313]
12621         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12622         determine highest fast bin to consolidate, always look into all of
12623         them.
12624         (do_check_malloc_state): Only require for empty bins for large
12625         sizes in main arena.
12626
12627         * libio/stdio.h: Add more __wur attributes.
12628
12629         * elf/dl-minimal.c (realloc): Optimize last patch.
12630
12631 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12632
12633         [BZ #3352]
12634         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12635         and use memcpy() if it does.
12636
12637 2006-11-12  Andreas Jaeger  <aj@suse.de>
12638
12639         [BZ #2510]
12640         * manual/search.texi (Hash Search Function): Clarify.
12641         (Array Search Function): Clarify.
12642
12643 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12644
12645         [BZ #2830]
12646         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12647         shifting.
12648         * math/atest-exp2.c (read_mpn_hex): Likewise.
12649         * math/atest-sincos.c (main): Likewise.
12650
12651 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12652
12653         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12654         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12655         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12656         version GLIBC_2.6.
12657         * Versions.def: Add GLIBC_2.6 for libc.
12658
12659         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12660
12661         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12662
12663 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12664
12665         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12666
12667         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12668
12669         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12670         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12671
12672 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12673
12674         * include/atomic.c: Define catomic_* operations.
12675         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12676         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12677         * malloc/memusage.c: Likewise.
12678         * gmon/mcount.c: Likewise.
12679         * elf/dl-close.c: Likewise.
12680         * elf/dl-open.c: Likewise.
12681         * elf/dl-profile.c: Likewise.
12682         * elf/dl-sym.c: Likewise.
12683         * elf/dl-runtime.c: Likewise.
12684         * elf/dl-fptr.c: Likewise.
12685         * resolv/res_libc.c: Likewise.
12686
12687 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12688
12689         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12690         components which lack them.
12691
12692         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12693         at least one entry consisting of the parameter concatenated with
12694         the domain.
12695
12696 2006-10-10  Roland McGrath  <roland@frob.com>
12697
12698         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12699         * sysdeps/mach/hurd/futimes.c: Likewise.
12700         * sysdeps/mach/hurd/lutimes.c: Likewise.
12701
12702 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12703             Jakub Jelinek  <jakub@redhat.com>
12704
12705         Implement reference counting of scope records.
12706         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12707         from the list in objects which remain.  Always allocate new scope
12708         record.
12709         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12710         don't resize, allocate a new one.
12711         * elf/dl-runtime.c: Update reference counters before using a scope
12712         array.
12713         * elf/dl-sym.c: Likewise.
12714         * elf/dl-libc.c: Adjust for l_scope name change.
12715         * elf/dl-load.c: Likewise.
12716         * elf/dl-object.c: Likewise.
12717         * elf/rtld.c: Likewise.
12718         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12719         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12720         Add l_scoperec_lock.
12721         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12722         * sysdeps/generic/rtld-lowlevel.h: New file.
12723
12724         * include/atomic.h: Rename atomic_and to atomic_and_val and
12725         atomic_or to atomic_or_val.  Define new macros atomic_and and
12726         atomic_or which do not return values.
12727         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12728         Various cleanups.
12729         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12730
12731         * po/sv.po: Update from translation team.
12732
12733 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12734
12735         * Versions.def: Add GLIBC_2.6 to libpthread.
12736
12737         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12738         (versioned_symbol): Likewise.
12739         (compat_symbol): Likewise.
12740
12741         * po/tr.po: Update from translation team.
12742
12743 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12744
12745         * nis/Banner: Removed.  It's been integral part forever and the
12746         author info is incomplete anyway.
12747         * libio/Banner: Likewise.
12748
12749         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12750         code, make sure the nis_freeresult call doesn't crash and that the
12751         result is reported correctly.
12752
12753 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12754
12755         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12756         when callback is NULL.
12757
12758         * nis/Versions (libnss_nisplus): Add
12759         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12760         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12761         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12762         _nss_create_tablename): Rename to...
12763         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12764         ... these.  No longer static.
12765         (internal_setgrent): Adjust users.
12766         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12767         Don't use locking around _nss_grp_create_tablename call.
12768         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12769
12770 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12771
12772         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12773
12774 2006-10-06  Andreas Jaeger  <aj@suse.de>
12775
12776         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12777
12778 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12779
12780         * po/pl.po: Update from translation team.
12781
12782         * nscd/nscd.c (main): Fix typo in message.
12783         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12784
12785 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12786
12787         [BZ #3291]
12788         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12789         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12790         (__sigprocmask): Define.
12791
12792 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12793
12794         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12795         used.
12796
12797 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12798
12799         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12800         in oldtotal and newtotal calculation.
12801         * nscd/nscd-client.h (struct mapped_database): Add datasize
12802         field.
12803         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12804         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12805         increased.
12806         (__nscd_cache_search): Add checks to make sure we never reference
12807         data beyond the current mapping.
12808
12809 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12810
12811         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12812         variables const to avoid compiler warnings.
12813
12814         * io/fts.c (fts_close): Remove redundant checks.
12815         (fts_build): Likewise.
12816         (fts_palloc): Likewise.
12817
12818         * manual/message.texi (Advanced gettext functions,
12819         Using gettextized software): Fix typos.
12820
12821 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12822
12823         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12824         explain why there are no leaks.
12825
12826 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12827
12828         * libio/wmemstream.c: Include <wchar.h>.
12829         * libio/bug-wmemstream1.c: Likewise.
12830         * libio/tst-wmemstream1.c: Likewise.
12831         * libio/tst-wmemstream2.c: Likewise.
12832
12833         * version.h (RELEASE): Bump to 2.5.
12834         * README: Regenerated.
12835
12836         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12837
12838         [BZ #3273]
12839         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12840         found no group members.
12841         Patch by Petr Baudis.
12842
12843 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12844
12845         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12846         assert bootstrap_map.l_tls_modid is zero.
12847         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12848         if USE___THREAD.
12849
12850 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12851
12852         * libio/stdio.h: Move open_wmemstream prototype to ...
12853         * wcsmbs/wchar.h: ... here.
12854
12855 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12856
12857         [BZ #3252]
12858         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12859         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12860         __{,l}chown to handle the rest.
12861         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12862         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12863         __{,l}chown to handle the rest.
12864         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12865         i386/fchownat.c.
12866         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12867         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12868
12869         [BZ #3253]
12870         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12871         time, rather allocate increasingly bigger arrays of pointers, if
12872         possible with alloca, if too large with malloc.
12873
12874 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12875
12876         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12877
12878         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12879
12880 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12881
12882         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12883         home addresses.
12884         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12885         IFA_F_HOMEADDRESS flag for interfaces.
12886         * include/ifaddrs.h (struct in6addrinfo): Define
12887         in6ai_homeaddress.
12888
12889 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12890
12891         [BZ #3225]
12892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12893         PTR_DEMANGLE3): Define.
12894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12895         PTR_DEMANGLE3): Likewise.
12896         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12897         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12898         Likewise.
12899         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12900
12901 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12902
12903         * po/libc.pot: Regenerated.
12904         * po/be.po: Updated.
12905         * po/ca.po: Likewise.
12906         * po/cs.po: Likewise.
12907         * po/da.po: Likewise.
12908         * po/de.po: Likewise.
12909         * po/el.po: Likewise.
12910         * po/en_GB.po: Likewise.
12911         * po/es.po: Likewise.
12912         * po/fi.po: Likewise.
12913         * po/fr.po: Likewise.
12914         * po/gl.po: Likewise.
12915         * po/hr.po: Likewise.
12916         * po/hu.po: Likewise.
12917         * po/ja.po: Likewise.
12918         * po/ko.po: Likewise.
12919         * po/nb.po: Likewise.
12920         * po/nl.po: Likewise.
12921         * po/pl.po: Likewise.
12922         * po/pt_BR.po: Likewise.
12923         * po/ru.po: Likewise.
12924         * po/rw.po: Likewise.
12925         * po/sk.po: Likewise.
12926         * po/sv.po: Likewise.
12927         * po/tr.po: Likewise.
12928         * po/zh_CN.po: Likewise.
12929         * po/zh_TW.po: Likewise.
12930
12931         [BZ #3137]
12932         * iconv/iconv_prog.c (main): Fix spelling in error message.
12933         * iconv/iconvconfig.c (main): Likewise.
12934         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12935         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12936         * locale/programs/localedef.c (main): Likewise.
12937         * locale/programs/repertoire.c (repertoire_read): Likewise.
12938         * timezone/zdump.c (main): Likewise.
12939         * nscd/connections.c (handle_request): Fix spelling in log message.
12940         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12941
12942 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12943
12944         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12945         interfaces.
12946
12947 2006-09-20  Andreas Jaeger  <aj@suse.de>
12948
12949         * math/libm-test.inc (lrint_test_upward): Fix typo.
12950
12951 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12952
12953         [BZ #2592]
12954         * math/libm-test.inc (lrint_test_tonearest): New function.
12955         (lrint_test_towardzero): New function.
12956         (lrint_test_downward): New function.
12957         (lrint_test_upward): New function.
12958         (main): Run these new tests.
12959         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12960         of values near to 0.
12961         (two52): Use double not long double.
12962         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12963         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12964         (two23): Use float not double.
12965         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12966         (two23): Use float not double.
12967         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12968         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12969         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12970         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12971
12972 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12973
12974         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12975         Cast sp to unsigned long to avoid compiler warning.
12976         Use __makecontext_ret function instead of a trampoline on the stack.
12977         (__makecontext_ret): New function.
12978         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12979
12980 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12981
12982         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12983         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12984         bits.
12985
12986 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12987
12988         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12989         sure no reference to the unloaded map's search list remains in the
12990         dependency's scope.
12991
12992 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12993
12994         * elf/Makefile: Add rules to build and run unload7 test.
12995         * elf/unload7.c: New test.
12996         * elf/unload7mod1.c: New file.
12997         * elf/unload7mod2.c: New file.
12998
12999 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13000
13001         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13002         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13003         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13004         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13005         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13006         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13007         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13008         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13009         PTRACE_GETEVENTMSG): Likewise.
13010         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13011         values.
13012
13013 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13014
13015         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13016         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13017         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13018         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13019
13020 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13021
13022         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13023         write '\0' to the fd.
13024         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13025         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13026         Change regs to unsigned long pointer from unsigned int, fix fscr
13027         offset.
13028
13029 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13030
13031         * io/Makefile (CFLAGS-fstatat.c): Set.
13032         (CFLAGS-fstatat64.c): Likewise.
13033         (CFLAGS-mknodat.c): Likewise.
13034
13035         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13036         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13038         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13039
13040 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13041             Steven Munroe  <sjmunroe@us.ibm.com>
13042
13043         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13044         names to the beginning.  Rename "cell" to "cellbe".
13045         (_dl_powerpc_platforms): New.
13046         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13047         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13048         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13049         (_DL_HWCAP_PLATFORM): Define to new mask.
13050         (_dl_platform_string, _dl_string_platform): New functions.
13051         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13052         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13053
13054 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13055
13056         [BZ #2526]
13057         * README.libm: Fix a thinko in sqrt algorithm description.
13058
13059         [BZ #3143]
13060         * manual/string.texi (argz_delete): Fix prototype.
13061         Patch by <alpt@freaknet.org>.
13062
13063 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13064
13065         [BZ #3138]
13066         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13067         * io/tst-fcntl.c (do_prepare): Likewise.
13068         * posix/tst-exec.c (do_prepare): Likewise.
13069         * posix/tst-preadwrite.c (do_prepare): Likewise.
13070         * posix/tst-spawn.c (do_prepare): Likewise.
13071         * posix/tst-truncate.c (do_prepare): Likewise.
13072         * rt/tst-aio.c (do_prepare): Likewise.
13073         * rt/tst-aio64.c (do_prepare): Likewise.
13074         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13075         size_t.
13076
13077 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13078
13079         [BZ #2821]
13080         * time/mktime.c (guess_time_tm): Fix overflow detection.
13081         * time/Makefile (tests): Add bug-mktime1.
13082         * time/bug-mktime1.c: New file.
13083
13084         [BZ #3189, #3188]
13085         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13086         (mremap): Likewise.
13087
13088 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13089
13090         [BZ #1006]
13091         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13092         Ensure relocation doesn't clobber any bits outside of the
13093         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13094         R_SPARC_HI22 and R_SPARC_H44.
13095
13096         [BZ #2775]
13097         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13098         (long) (MINSIZE + nb - old_size) is positive.
13099
13100         * malloc/arena.c (grow_heap): When growing bail even if new_size
13101         is negative.
13102
13103         [BZ #3155]
13104         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13105         stack below r1.
13106
13107 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13108
13109         * posix/regex_internal.c (re_string_reconstruct): Handle
13110         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13111         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13112         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13113         re_string_context_at.
13114         * posix/Makefile: Add rules to build and run bug-regex26 test.
13115         * posix/bug-regex26.c: New test.
13116
13117         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13118         rather than col_sym_free.  Move seqp declaration earlier.
13119
13120         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13121
13122 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13123
13124         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13125         decl before first goto out.
13126
13127 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13128
13129         * Makerules (shlib.lds): If have-hash-style, put .hash section
13130         at the end of the RO segment.
13131
13132 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13133
13134         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13135         style hash table format is used.
13136
13137 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13138
13139         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13140         randomization rather than before.
13141         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13142
13143 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13144
13145         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13146
13147         * malloc/malloc.c (_int_malloc): Use full list insert and not
13148         shortcut which assumes the list is empty for large requests
13149         too.
13150
13151         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13152
13153 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13154
13155         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13156         and offout arguments to the prototype.
13157         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13158         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13159         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13160         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13161         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13162         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13163         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13164         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13165
13166 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13167
13168         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13169
13170         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13171         dlopen parameters.
13172
13173 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13174
13175         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13176         only if herrno is NETDB_INTERNAL.  Handle errors other than
13177         ERANGE outside of the loops, handle TRY_AGAIN.
13178
13179         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13180         if other's ctype category was missing.
13181         * locale/programs/ld-collate.c (collate_read): Return if
13182         copy_locale's collate category is missing.
13183
13184 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13185
13186         [BZ #2684]
13187         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13188         arenas if allocation failed.
13189         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13190
13191 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13192
13193         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13194         waste bins[0..1].
13195         (malloc_state): Reduce bins size by 2.
13196         (_int_malloc): Fix test for large enough buffer for early termination.
13197         When no unsorted block matches perfectly and an exiting block has
13198         to be split, use full list insert and not shortcut which assumes
13199         the list is empty.
13200
13201         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13202         failure.
13203
13204 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13205
13206         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13207         do anything.
13208
13209         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13210         symbol require exact match (these are PLTs).
13211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13212         (_dl_ppc64_addr_sym_match): Likewise.
13213
13214         [BZ #2683]
13215         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13216         If symbol has a value use it.
13217         * elf/tst-dladdr1.c: New file.
13218         * elf/Makefile: Add rules to build and run tst-addr1.
13219
13220 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13221
13222         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13223         keeps failing and heap growth or new heap creation isn't
13224         successful either.
13225         * malloc/tst-malloc.c (main): Add new tests.
13226
13227 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13228
13229         [BZ #2734]
13230         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13231         as in the x86-64 code to use bswap.
13232
13233 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13234
13235         [BZ #2680]
13236         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13237         __USE_UNIX98.
13238         * posix/bits/unistd.h: Likewise.
13239
13240 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13241
13242         [BZ #2751]
13243         * string/strchr.c: Add cast to avoid warning.
13244
13245 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13246
13247         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13248         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13249         limit is needed to avoid the exploding of the address space
13250         requirement for secondary heaps.
13251         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13252         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13253
13254 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13255
13256         [BZ #3018]
13257         * Makerules (depfiles): Handle extra-test-objs the same as
13258         extra-objs.
13259         (common-mostlyclean): Likewise.
13260         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13261         instead.
13262         * elf/Makefile (extra-objs): Likewise.
13263         * stdlib/Makefile (extra-objs): Likewise.
13264
13265 2006-08-14  Eric Blake  <ebb9@byu.net>
13266
13267         [BZ #3044]
13268         * misc/error.h: Assume C89 or better.
13269         * misc/error.c: Likewise.
13270
13271 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13272
13273         [BZ #3040]
13274         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13275         __ASSUME_ATFCTS is defined.
13276
13277 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13278
13279         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13280         to sort in each call.
13281
13282         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13283         is empty simply return and use next service.
13284         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13285
13286         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13287         tells us when not finding a charmap file is an error.
13288         * locale/programs/charmap.h: Adjust charmap_read prototype.
13289         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13290         cannot find a charmap.
13291         * locale/programs/localedef.c (main): Adjust charmap_read call.
13292
13293 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13294
13295         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13296         sysdeps/posix/pause.c implementation instead.
13297
13298 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13299
13300         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13301         to EPERM.
13302
13303 2006-08-13  Andreas Schwab  <schwab@suse.de>
13304
13305         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13306         Don't clobber caller's LRSAVE.
13307         (_dl_prof_resolve): Likewise.
13308
13309 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13310
13311         [BZ #1996]
13312         * libio/memstream.c (open_memstream): Allocate initial buffer with
13313         calloc.
13314         * libio/wmemstream.c (open_wmemstream): Likewise.
13315         * libio/strops.c: Pretty printing.
13316         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13317         (enlarge_userbuf): New function.
13318         (_IO_str_seekoff): Call it if seek position is larger than current
13319         buffer.
13320         * libio/wstrops.c: Likewise.
13321         * libio/vasprintf.c: Add comment as to why we do not have to use
13322         calloc instead of malloc to allocate initial buffer.
13323         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13324         * libio/bug-memstream1.c: New file.
13325         * libio/bug-wmemstream1.c: New file.
13326
13327 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13328
13329         * libio/wstrops.c: Remove dead macro definitions and comments.
13330         * libio/strops.c: Likewise.
13331
13332         [BZ #2764]
13333         * login/utmpname.c (__utmpname): Remove unnecessary test.
13334
13335 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13336
13337         [BZ #2832]
13338         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13339         0s from integers.
13340
13341 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13342
13343         [BZ #2987]
13344         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13345         for CPU clocks.
13346         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13347         setting of CPU clocks.
13348
13349 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13350
13351         [BZ #2841]
13352         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13353         since C99 requires the result to promote to 'int' when uint_least8_t
13354         and uint_least16_t promote to 'int'.
13355
13356 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13357
13358         [BZ #3013]
13359         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13360         lenght of one output field, correct bitmask creation.
13361         * locale/programs/ld-time.c: Add alignment.
13362
13363         [BZ #2997]
13364         * misc/error.c: Add space between program name and message if file
13365         name is missing.
13366
13367 2006-08-03  Eric Blake  <ebb9@byu.net>
13368
13369         [BZ #2998]
13370         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13371
13372 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13373
13374         * malloc/memusagestat.c: Silence warnings.
13375
13376         * malloc/malloc.c: Dynamically size mmap treshold if the program
13377         frees mmaped blocks.
13378         Patch by Valerie Henson and Arjan van de Ven.
13379
13380 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13381
13382         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13383         __USE_GNU.
13384
13385         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13386         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13387         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13388         Only provide var definitions in strtol_l (or for *ull*
13389         in strtoll_l).
13390
13391         * stdio-common/bug16.c (tests): New array.
13392         (do_tests): Allow the first hexadecimal digit
13393         to be 1, 2, 4 or 8.  Do 3 additional tests.
13394
13395         * sysdeps/s390/fpu/libm-test-ulps: Update.
13396
13397         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13398         fchownat syscall if available.
13399         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13400         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13401         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13402
13403 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13404
13405         * nis/nis_xdr.c: Avoid some function calls.
13406
13407 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13408             Ulrich Drepper  <drepper@redhat.com>
13409
13410         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13411         short cut if only one name component is stripped away.
13412
13413 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13414
13415         * nis/nis_call.c: Minor cleanups throughout.
13416         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13417         (first_shoot): Add search_parent_first parameter.  Only if it is set
13418         search parent server first.
13419         If directory for table found through cold start cache is not the same
13420         as referenced in the cache, don't use it.
13421         (__nisfind_server): Take additional parameter.  Pass it on to
13422         first_shoot.
13423         (__prepare_niscall): Adjust __nisfind_server call.
13424         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13425         * nis/nis_table.c: Adjust __nisfind_server call.
13426         * nis/nis_lookup.c: Likewise.
13427         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13428
13429 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13430
13431         [BZ #2182]
13432         * math/s_cacosh.c: Return values from positive branch.
13433         * math/s_cacoshf.c: Likewise.
13434         * math/s_cacoshl.c: Likewise.
13435
13436         [BZ #2883]
13437         * sysvipc/sys/msg.h: Change return value to ssize_t.
13438         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13439         * sysvipc/msgrcv.c: Likewise.
13440         * include/sys/msg.h: Likewise.
13441
13442         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13443         test introduced in patch for bz #661.
13444         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13445         element for NEWGROUPS.
13446
13447         [BZ #2908]
13448         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13449         'f', use '1' as leading digit not '\1'.
13450         * stdio-common/Makefile (tests): Add bug16.
13451         * stdio-common/bug16.c: New file.
13452
13453         [BZ #2914]
13454         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13455         and don't try to open it.  The patch introducing the macro
13456         contained a bug and used the same file name as the new file
13457         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13458         this out completely.
13459
13460         [BZ #2926]
13461         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13462         Patch by Jerry James <Jerry.James@usu.edu>.
13463
13464         * rt/Makefile (tests): Add tst-clock2.
13465         * rt/tst-clock2.c: New file.
13466
13467         [BZ #2978]
13468         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13469         function and its parameters and pass it to new thread.
13470         (__gai_notify): Add support for alternative waiting for completion.
13471         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13472         waiting for completion.
13473         * resolv/getaddrinfo_a.c: Likewise.
13474         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13475         waiting for completion is used.
13476         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13477         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13478         * resolv/gai_error.c: Likewise.
13479         * resolv/gai_sigqueue.c: Likewise.
13480
13481 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13482
13483         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13484         errno to EBADF and return MACH_PORT_NULL.
13485
13486 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13487
13488         [BZ #2980]
13489         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13490
13491 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13492
13493         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13494         walk them instead of the symbol table.
13495
13496 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13497
13498         [BZ #2098]
13499         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13500         status of NSS calls, not the number of returned entries.
13501
13502         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13503         request_key, keyctl.
13504
13505 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13506
13507         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13508
13509 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13510
13511         * elf/tst-auditmod1.c: Fix typo in #error.
13512
13513 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13514
13515         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13516
13517         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13518
13519 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13520
13521         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13522         that the directory is empty even on non-POSIX filesystems.
13523
13524 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13525
13526         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13527
13528         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13529         the backend NSS module.  If backend setgrent call failed, don't have
13530         internal_setgrent fail.  Just remember this until it is needed.
13531         * nis/nss_compat/compat-pwd.c: Likewise.
13532         * nis/nss_compat/compat-spwd.c: Likewise.
13533
13534 2006-07-30  Roland McGrath  <roland@redhat.com>
13535
13536         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13537         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13538         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13539         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13540
13541         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13542         (nanosleep_not_cancel): New macro.
13543         (sigsuspend_not_cancel): new macro.
13544         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13545         (do_sigsuspend): Define as inline.
13546         (__sigsuspend): Always use do_sigsuspend.
13547         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13548         * include/signal.h: Declare __sigsuspend_nocancel.
13549         * sysdeps/posix/pause.c
13550         [! NO_CANCELLATION] (__pause_nocancel): New function.
13551
13552         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13553         * include/time.h (__nanosleep_nocancel): Likewise.
13554
13555 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13556
13557         * locale/programs/localedef.c (add_to_readlist): Rename local
13558         variables to avoid confusion.
13559
13560         * locale/programs/charmap.c (charmap_read): Emit error message if
13561         charmap couldn't be found or read.
13562
13563 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13564
13565         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13566         __ASSUME_FUTEX_LOCK_PI.
13567         * include/time.h: Declare __nanosleep_nocancel.
13568         * include/unistd.h: Declare __pause_nocancel.
13569
13570         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13571         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13572         get the __stack_chk_fail_local definition when it's needed.
13573
13574 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13575
13576         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13577         * dlfcn/bug-atexit3.c: New file.
13578         * dlfcn/bug-atexit3-lib.cc: New file.
13579
13580         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13581         used when the namespace is not the base namespace.
13582
13583 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13584
13585         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13586         (__new_exitfn): Bump it in every successful call.
13587         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13588         more exit handlers, call them right away.
13589         * stdlib/exit.h: Declare __new_exitfn_called.
13590
13591 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13592
13593         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13594         calling registered handler.
13595
13596         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13597         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13598         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13599         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13600         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13601         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13602         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13603         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13604
13605 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13606
13607         * elf/dl-lookup.c (dl_new_hash): New functions.
13608         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13609         value here.  Compute new-style hash value.  Pass new hash value
13610         and reference to variable with the old value to do_lookup_x.
13611         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13612         old-style hash table.
13613         (_dl_debug_bindings): Pass new hash value and reference to variable
13614         with the old value to do_lookup_x.
13615         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13616         new-style hash value and change old-style hash value parameter to
13617         be a reference.  Reoganize functions to determine whether
13618         new-style hash table is available.  Only fall back on old-style
13619         table.  If old-style hash value is needed, compute it here.
13620         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13621         entry.
13622         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13623         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13624         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13625         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13626         * Makeconfig: If linker supports --hash-style option add it to all
13627         linker command lines to build DSOs.
13628         * config.make.in: Define have-hash-style.
13629         * configure.in: Test whether linker supports --hash-style option.
13630
13631         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13632         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13633
13634 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13635
13636         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13637         auditing.
13638
13639         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13640         RPATH of main map twice.
13641
13642 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13643
13644         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13645         look further, return original strings.
13646         (_nl_find_msg): Do not return found translation if the conversion
13647         failed.  Either signal the string is unusable or that something went
13648         wrong and the original should be used.
13649
13650 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13651
13652         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13653
13654 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13655
13656         [BZ #2766]
13657         * misc/insremque.c (insque): Handle prev == NULL.
13658         * misc/Makefile (tests): Add tst-insremque.
13659         * misc/tst-insremque.c: New test.
13660
13661 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13662
13663         [BZ #2792]
13664         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13665         conflict with DL_DST_REQUIRED.
13666
13667 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13668
13669         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13670         match what Solaris does.
13671
13672 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13673
13674         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13675         local_setegid instead of seteuid and setegid.
13676         * sysdeps/generic/local-setxid.h: New file.
13677         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13678
13679         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13680
13681         * string/Makefile (tests): Add bug-envz1.
13682         * string/bug-envz1.c: New file.
13683
13684 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13685
13686         * posix/regex_internal.c (re_string_skip_chars): If no character has
13687         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13688         to the byte which couldn't be converted.
13689         (re_string_reconstruct): Don't clear valid_raw_len before calling
13690         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13691         tip_context using re_string_context_at.
13692         * posix/Makefile: Add rules to build and run bug-regex25 test.
13693         * posix/bug-regex25.c: New test.
13694
13695 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13696
13697         [BZ #2703]
13698         * string/envz.c (envz_strip): Correct erroneously reversed src
13699         and dest parameters to memmove() invocation.
13700
13701 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13702
13703         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13704         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13705         to make sure the database has been already invalidated.
13706         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13707         after the cache has been invalidated.  Use pthread_mutex_lock rather
13708         than pthread_mutex_trylock if fd != -1.
13709         * nscd/connections.c (invalidate_cache): Add fd argument, write
13710         response to fd if not calling prune_cache, pass fd to prune_cache.
13711         (handle_request): Adjust invalidate_cache caller.
13712         (nscd_run): Pass -1 as fd to prune_cache.
13713
13714 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13715
13716         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13717         the correct place.
13718
13719 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13720
13721         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13722         * nscd/cache.c (prune_cache): Take prunelock before starting the
13723         work.  Just return in case it is already taken.
13724         * nscd/connections.c (dbs): Initialize .prunelock.
13725
13726 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13727
13728         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13729         copying.  No need to allocate new array for group members.  Just
13730         move the pointers and update the size.
13731
13732         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13733         Avoid memory leak in case realloc fails.  Simplification for
13734         better code generation.
13735
13736         Avoid deprecation warning because of libc_hidden_proto for
13737         inet6_option_alloc.
13738         * inet/inet6_option.c (option_alloc): Renamed from
13739         inet6_option_alloc.  Made static.
13740         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13741         (inet6_option_append): Call option_alloc.
13742         * include/netinet/in.h: Remove libc_hidden_proto for
13743         inet6_option_alloc.
13744
13745         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13746         for cleanup when cb!=NULL [Coverity CID 233].
13747
13748 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13749
13750         [BZ #2693]
13751         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13752         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13753         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13754         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13755         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13756         and inet6_rth_getaddr.
13757         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13758         array.
13759         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13760         Mark inet6_option_* interfaces as deprecated.
13761         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13762         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13763         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13764         inet6_rth_segments, and inet6_rth_getaddr.
13765         * inet/inet6_opt.c: New file.
13766         * inet/inet6_rth.c: New file.
13767
13768         * inet/netinet/icmp6.h: Pretty printing.
13769
13770         [BZ #2683]
13771         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13772
13773 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13774
13775         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13776         doing it all here.  When server does not know the answer do not
13777         fail immediate, try parent first.
13778
13779         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13780         overflow test.
13781
13782 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13783
13784         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13785         from __do_niscall.
13786         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13787         and exported.
13788         (__follow_path): New function.  Split out from nis_list.
13789         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13790         _xdr_nis_result.
13791         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13792         _xdr_nis_result.
13793         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13794         and __follow_path.
13795         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13796         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13797         from libnsl for version GLIBC_PRIVATE.
13798         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13799         Remove entry parameter from _nss_nisplus_parse_pwent and
13800         _nss_nisplus_parse_grent.
13801         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13802         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13803         again.  Rewrite getpwent handling to not use nis_first_entry and
13804         nis_next_entry.  Roll out own niscall handling.
13805         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13806
13807         * sunrpc/xdr_rec.c: Fix typo in comment.
13808
13809 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13810
13811         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13812         handling.
13813
13814         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13815         to allocate memory for my_pollfd.  Better initialization of
13816         cb_is_running.  Use TEMP_FAILURE_RETRY.
13817
13818         * malloc/memusage.sh (memusageso): Add quotes.
13819         (memusagestat): Likewise.
13820         * debug/xtrace.sh (pcprofileso): Likewise.
13821         (pcprofiledump): Likewise.
13822         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13823         replacement.
13824         * malloc/Makefile ($(objpfx)memusage): Likewise.
13825
13826         * nis/nis_callback.c (__nis_create_callback): Calls to
13827         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13828         asprintf call fails.
13829
13830         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13831         no uninitialized memory is passed to sendto.
13832
13833 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13834
13835         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13836         of snprintf+strdup.  Handle OOM.
13837         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13838         cb->serv together.  Remove now obsolete free calls.
13839         (__nis_destroy_callback): Remove now obsolete free call.
13840
13841 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13842
13843         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13844         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13845         and ULA respectively). Set precedence for IPv4 address to 10 as
13846         defined in RFC3484 for preferring IPv6.
13847         * posix/gai.conf: Update to match the new default tables.
13848
13849 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13850
13851         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13852         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13853         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13854         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13855
13856         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13857         Removed.
13858         (init_nss_interface): Remove initialization of these variables.
13859
13860 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13861
13862         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13863         nis_free_directory forward to avoid duplication.
13864
13865 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13866
13867         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13868         rec_dirsearch returning NULL.
13869         (first_shoot): Handle __nis_finddirectory returning NULL.
13870         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13871
13872         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13873         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13874
13875 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13876
13877         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13878         pid changed.
13879
13880 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13881
13882         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13883
13884         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13885         * nscd/nscd_getgr_r.c: Likewise.
13886
13887         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13888
13889         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13890         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13891
13892         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13893
13894         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13895
13896         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13897
13898         * include/rpc/auth.h: Mark xdr_des_block_internal and
13899         xdr_opaque_auth_internal as hidden.
13900
13901         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13902         hidden.
13903
13904         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13905
13906         * misc/getusershell.c (okshells): Don't use static initializers,
13907         do it dynamically.
13908
13909         * stdlib/fmtmsg.c (keywords): Change type of len element to
13910         uint32_t to not waste space on 64bit machines.
13911
13912         * locale/setlocale.c: Change _nl_category_names into a string.
13913         Add new _nl_category_name_idxs.  Change all users.
13914         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13915         Declare _nl_category_name_idxs.
13916         * locale/findlocale.c: Adjust for _nl_category_names change.
13917         * locale/loadlocale.c: Likewise.
13918         * locale/newlocale.c: Likewise.
13919         * intl/dcigettext.c: Likewise.
13920
13921         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13922         (add_alias2): ...here.  New function.
13923         (__gconv_read_conf): Simplify builtin alias handling.
13924         (builtin_aliases): Convert to string to avoid relocations.
13925         * iconv/gconv_builtin.h: Add comment about correct formatting.
13926
13927 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13928
13929         * resolv/res_debug.c (loc_ntoa): Make error const.
13930
13931 2006-05-14  Andreas Schwab  <schwab@suse.de>
13932
13933         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13934
13935 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13936
13937         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13938         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13939         sizeof (cpu_set_t).
13940
13941 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13942
13943         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13944
13945         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13946
13947         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13948         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13949
13950         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13951         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13952
13953         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13954         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13955         xdr_cback_data.
13956
13957         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13958         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13959         xdr_ypupdate_args.
13960
13961         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13962         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13963
13964         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13965         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13966
13967         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13968         * include/rpcsvc/nis_callback.h: New file.
13969
13970         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13971         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13972
13973         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13974         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13975
13976         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13977         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13978
13979         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13980         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13981
13982         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13983         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13984         xdr_ypdelete_args.
13985
13986         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13987         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13988
13989         * nis/nis_error.c: Remove table of strings.  Use position
13990         independent mechanism.
13991         * nis/nis_error.h: New file.
13992
13993 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13994
13995         * locale/programs/ld-time.c (time_finish): If wide era name or
13996         format aren't provided, set both wname and wformat to L"".
13997
13998 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13999
14000         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14001         results if the call was succesful.
14002
14003         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14004
14005         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14006         as hidden.
14007
14008 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14009
14010         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14011
14012 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14013
14014         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14015         caller makes sure this is not the case.
14016         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14017
14018 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14019
14020         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14021         calls.
14022
14023         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14024         [Coverity CID 229, 230]
14025
14026         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14027         DGETTEXT calls.
14028         (hol_help): Likewise.  [Coverity CID 226, 227]
14029
14030         * string/argz-replace.c (__argz_replace): Unconditionally call
14031         free on SRC.  [Coverity CID 225]
14032
14033         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14034         the return value of __nis_default_owner and __nis_default_group,
14035         it has been especially allocated.  [Coverity CID 224]
14036
14037         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14038         searchgroup and searchowner.  Significantly simplified.
14039         (__nis_default_owner): Remove duplication.  Do not locally copy the
14040         string before duplicating it.
14041         (__nis_default_group): Likewise.
14042
14043         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14044         we must clear the variable before calling __nisfind_server.
14045
14046         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14047         nis_getnames.  [Coverity CID 223]
14048
14049         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14050         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14051
14052         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14053         allocate memory for the input to add_bytes.  [Coverity CID 221]
14054
14055         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14056         was allocated here.  [Coverity CID 219, 220]
14057
14058         * posix/getconf.c (print_all): Free confstr data after printing.
14059         [Coverity CID 218]
14060
14061         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14062         list allocation fails.  [Coverity CID 215]
14063
14064         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14065         [Coverity CID 213]
14066
14067         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14068         string is NULL.  [Coverity CID 212]
14069         * argp/Makefile: Add rules to build and run bug-argp1.
14070         * argp/bug-argp1.c: New file.
14071
14072         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14073         end of string.
14074         * stdlib/canonicalize.c (__realpath): Likewise.
14075
14076         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14077         pointer.  [Coverity CID 206]
14078
14079         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14080         in statically linked code.
14081         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14082         statically built code, be prepared to have no link map.
14083         [Coverity CID 205]
14084
14085         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14086         dgettext calls. [Coverity CID 204]
14087
14088         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14089         the one user.
14090         (uparam_names): Reduce size.  Avoid relative relocations.
14091         Moved to read-only segment.
14092         (fill_in_uparams): Update for new layout.
14093
14094         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14095         assumed to always be != NULL. [Coverity CID 202]
14096
14097         * argp/argp-help.c (hol_entry_help): Remove some dead code
14098         [Coverity CID 200].
14099
14100         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14101         away a few more unconditional yperr2nss calls.
14102         (_nss_nis_getservbyname_r): Likewise.
14103
14104 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14105
14106         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14107         architectures.
14108
14109         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14110         that unused memory passed to sendto is nevertheless initialized.
14111
14112         [BZ #2499]
14113         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14114         possibly unaligned memory accesses.
14115
14116         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14117         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14118         and __putlong respectively.  Correct buffer overflow check for
14119         NS_NOTIFY_OP.
14120
14121         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14122
14123         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14124         (send_dg): Rewrite error handling to be more compact and avoid
14125         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14126
14127         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14128
14129         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14130         instead of ns_get16.
14131         (res_queriesmatch): Likewise.  Minor optimization.
14132
14133         [BZ #2499]
14134         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14135         __libc_res_nsend might reallocate the buffer for the answer.  In
14136         this case we have to reload the HP pointer.
14137
14138 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14139
14140         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14141         some branch prediction hints.
14142
14143         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14144         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14145         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14146         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14147         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14148         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14149         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14150         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14151
14152 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14153
14154         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14155         by a GOT relocation to make Scrt1.o position independent.
14156         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14157
14158         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14159         six system call parameters.
14160         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14161
14162 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14163
14164         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14165         malloc&bzero.
14166
14167         * sunrpc/svc_udp.c (BZERO): Remove definition.
14168         (CALLOC): Define.
14169         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14170
14171         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14172         (des_SPtrans): Use uint32_t type.
14173         (des_skb): Likewise.
14174
14175         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14176
14177 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14178
14179         [BZ #2509]
14180         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14181         on 32-bit arches.
14182
14183 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14184
14185         * locale/programs/ld-address.c (address_finish): Fix one more
14186         place where the iso639 array might be accessed beyond the limits.
14187
14188 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14189
14190         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14191         filling it for the first time.
14192
14193         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14194         Adjust all callers.
14195         Free res object content before returning.
14196
14197         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14198
14199         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14200         client->cl_auth.
14201
14202         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14203         cleanup for initial thread, just the free call on TVP.
14204
14205         * nscd/gai.c (__getline): Define.
14206
14207
14208 See ChangeLog.16 for earlier changes.