Extend overflow detection in re_dfa_add_node.
[platform/upstream/glibc.git] / ChangeLog
1 2010-01-22  Jim Meyering  <jim@meyering.net>
2
3         [BZ #11184]
4         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
5         detection test.  Patch by Paul Eggert.
6
7         [BZ #11183]
8         * posix/regex_internal.c (re_string_realloc_buffers):
9         Detect and handle internal overflow.  Patch by Paul Eggert
10
11 2010-01-20  Andreas Schwab  <schwab@redhat.com>
12
13         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
14         (CHECK_SP): Fix check for alternate stack.
15         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
16         (CHECK_SP): Likewise.
17
18 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
19
20         * sysdeps/i386/i686/multiarch/memmove.S: Also check
21         bit_Fast_Rep_String when SHARED isn't defined.
22
23 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
24
25         [BZ #11194]
26         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
27
28 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29
30         * sysdeps/mach/hurd/bits/libc-lock.h
31         (__rtld_lock_recursive_t): New type.
32         (__rtld_lock_initialize): New macro.
33
34 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
35
36         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
37         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
38         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
39         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
40
41 2010-01-18  Andreas Schwab  <schwab@redhat.com>
42
43         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
44         definitions of O_DSYNC and O_RSYNC.
45
46         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
47         casting d_tag.
48
49         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
50         dynamic entry types.
51
52 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
53
54         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
55         constant.
56         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
57         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
58         overflow.
59         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
60
61         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
62         math_opt_barrier and math_force_eval macros.
63
64 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
65
66         * posix/regcomp.c: Fix a few more cases of ignored return values.
67         * posix/regex_internal.c: Likewise.
68         * posix/regexec.c: Likewise.
69
70         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
71         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
72         if _XOPEN_SOURCE is not defined as well.
73
74 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75
76         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
77         high gprs kernel facility.
78         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
79         Added high gprs check for DSOs.
80         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
81         new elf header flag.
82
83 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
84
85         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
86         dl_main.
87         * elf/dl-open.c (_dl_sysdep_start): Likewise..
88         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
89         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
90         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
91         started.
92
93 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
94
95         [BZ #11027]
96         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
97         to RFC 2474.
98         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
99
100         [BZ #11141]
101         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
102         addresses.
103
104         [BZ #11127]
105         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
106         re_node_set_insert failure; return REG_ESPACE.
107         Patch by Paul Eggert.
108
109         * bits/confname.h: Make pre-C99-safe.
110
111 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
112
113         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
114         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
115         files are found by GCC.
116
117 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
118
119         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
120         brk, and sbrk.
121
122         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
123         index, and rindex.
124
125         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
126
127         * Versions.def: Add GLIBC_2.12 for libpthread.
128
129         [BZ #11126]
130         * malloc/malloc.c (malloc_info): Initialize malloc if not already
131         done.  Handle empty bin lists.
132
133         * posix/unistd.h: Change getpagesize and getdtablesize declaration
134         visibility some more.
135
136         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
137
138         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
139
140         [BZ #11120]
141         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
142         needed outside libc.
143
144 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
145
146         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
147
148 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
149
150         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
151
152 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
153
154         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
155
156 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
157
158         * conform/data/complex.h-data: Test for POSIX2008.
159
160         * conform/data/ctype.h-data: Fix POSIX testing.
161
162         * conform/data/dirent.h-data: ino_t only needed for XSI.
163
164         * grp/grp.h: Declare getgrent and endgrent for XPG7.
165
166         * conform/data/inttypes.h-data: Use same types as the headers.
167
168         * resolv/netdb.h: Don't define old resolver macros for XPG7.
169
170         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
171
172         * conform/conformtest.pl: Implement tag for allow-header.
173         Fix newline handling in allow-header implementation.
174
175         * conform/data/time.h-data: Use allow-header instead of duplicating
176         information.
177
178         * conform/data/time.h-data: Allow sigevent tag.
179
180         * posix/sched.h: Define time_t and pid_t for XPG7.
181
182 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
183
184         * sysdeps/i386/i686/bcopy.S: New file.
185
186         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
187
188         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
189         and END_CHK.
190         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
191         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
192         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
193
194         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
195
196         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
197         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
198         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
199         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
200         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
201         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
202         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
203         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
204         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
205         * sysdeps/i386/i686/multiarch/bzero.S: New file.
206         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
207         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
208         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
209         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
210         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
211         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
212         * sysdeps/i386/i686/multiarch/memmove.S: New file.
213         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
214         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
215         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
216         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
217         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
218         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
219         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
220         * sysdeps/i386/i686/multiarch/memset.S: New file.
221         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
222
223         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
224         (END_CHK): Likewise.
225
226         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
227         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
228         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
229
230         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
231         for 0x0e and 0x80.
232         (__x86_64_data_cache_size): New.
233         (init_cacheinfo): Set __x86_64_data_cache_size.
234
235         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
236         on bit_Fast_Rep_String for Intel Core i7.
237
238         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
239         (index_Fast_Rep_String): Likewise.
240         (FEATURE_INDEX_1): Likewise.
241         (FEATURE_INDEX_MAX): Likewise.
242         (cpu_features): Add feature.
243
244 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
245
246         * conform/data/sys/select.h-data: Fix up for XPG7.
247
248 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
249
250         * posix/sys/wait.h: Don't define W* macros etc. if
251         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
252
253 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
254
255         * io/sys/stat.h: Declare fchmod for XPG7.
256         * conform/data/sys/stat.h-data: Fix up for XPG7.
257
258         * termios/termios.h: Define pid_t for XPG7.
259
260         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
261         * conform/data/tgmath.h-data: Likewise.
262
263         * conform/data/time.h-data: Fix POSIX tests.
264
265         * conform/data/wchar.h-data: Fix up XPG7 tests.
266
267         * include/features.h: Fix __USE_ISOC95 handling.
268
269         * conform/data/wordexp.h-data: Fix typo in last change.
270
271         * conform/data/unistd.h-data: Fix up older POSIX tests.
272
273         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
274         * posix/unistd.h: Likewise.
275
276         * posix/unistd.h: Include environments.h also for XPG6 and up.
277         Define intptr_t for XPG6 and up.
278         Fix up for XPG7.
279         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
280
281         * conform/data/sys/types.h-data: Fix up for XPG7.
282
283         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
284         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
285         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
286         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
287         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
288         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
289         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
290         * sysdeps/unix/sysv/bits/stat.h: Likewise.
291         * sysdeps/mach/hurd/bits/stat.h: Likewise.
292
293         * bits/confname.h: Fix typo in last change.
294
295         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
296
297 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
298
299         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
300         and SA_RESETHAND now available in Base.
301         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
302         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
303         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
304         * conform/data/signal.h-data: Update for XPG7.
305
306         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
307
308         * string/strings.h: Don't declare obsolete functions for XPG7.
309         Declare ffs only for XSI.
310         * conform/data/strings.h-data: Update for XPG7.
311
312 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
313
314         [BZ #11125]
315         * libio/stdio.h: Define va_list, off_t, and ssize_t.
316
317         * posix/glob.h: Define size_t.
318
319         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
320
321         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
322
323 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
324
325         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
326         be self-contained.
327
328         * conform/data/stdio.h-data: Expect off_t and ssize_t.
329
330 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
331
332         * libio/stdio.h: Define va_list also for XPG7.
333
334         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
335         * conform/data/ctype.h-data: Likewise.
336         * conform/data/dirent.h-data: Likewise.
337         * conform/data/errno.h-data: Likewise.
338         * conform/data/fcntl.h-data: Likewise.
339         * conform/data/fmtmsg.h-data: Likewise.
340         * conform/data/fnmatch.h-data: Likewise.
341         * conform/data/ftw.h-data: Likewise.
342         * conform/data/glob.h-data: Likewise.
343         * conform/data/grp.h-data: Likewise.
344         * conform/data/iconv.h-data: Likewise.
345         * conform/data/langinfo.h-data: Likewise.
346         * conform/data/libgen.h-data: Likewise.
347         * conform/data/limits.h-data: Likewise.
348         * conform/data/locale.h-data: Likewise.
349         * conform/data/math.h-data: Likewise.
350         * conform/data/monetary.h-data: Likewise.
351         * conform/data/mqueue.h-data: Likewise.
352         * conform/data/ndbm.h-data: Likewise.
353         * conform/data/netdb.h-data: Likewise.
354         * conform/data/pthread.h-data: Likewise.
355         * conform/data/pwd.h-data: Likewise.
356         * conform/data/regex.h-data: Likewise.
357         * conform/data/sched.h-data: Likewise.
358         * conform/data/search.h-data: Likewise.
359         * conform/data/semaphore.h-data: Likewise.
360         * conform/data/setjmp.h-data: Likewise.
361         * conform/data/signal.h-data: Likewise.
362         * conform/data/spawn.h-data: Likewise.
363         * conform/data/stdio.h-data: Likewise.
364         * conform/data/stdlib.h-data: Likewise.
365         * conform/data/string.h-data: Likewise.
366         * conform/data/strings.h-data: Likewise.
367         * conform/data/sys/ipc.h-data: Likewise.
368         * conform/data/sys/msg.h-data: Likewise.
369         * conform/data/sys/resource.h-data: Likewise.
370         * conform/data/sys/sem.h-data: Likewise.
371         * conform/data/sys/shm.h-data: Likewise.
372         * conform/data/sys/socket.h-data: Likewise.
373         * conform/data/sys/stat.h-data: Likewise.
374         * conform/data/sys/time.h-data: Likewise.
375         * conform/data/sys/types.h-data: Likewise.
376         * conform/data/sys/uio.h-data: Likewise.
377         * conform/data/sys/wait.h-data: Likewise.
378         * conform/data/syslog.h-data: Likewise.
379         * conform/data/tar.h-data: Likewise.
380         * conform/data/termios.h-data: Likewise.
381         * conform/data/time.h-data: Likewise.
382         * conform/data/ulimit.h-data: Likewise.
383         * conform/data/unistd.h-data: Likewise.
384         * conform/data/utmpx.h-data: Likewise.
385         * conform/data/wchar.h-data: Likewise.
386         * conform/data/wctype.h-data: Likewise.
387         * conform/data/wordexp.h-data: Likewise.
388
389         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
390         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
391         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
392         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
393         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
394         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
395         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
396         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
397         * sysdeps/unix/sysv/bits/stat.h: Likewise.
398         * sysdeps/mach/hurd/bits/stat.h: Likewise.
399
400         * stdlib/stdlib.h: Define wait-related bits for XPG7.
401         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
402         Declare mkstemp and getsubopt for XPG7.
403         Declare posix_openpt for XPG6 XSI.
404
405         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
406         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
407
408         * string/string.h: Declare strdup for XPG7.
409
410 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
411
412         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
413         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
414
415         * dirent/dirent.h: Really fix feature selection.
416
417         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
418         Fix all users.
419         * locale/C-address.c: Fix all users.
420         * locale/C-collate.c: Likewise.
421         * locale/C-ctype.c: Likewise.
422         * locale/C-identification.c: Likewise.
423         * locale/C-measurement.c: Likewise.
424         * locale/C-messages.c: Likewise.
425         * locale/C-monetary.c: Likewise.
426         * locale/C-name.c: Likewise.
427         * locale/C-numeric.c: Likewise.
428         * locale/C-paper.c: Likewise.
429         * locale/C-telephone.c: Likewise.
430         * locale/C-time.c: Likewise.
431         * locale/findlocale.c: Likewise.
432         * locale/global-locale.c: Likewise.
433         * locale/loadarchive.c: Likewise.
434         * locale/loadlocale.c: Likewise.
435         * locale/nl_langinfo_l.c: Likewise.
436         * locale/setlocale.c: Likewise.
437         * locale/xlocale.c: Likewise.
438         * locale/xlocale.h: Likewise.
439         * stdio-common/vfscanf.c: Likewise.
440         * stdlib/strfmon_l.c: Likewise.
441         * stdlib/strtod_l.c: Likewise.
442         * stdlib/strtol_l.c: Likewise.
443         * string/strcoll_l.c: Likewise.
444         * string/strxfrm_l.c: Likewise.
445         * time/alt_digit.c: Likewise.
446         * time/asctime.c: Likewise.
447         * time/era.c: Likewise.
448         * time/lc-time-cleanup.c: Likewise.
449         * time/strftime_l.c: Likewise.
450         * time/strptime_l.c: Likewise.
451         * wcsmbs/wcsmbsload.c: Likewise.
452         * wcsmbs/wcsmbsload.h: Likewise.
453
454         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
455         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
456         for XPG7.
457         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
458         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
459         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
460         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
461         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
462         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
463
464 2010-01-07  Roland McGrath  <roland@redhat.com>
465
466         * elf/elf.h (PN_XNUM): New macro.
467
468         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
469         literal 2.
470
471 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
472
473         * dirent/dirent.h: Fix typo in feature selection macro use.
474
475 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
476
477         [BZ #11115]
478         * stdlib/tst-makecontext3.c: New file.
479         * stdlib/Makefile (tests): Add new test.
480
481         * stdlib/tst-setcontext.c (check_called): Fix a typo.
482
483 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
484
485         * configure.in: Enable multi-arch by default if the assembler
486         supports gnu_indirect_function symbol type and the architecture
487         supports it.
488
489 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
490
491         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
492         is defined.
493
494 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
495
496         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
497         MACH_PORT_NULL when id != cttyid.
498
499 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
500
501         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
502         __mach_port_deallocate on rootdevid.
503
504 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
505
506         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
507         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
508         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
509         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
510
511 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
512
513         [BZ #10992]
514         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
515         Patch by Eric Blake <ebb9@byu.net>.
516
517 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
518
519         [BZ #11093]
520         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
521         POLLWRBAND also for POSIX 2008.
522         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
523         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
524
525         * include/link.h (struct link_map): Move l_used into its own word.
526         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
527         still zero.
528         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
529         never really used.
530
531 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
532
533         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
534         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
535         check processor feature.
536         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
537         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
538         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
539         (index_SSE2): Likewise.
540
541 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
542
543         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
544         if __ASSEMBLER__ is defined.
545         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
546         (bit_SSE4_2): Likewise.
547         (index_SSSE3): Likewise.
548         (index_SSE4_2): Likewise.
549         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
550         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
551         check processor feature.
552         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
553         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
554         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
555         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
556         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
557         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
558         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
559
560 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
561
562         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
563
564 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
565
566         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
567
568 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
569
570         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
571         O_DSYNC to match 2.6.33+ kernels.
572         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
573         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
574         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
575         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
576         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
577         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
578
579 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
580
581         [BZ #11000]
582         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
583         *herrnop before returning.
584         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
585         Likewise.
586         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
587         TRYAGAIN errors separately.
588         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
589         *name4_r after functions.
590
591 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
592
593         [BZ #11046]
594         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
595         version check.
596
597 2009-11-05  Bruno Haible  <bruno@clisp.org>
598
599         [BZ #11056]
600         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
601         argv argument as non-NULL.
602         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
603
604 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
605
606         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
607         recvmmsg.
608         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
609         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
610
611 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
612
613         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
614         registers.
615         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
616         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
617         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
618
619 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
620
621         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
622         SCHED_RESET_ON_FORK.
623
624 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
625
626         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
627         only used on truly ancient kernel if configuration requires a more
628         recent kernel.
629
630 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
631
632         [BZ #3662]
633         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
634         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
635
636         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
637         pass it on to __ptsname_internal.
638         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
639         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
640         All the code from __ptsname_r but take additional parameter.  Use that
641         instead of pointer to local stat64 variable.
642         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
643         variable.
644         * include/stdlib.h: Declare __ptsname_internal.
645
646         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
647         before the exec.
648         * sysdeps/unix/sysv/linux/grantpt.c: New file.
649         * login/programs/pt_chown.c (main): Don't print message on errors
650         when doing real work.
651
652         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
653         once.
654
655         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
656         irel relocations split out from...
657         (__libc_csu_init): ...here.
658         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
659
660 2009-11-23  Andreas Schwab  <schwab@redhat.com>
661
662         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
663         for timestamps also if __USE_XOPEN2K8.
664         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
665         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
666         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
667         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
668
669 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
670
671         * nscd/connections.c (restart): Try harder to re-exec.
672
673         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
674
675         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
676         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
677         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
678         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
679         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
680         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
681
682         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
683         Define.
684         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
685
686 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
687
688         [BZ #10162]
689         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
690         than software pipeline.  Properly recover from shorter read.
691
692 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
693
694         [BZ #10958]
695         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
696         initialized before using it.
697         (_IO_putwc_unlocked): Likewise.
698
699         [BZ #10918]
700         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
701         in cast to not throw away const-ness of parameters.
702         (__CPU_EQUAL_S): Likewise.
703         (__CPU_OP_S): Likewise.
704
705         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
706         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
707         this gratuitous change and we have to keep compatibility.
708         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
709         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
710         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
711         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
712         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
713         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
714
715 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
716
717         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
718         of parameters of sync_file_range.
719         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
720         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
721         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
722         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
723         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
724         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
725
726 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
727
728         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
729         Implement using sync_file_range2 syscall if __NR_sync_file_range2
730         is defined.
731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
732         file.
733
734 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
735
736         * posix/bug-regex30.c: New file.
737         * posix/Makefile: Add rules to build and run bug-regex30.
738         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
739         character lead bytes when there is a range in a COMPLEX_BRACKET.
740         Reported by Oleg Bylatov.
741
742 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
743
744         [BZ #10969]
745         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
746         * locale/tst-duplocale.c: New file.
747         * locale/Makefile (tests): Add tst-duplocale.
748
749         [BZ #10968]
750         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
751         Patch by Bruno Haible <bruno@clisp.org>.
752         * locale/tst-locname.c: New file.
753         * locale/Makefile (tests): Add tst-locname.
754
755         [BZ #10972]
756         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
757         constants from recent kernels.
758         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
759         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
760         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
761         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
762         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
763         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
764
765 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
766
767         [BZ #10162]
768         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
769         software pipeline.
770
771 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
772
773         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
774         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
775         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
776
777 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
778
779         * posix/bug-regex29.c: Include stdio.h.
780
781 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
782
783         [BZ #10939]
784         * Versions.def: Define GLIBC_2.12 for libc.
785         * manual/errno.texi: Add ERFKILL entry.
786         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
787         for 2.12.
788         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
789         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
790
791         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
792         F_GETOWN_EX definitions according to corrected kernel definitions.
793         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
794         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
795         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
796         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
797         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
798         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
799
800 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
801
802         * version.h: Bump for 2.12 development.
803
804 2009-11-10  Andreas Schwab  <schwab@redhat.com>
805
806         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
807         out of buffer space.
808         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
809         map_v4v6_hostent running out of space.
810
811 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
812
813         * string/bits/string3.h (memset): If the second parameter is constant
814         and zero there is likely no transposition.
815         Patch by Caolan McNamara <caolanm@redhat.com.
816
817 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
818
819         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
820         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
821
822 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
823
824         * malloc/memusagestat.c (main): Fix spelling in an error message.
825
826 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
827
828         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
829         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
830
831 2009-11-03  Andreas Schwab  <schwab@redhat.com>
832
833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
834         readahead.
835
836 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
837
838         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
839         relocate opd entry when resolving prelink conflicts.
840
841 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
842
843         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
844         when -D_FILE_OFFSET_BITS=64.
845
846         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
847         of last two arguments when -D_FILE_OFFSET_BITS=64.
848         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
849         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
850         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
851         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
852         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
853         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
854
855 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
856
857         [BZ #4457]
858         * sysdeps/generic/libgcc_s.h: New file.
859         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
860
861 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
862
863         * malloc/hooks.c (free_check): Restore locking and call _int_free
864         appropriately.
865
866 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
867
868         * version.h (VERSION): Bump for 2.11 release.
869         * include/features.h (__GLIBC_MINOR__): Bump to 11.
870
871         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
872
873         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
874
875         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
876         to avoid warning.
877         * stdlib/tst-strtoll.c (tests): Likewise.
878
879         [BZ #9986]
880         * time/strftime_l.c (__strftime_internal): Allow %OC.
881
882         * misc/mkostemps.c: New file.
883         * misc/mkostemps64.c: New file.
884
885 2009-10-30  Andreas Schwab  <schwab@redhat.com>
886
887         * locale/programs/locale-spec.c: Include <error.h> and
888         <libintl.h>.
889
890         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
891
892 2009-10-28  Roland McGrath  <roland@redhat.com>
893
894         * Makefile (dist-prepare): New target.
895         (tag-for-dist): Target removed.
896         (glibc-%.tar): Pattern rule removed.
897         (%.tar): New pattern rule, does simple use of git archive.
898         (dist-version): Remove variable definition.
899         (dist): Just depend on that.  Add .tar.xz dependency.
900         If dist-version variable not set on command line, depend on
901         dist-prepare, re-invoke with dist-version set via git describe.
902
903         * Makerules (%.xz): New pattern rule.
904
905 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
906
907         * elf/ifuncdep2.c: Include ifunc-sel.h.
908         (global): Delete.
909         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
910         * elf/ifuncmain1.c (global): Delete.
911         * elf/ifuncmain1vis.c: Likewise.
912         * elf/ifuncmain2.c: Likewise.
913         * elf/ifuncmain5.c: Likewise.
914         * elf/ifuncmod3.c: Likewise.
915         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
916         (foo_ifunc): Use ifunc_one.
917         * elf/ifuncmain7.c: Likewise.
918         * elf/ifuncmod1.c: Include ifunc-sel.h.
919         (global): Define protected var.
920         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
921         * elf/ifuncmod5.c: Likewise.
922         * sysdeps/generic/elf/ifunc-sel.h: New file.
923         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
924
925 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
926
927         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
928         (R_PPC_REL16*): Correct comments.
929         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
930         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
931          R_PPC64_REL16_HA): Define.
932         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
933         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
934         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
935         Delete unused "reloc" param.
936         (__process_machine_rela): Handle R_PPC_IRELATIVE.
937         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
938         Delete "reloc" param.
939         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
940         R_PPC_IRELATIVE.
941         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
942         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
943         relocations.
944
945 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
946
947         [BZ #10315]
948         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
949         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
950         UDP_ENCAP_L2TPINUDP.
951
952         [BZ #10349]
953         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
954         parameter, specifying length of prefix.
955         * stdio-common/tempname.c: Likewise.
956         * include/stdio.h: Adjust prototypes.
957         * libio/oldtmpfile.c: Adjust caller.
958         * misc/mkdtemp.c: Likewise.
959         * misc/mkostemp.c: Likewise.
960         * misc/mkostemp64.c: Likewise.
961         * misc/mkstemp.c:  Likewise.
962         * misc/mkstemp64.c: Likewise.
963         * misc/mktemp.c: Likewise.
964         * stdio-common/tempnam.c: Likewise.
965         * stdio-common/tmpfile.c: Likewise.
966         * stdio-common/tmpnam.c: Likewise.
967         * stdio-common/tmpnam_r.c: Likewise.
968         * misc/mkstemps.c: New file.
969         * misc/mkstemps64.c: New file.
970         * stdlib/stdlib.h: Add prototypes.
971         * misc/Makefile (routines): Add mkstemps and mkstemps64.
972         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
973
974 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
975
976         * locale/iso-639.def: Add sml entry.
977
978         [BZ #10391]
979         * resolv/res_send.c (send_dg): Initialize resplen.
980
981         [BZ #10446]
982         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
983         definition to the kernel's.
984         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
985
986 2009-08-18  Anders Johansson  <ajohansson@novell.com>
987
988         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
989         offsets and record sizes in assert()s and response sending.
990         * nscd/grpcache.c: Likewise.
991         * nscd/hstcache.c: Likewise.
992         * nscd/initgrcache.c: Likewise.
993         * nscd/pwdcache.c: Likewise.
994
995 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
996
997         [BZ #10540]
998         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
999         /etc/hosts does not exist set errnop and herrnop appropriately.
1000         Patch by Steve Langasek <vorlon@debian.org>.
1001
1002         [BZ #10553]
1003         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1004         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1005
1006         [BZ #10564]
1007         * login/utmp_file.c (TIMEOUT): Increase to 10.
1008
1009         [BZ #10609]
1010         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1011         for file names in case the syscall is not available.
1012         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1013         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1014         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1015         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1016         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1017         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1018         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1019         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1020         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1021         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1022         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1023         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1024         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1025         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1026         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1027         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1028         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1029
1030         [BZ #10643]
1031         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1032         creation filed, remove the request from the 'requests' list and signal
1033         the caller that the request is finished.
1034
1035         [BZ #10692]
1036         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1037         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1038
1039         [BZ #10713]
1040         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1041         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1042
1043         [BZ #10780]
1044         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1045         overflows the int return type.
1046
1047         [BZ #10717]
1048         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1049         have to compute maxsize_total, we have to update the variables, and
1050         the also_total handling must happen after the repair.
1051
1052         [BZ #10742]
1053         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1054         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1055
1056 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1057
1058         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1059         errno is always set when returning unsuccessfully.
1060
1061 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1062
1063         * malloc/memusage.c (update_data): Fix index wraparound handling
1064         so that buffer_cnt is actually reset.
1065
1066 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1067
1068         [BZ #10784]
1069         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1070         of the directory we look at into the static buffer if there is one
1071         at the start of the loop.
1072
1073         [BZ #10789]
1074         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1075         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1076
1077         [BZ #10840]
1078         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1079         __ASSUME_F_GETOWN_EX.
1080         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1081         if possible.
1082         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1083
1084         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1085         and f_owner_ex.
1086         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1087         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1088         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1089         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1090         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1091         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1092
1093         [BZ #10847]
1094         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1095         getutmpx symbol.
1096
1097         [BZ #10823]
1098         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1099         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1100
1101 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1102
1103         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1104
1105 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1106
1107         [BZ #10817]
1108         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1109         Reported by Ray Chason.
1110
1111 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1112
1113         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1114         strend-sse4.
1115         * sysdeps/x86_64/multiarch/strchr.S: New file.
1116         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1117         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1118
1119 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1120
1121         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1122
1123 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1124
1125         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1126         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1127         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1128         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1129         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1130         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1131         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1132         __ieee751_expl to handle overflow.
1133
1134 2009-10-14  David S. Miller  <davem@davemloft.net>
1135
1136         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1137         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1138
1139 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1140
1141         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1142         !USE_MULTIARCH.
1143
1144 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1145
1146         [BZ #10730]
1147         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1148         Patch in part by Steve Ward <planet36@gmail.com>.
1149
1150         [BZ #10731]
1151         * stdlib/rand_r.c: Fix typo.
1152
1153         * po/cs.po: Update from translation team.
1154
1155 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1156
1157         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1158         returning if RTLD_NOLOAD.
1159
1160 2009-10-06  Roland McGrath  <roland@redhat.com>
1161
1162         * sysdeps/x86_64/multiarch/strstr-c.c
1163         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1164
1165         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1166         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1167
1168         * sysdeps/x86_64/multiarch/init-arch.h
1169         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1170         (HAS_CPU_FEATURE): New macro.
1171         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1172         * sysdeps/x86_64/multiarch/init-arch.c
1173         (__get_cpu_features): #undef it before definition.
1174
1175 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1176
1177         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1178         first_weekday to 1 and first_workday to 2.
1179
1180 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1181
1182         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1183         F_GETOWN_EX.
1184         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1185         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1186         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1187         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1188         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1189         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1190
1191 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1192
1193         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1194         * stdio-common/vfprintf.c: Likewise.
1195
1196 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1197
1198         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1199         (mkdirat): Call __directory_name_split_at instead of
1200         __directory_name_split.
1201
1202 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1203
1204         * locale/programs/locale-spec.c (locale_special): If nothing matches
1205         fail with an appropriate message.
1206
1207 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1208
1209         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1210         and XX.
1211
1212 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1213
1214         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1215         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1216
1217 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1218
1219         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1220
1221 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1222
1223         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1224         character size elements in step data.
1225
1226 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1227
1228         * po/hu.po: Update from translation team.
1229         * po/vi.po: Likewise.
1230
1231 2009-09-19  Roland McGrath  <roland@redhat.com>
1232
1233         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1234
1235 2009-09-15  Roland McGrath  <roland@redhat.com>
1236
1237         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1238         * nptl/sysdeps/pthread/configure: Regenerated.
1239         * nptl/sysdeps/x86_64/configure: Regenerated.
1240         * sysdeps/unix/sysv/linux/configure: Regenerated.
1241         * sysdeps/x86_64/elf/configure: Regenerated.
1242
1243         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1244
1245         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1246         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1247         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1248         * configure: Regenerated.
1249
1250 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * posix/getconf.c (main): Handle -- on command line.
1253
1254 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1255
1256         * configure.in: Support binutils 2.100 and 3.0.
1257
1258 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1259
1260         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1261         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1262         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1263         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1264
1265 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1266
1267         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1268         unnamed_section_defined field.
1269         (collate_read): Test and set unnamed_section_defined.
1270
1271         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1272         _POSIX2_LINE_MAX.
1273
1274 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1275
1276         * configure.in: Support binutils 2.20.
1277
1278 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1279
1280         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1281         __strstr_ia32): Add attribute_hidden.
1282
1283 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1284
1285         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1286         parsing of group entry.
1287
1288 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1289
1290         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1291         external buffer.  Always discard readahead in internal buffer.
1292         * libio/Makefile (tests): Add bug-wsetpos.
1293         * libio/bug-wsetpos.c: New file.
1294
1295 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1296
1297         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1298         Add attribute_hidden.
1299         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1300         __strcasestr_sse2): Likewise.
1301         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1302         (__fma_fma): Make static.
1303         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1304         (__fmaf_fma): Make static.
1305
1306 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1307
1308         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1309         reformulate in-buffer optimisation check to match code in
1310         _IO_new_file_seekoff.
1311
1312 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1313
1314         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1315         to srwi in 32-bit memcpy for power6.
1316
1317 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1318
1319         * include/stdio.h: Declare hidden proto for fflush.
1320         * libio/iofflush.c: Add hidden weak alias for fflush.
1321
1322 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1323
1324         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1325         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1326
1327 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1328
1329         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1330
1331 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1332
1333         [BZ #10560]
1334         * malloc/malloc.c: Add local assert definition to avoid problems with
1335         memory allocation in the real one.
1336
1337 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1340         Removed.
1341         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1342         turn off SSSE3 on Atom.
1343
1344 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1345
1346         * stdlib/tst-strtol.c (tests): More tests.
1347         * stdlib/tst-strtoll.c (tests): Likewise.
1348
1349 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1350
1351         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1352
1353         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1354
1355 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1356
1357         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1358         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1359
1360         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1361
1362         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1363
1364         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1365
1366 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1367
1368         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1369
1370 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1371
1372         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1373         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1374
1375         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1376
1377         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1378         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1379
1380         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1381         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1382
1383         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1384         leftover YMM_SIZE definition.
1385
1386 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1387
1388         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1389         union.
1390         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1391         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1392         Redefine.
1393         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1394
1395         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1396         and SET_FLOAT_WORD definitions.
1397
1398 2009-08-24  Roland McGrath  <roland@redhat.com>
1399
1400         * sysdeps/unix/syscall-template.S: New file.
1401         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1402         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1403         (compile-syscall): Pass mkdep and -g options as normal.
1404         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1405         (common-generated): Don't add them here.
1406
1407 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1408
1409         * math/s_fdim.c: In case of overflows set errno.
1410         * math/s_fdimf.c: Likewise.
1411         * math/s_fdiml.c: Likewise.
1412
1413         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1414         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1415         are using the inline optimizations.
1416
1417         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1418         (__signbitf): Likewise.
1419
1420 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1421
1422         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1423         terminated.
1424         * posix/Makefile (tests): Add bug-regex29.
1425         * posix/bug-regex29.c: New file.
1426
1427         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1428         older POSIX versions are selected.
1429
1430         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1431         as well.
1432         * stdio-common/printf_fphex.c: Likewise.
1433         * stdio-common/tstdiomisc.c: Add more tests.
1434
1435         * locale/locale.h: Include xlocale.h and the thread-local locale
1436         declarations for XPG7, not XPG6.
1437
1438 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1439
1440         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1441         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1444         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1445         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1446
1447 2009-08-20  Roland McGrath  <roland@redhat.com>
1448
1449         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1450         Use l_addr instead of l_map_start (dli_fbase).
1451         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1452         address when there is no proximate symbol.
1453         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1454         Likewise.
1455
1456 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1457
1458         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1459
1460 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1461
1462         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1463         Also handle SIGINT.  In that case only do the cleanup and then
1464         re-raise the signal.
1465         (main): Install handler for SIGINT.
1466
1467 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1468
1469         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1470         clobber list.
1471
1472 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1473
1474         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1475         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1476         tst-auditmod7b.c.
1477         (tests): Add tst-audit6 tst-audit7.
1478         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1479         tst-auditmod7a tst-auditmod7b.
1480         ($(objpfx)tst-audit6): New.
1481         ($(objpfx)tst-audit6.out): Likewise.
1482         ($(objpfx)tst-audit7): Likewise.
1483         ($(objpfx)tst-audit7.out): Likewise.
1484         (tst-audit6-ENV): Likewise.
1485         (tst-audit7-ENV): Likewise.
1486         (CFLAGS-tst-auditmod6b.c): Likewise.
1487         (CFLAGS-tst-auditmod6c.c): Likewise.
1488         (CFLAGS-tst-auditmod7b.c): Likewise.
1489         * elf/tst-audit6.c: New file.
1490         * elf/tst-audit7.c: New file.
1491         * elf/tst-auditmod6a.c: New file.
1492         * elf/tst-auditmod6b.c: New file.
1493         * elf/tst-auditmod6c.c: New file.
1494         * elf/tst-auditmod7a.c: New file.
1495         * elf/tst-auditmod7b.c: New file.
1496         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1497         saving and restoring SSE/AVX registers to ...
1498         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1499
1500 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1501
1502         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1503         only if SHARED is defined.
1504         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1505
1506 2009-08-03  Jim Meyering  <meyering@redhat.com>
1507
1508         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1509
1510 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1511
1512         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1513         section as the other functions for this architecture.
1514         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1515
1516 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1517
1518         * sysdeps/x86_64/strcmp.S: Add support to compile with
1519         USE_SSSE3.  In this case palignr is used.
1520         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1521         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1522         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1523         Add strcmp-ssse3 and strncmp-ssse3.
1524         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1525         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1526
1527         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1528         warning through fake initialization.
1529
1530 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1531
1532         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1533
1534 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1535
1536         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1537         unique symbols.
1538
1539 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1540
1541         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1542         EBX from EAX = 1.  Handle EAX = 11.
1543
1544 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1545
1546         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1547         inside ''.
1548
1549 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1550
1551         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1552         hidden IFUNC functions.
1553         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1554
1555         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1556
1557         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1558         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1559         strcasestr-c.
1560         (CFLAGS-strcspn-c.c): Define.
1561         (CFLAGS-strpbrk-c.c): Define.
1562         (CFLAGS-strspn-c.c): Define.
1563         (CFLAGS-strstr.c): Define.
1564         (CFLAGS-strcasestr.c): Define.
1565         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1566         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1567         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1568         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1569         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1570         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1571         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1572         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1573         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1574         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1575         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1576         -16L instead of 0xfffffffffffffff0L.
1577         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1578
1579 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1580
1581         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1582
1583 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1584
1585         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1586         another rewrite.  Much smaller and faster.
1587         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1588
1589         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1590         ss_flags from the correct location.
1591
1592 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1593
1594         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1595         * sysdeps/i386/i686/cacheinfo.c: New file.
1596         * sysdeps/i386/i686/multiarch/Makefile: New file.
1597         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1598         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1599         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1600         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1601         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1602         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1603         (__cpuid_count): New. Provide the default.
1604         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1605         (__x86_64_preferred_memory_instruction): Define only if
1606         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1607         (intel_check_word): Use __cpuid.
1608         (handle_intel): Likewise.
1609         (handle_amd): Likewise.
1610         (__cache_sysconf): Likewise.
1611         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1612         (__cache_sysconf): Likewise.
1613         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1614         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1615         (get_common_indeces): Use __cpuid.
1616         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1617         if ENABLE_SSSE3_ON_ATOM is not defined.
1618         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1619         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1620         popcnt instead of popcntq.
1621
1622 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1623
1624         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1625
1626 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1627
1628         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1629         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1630         which always causes a compile error.
1631
1632         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1633
1634         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1635         comes from...
1636         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1637         which always causes a compile error.
1638
1639         * debug/Makefile (tests): Add tst-longjmp_chk2.
1640         * debug/tst-longjmp_chk2.c: New file.
1641
1642         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1643         Remove incorrect use of BP_SYM.
1644         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1645         here now since it is more complex than just a simple check.
1646
1647         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1648         we make no more progress.
1649
1650 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1651
1652         * math/s_fma.c: Don't define alias if __fma is a macro.
1653         * math/s_fmaf.c: Likewise.
1654         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1655         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1656         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1657
1658         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1659         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1660         New macro HAS_FMA.
1661         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1662         function.
1663         * include/libc-symbols.h (libm_ifunc): Define.
1664         * sysdeps/x86_64/multiarch/Versions: New file.
1665
1666         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1667
1668 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1669
1670         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1671
1672 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1673
1674         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1675         call that registers used in calling conventions need to be preserved.
1676         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1677         to preserve register content if necessary.
1678         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1679         (_dl_x86_64_restore_sse): New function.
1680         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1681         is allowed to modify xmm/ymm registers.
1682
1683         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1684         application's perspective.
1685         * stdio-common/scanf17.c: Likewise.
1686
1687 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1688
1689         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1690         size to memsz.
1691         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1692         here.
1693         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1694         two steps to catch bugs.
1695
1696 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1697
1698         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1699         determines which files are used in runtime lookups and only checks
1700         those for SSE use.
1701         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1702         testing.
1703         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1704         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1705         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1706         take a while.
1707
1708         * elf/dl-open.c: Move _dl_scope_free to...
1709         * elf/dl-scope.c: ...here.  New file.
1710         * elf/Makefile (dl-routines): Add scope.
1711
1712         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1713         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1714         RES_USE_DNSSEC.
1715         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1716         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1717         all the places we handled RES_USE_EDNS0 only before.
1718         Patch by Adam Tkac <atkac@redhat.com>.
1719
1720 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1721
1722         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1723         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1724         Update size when reallocating.
1725
1726 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1727
1728         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1729         functions used in ld.so modify xmm/ymm registers.
1730         * sysdeps/x86_64/Makefile:  Hook new test up.
1731         * sysdeps/x86_64/rtld-memchr.c: New file.
1732         * sysdeps/x86_64/rtld-memcmp.c: New file.
1733         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1734         * sysdeps/x86_64/rtld-strchr.S: New file.
1735         * sysdeps/x86_64/rtld-strlen.S: New file.
1736         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1737         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1738
1739 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1740
1741         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1742         strncmp-c.
1743         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1744         (exit): Likewise.
1745         (Byte1): Likewise.
1746         (Byte2): Likewise.
1747         (Byte3): Likewise.
1748         (Byte4): Likewise.
1749         (Byte5): Likewise.
1750         (Byte6): Likewise.
1751         (next_8_bytes): Likewise.
1752         (Byte0): Remove commented out codes.
1753         (unaligned_table): Align jump table at 8 bytes.
1754         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1755         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1756         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1757         * sysdeps/x86_64/strncmp.S: New file.
1758
1759 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1760
1761         [BZ #10422]
1762         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1763         kernels, dropped when eventfd2 support was added.
1764         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1765         kernels, dropped when signalfd4 support was added.
1766         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1767         added, name them.
1768
1769         [BZ #10452]
1770         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1771         replies up.
1772
1773         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1774
1775 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1776
1777         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1778         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1779
1780         [BZ #10448]
1781         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1782         callback we must touch the status to avoid using stale value.
1783
1784         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1785         compiled in.
1786
1787 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1788
1789         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1790         /lib/modules/* headers anymore.  We have sane headers in the standard
1791         place now.
1792
1793 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1794
1795         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1796         "etf3enh" and "highgprs" added.
1797         (_dl_s390_platforms): "z10" added.
1798         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1799         Increased for the new entries.
1800         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1801         HWCAP_S390_HIGH_GPRS added.
1802
1803         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1804         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1805         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1806         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1807         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1808
1809 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1810
1811         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1812         avoid additional cpuid instructions.  Most of the information is
1813         stored somewhere.
1814
1815         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1816         cache descriptors.
1817         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1818
1819         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1820         SSSE3 bit for Atoms.
1821         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1822         here anymore.
1823
1824         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1825         structure before copying it to avoid warning.
1826         * posix/tst-rfc3484-2.c (do_test): Likewise.
1827         * posix/tst-rfc3484-3.c (do_test): Likewise.
1828
1829         [BZ #10416]
1830         * include/unistd.h: Make header file suitable for C++ test cases.
1831         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1832
1833         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1834         stack alignment in the exit code.
1835
1836         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1837         potentially be zero.
1838
1839         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1840         unique symbol definition.
1841         Patch by Jakub Jelinek.
1842         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1843         make sure the object with the definition cannot be unloaded.  Adjust
1844         a few types.
1845         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1846         the unique symbol hash table should not be const.
1847
1848 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1849
1850         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1851         unnecesary variables.  Comment fixes.
1852
1853 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1854
1855         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1856         Use NONASCII_CASE information provided by the locale to determine
1857         whether optimized string load function can be used.  Minor cleanups.
1858
1859 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1860
1861         * string/strcasestr.c (STRCASESTR): New macro.
1862         (__strcasestr): Renamed to ..
1863         (STRCASESTR): ...this.
1864         * string/strstr.c (STRSTR): New macro.
1865         (strstr): Renamed to ..
1866         (STRSTR): ...this.
1867         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1868         strstr-c strcasestr-c
1869         (CFLAGS-strstr.c): New.
1870         (CFLAGS-strcasestr.c): Likewise.
1871         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1872         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1873         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1874         * sysdeps/x86_64/multiarch/strstr.c: New file.
1875
1876 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1877
1878         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1879         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1880         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1881         _NL_CTYPE_NONASCII_CASE.
1882         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1883         field.
1884         (ctype_finish): Check whether there are any 8-bit characters outside
1885         the range ASCII has or whether the mapping isn't the same as for
1886         ASCII (±0x20).  Set nonascii_case appropriately.
1887         (ctype_output): Add output handler for nonascii_case.
1888
1889 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1890
1891         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1892         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1893
1894 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1895
1896         [BZ #10360]
1897         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1898         0xffff in the EDNS0 record.
1899
1900 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1901
1902         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1903         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1904         is written before the list head update.
1905         Patch by Andreas Schwab <aschwab@redhat.com>.
1906
1907 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1908             Jakub Jelinek  <jakub@redhat.com>
1909
1910         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1911         corruption thread-safe.
1912
1913 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1914
1915         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1916         overrides atomic_compare_and_exchange_val_rel, define to
1917         atomic_compare_and_exchange_val_rel by default, otherwise default
1918         to catomic_compare_and_exchange_val_acq.
1919         (catomic_compare_and_exchange_bool_rel): If arch overrides
1920         atomic_compare_and_exchange_bool_rel, define to
1921         atomic_compare_and_exchange_bool_rel by default.
1922         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1923         Use catomic_compare_and_exchange_val_rel instead of
1924         catomic_compare_and_exchange_val_acq.
1925
1926 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1927
1928         * sysdeps/generic/ldsodefs.h: Add prototype for
1929         _dl_higher_prime_number.
1930         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1931
1932         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1933         restoring of ymm registers a bit.
1934
1935 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1936
1937         * sysdeps/x86_64/memcmp.S: New file.
1938
1939 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1940
1941         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1942         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1943         pointers in writable memory.
1944
1945 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1946
1947         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1948         * config.make.in: Add config-cflags-avx entry.
1949         * configure.in: Substitute libc_cv_cc_avx.
1950         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1951         * elf/tst-audit4.c: New file.
1952         * elf/tst-audit5.c: New file.
1953         * elf/tst-auditmod4a.c: New file.
1954         * elf/tst-auditmod4b.c: New file.
1955         * elf/tst-auditmod5a.c: New file.
1956         * elf/tst-auditmod5b.c: New file.
1957         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1958         link-defines.sym.
1959         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1960         (La_x86_64_vector): Likewise.
1961         (La_x86_64_regs): Append lr_vector.
1962         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1963         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1964         saving and restoring SSE registers to ...
1965         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1966         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1967         <link-defines.h>.
1968         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1969         La_x86_64_regs.  Allocate extra space and jump to memory at
1970         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1971         (save_and_restore_vector_sse): New.
1972         (save_and_restore_vector_avx): Likewise.
1973         (check_avx): Likewise.
1974         (save_and_restore_vector): Likewise.
1975         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1976         HAVE_AVX_SUPPORT.
1977         * sysdeps/x86_64/link-defines.sym: New file.
1978
1979 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1980
1981         * elf/do-lookup.h: Removed after folding content into...
1982         * elf/dl-lookup.c: ...here.
1983
1984         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1985
1986 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1987
1988         * configure.in: Check for gnu_unique_symbol symbol type.
1989         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1990         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1991         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1992         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1993         change.
1994         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1995         unique symbol table.
1996         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1997         for first namespace.
1998         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1999         unique symbol hash table.
2000         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2001         * elf/tst-unique1.c: New file.
2002         * elf/tst-unique1mod1.c: New file.
2003         * elf/tst-unique1mod2.c: New file.
2004         * elf/tst-unique2.c: New file.
2005         * elf/tst-unique2mod1.c: New file.
2006         * elf/tst-unique2mod2.c: New file.
2007
2008 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2009
2010         * elf/elf.h (STB_GNU_UNIQUE): Define.
2011
2012         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2013         from...
2014         * include/inline-hashtab.h: ...here.
2015         (htab_expand): Adjust for renamed function.  Correct memory handling.
2016
2017 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2018
2019         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2020
2021 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2022
2023         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2024         (PPC_FEATURE_HAS_VSX): Likewise.
2025
2026 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2027
2028         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2029         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2030
2031         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2032         aligned to 16 byte boundaries.
2033         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2034         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2035         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2036
2037 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2038
2039         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2040         * config.make.in (config-cflags-sse4): New variable.
2041         * configure.in: Substitute libc_cv_cc_sse4.
2042         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2043         HAVE_SSE4_SUPPORT.
2044         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2045         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2046         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2047         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2048         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2049         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2050         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2051         * sysdeps/x86_64/multiarch/strspn.S: New file.
2052
2053 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2054
2055         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2056         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2057         (tests): Add tst-audit3 for x86_64.
2058         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2059         ($(objpfx)tst-audit3): Define.
2060         ($(objpfx)tst-audit3.out): Define.
2061         (tst-audit3-ENV): Define.
2062         * elf/tst-audit3.c: New file.
2063         * elf/tst-auditmod3a.c: New file.
2064         * elf/tst-auditmod3b.c: New file.
2065         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2066         and restore xmm6.
2067
2068         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2069         (__stpncpy): Renamed to ...
2070         (STPNCPY): This.
2071         (stpncpy): Create alias only if STPNCPY is not defined.
2072         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2073         defined.
2074         (strncpy): Renamed to ...
2075         (STRNCPY): This.
2076         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2077          stpncpy-c strncpy-c for string.
2078         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2079         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2080         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2081         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2082         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2083         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2084
2085 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2086
2087         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2088         adding to fast bin list.
2089
2090 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2091
2092         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2093         inet_makeaddr.  This worked only with class-based networks.
2094         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2095         Likewise.
2096
2097         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2098         recognize all types.
2099         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2100         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2101         be in host byte order.
2102
2103 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2104
2105         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2106         (MODEL_OFFSET): Define.
2107         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2108         family and model.
2109         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2110         out common code into new function get_common_indeces. Determine
2111         extended family and model for Intel processors.
2112
2113 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2114
2115         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2116         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2117         option.
2118         * resolv/res_send.c (reopen): New function.  Broken out of...
2119         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2120         fallback mechanism.  If single-request fails switch to
2121         single-request-reopen mode which opens a new socket for the second
2122         request.
2123
2124 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2125
2126         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2127         (CHECK_SP): Use it.
2128
2129 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2130
2131         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2132         for saved registers.
2133         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2134         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2135         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2136
2137 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2138
2139         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2140
2141 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2142
2143         * po/id.po: Update from translation team.
2144
2145         * po/bg.po: Update from translation team.
2146
2147 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2148
2149         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2150         defined.
2151         (strncmp): Renamed to STRNCMP.
2152         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2153         strncmp-c for string.
2154         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2155         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2156         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2157         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2158
2159 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2160
2161         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2162         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2163         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2164         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2165         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2166         ifuncmain7static.c.
2167         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2168         ifuncmain7static, and ifuncmain7picstatic.
2169         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2170         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2171         $(objpfx)ifuncmain7pie.out.
2172         (modules-names): Add ifuncmod5 ifuncmod6
2173         (ifuncmod5.so-no-z-defs): Define.
2174         (ifuncmod6.so-no-z-defs): Define.
2175         (CFLAGS-ifuncmain5pic.c): Define.
2176         (CFLAGS-ifuncmain5picstatic.c): Define.
2177         (CFLAGS-ifuncmain5staticpic.c): Define.
2178         (CFLAGS-ifuncdep5pic.c): Define.
2179         (CFLAGS-ifuncmain7pic.c): Define.
2180         (CFLAGS-ifuncmain7picstatic.c): Define.
2181         (CFLAGS-ifuncmain1staticpie.c): Define.
2182         (CFLAGS-ifuncmain5pie.c): Define.
2183         (CFLAGS-ifuncmain6pie.c): Define.
2184         (CFLAGS-ifuncmain7pie.c): Define.
2185         ($(objpfx)ifuncmain1staticpie.out): Define.
2186         ($(objpfx)ifuncmain1staticpie): Define.
2187         ($(objpfx)ifuncmain5pie.out): Define.
2188         ($(objpfx)ifuncmain5pie): Define.
2189         ($(objpfx)ifuncmain6pie.out): Define.
2190         ($(objpfx)ifuncmain6pie): Define.
2191         ($(objpfx)ifuncmain5): Define.
2192         ($(objpfx)ifuncmain5pic): Define.
2193         ($(objpfx)ifuncmain5static): Define.
2194         ($(objpfx)ifuncmain5staticpic): Define.
2195         ($(objpfx)ifuncmain5picstatic): Define.
2196         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2197         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2198         ifuncmain6pie.out.
2199         * elf/b/elf/ifuncmain1staticpie.c: New file.
2200         * elf/ifuncdep5.c: New file.
2201         * elf/ifuncdep5pic.c: New file.
2202         * elf/ifuncmain5.c: New file.
2203         * elf/ifuncmain5pic.c: New file.
2204         * elf/ifuncmain5picstatic.c: New file.
2205         * elf/ifuncmain5pie.c: New file.
2206         * elf/ifuncmain5static.c: New file.
2207         * elf/ifuncmain5staticpic.c: New file.
2208         * elf/ifuncmain6pie.c: New file.
2209         * elf/ifuncmain7.c: New file.
2210         * elf/ifuncmain7pic.c: New file.
2211         * elf/ifuncmain7picstatic.c: New file.
2212         * elf/ifuncmain7pie.c: New file.
2213         * elf/ifuncmain7static.c: New file.
2214         * elf/ifuncmod5.c: New file.
2215         * elf/ifuncmod6.c: New file.
2216
2217 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2218
2219         [BZ #10085]
2220         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2221         (nss_endgrent): New variable.
2222         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2223         fields. Change type of files to bool and adjust all users.
2224         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2225         (internal_endgrent): Call nss_endgrent if necessary.
2226         (add_group): New function.  Broken out of...
2227         (check_and_add_group): ...here.
2228         (getgrent_next_nss): Remove test that any callback is available.
2229         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2230         callback.  If there is no blacklist we can trust the results returned
2231         by the initgroups_dyn callback.  In case there is a callback and we
2232         find a group entry for the group ID but it doesn't contain the
2233         correct member, switch to the slow mode and use getgrent_r.
2234         (internal_getgrent_r): When we see a +: entry, determine whether
2235         there is any callback and which we can use the initgroups_dyn
2236         callback.
2237
2238 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2239
2240         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2241         (_int_free): Likewise.
2242
2243         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2244         AF_IEEE802154.
2245         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2246         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2247         and ARPHRD_IEEE802154_PHY.
2248
2249         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2250         relative to generic Linux version.
2251
2252 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2253
2254         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2255         ($(objpfx)ifuncmain1vispie): Likewise.
2256
2257 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2258
2259         * login/Makefile: Build pt_chown as PIE.
2260
2261 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2262
2263         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2264         a format string.
2265         * elf/sln.c (usage): Likewise.
2266         * malloc/memusage.sh (do_help): Likewise.
2267         * nss/getent.c (more_help): Likewise.
2268         * posix/getconf.c (main): Likewise.
2269         * sunrpc/rpcinfo.c (usage): Likewise.
2270         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2271
2272 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2273
2274         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2275         those needed.
2276         * login/Makefile: If necessary link pt_chown with -lcap.
2277         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2278         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2279
2280 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2281
2282         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2283         comparisons.
2284         * string/test-memchr.c (do_random_tests): Test very large lengths
2285         as well.
2286
2287 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2288
2289         * Makeconfig (+link-pie): Define.
2290         (+prectorS): Define.
2291         (+postctorS): Define.
2292         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2293         * nscd/Makefile ($(objpfx)nscd): Likewise.
2294
2295 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2296
2297         [BZ #10107]
2298         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2299         with cmplwi.
2300         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2301
2302 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2303
2304         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2305         into ...
2306         * sysdeps/unix/grantpt.c: ...here.
2307
2308 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2309
2310         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2311         chmod if it is necessary.
2312
2313         [BZ #10166]
2314         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2315         when the slave device is in devpts or devfs.
2316
2317         [BZ #10183]
2318         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2319
2320         [BZ #10195]
2321         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2322         of nd_opt_home_agent_info_preference to uint16_t.
2323         Patch by Arnaud Ebalard <arno@natisbad.org>.
2324
2325         [BZ #10207]
2326         * nss/getent.c: Add support for printing gshadow data.
2327
2328         [BZ #10203]
2329         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2330         not just the currently used one and those which follow.
2331         Patch by Joe Landers <jlanders@vmware.com>.
2332
2333         [BZ #10196]
2334         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2335         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2336         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2337
2338         [BZ #10217]
2339         * stdlib/abort.c: Define variable __abort_msg.
2340         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2341         * include/stdlib.h: Declare __abort_msg.
2342         * assert/assert-perr.c: Don't free buffer for message immediately.
2343         Store atomically in __abort_msg and free old buffer if necessary.
2344         * assert/assert.c: Likewise.
2345         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2346         store pointer in __abort_msg, and possibly free old string.
2347         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2348
2349         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2350
2351         [BZ #10211]
2352         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2353         handle leap seconds if they are available.
2354         Patch by Akinori Hattori <hattya@gentoo.org>.
2355
2356         * timezone/tzselect.ksh: Update from tzcode2009i.
2357         * timezone/zdump.c: Likewise.
2358         * timezone/zic.c: Likewise.
2359
2360         * timezone/africa: Update from tzdata2009i.
2361         * timezone/antarctica: Likewise.
2362         * timezone/asia: Likewise.
2363         * timezone/australasia: Likewise.
2364         * timezone/backward: Likewise.
2365         * timezone/etcetera: Likewise.
2366         * timezone/europe: Likewise.
2367         * timezone/factory: Likewise.
2368         * timezone/iso3166.tab: Likewise.
2369         * timezone/leapseconds: Likewise.
2370         * timezone/northamerica: Likewise.
2371         * timezone/pacificnew: Likewise.
2372         * timezone/solar87: Likewise.
2373         * timezone/solar88: Likewise.
2374         * timezone/solar89: Likewise.
2375         * timezone/southamerica: Likewise.
2376         * timezone/systemv: Likewise.
2377         * timezone/yearistype: Likewise.
2378         * timezone/zone.tab: Likewise.
2379
2380 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2381
2382         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2383         STT_GNU_IFUNC symbol or in 8 into type_class.
2384
2385         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2386         instead of Elf64_Addr.
2387
2388 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2389
2390         * po/sv.po: Update from translation team.
2391
2392         [BZ #10229]
2393         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2394         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2395         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2396         the C version.
2397
2398 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2399
2400         * Versions.def: Add GLIBC_2.11 for libpthread.
2401
2402 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2403
2404         * resolv/res_send.c (send_dg): Remember we switched to
2405         single-request mode.
2406
2407 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2408
2409         * dlfcn/dlfcn.h: Remove comma at end of enum.
2410         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2411
2412         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2413         parsing mode string.
2414
2415 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2416
2417         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2418
2419         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2420
2421         * sysdeps/x86_64/multiarch/strlen.S: New file.
2422         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2423         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2424         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2425         content.
2426
2427         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2428         is defined.
2429
2430 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2431
2432         * sysdeps/x86_64/strlen.S: Minor optimizations.
2433
2434 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2435
2436         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2437         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2438         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2439         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2440         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2441         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2442         ifuncmain3.c, ifuncmod3.c,.
2443         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2444         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2445         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2446         ifuncmain4picstatic.
2447         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2448         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2449         ifuncmain3, ifuncmain4.
2450         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2451         $(objpfx)ifuncmain1vispie.out.
2452         (modules-names): Add ifuncmod1 ifuncmod3.
2453         (generated): Add ifuncmain1pie ifuncmain1pie.out
2454         ifuncmain1vispie ifuncmain1vispie.out.
2455         Define rules to build and run the tests.
2456         * elf/ifuncdep1.c: New file.
2457         * elf/ifuncdep1pic.c: New file.
2458         * elf/ifuncdep2.c: New file.
2459         * elf/ifuncdep2pic.c: New file.
2460         * elf/ifuncmain1.c: New file.
2461         * elf/ifuncmain1pic.c: New file.
2462         * elf/ifuncmain1picstatic.c: New file.
2463         * elf/ifuncmain1pie.c: New file.
2464         * elf/ifuncmain1static.c: New file.
2465         * elf/ifuncmain1staticpic.c: New file.
2466         * elf/ifuncmain1vis.c: New file..
2467         * elf/ifuncmain1vispic.c: New file..
2468         * elf/ifuncmain1vispie.c: New file.
2469         * elf/ifuncmain2.c: New file.
2470         * elf/ifuncmain2pic.c: New file.
2471         * elf/ifuncmain2picstatic.c: New file.
2472         * elf/ifuncmain2static.c: New file.
2473         * elf/ifuncmain3.c: New file.
2474         * elf/ifuncmain4.c: New file.
2475         * elf/ifuncmain4picstatic.c: New file.
2476         * elf/ifuncmain4static.c: New file.
2477         * elf/ifuncmod1.c: New file.
2478         * elf/ifuncmod3.c: New file.
2479
2480 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2481
2482         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2483
2484 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2485
2486         [BZ #10221]
2487         * posix/Makefile (routines): Add execvpe.
2488         * posix/Versions: Export execvpe for GLIBC_2.11.
2489         * posix/execvp.c: Now only a wrapper.  Move code to...
2490         * posix/execvpe.c: ...here.  New file.
2491         * posix/unistd.h: Declare execvpe.
2492
2493 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2494
2495         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2496         for STT_GNU_IFUNC handling for efficiency.
2497         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2498
2499         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2500         _exit.
2501         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2502
2503 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2504
2505         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2506         for !SHARED.
2507
2508 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2509
2510         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2511         is not defined.
2512         (__rela_iplt_start): New declaration.
2513         (__rela_iplt_end): Likewise.
2514         (__rel_iplt_start): Likewise.
2515         (__rel_iplt_end): Likewise.
2516         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2517         * elf/elf.h (R_386_IRELATIVE): New macro.
2518         (R_X86_64_IRELATIVE): New macro.
2519         (R_386_NUM): Updated.
2520         (R_X86_64_NUM): Likewise.
2521         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2522         (libc_ifunc_hidden_def): New macro.
2523         * sysdeps/generic/dl-irel.h: New file.
2524         * sysdeps/i386/dl-irel.h: New file.
2525         * sysdeps/x86_64/dl-irel.h: New file.
2526         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2527         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2528         Handle R_386_IRELATIVE.
2529         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2530         (elf_machine_lazy_rela): Likewise.
2531         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2532         R_X86_64_IRELATIVE.
2533         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2534
2535 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2536
2537         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2538         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2539         are no differences.  If an architecture has bits in CPUID index 1
2540         meaning different things the values for the COMMON_CPUID_INDEX_1
2541         index must not be set.
2542         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2543         (HAS_POPCOUNT): ...this.  New macro.
2544         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2545         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2546         to set the value for Intel and AMD architectures.
2547         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2548         INTEL_CPUID_INDEX_1.
2549         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2550         change.
2551
2552 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2553
2554         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2555         and $build.
2556
2557 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2558
2559         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2560         (__expm1l): Set errno to ERANGE on overflow.
2561         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2562         (__tanl): Set errno to EDOM for Â±Inf.
2563         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2564         (__cosl): Set errno to EDOM for Â±Inf.
2565         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2566         (__sinl): Set errno to EDOM for Â±Inf.
2567
2568         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2569         defined, use it.
2570         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2571         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2572         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2573
2574 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2575
2576         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2577         code accessing it.
2578         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2579
2580 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2581
2582         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2583         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2584         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2585         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2586
2587         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2588         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2589         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2590         defined.
2591         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2592         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2593
2594 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2595
2596         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2597         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2598         is, either do nothing at all if __ASSUME_ACCEPT4, or
2599         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2600         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2601         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2602         define.
2603         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2604         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2605         internal_accept4 in socket directory.
2606
2607 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2608
2609         * sysdeps/ia64/configure.in: New file.
2610
2611 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2612
2613         [BZ #10162]
2614         * sysdeps/ia64/memchr.S: Use speculative load.
2615
2616         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2617         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2618         use it.
2619
2620         * sysdeps/i386/__longjmp.S: Add .text.
2621         * sysdeps/x86_64/__longjmp.S: Likewise.
2622
2623 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2624
2625         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2626         __ASSUME_ACCEPT4 for IA-64.
2627
2628 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2629
2630         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2631
2632         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2633         (SOCKOP_accept4): Define.
2634
2635 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2636
2637         Sun approved the change of the license.
2638         * sunrpc/auth_des.c: Replace license text.
2639         * sunrpc/auth_none.c: Likewise.
2640         * sunrpc/auth_unix.c: Likewise.
2641         * sunrpc/authdes_prot.c: Likewise.
2642         * sunrpc/authuxprot.c: Likewise.
2643         * sunrpc/bindrsvprt.c: Likewise.
2644         * sunrpc/clnt_gen.c: Likewise.
2645         * sunrpc/clnt_perr.c: Likewise.
2646         * sunrpc/clnt_raw.c: Likewise.
2647         * sunrpc/clnt_simp.c: Likewise.
2648         * sunrpc/clnt_tcp.c: Likewise.
2649         * sunrpc/clnt_udp.c: Likewise.
2650         * sunrpc/clnt_unix.c: Likewise.
2651         * sunrpc/des_crypt.c: Likewise.
2652         * sunrpc/des_soft.c: Likewise.
2653         * sunrpc/get_myaddr.c: Likewise.
2654         * sunrpc/getrpcport.c: Likewise.
2655         * sunrpc/key_call.c: Likewise.
2656         * sunrpc/key_prot.c: Likewise.
2657         * sunrpc/openchild.c: Likewise.
2658         * sunrpc/pm_getmaps.c: Likewise.
2659         * sunrpc/pm_getport.c: Likewise.
2660         * sunrpc/pmap_clnt.c: Likewise.
2661         * sunrpc/pmap_prot.c: Likewise.
2662         * sunrpc/pmap_prot2.c: Likewise.
2663         * sunrpc/pmap_rmt.c: Likewise.
2664         * sunrpc/rpc/auth.h: Likewise.
2665         * sunrpc/rpc/auth_unix.h: Likewise.
2666         * sunrpc/rpc/clnt.h: Likewise.
2667         * sunrpc/rpc/des_crypt.h: Likewise.
2668         * sunrpc/rpc/key_prot.h: Likewise.
2669         * sunrpc/rpc/netdb.h: Likewise.
2670         * sunrpc/rpc/pmap_clnt.h: Likewise.
2671         * sunrpc/rpc/pmap_prot.h: Likewise.
2672         * sunrpc/rpc/pmap_rmt.h: Likewise.
2673         * sunrpc/rpc/rpc.h: Likewise.
2674         * sunrpc/rpc/rpc_des.h: Likewise.
2675         * sunrpc/rpc/rpc_msg.h: Likewise.
2676         * sunrpc/rpc/svc.h: Likewise.
2677         * sunrpc/rpc/svc_auth.h: Likewise.
2678         * sunrpc/rpc/types.h: Likewise.
2679         * sunrpc/rpc/xdr.h: Likewise.
2680         * sunrpc/rpc_clntout.c: Likewise.
2681         * sunrpc/rpc_cmsg.c: Likewise.
2682         * sunrpc/rpc_common.c: Likewise.
2683         * sunrpc/rpc_cout.c: Likewise.
2684         * sunrpc/rpc_dtable.c: Likewise.
2685         * sunrpc/rpc_hout.c: Likewise.
2686         * sunrpc/rpc_main.c: Likewise.
2687         * sunrpc/rpc_parse.c: Likewise.
2688         * sunrpc/rpc_parse.h: Likewise.
2689         * sunrpc/rpc_prot.c: Likewise.
2690         * sunrpc/rpc_sample.c: Likewise.
2691         * sunrpc/rpc_scan.c: Likewise.
2692         * sunrpc/rpc_scan.h: Likewise.
2693         * sunrpc/rpc_svcout.c: Likewise.
2694         * sunrpc/rpc_tblout.c: Likewise.
2695         * sunrpc/rpc_util.c: Likewise.
2696         * sunrpc/rpc_util.h: Likewise.
2697         * sunrpc/rpcinfo.c: Likewise.
2698         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2699         * sunrpc/rpcsvc/key_prot.x: Likewise.
2700         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2701         * sunrpc/rpcsvc/mount.x: Likewise.
2702         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2703         * sunrpc/rpcsvc/rex.x: Likewise.
2704         * sunrpc/rpcsvc/rstat.x: Likewise.
2705         * sunrpc/rpcsvc/rusers.x: Likewise.
2706         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2707         * sunrpc/rpcsvc/spray.x: Likewise.
2708         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2709         * sunrpc/rtime.c: Likewise.
2710         * sunrpc/svc.c: Likewise.
2711         * sunrpc/svc_auth.c: Likewise.
2712         * sunrpc/svc_authux.c: Likewise.
2713         * sunrpc/svc_raw.c: Likewise.
2714         * sunrpc/svc_run.c: Likewise.
2715         * sunrpc/svc_simple.c: Likewise.
2716         * sunrpc/svc_tcp.c: Likewise.
2717         * sunrpc/svc_udp.c: Likewise.
2718         * sunrpc/svc_unix.c: Likewise.
2719         * sunrpc/svcauth_des.c: Likewise.
2720         * sunrpc/xcrypt.c: Likewise.
2721         * sunrpc/xdr.c: Likewise.
2722         * sunrpc/xdr_array.c: Likewise.
2723         * sunrpc/xdr_float.c: Likewise.
2724         * sunrpc/xdr_mem.c: Likewise.
2725         * sunrpc/xdr_rec.c: Likewise.
2726         * sunrpc/xdr_ref.c: Likewise.
2727         * sunrpc/xdr_sizeof.c: Likewise.
2728         * sunrpc/xdr_stdio.c: Likewise.
2729
2730         * po/da.po: Update from translation team.
2731
2732 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2733
2734         * sysdeps/sh/____longjmp_chk.S: New file.
2735         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2736         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2737
2738 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2739             Ulrich Drepper  <drepper@redhat.com>
2740
2741         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2742         (__nscd_cache_search): Assume each entry in the
2743         hash chain needs one hashentry and half of datahead.  Use
2744         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2745
2746 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2747
2748         * posix/sys/wait.h: Fix typos.  Pretty printing.
2749         * stdlib/stdlib.h: Likewise.  Correct comments.
2750
2751         [BZ #10159]
2752         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2753
2754         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2755         patch.
2756
2757 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2758
2759         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2760         Use it if we absolutely cannot reach any more correct list elements
2761         because that many do not fit into the currently mapped database.
2762
2763 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2764
2765         * nscd/nscd_helper.c: Include stddef.h.
2766         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2767         in a couple of places.  Return NULL if trail is not less than
2768         datasize, don't consider dataheads with length smaller than
2769         offsetof (struct datahead, data) + datalen.
2770         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2771         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2772         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2773         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2774         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2775         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2776         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2777
2778         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2779         Rename ...
2780         (fallocate64): ... to this.
2781         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2782         Rename ...
2783         (fallocate64): ... to this.
2784         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2785         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2786         fallocate64@@GLIBC_2.10.
2787         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2788         fallocate64@@GLIBC_2.11.
2789         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2791         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2792         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2793
2794         * nscd/selinux.c (nscd_avc_destroy): Removed.
2795         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2796         * nscd/nscd.c (termination_handler): Don't call
2797         nscd_avc_destroy.
2798
2799 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2800
2801         * include/atomic.h: Formatting.
2802         (catomic_compare_and_exchange_val_acq): Don't define if already
2803         defined by bits/atomic.h.
2804
2805 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2806
2807         * math/libm-test.inc (expm1_test): Add test for range error.
2808
2809         * Versions.def: Add GLIBC_2.11 for libc.
2810         * debug/Makefile (routines): Add longjmp_chk.
2811         Add rules to build and run tst-longjmp_chk.
2812         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2813         * debug/longjmp_chk.c: New file.
2814         * debug/tst-longjmp_chk.c: New file.
2815         * include/bits/setjmp2.: New file.
2816         * include/stdio.h: Mark __fortify_fail as internal_function.
2817         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2818         * setjmp/bits/setjmp2.h: New file.
2819         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2820         of the aliases.
2821         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2822         defined.
2823         * sysdeps/i386/____longjmp_chk.S: New file.
2824         * sysdeps/x86_64/____longjmp_chk.S: New file.
2825         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2826         * sysdeps/x86_64/__longjmp.S: Likewise.
2827
2828         * version.h: Bump for 2.11 development.
2829
2830         * elf/check-execstack.c: New file.
2831         * elf/Makefile: Add rules to build and run check-execstack.
2832
2833 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2834
2835         * version.h (VERSION): Bump to 2.10.1.
2836
2837         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2838         compatibility functions.
2839         * nss/getXXent_r.c: Likewise.
2840         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2841         * gshadow/getsgnam_r.c: Likewise.
2842         * gshadow/Version: Remove duplicate entries.
2843
2844         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2845         for recent processor.
2846         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2847         Likewise.
2848
2849 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2850
2851         * version.h (VERSION): Bump for 2.10 release.
2852         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2853
2854         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2855         same place we add ASFLAGS-config.
2856
2857 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2858
2859         [BZ #10128]
2860         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2861         or FORMERR and the other NOERROR, don't raise an error.
2862
2863 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2864
2865         [BZ #10118]
2866         * Makeconfig (+asflags): New variable based upon ASFLAG or
2867         asflags-cpu.
2868         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2869         * config.make.in (asflags-cpu): Add variable based upon
2870         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2871         the assembler.
2872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2873         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2874         recognizes power6 instruction set due to passing -mcpu=power6 from
2875         --with-cpu=power6 when compiling .S files.
2876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2877         Likewise.
2878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2879         Likewise.
2880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2881         Likewise.
2882
2883 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2884
2885         * string/stratcliff.c (do_test): Test for zero length
2886         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2887         at the end of the page.
2888
2889 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2890
2891         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2892
2893         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2894         count is zero.
2895
2896         * po/da.po: Update from translation team.
2897
2898 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2899
2900         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2901         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2902
2903 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2904
2905         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2906         and READ_IMPLIES_EXEC.
2907
2908 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2909
2910         * po/da.po: Update from translation team.
2911
2912 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2913
2914         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2915         comment change.
2916
2917 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2918
2919         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2920         to MAP_ANON in PROT_NONE mmap64 call.
2921         (open_archive): Likewise.
2922         (file_data_available_p): Use mmap64 instead of mremap.
2923         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2924         Attempt to reserve address space after mmap64 region.
2925
2926 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2927
2928         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2929         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2930         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2931
2932         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2933         atanh should set ERANGE.
2934
2935         [BZ #10087]
2936         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2937         result of lookup to make call to implement STT_GNU_IFUNC.
2938         (_dl_profile_fixup): Likewise.
2939         Patch by H.J. Lu <hjl.tools@gmail.com>.
2940
2941         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2942         warning.
2943
2944         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2945         from definition.
2946
2947         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2948         label if it is not used.
2949
2950         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2951         of gmon_hist_hdr and gmon_hdr structures and use them.
2952         * elf/sprof.c: Likewise.
2953
2954         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2955         warning.
2956
2957         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2958
2959         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2960         to avoid cast.
2961
2962         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2963         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2964         to avoid warnings.
2965         (iruserok_af): Use ss_family instead of casts.
2966
2967         * gmon/gmon.c (write_hist): Define real-type variant of
2968         gmon_hist_hdr structure and use it.
2969         (write_gmon): Likewise for gmon_hdr.
2970
2971         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2972         function if we are not going to define it.
2973         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2974
2975         * inet/inet6_option.c (option_alloc): Add temporary variable to
2976         avoid warning.
2977
2978         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2979         name of VTable element.
2980         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2981         * libio/iovsscanf.c: Likewise.
2982         * libio/vasprintf.c: Likewise.
2983         * libio/vsnprintf.c: Likewise.
2984         * stdio-common/isoc99_vsscanf.c: Likewise.
2985         * stdlib/strfmon_l.c: Likewise.
2986         * debug/vasprintf_chk.c: Likewise.
2987         * debug/vsnprintf_chk.c: Likewise.
2988         * debug/vsprintf_chk.c: Likewise.
2989
2990         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2991         function pointers.
2992
2993 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2994
2995         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2996
2997 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2998
2999         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3000
3001         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3002         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3003         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3004         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3005         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3006         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3007         * math/libm-test.inc: Add tests for errno after tan calls with
3008         Â±Inf.
3009
3010         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3011         errno value vor pow(+-0,neg).
3012         * math/libm-test.inc (pow_test): Add tests for errno value for
3013         pole errors.
3014
3015         * math/w_fmod.c: Also handle x=±Inf as error.
3016         * math/w_fmodf.c: Likewise.
3017         * math/w_fmodl.c: Likewise.
3018         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3019         x=±Inf or y=0.
3020
3021         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3022         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3023         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3024         * sysdeps/i386/fpu/s_sin.S: Likewise.
3025         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3026         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3027         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3028         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3029         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3030         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3031         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3032         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3033         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3034         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3035         Â±Inf.
3036
3037         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3038         ERANGE for underflows.
3039         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3040
3041         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3042         the 2001 revision.
3043
3044         * libio/tst-widetext.input: Remove surrogates.
3045
3046         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3047
3048         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3049         for lgamma should set errno to ERANGE, not EDOM.
3050         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3051
3052 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3053
3054         [BZ #10093]
3055         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3056         UTF-16 surrogates.
3057
3058         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3059         space when temporarily mapping the whole content of the old file.
3060
3061         [BZ #10100]
3062         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3063         not zero.
3064
3065 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3066
3067         * iconvdata/sjis.c (BODY): Don't advance inptr before
3068         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3069         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3070         two byte chars.
3071
3072 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3073
3074         * locale/locarchive.h (struct locarhandle): Rename len field to
3075         mmaped and add new reserved field.
3076         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3077         (create_archive): Reserve address space and then map file into it.
3078         (open_archive): Likewise.
3079         (file_data_available_p): New function.
3080         (compare_from_file): New function.
3081         (close_archive): Adjust to member name changes.
3082         (add_locale): Before comparing locale data, check it is mapped.
3083         Otherwise fall back to reading from the file.
3084
3085 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3086
3087         * stdio-common/psiginfo.c: Include <errno.h>.
3088
3089 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3090
3091         [BZ #9920]
3092         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3093         to get consistency between 32 and 64 bit architectures.
3094
3095         [BZ #10052]
3096         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3097         directory for dummy syscall rules.
3098         Patch by Chris Steinbroner <hesh@pobox.com>.
3099
3100 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3101
3102         [BZ #10092]
3103         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3104         MNT_EXPIRE.
3105
3106 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3107
3108         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3109         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3110
3111 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3112
3113         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3114         data from vector to temporary buffer and call PWRITEV after it
3115         instead of vice versa.
3116         * sysdeps/posix/preadv.c: Fix up comment.
3117         * misc/preadv.c: Likewise.
3118         * misc/preadv64.c: Likewise.
3119         * misc/pwritev.c: Likewise.
3120         * misc/pwritev64.c: Likewise.
3121         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3122
3123 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3124
3125         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3126
3127         * shadow/Makefile (tests): Add tst-shadow.
3128         * shadow/tst-shadow.c: New file.
3129
3130         [BZ #9955]
3131         * gshadow/Makefile: New file.
3132         * gshadow/Versions: New file.
3133         * gshadow/fgetsgent.c: New file.
3134         * gshadow/fgetsgent_r.c: New file.
3135         * gshadow/getsgent.c: New file.
3136         * gshadow/getsgent_r.c: New file.
3137         * gshadow/getsgnam.c: New file.
3138         * gshadow/getsgnam_r.c: New file.
3139         * gshadow/gshadow.h: New file.
3140         * gshadow/putsgent.c: New file.
3141         * gshadow/sgetsgent.c: New file.
3142         * gshadow/sgetsgent_r.c: New file.
3143         * gshadow/tst-gshadow.c: New file.
3144         * include/gshadow.h: New file.
3145         * Makeconfig (all-subdirs): Add gshadow.
3146         * Makefile (installed-headers): Add gshadow/gshadow.h.
3147         * nss/Makefile (databases): Add sgrp.
3148         * nss/Versions: Add gshadow functions as private exports.
3149         * nss/nsswitch.conf: Add gshadow entry.
3150         * nss/sgrp-lookup.c: New file.
3151         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3152         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3153         * nss/nss_files/files-sgrp.c: New file.
3154         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3155         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3156
3157 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3158
3159         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3160         * stdio-common/reg-modifier.c: Likewise.
3161
3162 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3163
3164         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3165         is no FPU.
3166
3167 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3168
3169         [BZ #10086]
3170         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3171         headers up to 2.6.30.
3172
3173         * po/ca.po: Update from translation team.
3174
3175 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3176
3177         [BZ #10069]
3178         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3179         an object that uses static TLS if the TLS modid is higher than the
3180         reserve we always allocate.  At least for multi-threaded code.
3181
3182 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3183
3184         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3185         Numerically stable check for valid width.
3186
3187         * locale/programs/locarchive.c (open_archive): Map the entire file
3188         and not just the administrative data.
3189         (add_locale): When we find a hash sum match compare the content
3190         to be sure.
3191
3192         * malloc/malloc.c (malloc_info): Output address space information.
3193
3194 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3195
3196         * malloc/malloc.c (malloc_info): Also output system memory information.
3197
3198         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3199         architectures have preadv/pwritev in 2.6.30.
3200
3201         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3202         * sysdeps/posix/readv.c: Likewise.
3203         Reported by Markus Armbruster <armbru@redhat.com>.
3204
3205         * malloc/hooks.c (top_check): Force hook value into register.
3206
3207 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3208
3209         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3210         calls to _dl_relocate_object.
3211
3212 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3213
3214         [BZ #9957]
3215         * malloc/malloc.c (force_reg): Define.
3216         (sYSMALLOc): Load hook variable into variable
3217         before test and force into register.
3218         (sYSTRIm): Likewise.
3219         (public_mALLOc): Force hook value into register.
3220         (public_fREe): Likewise.
3221         (public_rEALLOc): Likewise.
3222         (public_mEMALIGn): Likewise.
3223         (public_vALLOc): Likewise.
3224         (public_pVALLOc): Likewise.
3225         (public_cALLOc): Likewise.
3226         (__posix_memalign): Likewise.
3227         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3228         before test and force into register.
3229         * malloc/hooks.c (top_check): Likewise.
3230         (public_sET_STATe): Pretty printing.
3231
3232         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3233         in case we only receive one reply in single-request mode.
3234
3235 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3236
3237         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3238         are dlopened in statically linked program even for __LM_ID_CALLER.
3239
3240 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3241
3242         * resolv/res_send.c (send_dg): Don't switch into single-request
3243         mode if we already are in it.
3244
3245 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3246
3247         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3248         are always at least 4 bytes in the returned line.
3249
3250 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3251
3252         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3253         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3254         instead of 8K.  Stop searching in /proc/stat after hitting first
3255         line not starting with cpu.
3256         (next_line): Truncate too long
3257         lines at buffer size * 3/4 instead of pretending there were line
3258         breaks inside of large lines.
3259
3260 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3261
3262         * sysdeps/x86_64/mp_clz_tab.c: New file.
3263
3264 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3265             Ulrich Drepper  <drepper@redhat.com>
3266
3267         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3268         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3269         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3270
3271 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3272
3273         * sysdeps/sh/libc-tls.c: New file.
3274
3275         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3276
3277 2009-04-14  Roland McGrath  <roland@redhat.com>
3278
3279         * elf/elf.h: Add various missing ARM constants, to match binutils.
3280
3281 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3282
3283         Optimizations from GMP.
3284         * sysdeps/x86_64/add_n.S: New file.
3285         * sysdeps/x86_64/addmul_1.S: New file.
3286         * sysdeps/x86_64/lshift.S: New file.
3287         * sysdeps/x86_64/mul_1.S: New file.
3288         * sysdeps/x86_64/rshift.S: New file.
3289         * sysdeps/x86_64/sub_n.S: New file.
3290         * sysdeps/x86_64/submul_1.S: New file.
3291
3292 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3293
3294         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3295         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3296         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3297         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3298
3299 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3300
3301         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3302         preadv/pwritev.
3303
3304 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3305
3306         * sysdeps/x86-64/strrchr.S: New file.
3307
3308 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3309
3310         * stdio-common/printf.h (struct printf_info): Add user element.
3311         New types printf_arginfo_size_function, printf_va_arg_function.
3312         Declare register_printf_specifier, register_printf_modifier,
3313         register_printf_type.
3314         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3315         (union printf_arg): Add pa_user element.
3316         Adjust __printf_arginfo_table type.
3317         Add __printf_va_arg_table, __printf_modifier_table,
3318         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3319         declarations.
3320         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3321         If registered arginfo call failed try normal specifier.
3322         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3323         function.
3324         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3325         * stdio-common/Versions: Export register_printf_modifier,
3326         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3327         * stdio-common/reg-modifier.c: New file.
3328         * stdio-common/reg-type.c: New file.
3329         * stdio-common/reg-printf.c (__register_printf_specifier): New
3330         function.  Mostly the old __register_printf_function function but
3331         uses locking and type of third parameter changed.
3332         (__register_printf_function): Implement using
3333         __register_printf_specifier.
3334         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3335         calls to arginfo functions.  Allocate enough memory for user-defined
3336         types.  Call new va_arg functions to get user-defined types.
3337         Try installed handlers even for existing format specifiers first.
3338
3339 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3340
3341         * sysdeps/x86_64/rawmemchr.S: New file.
3342
3343         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3344         Simplified code and possible copy problem fixed.
3345
3346         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3347         function if it is not defined.  Add some necessary casts.
3348         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3349
3350         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3351         have preadv/pwritev in 2.6.30.
3352
3353 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3354
3355         * malloc/malloc.c (malloc_info): New function.
3356         * malloc/malloc.h: Declare it.
3357         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3358
3359         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3360         to avoid PLT slot.
3361
3362         * malloc/malloc.c (_int_realloc): Add parameter with old block
3363         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3364         Adjust all callers.
3365         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3366
3367 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3368
3369         * sysdeps/x86_64/strchrnul.S: New file.
3370
3371         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3372         depending libcrypt on -lfreebl3.
3373
3374         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3375         preadv/pwritev in 2.6.30.
3376
3377         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3378         instead of __strcasecmp.
3379
3380         * string/stratcliff.c (do_test): Add memchr tests..
3381         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3382         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3383         first read quad word.
3384
3385 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3386
3387         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3388         * string/tst-svc.input: Add new test case.
3389         * string/tst-svc.expect: Adjust.
3390         * string/Makefile: Don't ignore tst-svc error.
3391
3392         * sysdeps/x86_64/memchr.S: New file.
3393
3394         * resolv/resolv.h (RES_SNGLKUP): Define.
3395         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3396         * resolv/res_send.c (send_dg): If we sent two requests at once and
3397         only get one reply before timeout switch to mode where we send the
3398         second request only after the first answer has been received.
3399
3400 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3401
3402         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3403         * sysdeps/x86_64/strchr.S: Likewise.
3404
3405 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3406
3407         * configure.in: We need to test for the compiler earlier.
3408
3409         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3410         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3411         GLIBC_2.10.
3412         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3413         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3414         and pwritev.
3415         * misc/preadv.c: New file.
3416         * misc/preadv64.c: New file.
3417         * misc/pwritev.c: New file.
3418         * misc/pwritev64.c: New file.
3419         * sysdeps/posx/preadv.c: New file.
3420         * sysdeps/posx/preadv64.c: New file.
3421         * sysdeps/posx/pwritev.c: New file.
3422         * sysdeps/posx/pwritev64.c: New file.
3423         * sysdeps/unix/sysv/linux/preadv.c: New file.
3424         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3425         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3426         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3427         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3428         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3429
3430         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3431         compatibility code.
3432         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3433
3434         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3435         __ASSUME_COMPLETE_READV_WRITEV.
3436         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3437         with modern kernels.
3438         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3439
3440         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3441         to free a possible malloced buffer in case of cancellation.
3442         * sysdeps/posix/writev.c: Likewise for write.
3443
3444 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3445
3446         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3447
3448         * configure.in: Recognize --enable-nss-crypt.
3449         * config.make.in: Add nss-crypt entry.
3450         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3451         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3452         and include path for NSS directory to compiler for md5-crypt,
3453         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3454         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3455         function implementation, use NSS.  Introduce wrappers around the
3456         hash function calls.  Little code size optimization.
3457         * crypt/sha256-crypt.c: Likewise.
3458         * crypt/sha512-crypt.c: Likewise.
3459         * scripts/check-local-headers.sh: Ignore nss3 directory.
3460
3461         * configure.in: Rename pic_default to libc_cv_pic_default.
3462         * config.make.in: Likewise.
3463
3464 2009-04-01  Roland McGrath  <roland@redhat.com>
3465
3466         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3467         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3468         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3469         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3470         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3471         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3472         (R_SPARC_NUM): Update.
3473         From Dave Miller <davem@davemloft.net>.
3474
3475 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3476
3477         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3478
3479 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3482         those which are used.
3483         * elf/dl-addr.c: Likewise.
3484         * elf/dl-caller.c: Likewise.
3485         * elf/dl-fini.c: Likewise.
3486         * elf/dl-iteratephdr.c: Likewise.
3487         * elf/dl-libc.c: Likewise.
3488         * elf/dl-load.c: Likewise.
3489         * elf/dl-support.c: Likewise.
3490         * elf/dl-sym.c: Likewise.
3491         * elf/rtld.c: Likewise.
3492         * sysdeps/generic/ldsodefs.h: Likewise.
3493
3494         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3495         * elf/dl-minimal.c: Likewise.
3496         * elf/dl-misc.c: Likewise.
3497         * elf/rtld.c: Likewise.
3498         * sysdeps/generic/ldsodefs.h: Likewise.
3499
3500 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3501
3502         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3503         Avoid reuse of complex expression.
3504
3505         * po/fr.po: Update from translation team.
3506
3507 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3508
3509         * include/dirent.h: Yet more changes to match sort function type
3510         change.
3511         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3512         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3513         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3514
3515 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3516
3517         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3518
3519 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3520
3521         * nscd/connections.c (restart): Try to preserve the process name
3522         by reading the /proc/self/exe symlink and using the return name.
3523         Patch by Jeff Bastian <jbastian@redhat.com>.
3524
3525 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3526
3527         [BZ #9733]
3528         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3529         if we are not loading a new audit library.
3530         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3531         Only use profiling trampoline for auditing if we are not relocating
3532         an audit library.
3533         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3534         * elf/rtld.c: Likewise.
3535         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3536
3537         * elf/rtld.c (dl_main): Extend help message for --audit option.
3538
3539         [BZ #9759]
3540         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3541         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3542         * dirent/alphasort.c: Adjust implementation to type change.
3543         * dirent/alphasort64.c: Likewise.
3544         * dirent/scandir.c: Likewise.
3545         * dirent/versionsort.c: Likewise.
3546         * dirent/versionsort64.c: Likewise.
3547         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3548         declaration.
3549         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3550         declaration.
3551
3552         [BZ #9880]
3553         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3554         correctly.  Set segleft member in output as required.
3555         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3556         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3557
3558         [BZ #9881]
3559         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3560         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3561         * inet/Makefile (tests): Add tst-inet6_rth.
3562         * inet/tst-inet6_rth.c: New file.
3563
3564         [BZ #5807]
3565         * string/strlen.c (strlen): Fix omission in the expression to test
3566         for NUL bytes.
3567
3568 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3569
3570         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3571
3572         * elf/dl-runtime.c (reloc_offset): Define.
3573         (reloc_index): Define.
3574         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3575         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3576         computing index from reloc_offset.
3577         (_dl_call_pltexit): Likewise.
3578         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3579         the relocation index to _dl_fixup.
3580         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3581         _dl_call_pltexit.
3582         * sysdeps/x86_64/dl-runtime.c: New file.
3583
3584         [BZ #9893]
3585         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3586         alignment of La_x86_64_regs.  Store xmm parameters.
3587         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3588
3589         [BZ #9913]
3590         * string/strverscmp.c (__strverscmp): Fix case of different digits
3591         in fractional part of string.
3592         Patch by Jingyu Liu <jyliu@fortinet.com>.
3593         * string/Makefile (tests): Add tst-svc2.
3594         * string/tst-svc2.c: New file.
3595
3596         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3597
3598         * locale/iso-639.def: Add Min Nan.
3599
3600 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3601
3602         [BZ #9948]
3603         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3604
3605 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3606
3607         * elf/dl-sysdep.c (auxvars): Compress data structure.
3608
3609         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3610         STT_GNU_IFUNC handling.
3611         (elf_machine_rela): Likewise.
3612
3613 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3614
3615         * config.h.in (USE_MULTIARCH): Define.
3616         * configure.in: Handle --enable-multi-arch.
3617         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3618         (_dl_fixup_profile): Likewise.
3619         * elf/do-lookup.c (dl_lookup_x): Likewise.
3620         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3621         * elf/elf.h (STT_GNU_IFUNC): Define.
3622         * include/libc-symbols.h (libc_ifunc): Define.
3623         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3624         framework in init-arch.h to get CPUID values.
3625         * sysdeps/x86_64/multiarch/Makefile: New file.
3626         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3627         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3628         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3629
3630         * config.make.in (experimental-malloc): Define.
3631         * configure.in: Handle --enable-experimental-malloc.
3632         * malloc/Makefile: Handle experimental-malloc flag.
3633         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3634         * malloc/arena.c: Likewise.
3635         * malloc/hooks.c: Likewise.
3636         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3637
3638 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3639
3640         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3641         prediction.  A few size optimizations.
3642
3643 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3644
3645         * time/tzset.c: Optimize a bit for size.
3646
3647 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3648
3649         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3650         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3651
3652         * elf/sprof.c: Avoid warning about multi-line comment.
3653
3654 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3655
3656         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3657         DST name.
3658         * time/tst-posixtz.c: Add tests for quoted timezone names.
3659
3660 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3661
3662         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3663         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3664         200809L instead of 200112L.
3665         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3666         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3667
3668         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3669         instead of __quick_exit_funcs to __run_exit_handlers.
3670         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3671         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3672         (__cxa_at_quick_exit): Remove attribute_hidden.
3673         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3674         to __run_exit_handlers.
3675         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3676         attribute_hidden.
3677
3678 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3679
3680         * po/id.po: Update from translation team.
3681
3682 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3683
3684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3685         .machine push; .machine "power6" and .machine pop around mtfsf
3686         insns outside of _ARCH_PWR6 define.
3687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3689         Likewise.
3690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3691         Likewise.
3692         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3693         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3694         relax_fenv_state): Likewise.
3695
3696 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3699         cxa_at_quick_exit.
3700         (static-only-routines): Add at_quick_exit.
3701         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3702         GLIBC_2.10.
3703         * stdlib/quick_exit.c: New file.
3704         * stdlib/at_quick_exit.c: New file.
3705         * stdlib/cxa_at_quick_exit.c: New file.
3706         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3707         it appropriately.
3708         (__internal_atexit): New function.
3709         (__new_exitfn): Now takes parameter to point to the list to use.
3710         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3711         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3712         (exit): ...here.  Just call __run_exit_handlers appropriately.
3713         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3714         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3715         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3716         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3717
3718         * po/id.po: Update from translation team.
3719
3720 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3721
3722         * po/ru.po: Update from translation team.
3723
3724 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3725
3726         * po/nl.po: Update from translation team.
3727
3728 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3729
3730         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3731         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3732         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3733         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3734         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3735         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3736         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3737
3738         * po/pl.po: Update from translation team.
3739
3740 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3741
3742         [BZ #7083]
3743         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3744         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3745         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3746         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3747         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3748         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3749         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3750         for GLIBC_2.10.
3751         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3752         Add fallocate and fallocate64.
3753
3754         * io/fcntl.h: Pretty printing.
3755
3756 2009-03-02  Richard Guenther  <rguenther@suse.de>
3757
3758         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3759         attribute also for non-C99 inline semantics variant.
3760
3761 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3762
3763         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3764         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3765         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3766         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3768         Likewise.
3769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3770         Likewise.
3771
3772 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3773
3774         * po/cs.po: Update from translation team.
3775
3776 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3777
3778         * po/bg.po: Update from translation team.
3779         * po/sv.po: Likewise.
3780         * po/fi.po: Likewise.
3781         * po/vi.po: Likewise.
3782
3783 2009-02-27  Roland McGrath  <roland@redhat.com>
3784
3785         * Makeconfig (%.v.i): Depend on Makeconfig.
3786         Exclude % lines from initial #-comment removal.
3787
3788 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3789
3790         * po/ko.po: Update from translation team.
3791
3792 2009-02-26  Roland McGrath  <roland@redhat.com>
3793
3794         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3795         avoids unused warning.
3796
3797 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3798             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3799
3800         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3801         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3802         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3803         and asm/user.h.  Include asm/ptrace.h.
3804         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3805         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3806         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3807         Undefine.
3808         (start_thread): Don't undefine.
3809         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3810         Define.
3811
3812 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3813
3814         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3815         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3816         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3817         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3818         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3819         200112L to 200809L.
3820         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3821         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3822         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3823         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3824         _SC_THREAD_ROBUST_PRIO_PROTECT.
3825         * posix/unistd.h: fexecve is in POSIX 2008.
3826         * time/time.h: strftime_l is in POSIX 2008.
3827         * io/sys/stat.h: futimens is in POSIX 2008.
3828         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3829         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3830         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3831         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3832         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3833         open_memstream, and vdprintf are in POSIX 2008.
3834
3835 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3836
3837         * include/features.h: Define macros for XPG7/POSIX 2008.
3838         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3839         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3840         POSIX 2008.
3841         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3842         * locale/xlocale.h: Define locale_t type.
3843         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3844         in POSIX 2008.  Don't define locale_t here.
3845         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3846         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3847         UTIME_OMIT only with __USE_ATFILE.
3848         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3849         * stdio-common/psiginfo.c: New file.
3850         * stdio-common/psiginfo-data.h: New file.
3851         * stdio-common/psiginfo-define.h: New file.
3852         * stdio-common/Makefile (routines): Add psiginfo.
3853         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3854         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3855         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3856         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3857         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3858         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3859         * io/sys/stat.h: Move mknodat definition into same conditional as
3860         mknod.
3861         * time/sys/time.h: futimesat is not among the functions accepted
3862         into the POSIX standard.
3863
3864         * include/features.h: If no feature selection given and we select
3865         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3866         * posix/Versions: Export __posix_getopt.
3867         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3868         Use it to alternatively initialize __posixly_correct.
3869         (_getopt_internal_r): Take addition parameter.  Pass on to
3870         _getopt_initialize.
3871         (_getopt_internal): Take addition parameter.  Pass on to
3872         _getopt_internal_r.
3873         (getopt): Pass additional zero to _getopt_internal.
3874         (__posix_getopt): New function.
3875         * posix/getopt.h: Add redirection for getopt.
3876         * posix/getopt1.c (getopt_long): Pass additional zero to
3877         _getopt_internal.
3878         (getopt_long_only): Likewise.
3879         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3880         (_getopt_long_only_r): Likewise.
3881         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3882         _getopt_internal_r.
3883
3884 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3885
3886         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3887         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3888         * sysdeps/posix/sysconf.c (__sysconf): Handle
3889         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3890         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3891
3892 2009-02-24  Roland McGrath  <roland@redhat.com>
3893
3894         [BZ #9895]
3895         * README.template: Reworded not to use substituted version number.
3896         Renamed to ...
3897         * README: ... here (no longer generated).
3898         * Makefile (README): Target removed.
3899
3900 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3901
3902         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3903         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3904         instead.
3905
3906         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3907
3908         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3909
3910 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * po/bg.po: Update from translation team.
3913
3914 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3915
3916         * stdlib/monetary.h: Uglify function parameter names.
3917         * sunrpc/rpc/pmap_clnt.h: Likewise.
3918         * sunrpc/rpc/svc.h: Likewise.
3919         * sunrpc/rpc/xdr.h: Likewise.
3920         * sunrpc/rpc/clnt.h: Likewise.
3921         * resolv/netdb.h: Likewise.
3922         * resolv/arpa/nameser.h: Likewise.
3923         * resolv/resolv.h: Likewise.
3924         * argp/argp.h: Likewise.
3925         * locale/langinfo.h: Likewise.
3926         * io/sys/stat.h: Likewise.
3927         * posix/spawn.h: Likewise.
3928         * nis/rpcsvc/nislib.h: Likewise.
3929         * malloc/obstack.h: Likewise.
3930         * sysdeps/ia64/bits/link.h: Likewise.
3931         * sysdeps/i386/bits/link.h: Likewise.
3932         * sysdeps/s390/bits/link.h: Likewise.
3933         * sysdeps/powerpc/bits/link.h: Likewise.
3934         * sysdeps/x86_64/bits/link.h: Likewise.
3935         * sysdeps/sparc/bits/link.h: Likewise.
3936         * sysdeps/sh/bits/link.h: Likewise.
3937         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3938         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3939         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3940         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3941
3942 2008-12-01  Fredrik Unger  <fred@tree.se>
3943
3944         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3945         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3946         _FP_UNPACK_RAW_2, fix up first argument.
3947
3948 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3949
3950         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3951         (GET_NPROCS_PARSER): Change parameters and use next_line.
3952         (__get_nprocs): Rewrite to not use stdio routines.
3953         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3954         Change parameters and use next_line.
3955
3956 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3957
3958         [BZ #5381]
3959         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3960         Change mempool_alloc prototype.
3961         * nscd/mem.c (gc): Don't handle mem_in_flight.
3962         (mempool_alloc): Third parameter now only indicates whether this is the
3963         first call (to allocate data) or not.  If it is, get db rdlock.
3964         Release it on error.  Don't handle mem_in_flight.
3965         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3966         Adjust third parameter of mempool_alloc calls.
3967         Nothing to do here in case mempool_alloc fails.
3968         Avoid local variable shadowing parameter.  No need to get db rdlock
3969         before calling cache_add.
3970         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3971         no mem_in_flight array anymore.
3972         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3973         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3974         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3975         in case mempool_alloc fails. No need to get db rdlock before calling
3976         cache_add.
3977         * nscd/hstcache.c (cache_addhst): Likewise.
3978         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3979         * nscd/servicescache.c (cache_addserv): Likewise.
3980         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3981
3982 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3983
3984         * po/lt.po: Update from translation team.
3985
3986 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3987
3988         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3989         defined, allow additional data to be added using the optional
3990         MORE_ELF_HEADER_DATA macro.
3991         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3992         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3993
3994 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3995
3996         * include/atomic.h: Define catomic_and if not already defined.
3997         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3998         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3999
4000 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4001
4002         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4003         Change all callers.
4004         (_int_realloc): Likewise.  Third argument is now padded size
4005         All _int_* functions are now static.
4006
4007         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4008         * malloc/arena.c: Likewise.
4009         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4010         functions.
4011
4012         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4013         easily.
4014
4015         * malloc/malloc.c: Add branch prediction for use of the hooks.
4016
4017         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4018
4019 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4020
4021         [BZ #7095]
4022         * bits/confname.h: Add SUSv7 macros for getconf environments.
4023         * bits/environments.h: Likewise.
4024         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4025         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4026         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4027         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4028         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4029         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4030         * posix/getconf.c: Likewise.
4031         * posix/sysconf.c: Likewise.
4032         * sysdeps/posix/sysconf.c: Likewise.
4033         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4034         environments.
4035
4036 2009-01-16  Petr Baudis  <pasky@suse.cz>
4037
4038         [BZ #9753]
4039         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4040         even if we currently have zero nscount.
4041
4042 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4043
4044         [BZ #9781]
4045         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4046         the input line is too long.
4047
4048         * po/Makefile (libc.pot): Add f_print as function taking c-format
4049         parameter.
4050
4051         * debug/xtrace.sh: Unify translatable messages.
4052         * elf/ldd.bash.in: Likewise.
4053         * elf/sprof.c: Likewise.
4054         * locale/programs/locale.c: Likewise.
4055         * malloc/memusage.sh: Likewise.
4056         * nss/getent.c: Likewise.
4057
4058 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4059
4060         * debug/pcprofiledump.c (print_version,
4061         argp_program_version_hook): New function.
4062         * elf/ldconfig.c (more_help): New function.
4063         (argp): Use it.
4064         * elf/sln.c (usage): New function.
4065         (main): Support --help and --version.
4066         * malloc/memusagestat.c (print_version): New function.
4067         (argp_program_version_hook): New variable.
4068         * nscd/nscd.c (more_help): New function.
4069         (argp): Use it.
4070         * posix/getconf.c (main): Send --version output to stdout.
4071         Support --help.
4072         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4073         arguments.  All callers changed.
4074         (print_version): New function.
4075         (parseargs): Support --help and --version.
4076         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4077         changed.
4078         (print_version): New function.
4079         (main): Use getopt_long.  Support --help and --version.
4080         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4081         --version.
4082
4083 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4084
4085         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4086         (update_data): Fix handling of wrapping back
4087         to the beginning of the buffer.
4088
4089         [BZ #9823]
4090         * stdio-common/psignal.c (psignal): Fix test for empty string.
4091
4092 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4093
4094         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4095         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4096         move _null_auth to .rodata.
4097
4098         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4099         value of 24.
4100
4101         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4102
4103         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4104         today than when the original code was written.  Use larger
4105         buffers.  This also makes it unnecessary to have stat information,
4106         if this causes extra efforts.
4107         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4108         __alloc_dir.
4109
4110 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4111
4112         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4113         is set.
4114         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4115         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4116         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4117         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4118         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4119         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4120
4121 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4122
4123         * po/ru.po: Update from translation team.
4124
4125 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4126
4127         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4128         Add _tid slot to maintain consistency with kernel.
4129
4130 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4133         incomplete characters at end of input buffer.
4134         * libio/Makefile (tests): Add tst-fgetwc.
4135         * libio/tst-fgetwc.c: New file.
4136         * libio/tst-fgetwc.input: New file.
4137
4138 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4139
4140         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4141
4142 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4143
4144         [BZ #9793]
4145         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4146         *OUTBUFSTART unless the whole output fit into the buffer.
4147         * iconv/Makefile (tests): Add tst-iconv4.
4148         * iconv/tst-iconv4.c: New file.
4149
4150 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4151
4152         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4153         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4154
4155 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4156
4157         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4158         newer linker scripts.
4159
4160 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4161
4162         [BZ #7040]
4163         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4164         inotify_rm_watch should have type int.
4165
4166 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4167
4168         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4169         Make aligned_restore_vmx a local symbol.
4170         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4171         Likewise.
4172
4173 2009-01-30  Andreas Jaeger  <aj@suse.de>
4174
4175         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4176         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4177         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4178         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4179         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4180         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4181         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4182
4183 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4184
4185         [BZ #9726]
4186         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4187         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4188
4189 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4190
4191         [BZ #9726]
4192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4193         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4195         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4196
4197 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4198
4199         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4200         memcpy instead of memcmp.
4201         (_dl_setup_pointer_guard): Likewise.
4202
4203 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4204
4205         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4206         manipulated brk, use malloc_printerr.
4207         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4208         requests.
4209
4210 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4211
4212         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4213         rindex): For C++ add inlines so that they can be recognized as
4214         builtins.
4215         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4216
4217 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4218             Jakub Jelinek  <jakub@redhat.com>
4219
4220         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4221         * wcsmbs/wchar.h: Likewise.
4222
4223 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4224
4225         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4226         (stackinfo_sub_sp): Define.
4227
4228 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4229
4230         [BZ #9750]
4231         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4232         * include/alloca.h (alloca_account): Define.
4233         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4234         (stackinfo_sub_sp): Define.
4235
4236         * nscd/connections.c (nscd_init): If database file access fails
4237         check whether this is due to permission problems and bail in that
4238         case.
4239
4240         [BZ #9741]
4241         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4242         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4243
4244 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4245
4246         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4247         Add "t" to clobber list.
4248         (INTERNAL_SYSCALL_NCS): Likewise.
4249
4250 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4251
4252         * nss/getent.c (print_networks): Don't print comma between aliases.
4253
4254 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4255
4256         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4257
4258         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4259         the hash table.
4260         * misc/Makefile (tests): Add bug-hsearch1.
4261         * misc/bug-hsearch1.c: New file.
4262
4263 2009-01-22  Roland McGrath  <roland@redhat.com>
4264
4265         * Makeconfig (%.v.i): Strip trailing # comments,
4266         not only whole-line comments.
4267
4268 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4269
4270         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4271         one parameter.  If non-NULL use it to initialize return value.
4272         (_dl_setup_pointer_guard): New function.
4273         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4274         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4275         * elf/rtld.c (security_init): Pass _dl_random to
4276         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4277         pointer_chk_guard.
4278         * elf/dl-sysdep.c (_dl_random): New variable.
4279         (_dl_sysdep_start): Handle AT_RANDOM.
4280         (_dl_show_auxv): Likewise.
4281         * elf/dl-support.c (_dl_random): New variable.
4282         (_dl_aux_init): Handle AT_RANDOM.
4283         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4284         to _dl_setup_stack_chk_guard.
4285
4286         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4287
4288 2009-01-10  Roland McGrath  <roland@redhat.com>
4289
4290         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4291
4292 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4293
4294         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4295
4296         [BZ #9706]
4297         * nss/nss_files/files-parse.c (strtou32): New function.
4298         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4299         across 32-bit and 64-bit platforms.
4300         (INT_FIELD_MAYBE_NULL): Likewise.
4301
4302 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4303
4304         [BZ #9720]
4305         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4306         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4307         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4308         Likewise.
4309
4310 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4311
4312         [BZ #697]
4313         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4314         being NULL also if there are no backreferences.
4315         * posix/rxspencer/tests: Add testcases.
4316
4317 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4318
4319         [BZ #9697]
4320         * posix/bug-regex17.c: Add testcases.
4321         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4322         handling.
4323
4324 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4325
4326         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4327         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4328         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4329         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4330         for elf subdir.
4331         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4332         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4333         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4334         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4335         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4336         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4337
4338 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4339
4340         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4341         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4342         re_string_skip_chars, re_string_reconstruct): Likewise.
4343         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4344
4345 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4346
4347         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4348         adjust the buffer alignment.
4349
4350 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4351
4352         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4353         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4354         net/route.h.
4355
4356         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4357         flavor to description only when flavor is not NULL.
4358
4359         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4360         mutex after SIGIO/SIGURG lookup loop.
4361
4362 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4363
4364         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4365
4366 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4367
4368         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4369         handling.
4370
4371 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4372
4373         * sysdeps/unix/sysv/linux/kernel-features.h
4374         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4375
4376         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4377         if no output is written.
4378
4379         * version.h: Bump to 2.10 development.
4380
4381         * posix/getconf.c: Update copyright year.
4382         * nss/getent.c: Likewise.
4383         * iconv/iconvconfig.c: Likewise.
4384         * iconv/iconv_prog.c: Likewise.
4385         * elf/ldconfig.c: Likewise.
4386         * catgets/gencat.c: Likewise.
4387         * csu/version.c: Likewise.
4388         * elf/ldd.bash.in: Likewise.
4389         * elf/sprof.c (print_version): Likewise.
4390         * locale/programs/locale.c: Likewise.
4391         * locale/programs/localedef.c: Likewise.
4392         * nscd/nscd.c (print_version): Likewise.
4393         * debug/xtrace.sh: Likewise.
4394         * malloc/memusage.sh: Likewise.
4395         * malloc/mtrace.pl: Likewise.
4396         * debug/catchsegv.sh: Likewise.
4397
4398 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4399
4400         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4401         script.
4402
4403 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4404
4405         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4406         gethostbyname4_r function call succeeded, just leave the loop.
4407
4408         [BZ #9694]
4409         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4410         very end.
4411         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4412         * wctype/Makefile (tests): Add bug-wctypeh.
4413         * wctype/bug-wctypeh.c: New file.
4414
4415         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4416         LOCALDOMAIN is defined.
4417         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4418
4419         * sysdeps/x86_64/bits/select.h: New file.
4420
4421         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4422
4423 2008-12-21  Bruno Haible  <bruno@clisp.org>
4424
4425         [BZ #9677]
4426         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4427         if no output is written.
4428
4429 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4430
4431         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4432         libc internal symbol __dup2 to avoid access through the PLT.
4433
4434 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4435
4436         [BZ #6545]
4437         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4438         available only for __USE_GNU.
4439
4440         * inet/Makefile (tests): Add tst-getni2.
4441         * inet/tst-getni2.c: New file.
4442
4443         [BZ #7080]
4444         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4445         NULL when NI_NAMEREQD is set.
4446         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4447         * inet/Makefile (tests): Add tst-getni1.
4448         * inet/tst-getni1.c: New file.
4449
4450 2008-12-03  Petr Baudis  <pasky@suse.cz>
4451
4452         [BZ #7067]
4453         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4454         instead of prune_lock.
4455         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4456         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4457
4458 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4459
4460         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4461         use.
4462
4463         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4464         handling.
4465
4466         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4467         after reading name server list.
4468
4469         [BZ #7058]
4470         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4471         handling for host name aliases.
4472
4473 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4474
4475         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4476         instead of doing things manually.
4477
4478 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4479
4480         * posix/regex_internal.h (build_wcs_upper_buffer):
4481         Return type is reg_error_t.
4482
4483 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4484
4485         * posix/globtest.sh: Use mktemp to create temporary file and
4486         directory.
4487
4488         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4489         sets correctly.
4490         (__CPU_CLR_S): Likewise.
4491         (__CPU_ISSET_S): Likewise.
4492
4493 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4494             Ulrich Drepper  <drepper@redhat.com>
4495
4496         * scripts/firstversion.awk: Use custom comparison function to compare
4497         version numbers.
4498         * scripts/versions.awk: Use sort invocation which can handle
4499         multi-digit sub-version numbers.
4500
4501 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4502
4503         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4504         * locale/iso-639.def: Add Chhattisgarhi entry.
4505
4506 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4507
4508         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4509         ESRCH return value.
4510         (_nss_dns_gethostbyname4_r): Likewise.
4511         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4512         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4513         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4514         the no_data variable.
4515
4516         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4517         information at the correct index.
4518
4519         * socket/sys/socket.h: Declare accept4.
4520         * socket/accept4.c: New file.
4521         * sysdeps/unix/sysv/linux/accept4.c: New file.
4522         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4523         * socket/Makefile (routines): Add accept4.
4524         * socket/Versions: Export accept4 with version GLIBC_2.10.
4525         * socket/paccept.c: Removed.
4526         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4527         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4528         * Versions.def: Define GLIBC_2.10 for libc.
4529         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4530
4531         * nscd/connections.c: Use accept4.
4532
4533         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4534
4535 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4536
4537         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4538         flag already set.
4539
4540         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4541         not exist.
4542         * stdlib/Makefile (tests): Add tst-unsetenv1.
4543         * stdlib/tst-unsetenv1.c: New file.
4544
4545 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4546
4547         * login/utmp_file.c (file_writable): New variable.
4548         (setutent_file): Don't try to open file for writing.
4549         (pututline_file): Before writing, make descriptor writable if
4550         necessary.
4551
4552 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4553
4554         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4555         to IPv4 or IPv6 if an interface has been found.
4556
4557 2008-11-26  Roland McGrath  <roland@redhat.com>
4558
4559         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4560         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4561
4562         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4563         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4564         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4565
4566         * elf/elf.h (NT_386_IOPERM): New macro.
4567         (NT_PPC_VSX): New macro.
4568
4569 2008-11-25  Roland McGrath  <roland@redhat.com>
4570
4571         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4572         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4573         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4574         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4575         Subdirectories moved to ports repository.
4576         * configure.in (base_machine): Remove alpha case.
4577
4578 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4579
4580         * sysdeps/mach/strerror_l.c: New file.
4581
4582 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4583
4584         [BZ #6411]
4585         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4586         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4587         magic numbers.
4588         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4589         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4590         (relax_fenv_state): Same as above.
4591         (FPSCR_29): Reserve bit in ISA 2.05.
4592         (FPSCR_NI): Provide define for compat.
4593         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4594         magic numbers.
4595         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4596         magic numbers.
4597         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4598         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4599         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4600         access to hwcap to account for hwcap size increase to uint64_t.
4601         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4602         Likewise.
4603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4604         (*setcontext): Likewise.
4605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4606         New file.
4607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4608         New file.
4609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4610         (*setcontext): dynamically select mtfsf insn based on
4611         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4612         increase to uint64_t.
4613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4614         (*swapcontext): dynamically select mtfsf insn based on
4615         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4616         increase to uint64_t.
4617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4618         New file.
4619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4620         New file.
4621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4622         (*setcontext): dynamically select mtfsf insn based on
4623         PPC_FEATURE_HAS_DFP.
4624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4625         (*swapcontext): dynamically select mtfsf insn based on
4626         PPC_FEATURE_HAS_DFP.
4627
4628 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4629
4630         * version.h: Bump for 2.9 release.
4631         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4632
4633         [BZ #7029]
4634         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4635         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4636         all the rounding.
4637
4638 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4639
4640         [BZ #7009]
4641         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4642         unknown request types for now.
4643
4644 2008-11-11  Roland McGrath  <roland@redhat.com>
4645
4646         * sysdeps/x86_64/configure: New file.
4647
4648         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4649         * configure: Regenerated.
4650
4651 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4652
4653         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4654         correct instruction to remove the stack frame.
4655
4656 2008-11-03  Michael Matz  <matz@suse.de>
4657
4658         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4659         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4660
4661 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4662
4663         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4664         Remove.
4665
4666         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4667         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4668         of the thread variable instead of void *.
4669         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4670         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4671         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4672         __libc_tsd_define arguments.
4673         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4674         __libc_tsd_address arguments.  Remove union hack.
4675         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4676         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4677         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4678         Adjust __libc_tsd_{set,get} arguments.
4679         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4680         __libc_tsd_define arguments.
4681         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4682         arguments.
4683         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4684         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4685         (LOCALE): Adjust __libc_tsd_define arguments.
4686         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4687         arguments.
4688         (LOCALE): Adjust __libc_tsd_define arguments.
4689         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4690         arguments.
4691         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4692         arguments.
4693
4694 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4695
4696         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4697         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4698
4699 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4700
4701         [BZ #6966]
4702         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4703
4704 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4705             Ulrich Drepper  <drepper@redhat.com>
4706
4707         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4708         definition for GCC 3.1 and later.
4709
4710 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4711
4712         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4713         refetch dtv, as it might have changed.
4714         * elf/Makefile: Add rules to build and run tst-tls18.
4715         * elf/tst-tls18.c: New test.
4716         * elf/tst-tlsmod18a.c: New file.
4717
4718 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4719
4720         [BZ #6875]
4721         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4722
4723 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4724
4725         [BZ #6867]
4726         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4727
4728         [BZ #6919]
4729         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4730         Fix length of copy operation.
4731
4732 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4733
4734         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4735         and fix its calling convention.
4736
4737 2008-10-07  Andreas Schwab  <schwab@suse.de>
4738
4739         [BZ #6942]
4740         * resolv/res_send.c (send_vc): Fix last change.
4741         (send_dg): Align here as well.
4742
4743 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4744
4745         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4746         return value in case rlimit is RLIM_INFINITY.
4747
4748         [BZ #6947]
4749         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4750         for UL_SETFSIZE.
4751         * resource/Makefile (tests): Add bug-ulimit1.
4752         * resource/bug-ulimit1.c: New file.
4753
4754         [BZ #6974]
4755         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4756         without dot.  Properly terminate the string with a null byte.
4757         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4758
4759         [BZ #6980]
4760         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4761         negative sizees.
4762         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4763         negative __size.
4764
4765         [BZ #6995]
4766         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4767
4768 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4769
4770         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4771         abort if there is no initgroups_dyn function.
4772
4773         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4774         result if any of the queries really provided an answer.
4775
4776 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4777
4778         * po/lt.po: Update from translation team.
4779
4780 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4781
4782         * po/id.po: Update from translation team.
4783
4784 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4785
4786         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4787         Fix tests for existence of second reply.
4788
4789 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4790
4791         * po/id.po: New file.
4792         Contributed by the Indonesian translation team.
4793
4794 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4795
4796         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4797         initialization.
4798
4799 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4800
4801         * elf/Makefile: Add rules to build and run tst-tls17.
4802         * elf/tst-tls17.c: New test.
4803         * elf/tst-tlsmod17a.c: New file.
4804         * elf/tst-tlsmod17b.c: Likewise.
4805
4806 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4807
4808         * stdlib/divmod_1.c: Use correct type for dummy variable.
4809         * stdlib/mod_1.c: Likewise.
4810
4811 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4812
4813         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4814
4815 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4816
4817         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4818         __nonnull order for C++.
4819         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4820         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4821
4822 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4823
4824         * stdlib/longlong.h: Update from GCC.
4825
4826 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4827             David S. Miller  <davem@davemloft.net>
4828
4829         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4830         make sure any registers used with 64-bit 'branch-on-register'
4831         instructions have their top 32-bits clear.
4832         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4833         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4834
4835 2008-09-18  Andreas Schwab  <schwab@suse.de>
4836
4837         [BZ #6942]
4838         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4839         Properly handle partial reads.
4840
4841 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4842
4843         * elf/elf.h (STO_MIPS_PLT): New.
4844         (R_MIPS_COPY): New.
4845         (R_MIPS_JUMP_SLOT): New.
4846         (R_MIPS_NUM): Redefine to 128.
4847         (DT_MIPS_PLTGOT): New.
4848         (DT_MIPS_RWPLT): New.
4849         (DT_MIPS_NUM): Redefine to 0x35.
4850
4851 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4852
4853         * timezone/africa: Update from tzdata2008f.
4854         * timezone/asia: Likewise.
4855         * timezone/australasia: Likewise.
4856         * timezone/europe: Likewise.
4857         * timezone/leapseconds: Likewise.
4858         * timezone/northamerica: Likewise.
4859         * timezone/southamerica: Likewise.
4860         * timezone/zone.tab: Likewise.
4861
4862 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4863
4864         * nscd/connections.c: Disable use of paccept for now.
4865
4866 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4867
4868         * socket/Versions: Remove paccept export for GLIBC_2.9.
4869         * socket/Makefile (routines): Remove paccept.
4870         * socket/sys/socket.h: Remove paccept declaration.
4871
4872         * po/sv.po: Update from translation team.
4873
4874 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4875
4876         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4877         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4878
4879 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4880
4881         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4882         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4883
4884 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4885
4886         * sunrpc/rpc/svc.h: Declare svcfd_create.
4887         Patch by Michael Solberg <msolberg@redhat.com>.
4888
4889 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4890             Ulrich Drepper  <drepper@redhat.com>
4891
4892         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4893         _int_valloc fails.
4894         (public_pVALLOc): Likewise.
4895
4896 2008-09-02  Andreas Jaeger  <aj@suse.de>
4897
4898         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4899         commit.
4900
4901 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4902
4903         [BZ #6860]
4904         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4905
4906 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4907
4908         * Makefile (check-data): Check data directory in add-ons.
4909         * elf/Makefile (check-data): Likewise.
4910
4911 2008-08-18  Roland McGrath  <roland@redhat.com>
4912
4913         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4914         * configure: Regenerated.
4915         * config.make.in (cflags-cpu): New substituted variable.
4916         (with-cpu): Variable removed.
4917         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4918
4919 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4920
4921         [BZ #6845]
4922         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4923         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4924         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4925         redundant.  Functions which call floating point assembler operations
4926         should go into a sysdeps powerpc/fpu directory.
4927
4928 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4929
4930         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4931         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4932
4933 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4934
4935         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4936
4937         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4938         change related to AT_EXECFN.  We cannot use that string.
4939         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4940         _dl_execfn member.
4941         * elf/dl-support.c: Remove _dl_execfn variable.
4942         (_dl_aux_init): Remove handling of AT_EXECFN.
4943         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4944         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4945
4946 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4947
4948         [BZ #6544]
4949         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4950         byte gets added to writes and seeks from the end use the length of
4951         the buffer and not the currently terminating NUL byte.
4952
4953         [BZ #6634]
4954         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4955         Set to true if locking failed.
4956         (getutid_r_file): Adjust caller.
4957         (pututline_file): Likewise.  Return NULL in this case.
4958         Patch mostly by halesh.s@gmail.com.
4959
4960 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4961
4962         [BZ #6589]
4963         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4964         Define.
4965         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4966
4967 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4968
4969         [BZ #6839]
4970         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4971         macro since it is now available in elf/dynamic-link.h.
4972
4973 2008-08-12  Roland McGrath  <roland@frob.com>
4974
4975         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4976         in case used outside of libc.
4977         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4978
4979 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4980
4981         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4982         directly instead of going through dn_comp.
4983
4984 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4985
4986         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4987         Fix asm constraints.
4988
4989 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4990
4991         [BZ #6790]
4992         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4993         (IPV6_PMTUDISC_PROBE): Likewise.
4994
4995 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4996
4997         [BZ #6791]
4998         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4999
5000 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5001             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5002
5003         [BZ #6817]
5004         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5005         Added the members 'vsx' and 'arch_2_06'.
5006         (_dl_powerpc_platforms): Add the member 'power7'.
5007         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5008         to reflect the changes required by VSX and ISA 2.06.
5009         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5010         'power7'.
5011         Defined PPC_PLATFORM_POWER7.
5012         (_dl_string_platform): Add support for POWER7.
5013         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5014         capability and ISA 2.06.
5015
5016 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5017
5018         [BZ #6824]
5019         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5020         macro to detect use of 128 bit long double.
5021         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5022
5023 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5024
5025         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5026
5027         [BZ #5794]
5028         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5029         parameters.
5030         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5031         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5032
5033 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5034
5035         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5036         guaranteed to be large enough to read inotify event.  Ignore
5037         EAGAIN error.  Better error message.  Add branch predicition.
5038         (main_loop_epoll): Likewise.
5039
5040 2008-08-02  Roland McGrath  <roland@frob.com>
5041
5042         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5043         Add memory clobbers.
5044
5045 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5046
5047         * manual/arith.texi: Avoid @strong{Note:}.
5048         * manual/creature.texi: Likewise.
5049         * manual/filesys.texi: Likewise.
5050         * manual/math.texi: Likewise.
5051         * manual/memory.texi: Likewise.
5052         * manual/resource.texi: Likewise.
5053         * manual/syslog.texi: Likewise.
5054         * manual/time.texi: Likewise.
5055
5056         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5057         to prevent warning.
5058
5059 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5060
5061         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5062         new epoll_create1 interface.
5063         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5064         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5065         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5066
5067         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5068         (NS_GET32): Likewise.
5069
5070         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5071         syscalls, too.
5072
5073         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5074         use the AT_EXECFN value if it is no absolute path.
5075         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5076         __ASSUME_AT_EXECFN.
5077
5078         * Versions.def: Add GLIBC_2.9 to libresolv.
5079         * include/resolv.h: Remove hidden proto declarations for __ns_*
5080         functions.  Add them for __dn_count_labels and __p_secstodate.
5081         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5082         Define ns_msg_getflags macro here.
5083         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5084         and __p_secstodate.
5085         * resolv/Versions: Export functions from <arpa/nameser.h> from
5086         libresolv in version GLIBC_2.9.
5087         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5088         hidden definitions.
5089         * resolv/ns_netint.c: Likewise.
5090         * resolv/ns_parse.c: Likewise.
5091         * resolv/ns_print.c: Likewise.
5092         * resolv/ns_samedomain.c: Likewise.
5093         * resolv/ns_ttl.c: Likewise.
5094         * resolv/arpa/nameser_compat.h: Likewise.
5095         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5096         function calls.
5097         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5098         instead of ns_get16.
5099         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5100         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5101         (gaih_getanswer_slice): Likewise.
5102         * resolv/Makefile (libresolv-routines): Add ns_date.
5103         * resolv/ns_date.c: New file.
5104
5105         * elf/Makefile (check-localplt.out): Also check libresolv and
5106         libcrypt.
5107
5108 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5109
5110         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5111         __ASSUME_O_CLOEXEC.
5112
5113 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5114
5115         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5116         buffer passed to NSS functions.
5117
5118         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5119
5120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5121         Define.
5122
5123         * misc/syslog.c (openlog_internal): Fix compile problem.
5124
5125 2008-07-28  Roland McGrath  <roland@redhat.com>
5126
5127         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5128
5129 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5130
5131         * io/ftw.c (add_object): Remove inline to avoid warning.
5132
5133         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5134
5135         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5136         Use it instead of locally defined resplen2 variable.
5137         (res_nsend): Adjust for __libc_res_nsend interface change.
5138         (send_vc): Initialize *resplen2 if necessary.  Read length of
5139         package into an appropriately aligned variable.  Store converted length
5140         in new variable and use it appropriately.
5141         Add branch prediction help.
5142         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5143         and pass it on to __libc_res_nsend.  Adjust all callers.
5144         (__libc_res_nsearch): Likewise.
5145         (__libc_res_nqeurydomain): Likewise.
5146         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5147         change.
5148         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5149         Define resplen2 variable and pass it to __libc_res_nsearch and then
5150         to gaih_getanswer.
5151         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5152         Add branch prediction.
5153         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5154         (gaih_getanswer): Don't decode second slice if first one failed due
5155         to a too small buffer.  Don't let not found status of second
5156         decoder shadow results of the first.
5157         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5158         and __libc_res_nquery interface changes
5159         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5160         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5161         __libc_res_nsearch, and __libc_res_nsend.
5162         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5163         change.
5164         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5165         __libc_res_nsearch interface changes.
5166
5167 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5168
5169         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5170
5171         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5172         file descriptors with close-on-exec set.
5173         (exec_comm_child): Fix the case where the write end of the pipe is
5174         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5175
5176         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5177         * io/pipe2.c: Likewise.
5178         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5179         instead of __ASSUME_PACCEPT.
5180         * include/unistd.h: Declare __have_pipe2.
5181         * libio/iopopen.c: Implement "e" flag.
5182         * libio/Makefile (tests): Add tst-popen1.
5183         * libio/tst-popen1.c: New file.
5184
5185         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5186         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5187
5188 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5189
5190         [BZ #6771]
5191         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5192         success call of _IO_SEEKOFF or calls which failed because the
5193         descriptor is for a pipe.
5194
5195         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5196         magic number.
5197
5198         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5199
5200         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5201         F_SETFD use if we know fopen set the flag.
5202
5203         * login/utmp_file.c (setutent_file): Minor optimization in case
5204         O_CLOEXEC is available.
5205
5206 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5207
5208         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5209         * elf/Makefile: Use pie-ccflag variable.
5210         * nscd/Makefile: Likewise.
5211         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5212
5213 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5214
5215         [BZ #6724]
5216         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5217         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5218         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5219         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5220         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5221         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5222         utmp32, utmpx32 and login32.
5223         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5224         versions of struct utmp functions to libc and libutil.
5225         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5226         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5227         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5228         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5229         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5230         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5231         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5232         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5233         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5234         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5235         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5236         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5237         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5238         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5239         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5240         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5241         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5242         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5243         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5244         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5245         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5246         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5247
5248 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5249
5250         * scripts/gen-as-const.awk: Generate more widely usable code by
5251         using 64-bit arithmetic.
5252
5253         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5254         the same treatment as narrow output code in last patch.
5255
5256         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5257
5258         [BZ #6763]
5259         * elf/dl-load.c (local_strdup): Remove inline.
5260         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5261         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5262         part of the object.
5263
5264         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5265
5266 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5267
5268         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5269         the new syscalls, too.
5270
5271         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5272         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5273
5274         [BZ #6698]
5275         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5276         parameter for end of buffer.  If temporary copy is too large use
5277         malloc.
5278         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5279         interface change.
5280         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5281         string rewrite when allocating buffer.
5282
5283         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5284         syscalls, too.
5285
5286         * nscd/connections.c (nscd_init): Clean up fcntl call.
5287
5288         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5289         SOCK_NONBLOCK if possible.
5290
5291         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5292         SOCK_CLOEXEC if available.
5293
5294         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5295         __libc_clntudp_bufcreate_internal.
5296         * include/sys/socket.h: Declare __have_sock_cloexec.
5297         * socket/Makefile (aux): Add have_sock_cloexec.
5298         * socket/have_sock_cloexec.c: New file.
5299         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5300         __libc_clntudp_bufcreate.
5301         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5302         which takes an additional parameter.  Create socket with non-blocking
5303         mode and close-on-exec flag set, if wanted.
5304         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5305         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5306         instead of clntudp_create.  The socket has already the close-on-exec
5307         flag set if SOCK_CLOEXEC is defined.
5308
5309 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5310
5311         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5312         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5313         appropriate.
5314         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5315         non-blocking mode by using socket, paccept, and inotify_init1.
5316
5317         * Versions.def (glibc): Add GLIBC_2.9.
5318         * io/Makefile (routines): Add dup3 and pipe2.
5319         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5320         * io/dup3.c: New file.
5321         * io/pipe2.c: New file.
5322         * posix/unistd.h: Declare dup3 and pipe2.
5323         * socket/Makefile (routines): Add paccept.
5324         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5325         * socket/paccept.c: New file.
5326         * socket/sys/socket.h: Declare paccept.
5327         * sysdeps/unix/syscalls.list: Add entry for dup3.
5328         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5329         epoll_create2 and inotify_init1.
5330         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5331         * sysdeps/unix/sysv/linux/paccept.c: New file.
5332         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5333         possible.
5334         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5335         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5336         inotify_init1, and pipe2 entries.
5337         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5338         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5339         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5340         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5341         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5342         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5343         SOCK_NONBLOCK.
5344         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5345         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5346         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5347         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5348         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5349         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5350         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5351         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5352         EPOLL_NONBLOCK.  Declare epoll_create2.
5353         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5354         EFD_NONBLOCK.
5355         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5356         IN_NONBLOCK.  Declare inotify_init1.
5357         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5358         SFD_NONBLOCK.
5359         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5360         TFD_NONBLOCK.
5361
5362         * elf/elf.h: Define AT_EXECFN.
5363         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5364         LD_ORIGIN_PATH.
5365         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5366         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5367         if __ASSUME_AT_EXECFN is defined.
5368         (_dl_aux_init): Handle AT_EXECFN.
5369         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5370         for 2.6.27 and up.
5371         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5372         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5373         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5374         _dl_execfn if available and avoid compatibility code if
5375         __ASSUME_AT_EXECFN is defined.
5376
5377         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5378         _dl_discover_osversion only for older kernels.
5379
5380 2008-07-22  Roland McGrath  <roland@frob.com>
5381
5382         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5383
5384 2008-07-21  Roland McGrath  <roland@frob.com>
5385
5386         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5387         returned too much data out of line.
5388
5389 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5390
5391         * locale/setlocale.c (setname): Remove inline to avoid compiler
5392         warning.
5393
5394         [BZ #6712]
5395         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5396
5397 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5398
5399         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5400         doesn't manage to write anything, fail.
5401
5402         * malloc/hooks.c (__malloc_check_init): Remove printf.
5403
5404 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5405
5406         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5407
5408 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5409
5410         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5411         from inotify.
5412         (main_loop_epoll): Likewise.
5413
5414 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5415
5416         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5417
5418         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5419         if DEBUG is defined.
5420
5421         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5422         query.  Adjust buffer size computation for padding.
5423
5424 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5425
5426         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5427         * stdio-common/tst-setvbuf1.c: New file.
5428         * stdio-common/tst-setvbuf1.expect: New file.
5429
5430         [BZ #6719]
5431         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5432         when selecting fully-buffered stream.
5433         Patch by Wang Xin <wxinee@gmail.com>.
5434
5435 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5436
5437         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5438         (__open_2): New function.
5439         (__open64_2): New alias to __open_2.
5440         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5441         (__openat_2): New function.
5442         (__openat64_2): New alias to __openat_2.
5443
5444 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5445
5446         [BZ #6723]
5447         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5448
5449 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5450
5451         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5452         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5453         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5454         __hurd_dfail.
5455         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5456         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5457         * sysdeps/mach/hurd/send.c (__send): Likewise.
5458         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5459         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5460
5461 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5462
5463         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5464         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5465         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5466         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5467         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5468         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5469
5470 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5471
5472         [BZ #6657]
5473         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5474         of %EY.
5475         Patch by Petr Baudis.
5476
5477 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5478
5479         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5480         Patch by Peter Jones <pjones@redhat.com>.
5481
5482 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5483
5484         [BZ #6654]
5485         * stdlib/canonicalize.c (__realpath): readlink can write too much
5486         into the buffer on platforms without PATH_MAX.
5487
5488 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5489
5490         [BZ #6653]
5491         * posix/tst-regex.c (main): Rename to...
5492         (do_test): ... this. Remove cmdline option processing.
5493         (TIMEOUT): Define.
5494         (TEST_FUNCTION): Define.
5495         (CMDLINE_OPTIONS): Define.
5496
5497 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5498
5499         [BZ #5210]
5500         * configure.in: Add -Werror to -fstack-protector test to catch
5501         unsupported architectures.
5502         Patch by Gilles Esponasse <g.esp@free.fr>.
5503
5504 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5505
5506         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5507         getcontext returns ENOSYS.
5508
5509 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5510
5511         * nscd/connections.c (main_loop_poll): Fix test for read error.
5512         (main_loop_epoll): Likewise.
5513
5514 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5515
5516         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5517         better place so it is not called when nscd is used.
5518
5519         * nscd/connections.c: Also recognize and handle changes to the
5520         resolver configuration file.
5521
5522 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5523
5524         * time/strftime.c: Pass reference to tzset_called around to handle
5525         recursive calls.
5526
5527         [BZ #6612]
5528         * time/strftime.c (__strftime_internal): Call tzset() only
5529         when printing timezone-dependent values.
5530         Based on a patch by Petr Baudis <pasky@suse.cz>.
5531
5532         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5533         unconditionally use second gaih_getanswer_slice result.
5534
5535         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5536         (getaddrinfo): RES must always be non-NULL.
5537
5538 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5539
5540         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5541         cr[34] registers.
5542         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5543         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5544         Likewise.
5545         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5546         register.
5547
5548 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5549
5550         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5551         fields.
5552         * nscd/connections.c (inotify_fd): New variable.
5553         (nscd_init): Try to open an inotify descriptor.
5554         If successful, watch files for databases using inotify instead of
5555         having prune threads stat the files.
5556         (nscd_run_prune): Recognize clear_cache flag being set and call
5557         prune_cache appropriately.
5558         (main_loop_poll): Add inotify descriptor to wait set and handle the
5559         reported changes.
5560         (main_loop_epoll): Likewise.
5561         * nscd/cache.c (prune_cache): Don't stat files for databases if
5562         inotify is used.
5563         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5564         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5565
5566         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5567         fixed-size portion of the record.
5568         * nscd/servicescache.c (cache_addserv): Likewise.
5569         * nscd/pwdcache.c (cache_addpw): Likewise.
5570         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5571
5572 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5573
5574         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5575         out we don't use uninitialized memory.
5576
5577         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5578         the client.
5579
5580 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5581
5582         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5583         ignore T_DNAME messages.
5584         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5585
5586 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5587
5588         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5589         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5590
5591 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5592
5593         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5594         instead of portstr to nscd_getserv_r.  Patch by
5595         Roman Kagan <rkagan@mail.ru>.
5596
5597 2008-05-26  Jim Meyering  <meyering@redhat.com>
5598
5599         Remove more useless "if" tests before "free".
5600         * include/inline-hashtab.h (htab_delete): Likewise.
5601         * libio/freopen.c (freopen): Likewise.
5602         * libio/freopen64.c (freopen64): Likewise.
5603         * locale/programs/ld-collate.c (collate_read): Likewise.
5604         * misc/fstab.c (libc_freeres_fn): Likewise.
5605         * posix/glob.c (globfree): Likewise.
5606
5607 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5608
5609         * string/Makefile (strop-tests): Add memmem.
5610         * string/test-memmem.c: New file.
5611         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5612         (test_init): Size buf1 according to BUF1PAGES.
5613
5614 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5615
5616         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5617         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5618         (CFLAGS-scanf17.c): New.
5619         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5620         * stdio-common/scanf15.c (main): Likewise.
5621         * stdio-common/scanf16.c: New file.
5622         * stdio-common/scanf17.c: New file.
5623
5624 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5625
5626         * resolv/res_send.c (send_dg): If we already have one of two
5627         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5628         use the one answer insted of failing.
5629
5630 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5631
5632         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5633         being executed on PowerPC as the expected result exceeds IBM
5634         long double 128 __LDBL_MAX__.
5635
5636 2008-05-21  Roland McGrath  <roland@redhat.com>
5637
5638         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5639
5640         * Makefile (check-data): Use $(abi-name) before other guesses.
5641         Look in $(add-ons) dirs before scripts/data/.
5642         * elf/Makefile (check-data): Likewise.
5643
5644         * scripts/soversions.awk: Grok ABI line.
5645         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5646         Emit definition for abi-name variable.
5647
5648 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5649
5650         * string/endian.h: Define new fixed-size hto* and *toh macros only
5651         if [__USE_BSD].
5652
5653         * iconvdata/Depend: Add localedata.
5654
5655 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5656
5657         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5658
5659 2008-05-08  David S. Miller  <davem@davemloft.net>
5660
5661         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5662         HIDDEN_JUMPTARGET.
5663         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5664         (__SYSCALL_CLOBBERS): Remove %g* registers.
5665         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5666         (__SYSCALL_CLOBBERS): Likewise.
5667         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5668         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5669
5670 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5671
5672         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5673         (CALL_ERRNO_LOCATION): Define.
5674         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5675         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5676         (CALL_ERRNO_LOCATION): Define.
5677         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5678         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5679         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5680
5681 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5682
5683         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5684         variable.
5685
5686 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5687
5688         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5689         (FIRST_FRAME_POINTER): Define.
5690
5691 2008-05-09  David S. Miller  <davem@davemloft.net>
5692
5693         * sysdeps/sparc/sparc64/backtrace.c: New file.
5694
5695 2008-05-14  David S. Miller  <davem@davemloft.net>
5696
5697         * sysdeps/sparc/machine-gmon.h: New file.
5698         * sysdeps/sparc/sparc-mcount.S: Likewise.
5699         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5700         sysdep_routines in gmon directory.
5701
5702 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5703
5704         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5705
5706 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5707
5708         * resolv/res_query.c (__libc_res_nquery): In case one of two
5709         answer was too short don't try to read that answer's header.
5710
5711         * resolv/res_send.c (send_dg): In case of timeout and there are
5712         two queries and one has been answered, return value indicating
5713         success.
5714
5715 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5716
5717         * nscd/cache.c (cache_add): Take additional parameter specifying
5718         whether this is in response of a cache refill.  Check alignment
5719         of package data.  Revamp waking of pruning thread.
5720         (prune_cache): Small optimization.
5721         * nscd/nscd.h: Adjust cache_add prototypes.
5722         * nscd/aicache.c: Adjust cache_add calls.
5723         * nscd/grpcache.c: Likewise.
5724         * nscd/hstcache.c: Likewise.
5725         * nscd/initgrcache.c: Likewise.
5726         * nscd/pwdcache.c: Likewise.
5727         * nscd/servicescache.c: Likewise.
5728         * nscd/connections.c (restart): Really disable cache use before
5729         exec attempt.  If it fails, reenable cache.
5730         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5731         time to max to be able to notice concurrent cache additions.  Unlock
5732         prune_lock while performing gc.  Afterwards compute wakeup time with
5733         current wakeup_time value in mind.
5734
5735 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5736
5737         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5738
5739         * nscd/mem.c (gc): Correctly determine highest used array element
5740         in mark.
5741
5742         * nscd/mem.c (markrange): Add assert to check entries are all
5743         aligned.  Small cleanup in bitmap use.
5744
5745         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5746         blockoff of type nscd_ssize_t.
5747         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5748         (mempoll_alloc): Record block offset and not address.
5749
5750         * nscd/mem.c (gc): Fix test for stack overuse.
5751
5752         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5753         more asserts.
5754
5755         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5756         entry is available, believe it.
5757
5758         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5759         no answers return NSS_STATUS_NOTFOUND.
5760         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5761         buffer does not have any content.
5762
5763 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5764
5765         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5766
5767         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5768         lookup, don't assign canon unconditionally.
5769
5770 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5771
5772         * string/Makefile (distribute): Add str-two-way.h.
5773
5774 2008-03-29  Eric Blake  <ebb9@byu.net>
5775
5776         Rewrite string searches to O(n) rather than O(n^2).
5777         * string/str-two-way.h: New file.  For linear fixed-allocation
5778         string searching.
5779         * string/memmem.c: New implementation.
5780         * string/strstr.c: New implementation.
5781         * string/strcasestr.c: New implementation.
5782
5783 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5784
5785         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5786         opr.ctx_type.
5787         (calc_first): Initialize constraint field.
5788         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5789         Use search_duplicated_node to avoid loops.  Fix grammar.
5790         (duplicate_node): Merge constraint field for all node types.
5791         (calc_eclosure_iter): Look at constraint field for all node types.
5792         * posix/regex_internal.c (create_cd_newstate): Don't look at
5793         create_cd_newstate.
5794
5795 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5796
5797         [BZ #6428]
5798         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5799
5800         [BZ #6442]
5801         * string/endian.h: Add macros for fixed-size endian conversion.
5802         * bits/byteswap.h: Allow inclusion from <endian.h>.
5803         * sysdeps/i386/bits/byteswap.h: Likewise.
5804         * sysdeps/ia64/bits/byteswap.h: Likewise.
5805         * sysdeps/s390/bits/byteswap.h: Likewise.
5806         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5807         * string/Makefile (tests): Add tst-endian.
5808         * string/tst-endian.c: New file.
5809
5810         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5811         Patch by Reuben Thomas.
5812
5813 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5814
5815         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5816
5817 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5818
5819         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5820
5821         [BZ #6461]
5822         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5823         Add missing braces.
5824         (BODY for __gconv_transform_internal_ascii): Likewise.
5825
5826         [BZ #6472]
5827         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5828         to be treated like link-local addresses.
5829         (match_prefix): Don't treat IPv4 loopback address special when
5830         converting to v4 mapped addressed.
5831
5832         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5833         if necessary.
5834         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5835         * posix/tst-rfc3484-2.c: Likewise.
5836         * posix/tst-rfc3484-3.c: Likewise.
5837
5838         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5839         and SCTP.
5840
5841         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5842
5843         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5844
5845         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5846
5847 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5848
5849         * po/lt.po: New file.  From Lituanian translation team.
5850
5851 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5852
5853         Introduce TLS descriptors for i386 and x86_64.
5854         * include/inline-hashtab.h: New file, copied from 2005's
5855         libiberty, with fix for memory leak imported afterwards by
5856         Glauber de Oliveira Costa.
5857         * elf/tlsdeschtab.h: New file.
5858         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5859         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5860         (CHECK_STATIC_TLS): Move to...
5861         * elf/dynamic-link.h: ... this file.
5862         (TRY_STATIC_TLS): New macro.
5863         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5864         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5865         R_386_TLS_DESC): Define.
5866         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5867         binutils.
5868         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5869         R_X86_64_TLSDESC): Define.
5870         (R_386_NUM, R_X86_64_NUM): Adjust.
5871         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5872         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5873         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5874         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5875         release tlsdesc_table.
5876         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5877         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5878         (elf_machine_rel): Handle R_386_TLS_DESC.
5879         (elf_machine_rela): Likewise.
5880         (elf_machine_lazy_rel): Likewise.
5881         (elf_machine_lazy_rela): Likewise.
5882         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5883         * sysdeps/i386/dl-tlsdesc.S: New file.
5884         * sysdeps/i386/dl-tlsdesc.h: New file.
5885         * sysdeps/i386/tlsdesc.c: New file.
5886         * sysdeps/i386/tlsdesc.sym: New file.
5887         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5888         tlsdesc_table.
5889         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5890         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5891         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5892         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5893         release tlsdesc_table.
5894         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5895         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5896         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5897         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5898         (elf_machine_rela): Likewise.
5899         (elf_machine_lazy_rel): Likewise.
5900         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5901         (__tls_get_addr): Do not declare for non-shared compiles.
5902         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5903         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5904         * sysdeps/x86_64/tlsdesc.c: New file.
5905         * sysdeps/x86_64/tlsdesc.sym: New file.
5906         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5907         tlsdesc_table for both 32- and 64-bit structs.
5908
5909 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5910
5911         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5912         its own function.  This reduces the frame setup costs and more.
5913
5914 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5915
5916         [BZ #3406]
5917         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5918         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5919
5920 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5921
5922         * io/openat.c (__openat_2): Also pass fd to __openat.
5923         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5924         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5925
5926         * string/tester.c (test_memcmp): Add a few more tests.
5927         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5928
5929 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5930
5931         * nscd/cache.c (cache_add): Before returning with failure and this
5932         is the first use of the record, mark it as unusable.
5933         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5934         reporting a failure.
5935         * nscd/grpcache.c: Likewise
5936         * nscd/hstcache.c: Likewise.
5937         * nscd/initgrcache.c: Likewise.
5938         * nscd/pwdcache.c: Likewise.
5939         * nscd/servicescache.c: Likewise.
5940
5941 2008-05-10  Roland McGrath  <roland@redhat.com>
5942
5943         [BZ #6505]
5944         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5945
5946 2008-05-08  David S. Miller  <davem@davemloft.net>
5947
5948         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5949
5950         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5951         (__ieee754_y0l): Likewise.
5952         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5953         (__ieee754_y1l): Likewise.
5954         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5955         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5956         frexpl and ldexpl.  math_private.h provides them and the latter
5957         is not even used.
5958         (__log1pl): Use __frexpl.
5959
5960 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5963         prototypes.
5964         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5965         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5966         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5967         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5968         af==AF_UNSPEC.
5969         (_nss_nis_gethostbyname4_r): New function.
5970         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5971         Change to also handle af==AF_UNSPEC.
5972         (get_tablename): New function.  Use it to avoid duplication.
5973         (_nss_nisplus_gethostbyname4_r): New function.
5974         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5975         available.
5976         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5977         * nss/nss.h: Define struct gaih_addrtuple.
5978         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5979         af==AF_UNSPEC.
5980         (_nss_files_gethostbyname4_r): New function.
5981         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5982         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5983         calls.
5984         * resolv/res_query.c (__libc_res_nquery): Take two additional
5985         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5986         look up IPv4 and IPv6.
5987         Change all callers.
5988         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5989         for an additional query and answer buffer.  Pass to send_vc and
5990         send_dg.
5991         (send_vc): Send possibly two requests and receive two answers.
5992         (send_dg): Likewise.
5993         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5994         __libc_res_nquery.
5995         (_nss_dns_gethostbyname4_r): New function.
5996         (gaih_getanswer_slice): Likewise.
5997         (gaih_getanswer): Likewise.
5998         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5999         __libc_res_nquery call.
6000         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6001         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6002         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6003         available.
6004
6005 2008-05-05  David S. Miller  <davem@davemloft.net>
6006
6007         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6008         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6009
6010 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6011
6012         Fix termios bit macros.
6013         Move *DLY definitions where they belong, in termios.h.
6014         Add *[0-3] definitions.
6015         Fixes confusion between VT and FF.
6016         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6017         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6018         are already defined to avoid collision with termios.h.
6019         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6020         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6021         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6022         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6023         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6024         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6025         VTDLY, VT0, VT1): New macros.
6026         [__USE_GNU] (OLCUC): Change value of macro.
6027         [__USE_XOPEN] (OFILL): New macro.
6028         [__USE_BSD] (CRTSCTS): Change value.
6029         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6030         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6031         (B7200, B14400, B28800, B76800): New macros.
6032
6033 2008-05-01  David S. Miller  <davem@davemloft.net>
6034
6035         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6036         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6037         (gen-as-const-headers): Add it.
6038         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6039         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6040         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6041         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6042
6043         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6044         six system call parameters.
6045         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6046
6047 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6048
6049         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6050         RUSAGE_LWP.
6051         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6052         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6053
6054 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6055
6056         * stdlib/tst-setcontext.c: Include unistd.h.
6057
6058 2008-04-25  David S. Miller  <davem@davemloft.net>
6059
6060         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6061         Pass "union semun" properly in to sys_ipc, it must be passed
6062         by value, not by reference.
6063
6064 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6065
6066         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6067         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6068         * nscd/connections.c (mem_in_flight): Likewise.
6069
6070         * nscd/nscd.h (dbs): Make hidden.
6071
6072         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6073         Avoid returning -1, return 0 instead.
6074
6075 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6076
6077         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6078
6079 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6080
6081         [BZ #5209]
6082         * sysdeps/unix/sysv/linux/times.c: New file.
6083
6084         [BZ #5381]
6085         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6086         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6087         prototype.
6088         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6089         appropriate mem_in_flight element.
6090         (gc): Take allocations which have not yet been committed to the
6091         database into account.
6092         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6093         Reset mem_in_flight before returning.
6094         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6095         cue it up in mem_in_flight_list.
6096         * nscd/aicache.c: Adjust mempool_alloc call.
6097         * nscd/grpcache.c: Likewise.
6098         * nscd/hstcache.c: Likewise.
6099         * nscd/initgrcache.c: Likewise.
6100         * nscd/pwdcache.c: Likewise.
6101         * nscd/servicescache.c: Likewise.
6102         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6103         of -fpie.
6104
6105         * nscd/connections.c (handle_request): Provide better error message
6106         in case SELinux forbids the service.
6107
6108         * version.h (VERSION): Bump to 2.8.90.
6109
6110 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6111
6112         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6113
6114 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6115
6116         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6117         Also use for 32-bit.
6118         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6119         __nextafter instead of nextafter to avoid local PLT.
6120         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6121         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6122
6123         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6124
6125         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6126         __fe_nomask_env.
6127         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6128         <fenv_libc.h> instead of <fenv.h>.
6129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6131
6132         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6133
6134         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6135         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6136         function from fegetexcept and make old name weak alias.
6137         * include/fenv.h: Declare __fegetexcept.
6138         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6139         fegetexcept.
6140         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6141         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6142         to fetestexcept.
6143         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6144         instead of frexpl to avoid local PLT.
6145         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6146         ilogbl to avoid local PLT.
6147         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6148         instead of ldexpl to avoid local PLT.
6149         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6150         __roundl not roundl to avoid local PLT.
6151         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6152         local PLTs.  Use __sincosl instead of separate sinl and cosl
6153         calls.
6154         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6155
6156         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6157         version for ppc64 to 2.4.21 since without it makecontext will fail.
6158
6159         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6160         to the ABI in use.
6161         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6162         .__tls_get_addr.
6163         [__powerpc64__] (TLS_GD): Likewise.
6164
6165 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6166
6167         [BZ #4997]
6168         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6169         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6170         mantissa.
6171         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6172         Likewise.  Also account for when x is an odd number between 2^52
6173         and 2^53-1.
6174         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6175         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6176         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6177         detect aforementioned erroneous conditions.
6178
6179 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6180
6181         * configure.in: Check for -fno-section-anchors in addition to
6182         -fno-toplevel-reorder.
6183
6184 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6185
6186         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6187
6188         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6189         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6190         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6191         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6192         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6193         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6194
6195 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6196
6197         [BZ #5443]
6198         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6199         * time/alt_digit.c: Likewise.
6200         * wcsmbs/wcsmbsload.c: Likewise.
6201
6202 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6203
6204         * version.h (VERSION): Bump to 2.8.
6205
6206         * timzeone/asia: Update from tzdata2008b.
6207         * timezone/backward: Likewise.
6208         * timezone/europe: Likewise.
6209         * timezone/northamerica: Likewise.
6210         * timezone/southamerica: Likewise.
6211         * timezone/iso3166.tab: Likewise.
6212         * timezone/leapseconds: Likewise.
6213         * timezone/zone.tab: Likewise.
6214         * timezone/private.h: Update from tzcode2008a.
6215         * timezone/zdump.c: Likewise.
6216         * timezone/zic.c: Likewise.
6217
6218 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6219
6220         [BZ #5741]
6221         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6222         Define additonal Data Cache Block instruction macros.
6223         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6224         Replace dcbst with dcbf and sync with sync/isync.
6225
6226 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6227
6228         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6229         Always set ELF_RTYPE_CLASS_PLT.
6230         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6231
6232 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6233
6234         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6235         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6236         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6237         For ISA 2.01 and later replace mftb with mfspr 268.
6238
6239 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6240
6241         [BZ #5768]
6242         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6243         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6244
6245 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6246
6247         [BZ #5768]
6248         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6249         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6250         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6251         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6252
6253 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6254
6255         * stdlib/tst-makecontext.c (othervar): New variable.
6256         (cf): Test sign extending the argument to long.
6257
6258 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6259
6260         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6261         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6262         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6263         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6264         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6265         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6266         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6267
6268 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6269
6270         * elf/Makefile (tests): Substitute tests-vis-yes here.
6271         (tests-vis-yes): Delete.
6272         (modules-name, modules-vis-yes): Similarly.
6273
6274 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6275
6276         [BZ #4407]
6277         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6278         Preserve sign in signgamp when x is zero.
6279
6280 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6281
6282         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6283         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6284         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6285         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6286         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6287         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6288
6289 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6290
6291         [BZ #4314]
6292         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6293         buffers.
6294
6295         [BZ #5209]
6296         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6297         a reserved error value.
6298
6299         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6300         value to check for correct sign extension.
6301
6302         [BZ #5436]
6303         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6304         Copy 64-bit parameter values even though this is not required in
6305         the standard.
6306
6307         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6308         PC save.
6309
6310 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6311
6312         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6313         PC save.
6314
6315 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6316
6317         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6318
6319 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6320
6321         [BZ #5998]
6322         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6323         in line-buffered stream failed.
6324         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6325
6326 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6327
6328         [BZ #6024]
6329         * scripts/abi-versions.awk: If the version specified by
6330         --enable-oldest-abi is older than the first version for this
6331         architecture, use the default version.
6332
6333         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6334         as well when ignoring the whole category.
6335
6336 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6337
6338         [BZ #6042]
6339         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6340         ETHERTYPE_* definitions.
6341         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6342
6343 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6344
6345         * stdlib/mbtowc.c (__no_r_state): Remove.
6346         (mbtowc): New static state variable.  Use it instead of
6347         __no_r_state.
6348         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6349         (__wctomb_state): New hidden variable.
6350         (wctomb): Use __wctomb_state instead of __no_r_state.
6351         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6352         (__wctomb_state): New extern decl.
6353         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6354
6355 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6356
6357         [BZ #5475]
6358         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6359
6360 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6361
6362         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6363
6364 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6365
6366         * po/nl.po: Update from translation team.
6367
6368 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6369
6370         [BZ #6007]
6371         * string/strfry.c: Handle empty strings again.
6372
6373 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6374
6375         [BZ #5443]
6376         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6377         before looking for translation.
6378         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6379         * locale/freelocale.c: Likewise.
6380         * locale/newlocale.c: Likewise.
6381         * locale/setlocale.c: Likewise.
6382         Based partially on a patch by ryo@np.css.fujitsu.com.
6383
6384 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6385
6386         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6387         acquiring wrlock.  Do conv_tab allocation while holding lock.
6388         * intl/Makefile: Add rules to build and run tst-gettext6.
6389         * intl/tst-gettext6.c: New test.
6390         * intl/tst-gettext6.sh: New file.
6391
6392 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6393
6394         * po/nl.po: Update from translation team.
6395
6396         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6397         provided through st_blksize, try the default size before giving up.
6398
6399 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6400
6401         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6402
6403         [BZ #5939]
6404         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6405
6406         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6407         error message.  POSIX today does not require the messages to be in
6408         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6409
6410         [BZ #5979]
6411         * sunrpc/auth_unix.c: Unify printed strings.
6412         * sunrpc/clnt_tcp.c: Likewise.
6413         * sunrpc/clnt_udp.c: Likewise.
6414         * sunrpc/clnt_unix.c: Likewise.
6415         * sunrpc/svc_tcp.c: Likewise.
6416         * sunrpc/svc_udp.c: Likewise.
6417         * sunrpc/svc_unix.c: Likewise.
6418         * sunrpc/xdr.c: Likewise.
6419         * sunrpc/xdr_array.c: Likewise.
6420         * sunrpc/xdr_rec.c: Likewise.
6421         * sunrpc/xdr_ref.c: Likewise.
6422         * locale/programs/ld-time.c (time_finish): Unify messages.
6423         * locale/programs/locfile.c (handle_copy): Fix typo.
6424         * nscd/nscd.c (options): Fix typo.
6425
6426         [BZ #5995]
6427         * stdlib/strtod_l.c: Use correct sign for result in one more
6428         underflow case.
6429         Patch by Eric Blake <ebb9@byu.net>.
6430
6431 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6432
6433         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6434         and creat system calls.
6435         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6436         call.
6437         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6438         system calls.
6439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6440         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6441         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6442
6443 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6444
6445         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6446         <linux/limits.h> has defined it.
6447         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6448         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6449         headers.
6450         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6451         it instead of ARG_MAX.
6452
6453 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6454
6455         * posix/gai.conf: Fix comment for scope nullbits.
6456         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6457         default to 128 bits for v4 mapped addresses.
6458
6459 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6460
6461         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6462         ptrace call to get the ieee_instruction_pointer from the kernel.
6463         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6464         ptrace call to set the ieee_instructtion_pointer.
6465         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6466         Add comment that ieee_instruction_pointer is always 0.
6467
6468 2008-03-09  Andreas Jaeger  <aj@suse.de>
6469
6470         [BZ #5857]
6471         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6472         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6473         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6474
6475         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6476         (rint_test): Likewise.
6477
6478 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6479
6480         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6481         call.
6482         (__nisfind_server): Similar for open readColdStartFile call.
6483         Patch partially by Jim Meyering.
6484         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6485         around internal_setent call.
6486
6487         * po/vi.po: New Vietnamese translation.
6488
6489         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6490         ADJ_OFFSET_SS_READ.
6491
6492         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6493         remove CLONE_STOPPED.
6494
6495 2008-02-10  Jim Meyering  <meyering@redhat.com>
6496
6497         Remove useless "if" before "free":
6498         * elf/ldconfig.c (parse_conf_include): Likewise.
6499         * gmon/gmon.c (weak_alias): Likewise.
6500         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6501         * inet/rcmd.c (__validuser2_sa): Likewise.
6502         * intl/bindtextdom.c (set_binding_values): Likewise.
6503         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6504         * libio/genops.c (save_for_backup): Likewise.
6505         * libio/wgenops.c (save_for_wbackup): Likewise.
6506         * locale/programs/ld-collate.c (collate_read): Likewise.
6507         * locale/programs/linereader.c (get_string): Likewise.
6508         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6509         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6510         * resolv/res_debug.c (do_section): Likewise.
6511         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6512         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6513         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6514         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6515         * time/tzset.c (tzset_internal): Likewise.
6516
6517 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6518
6519         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6520         of ASSEMBLER.
6521
6522 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6523
6524         [BZ #5903]
6525         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6526         not stream for output file.  Open output file here.
6527         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6528         and output file name.
6529         (process_fd): Likewise.
6530         (process_file): Likewise.
6531         (main): Adjust callers of changed functions.
6532         * iconv/iconv_prog.h: Adjust prototype.
6533
6534 2008-03-09  Andreas Jaeger  <aj@suse.de>
6535
6536         [BZ #5753]
6537         * sysdeps/ia64/ieee754.h: Use protected namespace
6538         __BIG_ENDIAN/__LITTLE_ENDIAN.
6539         * sysdeps/ieee754/ieee754.h: Likewise.
6540         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6541
6542 2008-03-08  Roland McGrath  <roland@frob.com>
6543
6544         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6545         ignore a signal that came from a machine exception, treat it as a
6546         fatal core-dump signal instead.
6547         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6548
6549         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6550         Clear DF bit in thread state's eflags.
6551         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6552
6553 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6554
6555         [BZ #5774]
6556         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6557         of NAN(...) sequence.
6558         * stdlib/Makefile (tests): Add tst-strtod6.
6559         * stdlib/tst-strtod6.c: New file.
6560
6561         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6562
6563         [BZ #5762]
6564         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6565         putting offending option character in quotes.  Clean up error
6566         messages.
6567         * po/be.po: Adjust msgstr in translation file.
6568         * po/bg.po: Likewise.
6569         * po/ca.po: Likewise.
6570         * po/cs.po: Likewise.
6571         * po/da.po: Likewise.
6572         * po/de.po: Likewise.
6573         * po/es.po: Likewise.
6574         * po/fr.po: Likewise.
6575         * po/hr.po: Likewise.
6576         * po/ko.po: Likewise.
6577         * po/nl.po: Likewise.
6578         * po/rw.po: Likewise.
6579         * po/sk.po: Likewise.
6580         * po/sv.po: Likewise.
6581         * po/tr.po: Likewise.
6582         * po/zh_CN.po: Likewise.
6583         * po/zh_TW.po: Likewise.
6584
6585         [BZ #5760]
6586         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6587         Patch by Roland Bless <roland@bless.de>.
6588
6589         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6590         .o file.
6591         * elf/Makefile (routines): Add dl-sysdep.
6592         (elide-routines.os): Likewise.
6593
6594 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6595
6596         [BZ #5786]
6597         * elf/dl-sysdep.c: Undefine ROUND after use.
6598         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6599         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6600         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6601         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6602         to ...
6603         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6604         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6605         if necessary.
6606         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6607
6608         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6609         _dl_tls_get_addr_soft element.
6610         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6611         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6612         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6613         GLRO.
6614         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6615         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6616         of internal_function.
6617
6618         * stdlib/Makefile (aux): Add tens_in_limb.
6619         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6620         * stdlib/tens_in_limb.c: ...here.  New file.
6621
6622         [BZ #5778]
6623         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6624         __statfs_chown_restricted.
6625         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6626         for _PC_CHOWN_RESTRICTED.
6627         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6628         Implement __statfs_chown_restricted.
6629         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6630         _POSIX_CHOWN_RESTRICTED value to zero.
6631         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6632         defined to zero.
6633
6634         * sysdeps/x86_64/rtld-memset.c: New file.
6635
6636 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6637
6638         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6639
6640         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6641         Barcelona machine.  Make default fall through branch of
6642         __x86_64_preferred_memory_instruction check as the integer code path.
6643
6644 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6645
6646         * sysdeps/x86_64/cacheinfo.c
6647         (__x86_64_preferred_memory_instruction): New variable.
6648         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6649
6650         * sysdeps/x86_64/memset.S: Rewrite.
6651
6652 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6653
6654         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6655         __obstack_printf_chk): New prototypes.
6656         (__vasprintf_chk, __vdprintf_chk,
6657         __obstack_vprintf_chk): Likewise.
6658         Add libc_hidden_proto.
6659         * libio/obprintf.c
6660         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6661         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6662         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6663         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6664         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6665         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6666         __obstack_vprintf_chk): New prototypes.
6667         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6668         obstack_vprintf): New inlines.
6669         * debug/dprintf_chk.c: New file.
6670         * debug/vdprintf_chk.c: New file.
6671         * debug/asprintf_chk.c: New file.
6672         * debug/vasprintf_chk.c: New file.
6673         * debug/obprintf_chk.c: New file.
6674         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6675         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6676         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6677         @@GLIBC_2.8.
6678         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6679         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6680         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6681         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6682         libc_hidden_proto.
6683         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6684         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6685         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6686         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6687         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6688         @@GLIBC_2.8.
6689         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6690         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6691         obstack_vprintf_chk.
6692         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6693         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6694         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6695         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6696         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6697         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6698
6699 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6700
6701         [BZ #5779]
6702         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6703         Patch by Roy Marples <roy@marples.name>.
6704
6705         [BZ #5736]
6706         * malloc/malloc.c: Fix typo in comment.
6707
6708         [BZ #5627]
6709         * locale/iso-639.def: Add Shuswap.
6710
6711 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6712
6713         [BZ #5790]
6714         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6715         overwrite *h_errnop/*errnop values from getanswer_r in case of
6716         failure.
6717
6718 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6719
6720         [BZ #5818]
6721         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6722         (verify_persistent_db): Remove one unnecessary test and add a new one
6723         for bad configuration.
6724         (nscd_init): Improve error reported when persistent database cannot
6725         be reused.
6726         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6727         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6728         .suggested_module and .max_db_size and case config file says the
6729         values are zero.
6730         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6731
6732         [BZ #5854]
6733         * nis/ypclnt.c (yp_order): Fix handling of return value of
6734         do_ypcall_tr call.
6735         Patch by Jeff Moyer <jmoyer@redhat.com>.
6736
6737         * po/fr.po: Update from translation team.
6738
6739 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6740             Carlos O'Donell <carlos@systemhalted.org>
6741
6742         [BZ #5012]
6743         * FAQ.in: Describe why glibc needs to be compiled with
6744         optimization.
6745
6746 2008-02-19  Roland McGrath  <roland@redhat.com>
6747
6748         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6749
6750 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6751
6752         [BZ #5737]
6753         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6754         __USE_MISC is defined.
6755
6756 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6757
6758         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6759         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6760         sys/timerfd.h.
6761         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6762         timerfd_gettime, timerfd_settime.
6763         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6764         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6765
6766 2008-02-08  Roland McGrath  <roland@redhat.com>
6767
6768         * elf/elf.h (NT_PPC_SPE): New macro.
6769
6770 2008-02-06  Roland McGrath  <roland@redhat.com>
6771
6772         * Makerules ($(common-objpfx)sysd-rules):
6773         Depend on $(sysdep-makeconfigs).
6774
6775 2008-01-31  Roland McGrath  <roland@redhat.com>
6776
6777         [BZ #5442]
6778         * configure.in: Use -print-file-name if it yields a directory,
6779         for each of include and include-fixed.
6780         * configure: Regenerated.
6781
6782         * Makeconfig (sysd-rules-targets): New variable.
6783         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6784         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6785
6786 2008-01-30  Roland McGrath  <roland@redhat.com>
6787
6788         * manual/libc.texinfo: Update back-cover text.
6789
6790         * elf/elf.h (NT_386_TLS): New macro.
6791
6792 2008-01-29  Roland McGrath  <roland@redhat.com>
6793
6794         * Makeconfig (sysd-rules-patterns): New variable.
6795         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6796         (check-inhibit-asm): New canned sequence, replaces ...
6797         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6798         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6799         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6800         (CFLAGS-rtld): Variable removed.
6801
6802 2008-01-24  Roland McGrath  <roland@redhat.com>
6803
6804         * configure.in: Let configure fragments set base_os.
6805         * configure: Regenerated.
6806
6807 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6808
6809         * po/ko.po: Update from translation team.
6810
6811 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6812
6813         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6814
6815 2008-01-12  Andreas Jaeger  <aj@suse.de>
6816
6817         [BZ #5040]
6818         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6819         Add EPOLLRDHUP.
6820
6821 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6822
6823         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6824         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6825         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6826
6827 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6828
6829         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6830         * elf/dl-close.c (_dl_close): Check for it.
6831         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6832         (_dl_allocate_static_tls): Likewise.
6833         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6834         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6835         to it.
6836         * elf/tst-tls16.c: New file.
6837         * elf/tst-tlsmod16a.c: New file.
6838         * elf/tst-tlsmod16b.c: New file.
6839         * elf/Makefile: Add rules to build and run tst-tls16.
6840
6841 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6842
6843         [BZ #5628]
6844         * bits/shm.h: Fix comment describing shmid_ds.
6845         * sysdeps/gnu/bits/shm.h: Likewise.
6846         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6847         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6848         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6849         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6850         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6851         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6852         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6853         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6854         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6855
6856         [BZ #5607]
6857         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6858         prototypes.
6859         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6860         additional suffixes.
6861         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6862         Add optional functions mq_timedreceive and mq_timedsend.
6863         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6864         * conform/data/pthread.h-data: Fix prototype of
6865         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6866         * conform/data/semaphore.h-data: Allow time.h definitions.
6867         * conform/data/signal.h-data: Likewise.
6868         * conform/data/stdio.h-data: getw and putw are not required in v6.
6869         * conform/data/stdlib.h-data: Change setstate prototype.
6870         * conform/data/string.h-data: Fix strerror_r prototype.
6871         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6872         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6873         Fix readlink prototype.
6874         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6875         in6addr_loopback.
6876         * inet/netinet/in.h: Cleanup namespace.
6877         * posix/regex.h: Likewise.
6878         * resolv/netdb.h: Likewise.
6879         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6880         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6881         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6882         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6883         of names of in in6_addr.
6884         (default_precedence): Likewise.
6885         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6886         NULL definition.
6887
6888 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6889
6890         * conform/data/fmtmsg.h-data: Add missing allows.
6891         * conform/data/ftw.h-data: Likewise.
6892         * conform/data/inttypes.h-data: Likewise.
6893         * conform/data/math.h-data: Likewise.
6894         * conform/data/signal.h-data: Likewise.
6895         * conform/data/net/if.h-data: Likewise.
6896         * conform/data/netinet/in.h-data: Likewise.
6897         * conform/data/sys/socket.h-data: Likewise.
6898
6899         [BZ #5614]
6900         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6901         (__strtok_r): Simplify.
6902         * string/tester.c (test_strtok_r): Add test case for futile search
6903         with single-character seach string.
6904
6905 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6906
6907         * po/ko.po: Update from translation team.
6908
6909 2008-01-11  Andreas Jaeger  <aj@suse.de>
6910
6911         [BZ #5600]
6912         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6913         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6914         kernel header.
6915
6916 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6917
6918         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6919         native interface lookup in all the relevant places.
6920
6921 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6922             Ulrich Drepper  <drepper@redhat.com>
6923
6924         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6925         field.  Use sockaddr_in6 for source_addr.
6926         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6927         (match_prefix): Likewise.
6928         (get_label): Likewise.
6929         (get_precedence): Likewise.
6930         (rfc3484_sort): Change to use indirect access to results array.
6931         Adjust to use of sockaddr_in6.  Replace service_order test with
6932         simple index comparison.
6933         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6934         service_order field.  Adjust qsort_t calls.  Access sorted result
6935         array indirectly through order array.
6936         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6937         * posix/tst-rfc3484-2.c: Likewise.
6938         * posix/tst-rfc3484-3.c: Likewise.
6939
6940 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6941
6942         [BZ #5541]
6943         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6944         pollfd structures.
6945         Patch by André Cruz.
6946
6947         [BZ #5545]
6948         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6949         (clnt_spcreateerror): Likewise.
6950
6951         [BZ #5553]
6952         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6953         (public_mEMALIGn): Likewise.
6954         Patch mostly by Daniel Jacobowitz.
6955
6956 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6957
6958         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6959         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6960         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6961         * stdlib/tst-makecontext2.c: New test.
6962
6963 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6964
6965         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6966         defined.
6967         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6968         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6969         transliteration hooks and REINIT_PARAMS afterwards.
6970         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6971         status.
6972         (REINIT_PARAMS): Define.
6973         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6974         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6975         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6976         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6977         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6978         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6979         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6980         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6981         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6982         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6983         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6984         * iconvdata/tst-iconv7.c: New test.
6985
6986 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6987
6988         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6989
6990 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6991
6992         [BZ #5112]
6993         * nscd/connections.c (restart): Fix condition.
6994
6995 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6996
6997         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6998         __ctype_toupper_loc): Add __THROW.
6999
7000 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7001
7002         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7003         recognition of interface family.
7004
7005         * posix/getconf.c: Update copyright year.
7006         * nss/getent.c: Likewise.
7007         * iconv/iconvconfig.c: Likewise.
7008         * iconv/iconv_prog.c: Likewise.
7009         * elf/ldconfig.c: Likewise.
7010         * catgets/gencat.c: Likewise.
7011         * csu/version.c: Likewise.
7012         * elf/ldd.bash.in: Likewise.
7013         * elf/sprof.c (print_version): Likewise.
7014         * locale/programs/locale.c: Likewise.
7015         * locale/programs/localedef.c: Likewise.
7016         * nscd/nscd.c (print_version): Likewise.
7017         * debug/xtrace.sh: Likewise.
7018         * malloc/memusage.sh: Likewise.
7019         * malloc/mtrace.pl: Likewise.
7020         * debug/catchsegv.sh: Likewise.
7021
7022 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7023
7024         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7025         second lookup.
7026
7027 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7028
7029         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7030         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7031
7032 2007-12-17  Roland McGrath  <roland@redhat.com>
7033
7034         * inet/ether_line.c (ether_line): Remove unused variable.
7035
7036 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7037
7038         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7039         and winp.
7040         * login/openpty.c (openpty): Likewise.
7041         * login/pty.h (openpty, forkpty): Likewise.
7042         * manual/terminal.texi (openpty, forkpty): Likewise.
7043
7044 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7045
7046         * malloc/malloc.c (public_cALLOc): For arenas other than
7047         main_arena, count all bytes inside the mprotect_size range of the
7048         heap as uninitialized.
7049
7050 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7051
7052         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7053         executable stacks.
7054
7055         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7056         mTRIm for all of them.
7057         (mTRIm): Additionally iterate over all free blocks and use madvise
7058         to free memory for all those blocks which contain at least one
7059         memory page.
7060         * malloc/tst-trim1.c: New file.
7061         * malloc/Makefile (tests): Add tst-trim1.
7062
7063         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7064
7065 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7066
7067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7068         First cast argument to long
7069         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7070         Return long.
7071         (__vdso_clock_gettime): Likewise.
7072         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7073         return long.
7074
7075 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7076
7077         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7078         * locale/nl_langinfo_l.c: Real implementation, copied from
7079         nl_langinfo.c.
7080         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7081
7082 2007-12-01  Jim Meyering  <meyering@redhat.com>
7083
7084         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7085         that would inhibit utf8-optimization of a regexp containing line-
7086         or buffer-anchors, e.g., `^', `$'.
7087
7088 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7089
7090         * time/bug-getdate1.c (do_test): Don't use century values which
7091         aren't valid on 32-bit systems.
7092
7093 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7094
7095         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7096         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7097         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7098         __strcat_g, __strncat_g): Add __asm__.
7099
7100 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7101
7102         [BZ #5477]
7103         * io/fchmodat.c: Fix typo in stub_warning use.
7104         Patch by Petr Salinger.
7105
7106 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7107
7108         * iconvdata/hp-thai8.c: New file.
7109         * iconvdata/Makefile: Add rules for hp-thai8.c.
7110         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7111         * iconvdata/gconv-modules: Likewise.
7112
7113         [BZ #5464]
7114         * iconvdata/hp-greek8.c: New file.
7115         * iconvdata/Makefile: Add rules for hp-greek8.c.
7116         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7117         * iconvdata/gconv-modules: Likewise.
7118
7119         [BZ #5463]
7120         * iconvdata/hp-turkish8.c: New file.
7121         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7122         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7123         * iconvdata/gconv-modules: Likewise.
7124
7125         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7126         (shrink_heap): ... this new function.
7127         (heap_trim): Call shrink_heap instead of grow_heap.
7128
7129         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7130         case don't call alloc_perturb.
7131
7132 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7133
7134         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7135         possible.
7136         * sysdeps/unix/sysv/linux/kernel-features.h
7137         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7138         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7139
7140 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7141
7142         [BZ #5424]
7143         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7144         * stdio-common/Makefile (tests): Add bug22.
7145         * stdio-common/bug22.c: New file.
7146
7147         [BZ #5451]
7148         * time/getdate.c: Fix filling in default values.
7149         * time/bug-getdate1.c: New file.
7150         * time/Makefile: Add rules to build and run bug-getdate1.
7151
7152         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7153         * iconvdata/ebcdic-es.c: Likewise.
7154         * iconvdata/ebcdic-es-a.c: Likewise.
7155         * iconvdata/ebcdic-uk.c: Likewise.
7156         * iconvdata/iso8859-16.c: Likewise.
7157         * iconvdata/viscii.c: Likewise.
7158         * iconvdata/iso8859-9e.c: Likewise.
7159         * iconvdata/Makefile: Adjust appropriately.
7160
7161         [BZ #5428]
7162         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7163         __need_wint_t.
7164
7165 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7166
7167         [BZ #5427]
7168         * iconvdata/hp-roman9.c: New file.
7169         * iconvdata/Makefile: Add rules for hp-roman9.c.
7170         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7171         * iconvdata/gconv-modules: Likewise.
7172
7173         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7174         * iconvdata/Makefile: Adjust appropriately.
7175
7176         [BZ #5441]
7177         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7178         structure, it's allocated with alloca.
7179         * stdio-common/Makefile (tests): Add bug21.
7180         * stdio-common/bug21.c: New file.
7181
7182 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7183
7184         [BZ #5452]
7185         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7186         keyword for gcc's braced-groups.
7187
7188 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7189
7190         [BZ #5454]
7191         * inet/ether_line.c: Strip hostname of whitespaces.
7192         * inet/Makefile (tests): Add tst-ether_line.
7193         * inet/tst-ether_line.c: New file.
7194
7195 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7196
7197         [BZ #5439]
7198         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7199
7200         [BZ #5435]
7201         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7202
7203         * stdlib/tst-setcontext.c: Catch the case where the links gets
7204         messed up and we do not reach main again.
7205
7206         * po/ca.po: Update from translation team.
7207
7208 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7209
7210         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7211         * posix/regex.h (REG_ENOSYS): Likewise.
7212         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7213
7214 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7215
7216         * nscd/nscd.h (MAX_STACK_USE): Define.
7217         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7218         (gc): Initialize stack_used based on allocation in prune_cache.
7219         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7220         Clear array before use.
7221
7222         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7223         memory allocation failed.
7224         * nscd/hstcache.c (cache_addhst): Likewise.
7225         * nscd/grpcache.c (cache_addgr): Likewise.
7226         * nscd/servicescache.c (cache_addserv): Likewise.
7227         * nscd/pwdcache.c (cache_addpw): Likewise.
7228         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7229
7230 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7231
7232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7233         and creat system calls.
7234
7235         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7236
7237 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7238
7239         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7240         Add netiucv/iucv.h.
7241         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7242         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7243         protocol.
7244         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7245         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7246         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7247
7248 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7249
7250         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7251         strncat): Define as macros to avoid compile errors.
7252
7253         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7254         creat entries.
7255
7256 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7257
7258         [BZ #5382]
7259         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7260         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7261         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7262         overflow it.
7263         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7264
7265         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7266         Return zero in case the thread library is not NPTL.
7267
7268         [BZ #5375]
7269         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7270         initializing interface list.
7271
7272         [BZ #5378]
7273         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7274         use result of nss_getgrgid_r if nothing was found.  For other
7275         error return with a failure.
7276         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7277
7278         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7279         macro name.
7280
7281 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7282
7283         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7284         (get_scope): For IPv4 scope, use scopes table.
7285         (fini): Free scopes table if necessary.
7286         (free_scopelist): New function.
7287         (scopecmp): New function.
7288         (gaiconf_init): Also handle scopev4 entries.
7289         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7290         * posix/tst-rfc3484-2.c (do_test): Likewise.
7291         * posix/gai.conf: Document scopev4 defaults.
7292         * posix/Makefile (tests): Add tst-rfc3484-3.
7293         * posix/tst-rfc3484-3.c: New file.
7294
7295         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7296         Teredo tunnels.
7297         * posix/gai.conf: Update for current default tables.
7298
7299 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7300
7301         * po/tr.po: Update from translation team.
7302
7303 2007-11-18  Roland McGrath  <roland@frob.com>
7304
7305         * manual/arith.texi (Remainder Functions): Spelling fix.
7306         From Shaun Silk <genix@mysoul.com.au>.
7307
7308         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7309
7310 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7311
7312         * po/zh_CN.po: Update from translation team.
7313
7314         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7315         Add sys/signalfd.h and sys/eventfd.h.
7316
7317 2007-11-15  Bruno Haible  <bruno@clisp.org>
7318
7319         [BZ #5346]
7320         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7321         union.
7322         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7323         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7324         it needs only fixed stack space. Delay the initialization of
7325         msgid_len until it is needed.
7326
7327 2007-11-15  Andreas Jaeger  <aj@suse.de>
7328
7329         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7330         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7331
7332 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7333
7334         * po/ko.po: Update from translation team.
7335
7336 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7337
7338         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7339         significantly.  The device type is also part of the ifinfomsg data.
7340
7341         * po/sv.po: Update from translation team.
7342         * po/nl.po: Likewise.
7343
7344         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7345         to wake up in 24 hours.
7346
7347         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7348
7349 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7350
7351         * po/cs.po: Update from translation team.
7352         * po/pl.po: Likewise.
7353
7354         * include/ifaddrs.h: Remove in6ai_temporary.
7355         (struct in6addrinfo): Add index element.
7356         Declare __check_native.
7357         * inet/Makefile (aux): Add check_native.
7358         * sysdeps/unix/sysv/linux/check_native.c: New file.
7359         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7360         IFA_F_TEMPORARY.  Pass back ifa_index.
7361         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7362         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7363         call __check_native if necessary.
7364         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7365         to sort addresses.  Pass information about the results.
7366         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7367         of rfc3484_sort interface.
7368         * posix/tst-rfc3484-2.c: Likewise.
7369
7370         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7371         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7372         for _quicksort.
7373         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7374         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7375         on as third parameter to compare function and _quicksort.
7376         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7377         to the compare function.
7378         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7379         * Versions.def: Add GLIBC_2.8 for libc.
7380
7381         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7382         * posix/tst-rfc3484-2.c: Likewise.
7383
7384         * include/kernel-features.h: Moved to...
7385         * sysdeps/mach/hurd/kernel-features.h: ...here.
7386
7387 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7388
7389         * sysdeps/i386/i586/memcpy_chk.S: New file.
7390         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7391         * sysdeps/i386/i586/memset_chk.S: Likewise.
7392
7393 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7394
7395         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7396         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7397         list of interfaces.  Also store prefix length.
7398         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7399         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7400         prefix if source and destination address are in the same subnet.
7401         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7402         Always look for matching record in in6ai list.
7403         Correct source_addr_len value for IPv6->IPv4 converted records.
7404
7405 2007-11-11  Roland McGrath  <roland@frob.com>
7406
7407         * include/kernel-features.h: New file.
7408
7409 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7410
7411         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7412         complications for 64-bit platforms.
7413
7414         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7415         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7416         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7417         open64_2.
7418         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7419         entries.
7420         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7421         * sysdeps/wordsize-64/alphasort.c: New file.
7422         * sysdeps/wordsize-64/alphasort64.c: New file.
7423         * sysdeps/wordsize-64/fseeko.c: New file.
7424         * sysdeps/wordsize-64/fseeko64.c: New file.
7425         * sysdeps/wordsize-64/ftello.c: New file.
7426         * sysdeps/wordsize-64/ftello64.c: New file.
7427         * sysdeps/wordsize-64/ftw.c: New file.
7428         * sysdeps/wordsize-64/ftw64.c: New file.
7429         * sysdeps/wordsize-64/iofgetpos.c: New file.
7430         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7431         * sysdeps/wordsize-64/iofopen.c: New file.
7432         * sysdeps/wordsize-64/iofopen64.c: New file.
7433         * sysdeps/wordsize-64/iofsetpos.c: New file.
7434         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7435         * sysdeps/wordsize-64/lockf.c: New file.
7436         * sysdeps/wordsize-64/lockf64.c: New file.
7437         * sysdeps/wordsize-64/mkostemp.c: New file.
7438         * sysdeps/wordsize-64/mkostemp64.c: New file.
7439         * sysdeps/wordsize-64/mkstemp.c: New file.
7440         * sysdeps/wordsize-64/mkstemp64.c: New file.
7441         * sysdeps/wordsize-64/scandir.c: New file.
7442         * sysdeps/wordsize-64/scandir64.c: New file.
7443         * sysdeps/wordsize-64/tmpfile.c: New file.
7444         * sysdeps/wordsize-64/tmpfile64.c: New file.
7445         * sysdeps/wordsize-64/versionsort.c: New file.
7446         * sysdeps/wordsize-64/versionsort64.c: New file.
7447         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7448         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7449         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7450         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7451         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7452         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7453         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7454         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7455         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7456         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7457         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7458         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7459
7460         * crypt/sha256-crypt.c: Fix a comment.
7461         * crypt/sha512-crypt.c: Likewise.
7462
7463 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7464
7465         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7466
7467 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7468
7469         [BZ #5277]
7470         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7471         because output buffer is too small break, don't loop.
7472         * iconvdata/Makefile (tests): Add bug-iconv6.
7473         * iconvdata/bug-iconv6.c: New file.
7474
7475 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7476
7477         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7478         with size_t type.
7479         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7480         size_t.  Add casts where needed.
7481
7482         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7483         old headers, don't call avc_has_perm if we don't have the
7484         permission information.
7485
7486 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7487
7488         * elf/rtld.c (dl_main): Use the page size to find the map start.
7489
7490 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7491
7492         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7493         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7494
7495         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7496         when the lookup call failed.
7497
7498         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7499         Add prune_cond and wakeup_time.
7500         (CACHE_PRUNE_INTERNAL): Define.
7501         Update declarations of prune_cache and setup_thread.
7502         * nscd/connections.c (dbs): Update initializers.
7503         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7504         (nscd_init): Default number of threads is now 4.
7505         (invalidate_cache): Take lock before calling prune_cache.
7506         (handle_request): If SELinux forbids the request, say so.
7507         (readylist_cond): Use static initializer.
7508         (nscd_run_prune): New function.  Used only by pruning threads.
7509         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7510         here.
7511         (fd_ready): Update nscd_run reference.
7512         (start_threads): No need to initialize readylist_cond.
7513         Start pruning threads separately.
7514         * nscd/nscd_setup_thread.c: Change return value type to int and always
7515         return 0.
7516         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7517         to int and return nonzero value if we can use the TID address hack.
7518         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7519         the database is later than the new entry's timeout, update the
7520         wakeup time and wake the cleanup thread.
7521         (prune_cache): Return seconds the next entry in the database is still
7522         valid.  Remove locking for pruning here.
7523         * nscd/nscd.conf: Document default number of threads.
7524
7525 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7526
7527         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7528         stack is properly aligned for the target function.
7529         Correct unwind info.
7530
7531         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7532         when using auditing libraries.
7533
7534 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7535
7536         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7537         _nss_dns_getnetbyaddr2_r.
7538         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7539         extra parameter to getanswer_r.
7540         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7541         _nss_dns_getnetbyaddr2_r.
7542
7543         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7544         gethstbynm3_r.
7545         * nscd/gethstbynm2_r.c: Remove.
7546         * nscd/gethstbynm3_r.c: New file.
7547         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7548         __gethostbyaddr_r.
7549         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7550         __gethostbyaddr_r compatibility wrapper.
7551         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7552         determining timeout of entry.
7553         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7554         __gethostbyaddr2_r.
7555         (addhstbyX): Pass reference to variable for TTL to lookup and
7556         cache_addhst.
7557         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7558         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7559         and __nss_next2.  Remove __nss_services_lookup.
7560         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7561         Add compat wrapper.
7562         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7563         __nss_next2.
7564         * nss/getXXent_r.c: Likewise.
7565         * nss/getnssent_r.c: Likewise.
7566         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7567         does not exist in module, try the optional second name.
7568         (__nss_next2): New function.
7569         (__nss_next): Now wrapper around __nss_next2.
7570         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7571         Declare __nss_next2.
7572         Adjust definition of db_lookup_function type.
7573         * nss/service-lookup.c: Define NO_COMPAT.
7574         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7575         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7576         * inet/ether_ntoh.c: Likewise.
7577         * sunrpc/netname.c: Likewise.
7578         * sunrpc/publickey.c: Likewise.
7579         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7580         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7581         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7582         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7583         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7584
7585         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7586
7587         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7588
7589 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7590
7591         [BZ #5204]
7592         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7593         * crypt/sha512c-test.c: Likewise.
7594
7595         [BZ #5225]
7596         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7597         to keep track of end of %[ format string element.
7598         * stdio-common/Makefile (tests): Add bug20.
7599         * stdio-common/bug20.c: New file.
7600
7601         [BZ #5222]
7602         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7603         path elements in counting mode.
7604
7605 2007-10-27  Andreas Jaeger  <aj@suse.de>
7606
7607         [BZ #5040]
7608         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7609
7610         [BZ #3112]
7611         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7612         (__cleanup): Free shared library when exiting.
7613         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7614         (__cleanup): Free shared library when exiting.
7615
7616 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7617
7618         [BZ #2549]
7619         * math/libm-test.inc (check_float_internal): Support
7620         denormalized return.
7621
7622 2007-10-23  Andreas Jaeger  <aj@suse.de>
7623
7624         [BZ #5208]
7625         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7626         __LONG_LONG_PAIR to handle little endian byte order.
7627         Suggested by abhishekrai@google.com
7628
7629 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7630
7631         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7632
7633 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7634
7635         * nscd/cache.c (prune_cache): Move test for modified file outside
7636         of locking.
7637
7638 2007-10-21  Andreas Jaeger  <aj@suse.de>
7639
7640         * manual/texinfo.tex: Update to latest version.
7641
7642         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7643
7644         * manual/arith.texi (Status bit operations): Fix formatting.
7645
7646         * manual/errno.texi (Error Messages): Fix formatting.
7647
7648         * manual/sysinfo.texi (System Parameters): Fix formatting.
7649
7650         * manual/libc.texinfo: Update VERSION and UPDATED.
7651
7652 2007-10-19  Roland McGrath  <roland@redhat.com>
7653
7654         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7655
7656 2007-10-06  David S. Miller  <davem@davemloft.net>
7657
7658         * configure.in: Add sparcv9v2 and sparc64v2.
7659         * scripts/config.sub: Likewise.
7660         * configure: Regenerate.
7661         * elf/elf.h (HWCAP_SPARC_N2): New.
7662         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7663         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7664         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7665         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7666         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7667         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7668         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7669
7670 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7671
7672         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7673         even if the poll result indicates there is data to read.
7674         Patch by Jeff Moyer <jmoyer@redhat.com>.
7675
7676 2007-10-18  Roland McGrath  <roland@redhat.com>
7677
7678         * elf/elf.h (NT_PPC_VMX): New macro.
7679
7680 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7681
7682         * version.h (VERSION): Set to 2.7.90.
7683
7684 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7685
7686         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7687         weak_alias.
7688
7689 2007-10-17  Roland McGrath  <roland@frob.com>
7690
7691         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7692         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7693
7694 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7695
7696         * version.h (VERSION): Bump to 2.7.
7697         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7698
7699         [BZ #5186]
7700         * time/tzset.c (__tz_convert): Don't force testing for a change of
7701         TZ if not called from localtime.  But then also see whether the
7702         file changed, in case __use_tzfile is set.
7703
7704         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7705         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7706         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7707         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7708         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7711         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7712
7713 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7714
7715         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7716         and admin selects to be able to replace the gai.conf file, lock
7717         data structures around the qsort call.
7718
7719 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7720
7721         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7722         new memset.
7723         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7724         too high for the improvements.  Implement bzero unconditionally for
7725         use in libc.
7726
7727 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7728             Jakub Jelinek  <jakub@redhat.com>
7729
7730         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7731         even when time_t is 32-bit.
7732         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7733         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7734         always set after the search.
7735
7736 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7737
7738         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7739         unreachable code on 32-bit machines.
7740
7741 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7742
7743         [BZ #5184]
7744         * time/strftime_l.c: Include stdbool.h.
7745         (my_strftime): New wrapper, old function renamed to...
7746         (__strftime_internal): ... new function.  Add tzset_called
7747         argument, pass it down to recursive calls, don't call tzset ()
7748         if already true, set to true after call to tzset ().
7749
7750 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7751
7752         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7753         into account when copying TZ string.
7754
7755 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7756
7757         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7758         num_transition rather than num_transitions - 1.
7759
7760 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7761
7762         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7763         PIC indirect jump.
7764
7765         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7766         a local label rather than HIDDEN_JUMPTARGET.
7767
7768 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7769
7770         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7771         (init_cacheinfo): Initialize it.
7772         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7773         Always define bzero.
7774         Remove non-glibc code.
7775         * sysdeps/x86_64/bzero.S: Make an empty file.
7776
7777 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7778
7779         * sysdeps/x86_64/cacheinfo.c
7780         (__x86_64_preferred_memory_instruction): New.
7781         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7782
7783         * sysdeps/x86_64/memset.S: Rewrite.
7784
7785 2007-10-15  Roland McGrath  <roland@redhat.com>
7786
7787         * po/libc.pot: Regenerated.
7788
7789 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7790
7791         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7792         pointers.
7793
7794         [BZ #3425]
7795         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7796         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7797         address record to T_A/T_AAAA requests.
7798
7799 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7800
7801         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7802
7803         * posix/glob.c: Add some branch prediction throughout.
7804
7805         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7806         read from nscd.
7807
7808         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7809         service_order.
7810         (rfc3484_sort): Make sure that even if qsort doesn't support
7811         stable sorting out sorting here is stable by comparing service_order.
7812         (getaddrinfo): Initialize service_order.
7813         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7814         service_order field to sorting structure.
7815         * posix/tst-rfc3484-2.c (do_test): Likewise.
7816
7817         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7818         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7819         __tzset_parse_tz and updating of daylight, timezone, tzname into
7820         update_vars.
7821         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7822         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7823         happens in __tz_compute.
7824         * time/tzfile.c (__tzfile_read): Also read TZ string.
7825         (find_transition): Fold into __tzfile_compute.
7826         (__tzfile_compute): For times beyond the last transition try to
7827         use the TZ string.
7828         * timezone/tst-timezone.c: Information in daylight and tzname does
7829         change for Asia/Tokyo timezone with more concrete information.
7830         Remove the test.
7831
7832         * include/stdio.h: Add libc_hidden_proto for ftello.
7833         * libio/ftello.c: Add libc_hidden_def.
7834
7835         [BZ #1140]
7836         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7837         on the specified time and not the last entries in the file.  Move
7838         code to determine tzname[] to...
7839         (find_transition): ...here.  Add ugly guess for times before the
7840         first transition.
7841
7842 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7843
7844         [BZ #3195]
7845         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7846         no entry.
7847         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7848         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7849         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7850         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7851
7852         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7853         read mechanism when there are no group members and avoid no-op
7854         read syscall in this case.
7855
7856         [BZ #3242]
7857         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7858         (__readall): If reading failed due to EAGAIN error wait a bit
7859         and possibly try again.
7860         (__readvall): Likewise.
7861
7862 2007-10-13  Bruno Haible  <bruno@clisp.org>
7863
7864         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7865         when we cannot recode the message.
7866
7867 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7868
7869         [BZ #4359]
7870         * libio/__freading.c (__freading): Don't return true for
7871         write-only streams.  For read/write streams, check whether we
7872         performed a read operation already.
7873         * libio/Makefile (tests): Add tst-ext2.
7874         * libio/tst-ext2.c: New file.
7875
7876 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7877
7878         * locale/programs/repertoire.c (repertoire_read): Always free
7879         memory for repertoire file name [Coverity CID 270].
7880
7881         * elf/cache.c (save_aux_cache): Free memory allocated for
7882         temporary file name [Coverity CID 267].
7883
7884 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7885
7886         * misc/Makefile (headers): Add bits/error.h.
7887
7888 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7889
7890         * posix/fnmatch_loop.c: Take rule index returned as part of
7891         findidx return value into account when accessing weights.
7892         * posix/regcomp.c: Likewise.
7893         * posix/regexec.c: Likewise.
7894
7895         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7896         (skip_to): Fix problems with parameter of elifdef/elifndef.
7897
7898 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7899
7900         * iconv/gconv_simple.c: Add some branch prediction.
7901
7902 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7903
7904         * locale/programs/ld-collate.c (collate_read): If ignore_content
7905         and nowtok is tok_define, eat any tok_eol tokens.
7906
7907 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7908
7909         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7910         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7911
7912         * inet/netinet/in.h: Don't include bits/socket.h.
7913         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7914         macro.
7915         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7916
7917 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7918
7919         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7920         and tok_elifndef.
7921         * locale/programs/locfile-kw.gperf: Likewise.
7922         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7923
7924 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7925
7926         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7927         (__find_specwc): Change into __extern_always_inline function.
7928         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7929         (__parse_one_specmb): Remove ps argument.
7930         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7931         Adjust __find_specmb and __parse_one_specmb callers.
7932         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7933         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7934         Removed.
7935         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7936         caller.
7937
7938 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7939
7940         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7941         with some Pentium Ds.
7942
7943 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7944
7945         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7946         __read not read.
7947         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7948         __write not write.
7949
7950 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7951
7952         [BZ #181]
7953         * locale/C-time.c: Set week_1stday data to 19971201.
7954         * locale/programs/ld-time.c (time_finish): Default for
7955         first_workday is Monday.
7956
7957         [BZ #2633]
7958         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7959
7960         [BZ #5103]
7961         * posix/glob.c (glob): Recognize patterns starting \/.
7962         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7963         (main): Add test for pattern starting \/.
7964
7965         * misc/error.h: Use __const instead of const.
7966         * misc/bits/error.h: Likewise.
7967
7968 2007-10-07  Andreas Jaeger  <aj@suse.de>
7969
7970         * include/bits/error.h: New file.
7971
7972         * misc/bits/error.h (error_at_line): Fix prototype.
7973
7974 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7975
7976         [BZ #3924]
7977         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7978         more little bugs in creating the stack frame when pltexit has to
7979         be called.
7980
7981         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7982         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7983
7984         [BZ #4407]
7985         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7986         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7987         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7988         * math/libm-test.inc: Add test for this case.
7989
7990         [BZ #5010]
7991         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7992         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7993         map service succeeded.
7994         (svc_is_mapped): New function.
7995         (svc_unregister): Use it before trying to unmap service.
7996
7997 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7998
7999         * timezone/zic.c: Update from tzcode2007h.
8000
8001         [BZ #5063]
8002         * timezone/africa: Update from tzdata2007h.
8003         * timezone/antarctica: Likewise.
8004         * timezone/asia: Likewise.
8005         * timezone/australasia: Likewise.
8006         * timezone/europe: Likewise.
8007         * timezone/leapseconds: Likewise.
8008         * timezone/northamerica: Likewise.
8009         * timezone/southamerica: Likewise.
8010         * timzeone/zone.tab: Likewise.
8011
8012         [BZ #5104]
8013         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8014
8015         [BZ #5113]
8016         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8017         avoid warning with -Wconversion.
8018         (__strndup): Likewise.
8019         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8020
8021         [BZ #5112]
8022         * nscd/connections.c (restart): Don't resync if database is
8023         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8024
8025         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8026         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8027
8028         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8029         evetnfd_read, eventfd_write.
8030         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8031         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8032         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8033         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8034         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8035         eventfd_write for GLIBC_2.7.
8036
8037         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8038         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8039         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8040         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8041
8042 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8043
8044         * stdlib/msort.c: Include stdint.h.
8045         (struct msort_param): New type.
8046         (msort_with_tmp): Use struct msort_param pointer for unchanging
8047         parameters.  Add optimized handling for several common sizes
8048         and indirect sorting mode.
8049         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8050         sorting.
8051         Suggested by Belazougui Djamel .
8052
8053         * stdlib/Makefile (tests): Add tst-qsort2.
8054         * stdlib/tst-qsort2.c: New test.
8055
8056 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8057
8058         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8059         for dup2 in case another thread races with the current one.  Retry
8060         in this case.
8061
8062         * misc/error.h: Remove support for use outside of libc.  We have to
8063         include <features.h> now.  Include <bits/error.h> if possible.
8064         * misc/bits/error.h: New file.
8065
8066 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8067
8068         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8069         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8070         __extern_always_inline functions unconditionally, drop macros.
8071
8072         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8073         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8074         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8075
8076         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8077         add __artificial__ attribute.
8078
8079 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8080
8081         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8082         backward to forward direction.
8083
8084         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8085
8086         [BZ #645]
8087         * locale/programs/ld-collate.c (collate_finish): Compare against last
8088         used section which is known to have rules defined.
8089         (collate_read): After order_start, correctly record order of sections
8090         and queue sections up.
8091
8092 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8093
8094         [BZ #5071]
8095         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8096         the same number of pages.
8097         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8098
8099         * locale/programs/ld-collate.c (collate_read): After initial copy
8100         statement, continue in state 0.
8101
8102         * include/stdio_ext.h (__fsetlocking): Define as macro.
8103
8104 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8105
8106         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8107         of section order.
8108
8109         * po/pt_BR.po: Fix typo.
8110
8111 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8112
8113         * iconvdata/Makefile (modules): Add ISO8859-9E.
8114         (distribute): Add iso8859-9e.c.
8115         (gen-8bit-gap-modules): Add iso8859-9e.
8116         * iconvdata/iso8859-9e.c: New file.
8117         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8118         * iconvdata/TESTS: Likewise.
8119         * iconvdata/tst-tables.sh: Likewise.
8120
8121         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8122
8123         * locale/iso-639.def: Add several new entries.
8124
8125 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8126
8127         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8128         void * pointers instead of struct link_map **.
8129         (_dl_scope_free): Change argument type to void *.
8130         * include/link.h (struct link_map): Change type of l_reldeps
8131         to struct link_map_reldeps, move l_reldepsact into that
8132         struct too.
8133         * elf/dl-deps.c: Include atomic.h.
8134         (_dl_map_object_deps): Only change l->l_initfini when it is
8135         fully populated, use _dl_scope_free for freeing it.  Optimize
8136         removal of libs from reldeps by using l_reserved flag, when
8137         some removal is needed, allocate a new list instead of
8138         reallocating and free the old with _dl_scope_free.  Adjust
8139         for l_reldeps and l_reldepsact changes.
8140         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8141         searching in l_initfini and l_reldeps without holding dl_load_lock.
8142         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8143         l_reldepsact changes.
8144         * elf/dl-close.c (_dl_close_worker): Likewise.
8145         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8146
8147 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8148
8149         * iconvdata/Makefile (modules): Add KOI8-RU.
8150         (distribute): Add koi8-ru.c.
8151         (gen-8bit-gap-modules): Add koi8-ru.
8152         * iconvdata/koi8-ru.c: New file.
8153         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8154         * iconvdata/TESTS: Likewise.
8155         * iconvdata/tst-tables.sh: Likewise.
8156
8157         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8158
8159 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8160
8161         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8162         with __warning__/__error__ attributes.
8163         (__warnattr): Define.
8164         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8165         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8166         __warnattr.
8167         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8168         of __*_chk if compile time detectable overflow is found.
8169         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8170         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8171         with __warnattr.
8172         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8173         instead of __*_chk if compile time detectable overflow is found.
8174         (__gets_alias): Rename to...
8175         (__gets_warn): ... this.  Add __warnattr.
8176         (gets): Call __gets_warn instead of __gets_alias.
8177         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8178         aliases with __warnattr.
8179         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8180         time detectable overflow is found.
8181         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8182         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8183         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8184         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8185         __getdomainname_chk_warn): New aliases with __warnattr.
8186         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8187         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8188         __*_chk_warn instead of __*_chk if compile time detectable overflow
8189         is found.
8190         (__getgroups_chk): Rename argument to __listlen from listlen.
8191         (__getwd_alias): Rename to...
8192         (__getwd_warn): ... this.  Add __warnattr.
8193         (getwd): Call __getwd_warn instead of __getwd_alias.
8194         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8195         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8196         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8197         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8198         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8199         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8200         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8201         compile time detectable overflow is found.
8202         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8203         to use __*_chk or not.
8204         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8205         in comparisons which function should be called and in __*_chk*
8206         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8207         detectable overflow is found.
8208         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8209         __*_chk argument.
8210         * debug/tst-chk1.c (do_test): Add a few more tests.
8211
8212 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8213
8214         [BZ #5058]
8215         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8216         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8217         (_nl_unload_domain): Finalize conversions_lock.
8218         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8219         handling table of known conversions.
8220
8221 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8222
8223         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8224         close_not_cancel_no_status instead of close.
8225
8226 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8227
8228         [BZ #5028]
8229         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8230         nrules != 0 for multibyte chars.
8231
8232 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8233
8234         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8235         Provide better error message in case the type is unknown.
8236
8237         [BZ #4963]
8238         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8239         * string/stratcliff.c: Make usable to test wide char functions.
8240         * wcsmbs/wcsatcliff.c: New file.
8241         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8242
8243         [BZ #4972]
8244         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8245         (distribute): Add mac-centraleurope.c.
8246         (gen-8bit-gap-modules): Add mac-centraleurope.
8247         * iconvdata/mac-centraleurope.c: New file.
8248         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8249         * iconvdata/TESTS: Likewise.
8250         * iconvdata/tst-tables.sh: Likewise.
8251
8252         [BZ #5043]
8253         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8254
8255 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8256
8257         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8258         from __x86_64_core_cache_size_half.
8259         (init_cacheinfo): Compute shared cache size for AMD processors with
8260         shared L3 correctly.
8261         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8262         name change.
8263         Patch in large parts by Evandro Menezes.
8264
8265 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8266
8267         * elf/dl-lookup.c (add_dependency): Handle failing memory
8268         allocation for dependency list.  Remove unnecessary check.
8269
8270         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8271         open/close when determining source addresses.
8272
8273         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8274         sha512-crypt, and sha512.
8275         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8276         (distribute): Add sha256.h and sha512.h.
8277         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8278         and call the appropriate code.
8279         * crypt/sha256-crypt.c: New file.
8280         * crypt/sha256.c: New file.
8281         * crypt/sha256.h: New file.
8282         * crypt/sha256c-test.c: New file.
8283         * crypt/sha256test.c: New file.
8284         * crypt/sha512-crypt.c: New file.
8285         * crypt/sha512.c: New file.
8286         * crypt/sha512.h: New file.
8287         * crypt/sha512c-test.c: New file.
8288         * crypt/sha512test.c: New file.
8289
8290 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8291
8292         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8293         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8294         __syslog_chk.
8295
8296 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8297
8298         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8299         %as in fscanf format strings.
8300
8301         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8302         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8303         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8304         Likewise.
8305         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8306         Likewise.
8307
8308         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8309         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8310         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8311         * elf/dl-sym.c (do_sym): Likewise.
8312         * include/link.h (struct link_map): Add l_serial field.
8313         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8314         * elf/dl-lookup.c (add_dependency): Add flags argument.
8315         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8316         flags, use THREAD_GSCOPE_RESET_FLAG before and
8317         THREAD_GSCOPE_SET_FLAG after
8318         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8319         Don't dereference map until it has been found on some list.
8320         If map->l_serial changed, return -1.
8321
8322 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8323
8324         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8325         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8326         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8327         libc_hidden_proto.
8328         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8329         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8330         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8331         add libc_hidden_proto.
8332         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8333         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8334         conformance requested.
8335         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8336         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8337         conformance requested.
8338         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8339         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8340         conformance requested.
8341         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8342         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8343         ISO C99 or POSIX conformance requested.
8344         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8345         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8346         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8347         and __isoc99_vsscanf@@GLIBC_2.7.
8348         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8349         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8350         (tests): Add scanf14.
8351         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8352         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8353         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8354         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8355         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8356         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8357         from using internal headers.
8358         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8359         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8360         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8361         and __isoc99_vswscanf@@GLIBC_2.7.
8362         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8363         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8364         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8365         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8366         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8367         * stdio-common/isoc99_scanf.c: New file.
8368         * stdio-common/isoc99_vsscanf.c: New file.
8369         * stdio-common/isoc99_vscanf.c: New file.
8370         * stdio-common/isoc99_vfscanf.c: New file.
8371         * stdio-common/isoc99_fscanf.c: New file.
8372         * stdio-common/isoc99_sscanf.c: New file.
8373         * wcsmbs/isoc99_fwscanf.c: New file.
8374         * wcsmbs/isoc99_vswscanf.c: New file.
8375         * wcsmbs/isoc99_swscanf.c: New file.
8376         * wcsmbs/isoc99_wscanf.c: New file.
8377         * wcsmbs/isoc99_vwscanf.c: New file.
8378         * wcsmbs/isoc99_vfwscanf.c: New file.
8379         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8380         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8381         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8382         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8383         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8384         * stdio-common/scanf14.c: New test.
8385         * stdio-common/scanf15.c: New test.
8386         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8387         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8388         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8389         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8390         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8391         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8392         __nldbl___isoc99_scanf@@GLIBC_2.7,
8393         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8394         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8395         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8396         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8397         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8398         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8399         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8400         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8401         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8402         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8403         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8404         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8405         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8406         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8407         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8408         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8409         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8410         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8411         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8412         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8413         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8414         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8415         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8416         functions.
8417         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8418         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8419         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8420         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8421         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8422         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8423         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8424         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8425         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8426         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8427         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8428         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8429
8430         * stdio-common/Makefile (tests): Add scanf13.
8431         (scanf13-ENV): New.
8432         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8433         m modifier followed by l.
8434         (STRING_ARG): Add width argument.
8435         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8436         <case L_('C')>: Handle %mlc and %mC.
8437         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8438         arguments.
8439         * stdio-common/scanf13.c: New test.
8440
8441         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8442         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8443
8444 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8445
8446         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8447         type and __THROW marker of splice, vmsplice, and tee.
8448         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8449         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8450         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8451         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8452         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8453         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8454         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8455         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8456         as cancellation points.
8457
8458 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8459
8460         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8461         parse more than three parts of the version number.
8462
8463 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8464
8465         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8466         modifier.  Patch by Jakub Jelinek.
8467
8468 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8469
8470         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8471         call_fallocate in misc subdir.
8472         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8473         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8474         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8475         instead of __fallocate64.
8476         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8477
8478 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8479
8480         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8481         * rt/Makefile (headers): Add bits/mqueue2.h.
8482         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8483         optimizing with GCC and __va_arg_pack_len is defined.
8484         * rt/bits/mqueue2.h: New file.
8485         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8486         (mq_open): New strong_alias.
8487         (__mq_open_2): New function.
8488         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8489         (mq_open): New strong_alias.
8490         (__mq_open_2): New function.
8491         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8492         * Versions.def (librt): Add GLIBC_2.7 version.
8493         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8494         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8495
8496         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8497         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8498         is defined rather than when not C++.
8499         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8500         __openat64_alias): New redirects.
8501         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8502         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8503         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8504         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8505         functions instead of function-like macros.
8506
8507 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8508
8509         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8510         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8511         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8512
8513 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8514
8515         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8516         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8517
8518 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8519
8520         * inet/tst-network.c: Increment ERRORS for failing tests.
8521
8522 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8523
8524         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8525         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8526         implement as __extern_always_inline function.
8527         (vsyslog): Define as __extern_always_inline function unconditionally.
8528         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8529         When __va_arg_pack is defined, implement as __extern_always_inline
8530         functions.
8531         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8532         __extern_always_inline functions unconditionally.
8533         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8534         bits/stdio2.h will be included.
8535         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8536         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8537         implement as __extern_always_inline functions.
8538         (vswprintf, vwprintf, vfwprintf): Define as
8539         __extern_always_inline functions unconditionally.
8540         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8541
8542 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8543
8544         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8545         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8546         attribute.
8547         * include/features.h (__USE_EXTERN_INLINES): Define only when
8548         __extern_inline is defined.
8549         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8550         is defined instead of when not __cplusplus.
8551         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8552         is defined instead of when not __cplusplus.
8553         * socket/sys/socket.h: Include bits/socket2.h when
8554         __extern_always_inline is defined instead of when not __cplusplus.
8555         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8556         is defined instead of when not __cplusplus.
8557         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8558         is defined instead of when not __cplusplus.
8559         * string/string.h: Include bits/string3.h when __extern_always_inline
8560         is defined instead of when not __cplusplus.
8561         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8562         is defined instead of when not __cplusplus.
8563         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8564         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8565         is not defined.
8566         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8567         defined __extern_always_inline instead of !defined __cplusplus.
8568         * libio/bits/stdio-ldbl.h: Likewise.
8569         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8570         * misc/bits/syslog.h (syslog): Don't define for C++.
8571         (vsyslog): Use __extern_always_inline function for C++ instead of
8572         a macro.
8573         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8574         whenever that macro is defined.
8575         (vprintf): Don't provide the inline for C++.
8576         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8577         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8578         define the macros for C++.
8579         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8580         __extern_always_inline functions for C++.
8581         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8582         stat64, lstat64, fstat64, fstatat64): Don't define if not
8583         __USE_EXTERN_INLINES.
8584         * wcsmbs/bits/wchar2.h: Fix #error message.
8585         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8586         (vswprintf, vwprintf, vfwprintf): Define using
8587         __extern_always_inline functions for C++.
8588         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8589         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8590         strncpy, strcat, strncat): Define as __extern_always_inline
8591         functions instead of macros for C++.
8592         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8593         defined __extern_inline.
8594         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8595         to __extern_inline whenever that macro is defined.
8596         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8597         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8598         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8599         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8600         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8601         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8602         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8603         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8604         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8605         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8606         prototypes.  Only provide __extern_inline routines if
8607         __USE_EXTERN_INLINES.
8608         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8609         tests.
8610         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8611         For now avoid some *printf tests in C++.  Skip all testing
8612         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8613         is not.
8614         * debug/tst-chk4.cc: New file.
8615         * debug/tst-chk5.cc: New file.
8616         * debug/tst-chk6.cc: New file.
8617         * debug/tst-lfschk4.cc: New file.
8618         * debug/tst-lfschk5.cc: New file.
8619         * debug/tst-lfschk6.cc: New file.
8620         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8621         prototypes in C++.
8622         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8623         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8624         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8625
8626 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8627
8628         * po/cs.po: Update from translation team.
8629
8630 2007-09-11  Roland McGrath  <roland@redhat.com>
8631
8632         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8633         compiling.
8634
8635 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8636
8637         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8638
8639 2007-09-05  Roland McGrath  <roland@redhat.com>
8640
8641         * manual/signal.texi (Signaling Another Process): Typo fix.
8642         From Karl Berry <karl@freefriends.org>.
8643
8644 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8645
8646         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8647         zero if not defined.
8648         (make_request): Recognize optimistic addresses and treat them like
8649         deprecated addresses.
8650         Reported by Neil Horman <nhorman@redhat.com>.
8651
8652 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8653
8654         * nscd/connections.c (send_ro_fd): Also transfer file size.
8655         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8656         file size don't call fstat.
8657
8658         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8659         ahead and map the file.  This should always be correct and we can
8660         catch problems later.
8661
8662 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8663
8664         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8665         prototypes.
8666         (__fread_alias, __fread_unlocked_alias): New aliases.
8667         (fread): New extern inline.
8668         (fread_unlocked): Likewise.  Undef macro before definition of
8669         the inline function.
8670         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8671         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8672         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8673         and __fread_unlocked_chk@@GLIBC_2.7.
8674         * debug/fread_chk.c: New file.
8675         * debug/fread_u_chk.c: New file.
8676         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8677
8678 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8679
8680         * sysdeps/unix/sysv/linux/syscalls.list
8681         (personality): Change caller to EXTRA.
8682
8683 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8684
8685         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8686         to keep gcc quiet.
8687         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8688
8689         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8690         NDEBUG is defined.
8691
8692         * Makerules: Use -p option with mkdir.
8693
8694         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8695         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8696         (_xdr_directory_obj): Likewise.
8697         (xdr_entry_obj): Likewise.
8698         (xdr_group_obj): Likewise.
8699         (xdr_link_obj): Likewise.
8700         (xdr_table_obj): Likewise.
8701         (_xdr_nis_result): Likewise.
8702         (_xdr_ns_request): Likewise.
8703         (_xdr_ib_request): Likewise.
8704         (_xdr_nis_taglist): Likewise.
8705         (xdr_cback_data): Likewise.
8706         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8707         (xdr_ypresp_maplist): Likewise.
8708
8709         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8710
8711         * posix/regex_internal.h: Prevent some declarations and definitions
8712         to be seen when used in tests.
8713
8714         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8715         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8716
8717         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8718
8719         * config.make.in (datarootdir): Add to shut up configure.
8720
8721         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8722         associativity for fully-associative caches.
8723
8724         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8725         requests.  Fill on more associativity values for L2.
8726         Patch mostly by Evandro Menezes.
8727
8728 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8729
8730         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8731         (_libc_vdso_platform_setup): Avoid using exported variable by using
8732         alias.
8733
8734         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8735
8736         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8737         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8738         defined.
8739
8740 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8741
8742         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8743         align stack for call if pltexit is to be used.
8744
8745         [BZ #3924]
8746         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8747         align for function call in case pltexit has to be called later.
8748
8749         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8750         implicit atomic operation when storing function pointer.
8751         (_dl_runtime_profile): Likewise.
8752
8753 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8754
8755         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8756         NIS_NOTFOUND.
8757
8758 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8759
8760         [BZ #4566]
8761         * string/strtok.c: Fix typo in comment.
8762
8763         [BZ #4582]
8764         * debug/segfault.c: Fix typos in comments.
8765
8766         [BZ #4588]
8767         * stdio-common/tempnam.c: Fix comment, it is not checked that
8768         TMPDIR points to a writable directory.
8769
8770         [BZ #4726]
8771         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8772         memory allocated for the name server address.
8773
8774         [BZ #4946]
8775         * nscd/connections.c (handle_request): Using sendfile always
8776         requires that mmap is used for the database.
8777         Patch by Petr Baudis <pasky@suse.cz>.
8778
8779         [BZ #4905]
8780         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8781         suddenly has two or more addresses, ignore it and remove the old
8782         entry.
8783
8784         [BZ #4814]
8785         * resolv/res_hconf.c: Prepare for compiling outside libc.
8786         * nscd/res_hconf.c: New file.
8787         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8788         the new file.
8789         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8790         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8791
8792         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8793
8794         [BZ #4925]
8795         * debug/pcprofiledump.c: Turn on internationalization by calling
8796         setlocale.  Patch mostly by Benno Schulenberg.
8797
8798         [BZ #4936]
8799         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8800         the state.
8801         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8802         * iconvdata/bug-iconv5.c: New file.
8803
8804 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8805
8806         [BZ #4896]
8807         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8808         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8809         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8810         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8811         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8812         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8813         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8814         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8815
8816 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8817
8818         [BZ #4937]
8819         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8820         lookup loop.  Suggested by John Reiser.
8821
8822 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8823
8824         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8825
8826 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8827
8828         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8829         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8830         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8831         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8832         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8833         to...
8834         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8835
8836 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8837
8838         * po/nl.po: Update from translation team.
8839
8840 2007-08-16  Andreas Jaeger  <aj@suse.de>
8841
8842         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8843         Reported by Peter Festner <peter.festner@ewetel.net>.
8844
8845 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8846
8847         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8848
8849 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8850
8851         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8852         to check for undefined symbols.
8853
8854         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8855         If the syscall fails, set errno to the actual returned error number
8856         rather than EINVAL.
8857         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8858         arguments are incorrect, set errno to EINVAL, if the syscall
8859         fails, set errno to the actual returned error number.
8860
8861         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8862         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8863
8864         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8865         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8866         file.
8867         (ASI_PNF, ASI_BLK_P): Don't define.
8868         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8869         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8870         file.
8871         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8872         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8873         file.
8874
8875 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8876
8877         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8878         FE_UNDERFLOW on Niagara CPUs.
8879
8880         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8881         exceptions.
8882
8883 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8884
8885         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8886         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8887         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8888         flush should be used or not inside of the function.
8889         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8890
8891         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8892         __thread_start): Use HIDDEN_JUMPTARGET.
8893         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8894         __thread_start): Likewise.
8895         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8896
8897         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8898         Add libc_hidden_proto.
8899         (STRTOF): Add libc_hidden_proto.
8900         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8901         (strtold_l, wcstold_l): Use them as second argument for
8902         long_double_symbol.
8903
8904 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8905
8906         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8907
8908 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8909
8910         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8911
8912 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8913
8914         * po/bg.po: New file.  From the translation team.
8915
8916 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8917
8918         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8919         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8920         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8921         when each feature was introduced.
8922
8923         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8924         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8925         (CHECK_HASH): New macro.
8926         (PREPARE_VERSION): Use it.
8927
8928         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8929         prototype if not __ASSUME_PSELECT.
8930         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8931         prototype if not __ASSUME_PPOLL.
8932
8933         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8934
8935         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8936         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8937         is defined.
8938
8939 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8940
8941         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8942         (_libc_vdso_platform_setup): If vDSO is not available point
8943         __vdso_gettimeofday to the vsyscall.
8944         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8945         __vdso_gettimeofday instead of vsyscall.
8946
8947 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8948
8949         * nscd/servicescache.c: Include kernel-features.h.
8950         * nscd/gai.c: Likewise.
8951         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8952         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8953         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8954         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8955         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8956         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8957         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8958         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8959         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8960
8961 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8962
8963         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8964         and _dl_get_origin defines anymore.
8965
8966         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8967         Build fix for systems which might lack POSIX timer support.
8968
8969         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8970         (_libc_vdso_platform_setup): Mangle function pointers before storing
8971         them.
8972         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8973         Demangle vdso pointer before use.
8974         (INTERNAL_VSYSCALL): Likewise.
8975
8976         * elf/cache.c (primes): Mark as const.
8977         Noted by Roland McGrath.
8978
8979 2007-08-01  Andreas Jaeger  <aj@suse.de>
8980             Jakub Jelinek  <jakub@redhat.com>
8981
8982         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8983         (options): Add option.
8984         (parse_opt): Handle option.
8985         (manual_link): Adjust process_file caller.  Call implicit_soname.
8986         (search_dir): Formatting.  Use and populate auxiliary cache.
8987         (main): Load and save auxiliary cache.
8988         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8989         stat64 from fstat64 to caller.
8990         (implicit_soname): New function.
8991         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8992         leave *soname as NULL.
8993         * elf/cache.c: Include libgen.h.
8994         (print_entry, print_cache, compare, save_cache, add_to_cache):
8995         Formatting and cleanups.
8996         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8997         aux_cache_file): New structures.
8998         (AUX_CACHEMAGIC): Define.
8999         (primes): New array.
9000         (aux_hash_size, aux_hash): New variables.
9001         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9002         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9003         load_aux_cache, save_aux_cache): New functions.
9004         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9005         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9006         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9007         (process_file): Adjust prototype.
9008
9009 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9010
9011         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9012         with __need_size_t.
9013
9014 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9015
9016         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9017         r_found_version structure as second parameter.
9018         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9019         (_dl_vdso_vsym): Change type of second parameter accordingly.
9020         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9021         (_libc_vdso_platform_setup): Adjust.
9022         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9023         (_libc_vdso_platform_setup): Likewise.
9024
9025         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9026         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9027         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9028         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9029         * csu/libc-start.c: Pretty printing.
9030         Use VDSO_SETUP if defined.
9031         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9032         and let generic code call into _libc_vdso_platform_setup.
9033         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9034         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9035         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9036         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9037         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9038         for GLIBC_PRIVATE.
9039         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9040         (sysdep_rountines): Add dl-vdso.
9041
9042         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9043         of routines.
9044
9045         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9046         attribute_hidden to __vdso_gettimeofday prototype.
9047
9048 2007-08-12  Roland McGrath  <roland@redhat.com>
9049
9050         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9051         From: Karl Berry <karl@freefriends.org>.
9052
9053 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9054
9055         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9056         an atime update for the files we read.
9057
9058 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9059
9060         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9061
9062         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9063         instead of mkstemp.
9064
9065         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9066         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9067         * misc/mkostemp.c: New file.
9068         * misc/mkostemp64.c: New file.
9069         * stdlib/stdlib.h: Declare the new functions.
9070         * sysdeps/posix/tempname.c: Add new parameter which is added to
9071         the flags for open.  Remove __GT_BIGFILE handling.
9072         * stdio-common/tempname.c: Likewise.
9073         * include/stdio.h: Adjust __gen_tempname prototype.
9074         Renumber __GT_* constants.
9075         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9076         * misc/mkdtemp.c: Likewise.
9077         * misc/mkstemp.c: Likewise.
9078         * misc/mkstemp64.c: Likewise.
9079         * misc/mktemp.c: Likewise.
9080         * stdio-common/tempnam.c: Likewise.
9081         * stdio-common/tmpfile.c: Likewise.
9082         * stdio-common/tmpfile64.c: Likewise.
9083         * stdio-common/tmpnam.c: Likewise.
9084         * stdio-common/tmpnam_r.c: Likewise.
9085
9086 2007-08-10  Roland McGrath  <roland@frob.com>
9087
9088         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9089         New macros.
9090         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9091         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9092
9093 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9094
9095         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9096         possible.
9097         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9098         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9099         * nss/nss_files/files-have_o_cloexec.c: New file.
9100
9101         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9102         available.
9103
9104 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9105
9106         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9107         ___new_wcstold_l): New weak aliases.
9108         (strtold_l, wcstold_l): Use them as second argument for
9109         long_double_symbol.
9110
9111 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9112
9113         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9114         register in test for error.
9115
9116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9117         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9118
9119         * po/sv.po: Update from translation team.
9120
9121 2007-08-06  Roland McGrath  <roland@redhat.com>
9122
9123         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9124         Remove __strto*_l inlines.
9125         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9126         * stdlib/strtod.c: Add libc_hidden_def.
9127         * stdlib/strtod_l.c: Likewise.
9128         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9129         for __new_strtold and __new_wcstold.
9130         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9131         __STRTOF, STRTOF.
9132         * stdlib/strtol.c: Add libc_hidden_def.
9133         * stdlib/strtol_l.c: Likewise.
9134         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9135         strtoq.
9136
9137         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9138
9139         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9140         * scripts/data/localplt-generic.data: ... here.
9141         * elf/Makefile (check-data): Get generic file if no other.
9142         ($(objpfx)check-localplt.out): Make target unconditional.
9143
9144         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9145         Use ElfW(Nhdr).
9146
9147 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9148
9149         * po/zh_CN.po: Updated translation from translation team.
9150
9151 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9152
9153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9154         Don't use CGOTSETUP and CGOTRESTORE macros.
9155
9156 2007-08-04  Roland McGrath  <roland@redhat.com>
9157
9158         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9159
9160 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9161
9162         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9163         __extension__ around the whole statement expression.
9164
9165 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9166
9167         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9168         elements during initialization.
9169
9170         * po/pl.po: Updated translation from translation team.
9171         * po/tr.po: Likewise.
9172         * po/nl.po: Likewise.
9173
9174 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9175
9176         * rt/aio.h: Add __nonnull attributes.
9177
9178 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9179
9180         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9181         * stdlib/Makefile (tests): Add tst-strtod5.
9182         (tst-strtod5-ENV): New.
9183         * stdlib/tst-strtod5.c: New file.
9184
9185         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9186         failed.
9187         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9188         on failure.
9189
9190         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9191         allocated.
9192
9193 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9194
9195         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9196         numbers.
9197
9198 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9199
9200         * io/Makefile (aux): Add have_o_cloexec.
9201         * include/fcntl.h: Declare __have_o_cloexec.
9202         * io/have_o_cloexec.c: New file.
9203         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9204         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9205         fcntl call if not necessary.
9206         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9207         of local variable.
9208
9209         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9210         Avoid memset, add explicit initialization.
9211         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9212         to the end and change into zero-sized array.
9213         Move lock member to fill a hole on 64-bit platforms.
9214
9215         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9216         inline functions.
9217         * include/stdlib.h: Add __strto*_internal prototypes here.
9218         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9219         inline functions.
9220         * include/wchar.h: Add __wcsto*_internal prototypes.
9221         * sysdeps/generic/inttypes.h: No need to protect the declaration
9222         of the __strto*_internal and __wcsto*_internal members here.
9223
9224         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9225
9226 2007-08-02  Roland McGrath  <roland@redhat.com>
9227
9228         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9229         $(inst_bindir)/getconf if possible.
9230
9231         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9232         (generated): Add it.
9233         ($(inst_libexecdir)/getconf): Use it.
9234
9235 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9236
9237         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9238         /proc is faster and sufficient.  /sys is still needed for
9239         __get_nprocs_conf.
9240
9241 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9242
9243         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9244         syscall as __fallocate64.
9245         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9246         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9247
9248 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9249
9250         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9251         value.
9252
9253         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9254         if off_t is different rank from size_t.
9255
9256         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9257         uw_frame_state_for): Avoid type punning warnings.
9258         * sysdeps/generic/unwind-dw2-fde-glibc.c
9259         (_Unwind_IteratePhdrCallback): Likewise.
9260         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9261         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9262         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9263         pointers.
9264
9265 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9266
9267         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9268         total processors using sysfs.
9269         (__get_nprocs): Use sysfs to determine which processors are online.
9270
9271 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9272
9273         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9274         syscall arguments count.
9275
9276         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9277
9278 2007-07-30  Roland McGrath  <roland@redhat.com>
9279
9280         * manual/libc.texinfo: Update copyrights, formatting magic, and
9281         @dircategory.  From Karl Berry <karl@freefriends.org>.
9282
9283 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9284
9285         [BZ #4860]
9286         * io/Makefile (headers): Add bits/fcntl2.h.
9287
9288         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9289         using gcc builtin.
9290         (__CPU_EQUAL_S): Likewise.
9291
9292         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9293         (tests): Add tst-cpuset.
9294         * posix/sched_cpualloc.c: New file.
9295         * posix/sched_cpufree.c: New file.
9296         * posix/tst-cpuset.c: New file.
9297         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9298         GLIBC_2.7.
9299         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9300         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9301         macros.  Define CPU_*_S macros.
9302
9303 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9304
9305         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9306         entry.
9307
9308         [BZ #4858]
9309         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9310         #.0g and value rounded to 1.0.
9311         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9312
9313 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9314
9315         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9316         for int_frac_digits and frac_digits.
9317
9318         * login/logout.c (logout): Avoid aliasing violation.
9319         * login/logwtmp.c (logwtmp): Likewise.
9320
9321         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9322
9323         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9324         to avoid warning.
9325         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9326         warning.
9327         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9328         warning.
9329         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9330         to avoid warnings.
9331
9332         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9333         void **.
9334         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9335
9336         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9337         char * to avoid warning.
9338         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9339
9340         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9341
9342         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9343         allocate_arrays): Cast second argument to charmap_find_symbol
9344         to char * to avoid warnings.
9345
9346         * locale/programs/repertoire.c (repertoire_new_char): Change
9347         from_nr, to_nr and cnt to unsigned long, adjust printf format
9348         string.
9349
9350         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9351         Cast second argument to new_element to char * to avoid warnings.
9352
9353         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9354
9355         * intl/gettextP.h (struct loaded_domain): Change plural to const
9356         struct expression *.
9357         * intl/plural-eval.c (plural_eval): Change first argument to
9358         const struct expression *.
9359         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9360         argument to const struct expression **.
9361         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9362         prototypes.
9363         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9364         in call to __gettext_free_exp.
9365
9366         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9367         unitialized wstring/wpattern var warnings.
9368
9369         * posix/runtests.c (struct a_test): Make data field const char *.
9370
9371         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9372         vars if not LDBL_MANT_DIG >= 106.
9373
9374         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9375
9376         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9377         __find_specmb to avoid warning.
9378
9379         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9380
9381         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9382         to avoid warnings.
9383
9384         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9385         initializer.
9386
9387         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9388         tv var when it will be actually used.
9389
9390         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9391         to avoid warnings.
9392
9393         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9394         char array resp. pointer.
9395         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9396         char array.
9397         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9398         to const unsigned char **.
9399         (ucs4_to_cns11643): Change second argument to unsigned char *.
9400         * iconvdata/euc-tw.c (BODY): Change endp type to
9401         const unsigned char *.
9402         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9403         to unsigned char *.
9404         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9405         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9406         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9407         types to unsigned char pointers/arrays instead of char.
9408         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9409         to unsigned char *.
9410         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9411         * iconvdata/jis0212.h: Include assert.h.
9412         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9413         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9414         of trying to handle that.
9415         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9416         shut up a warning.
9417         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9418         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9419         two dimensional const unsigned char arrays.
9420         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9421         Initialize endp to inptr to shut up a warning.
9422
9423 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9424
9425         [BZ #4772]
9426         * time/strptime_l.c (__strptime_internal): Silently ignore
9427         strftime modifiers and field width in recursive calls.
9428
9429         * include/time.h (enum ptime_locale_status): Remove.
9430         (__strptime_internal): Remove decided and era_cnt arguments,
9431         add statep argument.
9432         * time/strptime_l.c (__strptime_internal): Remove decided
9433         and era_cnt arguments, add statep argument.  Don't recompute
9434         any fields in recursive calls, only update caller's tm
9435         and state, if recursive call fails, don't change tm nor
9436         any state.
9437         (get_alt_number): Adjust.
9438         (recursive): Adjust caller.
9439         (strptime): Likewise.
9440         * time/strptime.c (strptime): Likewise.
9441
9442 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9443
9444         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9445         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9446         if from and to charsets are the same.
9447         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9448         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9449         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9450
9451 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9452
9453         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9454         Don't define wint_t when __need_mbstate_t unless it
9455         is necessary.
9456         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9457         in the typedef if possible.
9458         * wctype/wctype.h (wint_t): Define by including
9459         wchar.h with __need_wint_t instead of including stddef.h
9460         with __need_wint_t and as fallback definining it ourselves.
9461         * iconv/gconv.h (__need_wint_t): Define before including
9462         wchar.h.
9463         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9464         or _GLIBCPP_USE_WCHAR_T.
9465         (__need_wchar_t): Don't define
9466         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9467         (__need_wint_t): Don't define before including stddef.h,
9468         define before including wchar.h only if _LIBC or
9469         _GLIBCPP_USE_WCHAR_T.
9470         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9471         * sysdeps/mach/hurd/_G_config.h: Likewise.
9472         * sysdeps/generic/_G_config.h: Likewise.
9473         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9474         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9475         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9476         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9477
9478 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9479
9480         * sysdeps/posix/posix_fallocate64.c: Undefine
9481         __posix_fallocate64_l64 before alias handling.
9482         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9483         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9484         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9485         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9486
9487         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9488
9489 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9490
9491         * locale/programs/ld-collate.c (atwc): New variable.
9492         (add_to_tablewc): New toplevel function, moved from collate_output.
9493         (collate_output): Remove add_to_tablewc nested function.
9494
9495         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9496         (name_insert): New function.
9497         (write_output): Remove hash_table and hash_size vars and name_insert
9498         nested function.
9499
9500 2007-07-24  Roland McGrath  <roland@redhat.com>
9501
9502         * Makerules (install-others-programs-nosubdir): New target.
9503         (install-no-libc.a-nosubdir): Depend on it.
9504
9505         * iconv/Makefile (install-others-programs): Set this instead of
9506         install-others.
9507         * login/Makefile (install-others-programs): Likewise.
9508         * posix/Makefile (install-others-programs): Likewise.
9509
9510         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9511         dependencies.
9512
9513 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9514
9515         * io/Makefile (tests): Add tst-posix_fallocate.
9516         * io/tst-posix_fallocate.c: New file.
9517
9518         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9519         __ASSUME_FALLOCATE.
9520
9521 2007-07-22  Roland McGrath  <roland@frob.com>
9522
9523         * hurd/getdport.c: Add missing copyright year update.
9524
9525         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9526         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9527
9528 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9529
9530         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9531
9532         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9533         O_CLOEXEC is needed.
9534         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9535         Avoid additional fcntl to set O_CLOEXEC if not needed.
9536         * nis/nss_compat/compat-initgroups.c: Likewise.
9537         * nis/nss_compat/compat-pwd.c: Likewise.
9538         * nis/nss_compat/compat-spwd.c: Likewise.
9539
9540 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9541
9542         [BZ #3665]
9543         * manual/errno.texi: Change ECANCELED value to 119.
9544
9545         [BZ #4610]
9546         * mach/lock-intern.h: Include <sys/cdefs.h>.
9547
9548         [BZ #4178]
9549         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9550         reading A.
9551
9552         [BZ #4126]
9553         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9554         to __sigsuspend.
9555
9556         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9557
9558 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9559
9560         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9561         `__ASSEMBLER__'.
9562         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9563
9564 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9565
9566         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9567         descriptor received from nscd.
9568
9569         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9570
9571         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9572         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9573         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9574         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9575         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9576         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9577
9578 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9579
9580         [BZ #4816]
9581         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9582
9583         [BZ #4813]
9584         * login/forkpty.c (forkpty): Close master and slave fds on
9585         fork failure.  Patch by
9586         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9587
9588 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9589
9590         * include/features.h (__USE_ISOC95): New define.
9591         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9592         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9593         for -std=iso9899:199409.
9594         * CONFORMANCE: Remove comments about unsupported AMD1.
9595
9596 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9597
9598         * sysdeps/ia64/sched_cpucount.c: New file.
9599         * sysdeps/powerpc/sched_cpucount.c: New file.
9600
9601         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9602         __BEGIN_DECLS/__END_DECLS around the prototype.
9603         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9604         pointer to const cpu_set_t.
9605
9606         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9607         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9608         __need_size_t and include stddef.h.
9609         * sysvipc/sys/msg.h: Likewise.
9610         * posix/sched.h: Likewise.
9611         * hurd/hurd/signal.h (__need_size_t): Define.
9612
9613         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9614         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9615         no longer defines wint_t or wchar_t.
9616
9617         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9618         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9619         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9620         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9621         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9622         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9623         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9624         * debug/printf_chk.c (__printf_chk): Likewise.
9625         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9626         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9627
9628         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9629         Define.
9630
9631         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9632         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9633
9634 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9635
9636         [BZ #4792]
9637         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9638         * malloc/malloc.h (realloc): Likewise.
9639
9640         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9641         if one of proc_file_chain streams has that fileno.
9642         * stdio-common/Makefile (tests): Add tst-popen2.
9643         * stdio-common/tst-popen2.c: New test.
9644
9645 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9646
9647         * elf/ldconfig.c: Allow GPLv2 or any later version.
9648         * elf/readlib.c: Likewise.
9649         * elf/chroot_canon.c: Likewise.
9650         * elf/cache.c: Likewise.
9651         * nscd/mem.c: Likewise.
9652         * nscd/getpwuid_r.c: Likewise.
9653         * nscd/grpcache.c: Likewise.
9654         * nscd/aicache.c: Likewise.
9655         * nscd/getsrvbynm_r.c: Likewise.
9656         * nscd/nscd.c: Likewise.
9657         * nscd/servicescache.c: Likewise.
9658         * nscd/getsrvbypt_r.c: Likewise.
9659         * nscd/initgrcache.c: Likewise.
9660         * nscd/gethstbyad_r.c: Likewise.
9661         * nscd/gethstbynm2_r.c: Likewise.
9662         * nscd/getgrnam_r.c: Likewise.
9663         * nscd/nscd_setup_thread.c: Likewise.
9664         * nscd/getpwnam_r.c: Likewise.
9665         * nscd/gai.c: Likewise.
9666         * nscd/connections.c: Likewise.
9667         * nscd/dbg_log.c: Likewise.
9668         * nscd/cache.c: Likewise.
9669         * nscd/hstcache.c: Likewise.
9670         * nscd/nscd_conf.c: Likewise.
9671         * nscd/getgrgid_r.c: Likewise.
9672         * nscd/pwdcache.c: Likewise.
9673         * catgets/gencat.c: Likewise.
9674         * locale/programs/linereader.h: Likewise.
9675         * locale/programs/locarchive.c: Likewise.
9676         * locale/programs/ld-paper.c: Likewise.
9677         * locale/programs/locfile-kw.h: Likewise.
9678         * locale/programs/ld-address.c: Likewise.
9679         * locale/programs/xmalloc.c: Likewise.
9680         * locale/programs/ld-time.c: Likewise.
9681         * locale/programs/localedef.c: Likewise.
9682         * locale/programs/simple-hash.c: Likewise.
9683         * locale/programs/xstrdup.c: Likewise.
9684         * locale/programs/ld-numeric.c: Likewise.
9685         * locale/programs/locfile-kw.gperf: Likewise.
9686         * locale/programs/ld-collate.c: Likewise.
9687         * locale/programs/charmap-kw.gperf: Likewise.
9688         * locale/programs/charmap.h: Likewise.
9689         * locale/programs/charmap-kw.h: Likewise.
9690         * locale/programs/config.h: Likewise.
9691         * locale/programs/locfile.c: Likewise.
9692         * locale/programs/ld-ctype.c: Likewise.
9693         * locale/programs/charmap.c: Likewise.
9694         * locale/programs/ld-messages.c: Likewise.
9695         * locale/programs/repertoire.h: Likewise.
9696         * locale/programs/locale.c: Likewise.
9697         * locale/programs/ld-name.c: Likewise.
9698         * locale/programs/linereader.c: Likewise.
9699         * locale/programs/locfile.h: Likewise.
9700         * locale/programs/3level.h: Likewise.
9701         * locale/programs/ld-monetary.c: Likewise.
9702         * locale/programs/ld-measurement.c: Likewise.
9703         * locale/programs/charmap-dir.c: Likewise.
9704         * locale/programs/ld-identification.c: Likewise.
9705         * locale/programs/localedef.h: Likewise.
9706         * locale/programs/charmap-dir.h: Likewise.
9707         * locale/programs/repertoire.c: Likewise.
9708         * locale/programs/simple-hash.h: Likewise.
9709         * locale/programs/ld-telephone.c: Likewise.
9710         * locale/programs/locale-spec.c: Likewise.
9711         * locale/programs/locfile-token.h: Likewise.
9712         * posix/getconf.c: Likewise.
9713         * iconv/dummy-repertoire.c: Likewise.
9714         * iconv/iconv_charmap.c: Likewise.
9715         * iconv/iconvconfig.c: Likewise.
9716         * iconv/iconv_prog.c: Likewise.
9717         * malloc/memusagestat.c: Likewise.
9718         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9719
9720 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9721
9722         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9723         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9724         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9725         check for the first argument.
9726
9727 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9728
9729         [BZ #4775]
9730         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9731         (__tgmath_real_type): Fix if expr is const int or other const
9732         qualified integral type.
9733         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9734         expressions and handle const qualified arguments.
9735         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9736         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9737         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9738         statement expressions.
9739         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9740         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9741         (__TGMATH_UNARY_IMAG): Define.
9742         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9743         * math/Makefile (tests): Add test-tgmath2.
9744         (CFLAGS-test-tgmath2.c): Add.
9745         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9746         count_cfloat, count_cldouble): New variables.
9747         (NCCALLS): Define.
9748         (main): Check number of complex calls as well.
9749         (F(compile_test)): Add complex tests and tests with const qualified
9750         arguments.
9751         (y, z, ccount): Define.
9752         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9753         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9754         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9755         F(cproj)): New functions.
9756         * math/test-tgmath2.c: New test.
9757
9758 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9759
9760         [BZ #4776]
9761         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9762         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9763         instead output ".".
9764         * dlfcn/Makefile (distribute): Add glreflib3.c.
9765         (module-names): Add glreflib3.
9766         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9767         glreflib1.so.
9768         (LDFLAGS_glreflib3.so): New.
9769         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9770         glreflib1.so.
9771         * dlfcn/glreflib3.c: New file.
9772
9773         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9774         returned -1, return NULL.
9775         * intl/explodename.c (_nl_explode_name): Return -1 if
9776         _nl_normalize_codeset failed.
9777
9778 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9779
9780         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9781         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9782         and avoid branch misspredicts for > 31 bytes memset case.
9783         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9784         Remove toc ref to __cache_line_size.
9785
9786         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9787         to get ISA-V2.0 branch hints.
9788         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9789         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9790         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9791         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9792         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9793         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9794         Remove toc ref to __cache_line_size.
9795
9796         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9797         Include math_ldbl_opt.h.
9798
9799 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9800
9801         [BZ #4773]
9802         * time/strptime_l.c (__strptime_internal): Implement greedy
9803         matching of weekday and month names.
9804
9805 2007-07-09  Roland McGrath  <roland@redhat.com>
9806
9807         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9808         (ELF_NOTE_ABI): Use it.
9809         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9810
9811 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9812
9813         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9814         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9815
9816 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9817
9818         [BZ #4745]
9819         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9820         in loop to look for conversion specifier to avoid testing of
9821         wrong errno value.
9822         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9823         * stdio-common/bug18.c: New file.
9824         * stdio-common/bug18a.c: New file.
9825         * stdio-common/bug19.c: New file.
9826         * stdio-common/bug19a.c: New file.
9827
9828 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9829
9830         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9831         running awk script.
9832
9833 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9834
9835         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9836         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9837         Return NULL if mmap failed instead of asserting it does not.
9838         (calloc): Check for integer overflow.
9839
9840         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9841         than LONG_MAX / 10.
9842
9843 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9844
9845         [BZ #4702]
9846         * nis/nss-default.c: Include errno.h.
9847         (init): Preserve errno.
9848
9849 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9850
9851         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9852
9853 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9854
9855         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9856
9857 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9858
9859         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9860
9861 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9862
9863         * sysdeps/s390/dl-procinfo.c: New file.
9864         * sysdeps/s390/dl-procinfo.h: New file.
9865         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9866
9867 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9868
9869         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9870         in PT_NOTE segments with multiple notes.
9871         * elf/readelflib.c (process_elf_file): Likewise.
9872
9873 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9874
9875         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9876         ISO C compliant.
9877
9878 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9879
9880         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9881
9882 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9883
9884         * include/link.h: Don't include rtld-lowlevel.h.
9885         (struct link_map): Remove l_scope_lock.
9886         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9887         (_dl_scope_free_list): New field (variable) in _rtld_global.
9888         (DL_LOOKUP_SCOPE_LOCK): Remove.
9889         (_dl_scope_free): New prototype.
9890         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9891         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9892         (_dl_profile_fixup): Likewise.
9893         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9894         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9895         THREAD_GSCOPE_RESET_FLAG around it.
9896         * elf/dl-close.c (_dl_close_worker): Don't use
9897         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9898         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9899         scopes were queued or if l_scope_mem has been abandoned.
9900         * elf/dl-open.c (_dl_scope_free): New function.
9901         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9902         * elf/dl-support.c (_dl_scope_free_list): New variable.
9903         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9904         Remove DL_LOOKUP_SCOPE_LOCK handling.
9905         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9906         handling.
9907         * elf/dl-object.c (_dl_new_object): Don't use
9908         __rtld_mrlock_initialize.
9909
9910 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9911
9912         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9913         to fill in holes
9914         (rtld_global_ro): Likewise.
9915
9916 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9917
9918         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9919         Move PT_LOAD checking to...
9920         (_dl_addr_inside_object): ... here, new function.
9921         * elf/dl-sym.c (do_sym): If not l_contiguous,
9922         call _dl_addr_inside_object.
9923         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9924         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9925         * elf/dl-open.c (dl_open_worker): Likewise.
9926         (_dl_addr_inside_object): New function if IS_IN_rtld.
9927         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9928         holes are present or are PROT_NONE protected.
9929         * include/link.h (struct link_map): Add l_contiguous field.
9930         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9931
9932 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9933             Tomas Janousek  <tjanouse@redhat.com>
9934             Ulrich Drepper  <drepper@redhat.com>
9935
9936         [BZ #4647]
9937         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9938         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9939         socket.
9940         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9941         unused member a bitmap.
9942         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9943         servers are configured.
9944
9945 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9946
9947         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9948
9949 2007-06-17  Andreas Schwab  <schwab@suse.de>
9950
9951         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9952
9953 2007-06-16  Andreas Jaeger  <aj@suse.de>
9954
9955         [BZ #4125]
9956         * sysdeps/unix/sysv/linux/sys/ptrace.h
9957         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9958         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9959         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9960         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9961         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9962         Define.
9963         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9964         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9965         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9966         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9967
9968 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9969
9970         [BZ #4599]
9971         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9972         determining whether there are IPv4/IPv6 addresses, ignore loopback
9973         addresses.
9974
9975 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9976
9977         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9978         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9979         as the return type.  Change type of "r" variable to CMPtype.
9980         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9981         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9982         * soft-fp/gedf2.c (__gedf2): Likewise.
9983         * soft-fp/gesf2.c (__gesf2): Likewise.
9984         * soft-fp/getf2.c (__getf2): Likewise.
9985         * soft-fp/ledf2.c (__ledf2): Likewise.
9986         * soft-fp/lesf2.c (__lesf2): Likewise.
9987         * soft-fp/letf2.c (__letf2): Likewise.
9988         * soft-fp/unorddf2 (__unorddf2): Likewise.
9989         * soft-fp/unordsf2 (__unordsf2): Likewise.
9990         * soft-fp/unordtf2 (__unordtf2): Likewise.
9991
9992 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9995         make sure gcc doesn't mess around with this.
9996
9997 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9998
9999         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10000
10001 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10002
10003         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10004         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10005         at most once per _dl_close_worker.
10006
10007 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10008
10009         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10010         __sched_cpucount as const.
10011         * posix/sched_cpucount.c: Adjust.
10012
10013         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10014         instruction for counting bits.
10015         * sysdeps/x86_64/sched_cpucount.c: New file.
10016
10017 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10018
10019         * configure.in: Avoid variable named BASH.
10020         * config.make.in: Likewise.
10021         Patch in part by Mike Frysinger.
10022
10023 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10024
10025         [BZ #4586]
10026         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10027         pseudo-zeros as zero.
10028         * sysdeps/x86_64/ldbl2mpn.c: New file.
10029         * sysdeps/ia64/ldbl2mpn.c: New file.
10030
10031 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10032
10033         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10034         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10035         Remove unreachable code at the end.
10036
10037 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10038
10039         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10040         ldbl-128ibm in comment.
10041         (fpclassifyl): Correct classification of denormals.
10042         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10043         return value for MIN denormal. Rewrite using long double math too
10044         correctly handle denormals and canonicalize the results.
10045
10046 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10047
10048         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10049         (__mpn_construct_long_double): Fix conversion where result ought
10050         to be smaller than __LDBL_MIN__, or the low double should be
10051         denormal.  Fix decision where to negate low double - honor round
10052         to even rules.
10053         * stdio-common/tst-sprintf2.c: Include string.h.
10054         (COMPARE_LDBL): Define.
10055         (TEST): Also test whether a string hexadecimal float representation
10056         can be parsed back to the number.
10057         (main): Add a couple of further tests.
10058
10059 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10060
10061         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10062         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10063         is non-zero, but smaller than 2 * __DBL_MIN__.
10064         * stdio-common/tst-sprintf2.c: New test.
10065         * stdio-common/Makefile (tests): Add tst-sprintf2.
10066
10067         * math/test-misc.c (main): Don't run last batch of tests with
10068         IBM long double format.
10069
10070 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10071
10072         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10073         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10074         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10075         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10076         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10077         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10078         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10079         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10080         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10081         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10084         New file.
10085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10086         New file.
10087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10088         New file.
10089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10090         New file.
10091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10092         New file.
10093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10095         New file.
10096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10097         New file.
10098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10099         New file.
10100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10101         New file.
10102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10103         New file.
10104
10105 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10106
10107         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10108         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10109         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10110         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10111         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10112         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10113         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10114         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10115
10116 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10117
10118         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10119         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10120         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10121         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10122         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10123         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10124         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10125         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10126
10127 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10128
10129         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10130         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10131         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10132         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10133
10134 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10135
10136         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10137         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10138
10139 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10140
10141         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10142         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10143         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10144         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10145
10146 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10147
10148         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10149         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10150
10151 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10152
10153         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10154         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10155
10156         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10157         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10158         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10159         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10160
10161 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10162
10163         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10164         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10165         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10166         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10167
10168 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10169
10170         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10171         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10172         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10173         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10174         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10175         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10176
10177 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10178
10179         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10180         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10181         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10183
10184 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10185
10186         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10187         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10188         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10189         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10190         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10192         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10193         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10194         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10195         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10196         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10197         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10198         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10199         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10200         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10201         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10202
10203 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10204
10205         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10206         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10207
10208 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10209
10210         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10211         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10212
10213 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10214
10215         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10216         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10217         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10218         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10219         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10220         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10221         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10222         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10223         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10224         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10225
10226 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10227
10228         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10229
10230 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10231
10232         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10233         branch miss-predicts. Ensure that cache line crossing does not impact
10234         dispatch grouping.
10235
10236 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10237
10238         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10239         "../../powerpc32/power4/memcopy.h".
10240         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10241         "../../powerpc32/power4/wordcopy.c".
10242
10243 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10244
10245         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10246         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10247         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10248         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10249         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10250         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10251
10252 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10253
10254         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10255
10256 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10257
10258         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10259         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10260         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10261         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10262         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10263         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10264         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10265         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10266
10267 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10268
10269         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10270
10271 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10272
10273         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10274         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10275         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10276         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10277         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10278         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10279         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10280
10281 2007-05-29  Roland McGrath  <roland@redhat.com>
10282
10283         * po/Makefile (po-sed-cmd): New variable.
10284         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10285
10286 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10287
10288         * crypt/md5-crypt.c: Fix comment.
10289
10290         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10291         of crashing.  When this is the case or if the reply is malformed,
10292         don't try to close the new file descriptor since it does not
10293         exist.
10294         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10295
10296 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10297
10298         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10299         if __NR_utimensat is not defined.
10300
10301 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10302
10303         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10304
10305 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10306
10307         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10308         (open): Fix comment typos.  Don't call __open_2 if flags
10309         is a compile time constant without O_CREAT.
10310         (__open64_2): Add nonnull attribute.
10311         (open64): Fix comment typos.  Don't call __open64_2 if flags
10312         is a compile time constant without O_CREAT.
10313         (__openat_2): Add nonnull attribute, fix nonnull attribute
10314         on redirect.
10315         (openat): Fix comment typos.  Don't call __openat_2 if flags
10316         is a compile time constant without O_CREAT.
10317         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10318         on redirect.
10319         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10320         is a compile time constant without O_CREAT.
10321
10322 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10323
10324         * Makerules (sysd-rules): Define PTW for ptw-* files.
10325         * Versions: Define GLIBC_2.7 for libc.
10326         * include/stdio.h: Declare __fortify_fail.
10327         * debug/fortify_fail.c: New file.
10328         * debug/Makefile (routines): Add fortify_fail.
10329         * debug/chk_fail.c: Use __fortify_fail.
10330         * debug/stack_chk_fail.c: Likewise.
10331         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10332         __openat64_2 for GLIBC_2.7.
10333         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10334         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10335         and fails if necessary.
10336         * io/open64.c: Likewise.
10337         * io/openat.c: Likewise.
10338         * io/openat64.c: Likewise.
10339         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10340         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10341         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10342         * io/bits/fcntl2.h: New file.
10343         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10344         __openat64_2.
10345         * include/bits/fcntl2.h: New file.
10346         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10347         Add open_2.
10348         * sysdeps/unix/sysv/linux/open_2.c: New file.
10349
10350 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10351
10352         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10353         as second parameter to handle_intel.
10354
10355         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10356         the entry.
10357
10358         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10359         handling to ...
10360         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10361         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10362         cacheinfo.
10363         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10364         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10365         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10366
10367         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10368
10369 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10370
10371         [BZ #4525]
10372         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10373         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10374         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10375
10376         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10377
10378         [BZ #4514]
10379         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10380         reinitialize workend at the start of each do_positional format spec
10381         loop, free workstart before do_positional loops.
10382         (printf_unknown): Fix size of work_buffer.
10383         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10384
10385         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10386         (public_sET_STATe): If ms->version < 3, put all chunks into
10387         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10388         chunks.
10389
10390         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10391         * malloc/hooks.c: Likewise.
10392         * malloc/arena.c: Likewise.
10393         * malloc/malloc.c (do_check_malloc_state): Don't assert
10394         n_mmaps is not greater than n_mmaps_max.  This removes the need
10395         for the previous change.
10396
10397         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10398         2007-05-07 commit.
10399
10400 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10401
10402         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10403         Define for kernel >= 2.6.22.
10404
10405 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10406
10407         * elf/dl-close.c (_dl_close_worker): When removing object from
10408         global scope, wait for all lookups to finish afterwards.
10409         * elf/dl-open.c (add_to_global): When global scope array must
10410         grow, allocate a new one and free old array only after all
10411         lookups finish.
10412         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10413         (_dl_lookup_symbol_x): Likewise.
10414         * elf/dl-support.c: Define _dl_wait_lookup_done.
10415         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10416         _dl_wait_lookup_done.
10417
10418         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10419         not overlapping with arena.
10420
10421         * malloc/mcheck.c (reallochook): If size==0, free the block.
10422
10423         * rt/tst-shm.c: Use fstat64 instead of fstat.
10424
10425         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10426         __NR_sync_file_range is not defined.
10427
10428 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10429
10430         Dummy files to prevent stub versions from being used.
10431         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10432         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10433         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10434         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10435
10436         * version.h (VERSION): Set to 2.6.90.
10437
10438 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10439
10440         * version.h (VERSION): Define to 2.6.
10441         * include/features.h (__GLIBC_MINOR__): Define to 6.
10442
10443         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10444
10445         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10446         sizes.
10447
10448 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10449
10450         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10451         number of mmaps.  n_mmaps_max is the target.
10452         * malloc/hooks.c: Likewise.
10453         * malloc/arena.c: Likewise.
10454
10455 2007-05-12  Andreas Jaeger  <aj@suse.de>
10456
10457         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10458         getpid.
10459
10460 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10461
10462         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10463         adding new variables.
10464
10465         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10466         optimize.  Completely extend global scope array before making the
10467         new entries visible.
10468
10469 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10470
10471         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10472         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10473         tst-getcpu.
10474
10475         * include/link.h: Move l_version and l_nversion members around to
10476         fill gaps.
10477
10478         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10479
10480         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10481         (__sched_setaffinity_new): If syscall was successful and
10482         RESET_VGETCPU_CACHE is defined, use it before returning.
10483         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10484
10485         * io/sys/stat.h: Make sure struct timespec is defined for
10486         __USE_ATFILE.
10487
10488         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10489         UTIME_OMIT.
10490         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10491         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10492         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10493         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10494         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10495         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10496         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10497         * io/sys/stat.h: Declare utimensat, futimens.
10498         * io/utimensat.c: New file.
10499         * io/futimens.c: New file.
10500         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10501         * sysdeps/unix/sysv/linux/futimens.c: New file.
10502         * io/Makefile (routines): Add utimensat, futimens.
10503         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10504         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10505         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10506         available.
10507
10508         * include/sys/cdefs.h: Redefine __nonnull so that test for
10509         incorrect parameters in the libc code itself are not omitted.
10510
10511 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10512
10513         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10514         exception in addition to inexact when asked to raise only FE_INEXACT.
10515
10516         [BZ #3427]
10517         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10518         in *envp.
10519
10520 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10521
10522         [BZ #4403]
10523         * string/strfry.c (strfry): Make result more random.
10524
10525 2007-05-07  Richard Henderson  <rth@redhat.com>
10526
10527         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10528         if __NO_LONG_DOUBLE_MATH.
10529         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10530         available in the compiler, add .arch directive to the assembly.
10531
10532 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10533
10534         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10535         compat_symbol to GLIBC_2_1.
10536         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10537         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10538         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10539         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10540         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10541         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10542         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10543         libc, not libm.
10544         (__isnanl): New compat_symbol.
10545
10546 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10547             Jakub Jelinek  <jakub@redhat.com>
10548
10549         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10550         (new_heap): Initialize mprotect_size.
10551         (grow_heap): When growing, only mprotect from mprotect_size till
10552         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10553         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10554
10555 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10556             Peter Bergner  <bergner@us.ibm.com>
10557
10558         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10559         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10560         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10561         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10562         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10563         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10564         Call __fe_mask_env() if all FP exceptions disabled.
10565         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10566         from old FPSCR to new fenv to propagate DFP rounding modes.
10567         Call __fe_mask_env() if FP exceptions previously enabled.
10568         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10569         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10570         transitioning from all exceptions disabled to any exception enabled
10571         or visa versa.
10572         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10573         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10574         when transitioning from all exceptions disabled to any exception
10575         enabled or visa versa.
10576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10582
10583 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10584
10585         [BZ #4465]
10586         * posix/unistd.h: Remove __THROW from fdatasync.
10587
10588 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10589
10590         [BZ #4465]
10591         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10592
10593 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10594
10595         * stdio-common/vfprintf.c (process_string_arg): Optimize
10596         ridiculous precision in wide char code printing multi-byte string.
10597         Reported by Jim Meyering <jim@meyering.net>.
10598
10599         [BZ #4131]
10600         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10601         boundaries to work around systems with overlapping binary loading.
10602         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10603
10604 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10605
10606         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10607         __mbsnrtowcs after last change.
10608
10609         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10610         (get_ident): Likewise.
10611
10612 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10613
10614         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10615         with setting the sticky bit.
10616         * math/test-misc.c (main): Add more truncation tests.
10617
10618 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10619
10620         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10621         double in the function declaration.
10622         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10623         double in the function declaration.
10624         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10625         float in the function declaration.
10626         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10627         float in the function declaration.
10628
10629         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10630         denormal operands.  Do not generate FP_EX_DENORM exception.
10631         (FP_UNPACK_RAW_EP): Ditto.
10632         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10633         undefined _FP_UNPACK_RAW_E.
10634         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10635         undefined _FP_UNPACK_RAW_EP.
10636         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10637         undefined _FP_PACK_RAW_E.
10638         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10639         undefined _FP_PACK_RAW_EP.
10640
10641         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10642         _FP_FRAC_COPY_2.
10643         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10644         _FP_FRAC_COPY_4.
10645
10646 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10647             Jakub Jelinek  <jakub@redhat.com>
10648
10649         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10650         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10651         this case.
10652         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10653
10654 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10655
10656         * math/test-misc.c (main): Add tests for rounding long double
10657         values close to smallest double denormalized value to double.
10658
10659 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10660
10661         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10662         condition for truncating to 0.  Set sticky bit for such
10663         truncation.
10664
10665 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10666
10667         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10668         fixed length array for ignore.
10669
10670 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10671
10672         [BZ #4438]
10673         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10674         stack for large precisions.
10675         * stdio-common/test-vfprintf.c (main): Add test for large
10676         precision.
10677
10678 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10679
10680         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10681         for exponent 0.
10682         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10683
10684         [BZ #4439]
10685         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10686         account in the size check.
10687         * resolv/tst-inet_ntop.c: New test.
10688         * resolv/Makefile (tests): Add tst-inet_ntop.
10689
10690 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10691             Jakub Jelinek  <jakub@redhat.com>
10692
10693         [BZ #4349]
10694         * malloc/malloc.c: Keep separate list for first blocks on the bin
10695         lists with a given size.  This helps skipping over list elements
10696         we know won't fit in two places.
10697         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10698
10699 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10700
10701         [BZ #4102]
10702         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10703         label to Teredo tunnel addresses 2001://32.
10704
10705 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10706
10707         * locale/programs/ld-collate.c (collate_read): Allow order_start
10708         after copy.
10709
10710         * locale/programs/ld-collate.c (collate_read): Fix printing of
10711         error message.
10712
10713         [BZ #3213]
10714         * locale/C-translit.h.in: Add entry for U2044.
10715
10716         [BZ #4342]
10717         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10718         hexa-decimal floats without exponent.
10719         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10720
10721 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10722
10723         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10724         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10725         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10726         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10727         GLIBC_2.6.
10728         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10729         Add sched_getcpu.
10730
10731 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10732
10733         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10734         of 0 after the out_fail label.
10735
10736 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10737
10738         [BZ #4406]
10739         * iconv/gconv_charset.h (strip): Allow ':'.
10740         * iconv/iconv_open.c (iconv_open): Adjust comment.
10741
10742 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10743
10744         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10745         version.
10746
10747 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10748
10749         [BZ #4381]
10750         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10751         alignment of buffer and tmp_buffer.
10752         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10753         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10754         alignment of buffer.
10755         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10756         bigger than INT_MAX.
10757         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10758         h_errnop arguments.  Fail if buflen is too small.
10759         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10760
10761 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10762
10763         [BZ #4405]
10764         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10765         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10766
10767 2007-04-22  Roland McGrath  <roland@redhat.com>
10768
10769         * elf/elf.h (NT_PRXFPREG): New macro.
10770
10771 2007-04-19  Andreas Jaeger  <aj@suse.de>
10772
10773         [BZ #3905]
10774         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10775         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10776         Added.
10777
10778 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10779
10780         * include/sys/mman.h: Mark madvise hidden.
10781         * misc/madvise.c: Add libc_hidden_def.
10782
10783 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10784
10785         * nis/nis_domain_of.c (__nis_domain_of): New function.
10786         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10787         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10788         * nis/nis_call.c (rec_dirsearch): Likewise.
10789         (first_shoot): Likewise.  Remove search_parent_first argument.
10790         (struct nis_server_cache): Rename search_parent_first field
10791         to search_parent.
10792         (nis_server_cache_search, nis_server_cache_add): Rename
10793         search_parent_first argument to search_parent.
10794         (__nisfind_server): Likewise.  If search_parent, call
10795         __nis_domain_of.
10796
10797 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10798
10799         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10800
10801 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10802
10803         [BZ #4368]
10804         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10805
10806 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10807
10808         [BZ #4364]
10809         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10810
10811 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10812
10813         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10814         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10815         current number of locales in SUPPORTED.
10816         (create_archive): Initialize serial.
10817         (enlarge_archive): Preserve aliases rather than duplicating
10818         their locrecs.
10819
10820 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10821
10822         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10823         after _IO_un_link, not before it.
10824
10825         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10826         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10827         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10828
10829 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10830
10831         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10832         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10833         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10834         Remove __THROW.
10835         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10836         _IO_file_xsgetn_maybe_mmap): Likewise.
10837         * libio/oldfileops.c (old_do_write): Likewise.
10838         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10839         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10840         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10841         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10842         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10843         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10844         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10845         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10846         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10847         _IO_file_underflow, _IO_file_underflow_mmap,
10848         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10849         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10850         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10851         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10852         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10853         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10854         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10855         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10856         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10857         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10858         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10859         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10860         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10861         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10862         _IO_adjust_column_internal, _IO_default_uflow_internal,
10863         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10864         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10865         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10866         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10867         _IO_file_close_it_internal, _IO_file_underflow_internal,
10868         _IO_file_overflow_internal, _IO_file_attach_internal,
10869         _IO_file_fopen_internal, _IO_file_sync_internal,
10870         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10871         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10872         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10873         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10874         _IO_seekpos_unlocked): Likewise.
10875         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10876         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10877
10878 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10879
10880         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10881         argument in xmalloc size computation.
10882
10883 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10884
10885         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10886         math_opt_barrier and math_force_eval macros.
10887
10888 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10889
10890         [BZ #3306]
10891         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10892         * sysdeps/i386/fpu/math_private.h: New file.
10893         * sysdeps/x86_64/fpu/math_private.h: New file.
10894         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10895         math_force_eval macros.  Use "+m" constraint on asm rather than
10896         "=m" and "m".
10897         * math/s_nextafter.c (__nextafter): Likewise.
10898         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10899         Likewise.
10900         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10901         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10902         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10903         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10904         math_opt_barrier and math_force_eval macros.
10905         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10906         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10907         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10908         (__nexttoward): 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 2.
10912         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10913         (__nexttowardf): Use math_opt_barrier and
10914         math_force_eval macros.  Use "+m" constraint on asm rather than
10915         "=m" and "m".  Only use asm to force double result if
10916         FLT_EVAL_METHOD is not 0.
10917         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10918         (__nexttowardf): Use math_opt_barrier and
10919         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10920         x to float using asm.
10921         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10922         (__nldbl_nexttowardf): Use math_opt_barrier and
10923         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10924         x to float using asm.
10925         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10926         (__nexttowardf): Use math_opt_barrier and math_force_eval
10927         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10928         * math/bug-nextafter.c (zero, inf): New variables.
10929         (main): Add new tests.
10930         * math/bug-nexttoward.c (zero, inf): New variables.
10931         (main): Add new tests.
10932
10933 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10934
10935         [BZ #3427]
10936         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10937         exceptions both in SW and MXCSR.
10938         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10939         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10940         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10941         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10942         in MXCSR if SSE is available.
10943         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10944         and ldsodefs.h.
10945         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10946         Fix comment typo.
10947         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10948         Return 0 rather than 1.
10949         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10950         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10951         * math/test-fenv.c (feholdexcept_tests): New function.
10952         (main): Call it.
10953
10954 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10955
10956         [BZ #3427]
10957         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10958         in SW.
10959
10960 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10961
10962         [BZ #4344]
10963         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10964         Reported by David Anderson <davea42@earthlink.net>.
10965
10966 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10967
10968         * posix/sys/wait.h: Remove unnecessary forward declaration.
10969
10970 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10971
10972         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10973         with obj->do_servers after first_shoot.
10974
10975 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10976
10977         * posix/Makefile (routines): Add sched_cpucount.
10978         (tests): Add tst-cpucount.
10979         * posix/sched_cpucount.c: New file.
10980         * posix/tst-cpucount.c: New file.
10981         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10982         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10983         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10984         * posix/sched.h: Define CPU_COUNT.
10985
10986 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10987
10988         * posix/fnmatch.c (STRUCT): Define.
10989         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10990         * posix/fnmatch_loop.c (struct STRUCT): New type.
10991         (FCT): Add ends argument.  If ends != NULL and normal * is
10992         seen in the pattern, store current pattern and string pointers
10993         and return.  Adjust recursive calls.
10994         (EXT): Adjust FCT callers.
10995         (STRUCT): Undef at the end of the file.
10996         * posix/Makefile (tests): Add tst-fnmatch2.
10997         * posix/tst-fnmatch2.c: New test.
10998
10999 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11000
11001         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11002         and 1 on failure.
11003
11004         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11005         Change last argument to unsigned int.
11006
11007 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11008
11009         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11010
11011 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11012
11013         * config.h.in (HAVE_LIBCAP): Add.
11014         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11015         sys/capabilities.h.
11016         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11017         free_caps.  Cast away const from 4th cap_set_flag argument.
11018
11019 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11020
11021         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11022         GLIBC_2.6.
11023         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11024         Add sync_file_range.
11025         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11026
11027 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11028
11029         * sysdeps/powerpc/bits/atomic.h
11030         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11031         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11032         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11033         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11034         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11035         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11036         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11037         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11038         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11039         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11040         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11041         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11042         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11043         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11044         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11045         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11046         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11047         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11048         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11049         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11050
11051 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11052
11053         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11054         (__cache_line_size): Define the variable here.  Add
11055         attribute_hidden, remove weak_extern.
11056         (__libc_start_main): Set __cache_line_size
11057         unconditionally.
11058         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11059         (__cache_line_size): Define the variable here.  Add
11060         attribute_hidden, remove weak_extern.
11061         (DL_PLATFORM_AUXV): Set __cache_line_size
11062         unconditionally.
11063         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11064         weak_extern, add attribute_hidden.
11065         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11066         defined in ld.so.
11067         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11068         definition.
11069         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11070
11071 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11072
11073         [BZ #4276]
11074         * timezone/africa: Update from tzdata2007d.
11075         * timezone/asia: Likewise.
11076         * timezone/australasia: Likewise.
11077         * timezone/backward: Likewise.
11078         * timezone/europe: Likewise.
11079         * timezone/iso3166.tab: Likewise.
11080         * timezone/leapseconds: Likewise.
11081         * timezone/northamerica: Likewise.
11082         * timezone/southamerica: Likewise.
11083         * timezone/zone.tab: Likewise.
11084
11085         * timezone/private.h: Update from tzcode2007d.
11086         * timezone/zdump.c: Likewise.
11087         * timezone/zic.c: Likewise.
11088
11089 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11090
11091         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11092         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11093         variables.
11094         (nis_server_cache_search, nis_server_cache_add): New functions.
11095         (__nisfind_server): Use them.  Add dbp and flags argument, if
11096         call __nisbind_create.
11097         (__nisbind_create): Add server_used and current_ep arguments,
11098         only call __nis_findfastest if server_used is ~0.
11099         (__do_niscall2, __prepare_niscall): Adjust callers.
11100         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11101         ckey_cache_euid, ckey_cache_lock): New variables.
11102         (get_ckey): New function.
11103         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11104         __pmap_getnisport.  Save __pmap_getnisport result in
11105         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11106         key.
11107         * nis/nis_lookup.c (nis_lookup): Likewise.
11108         * nis/nis_table.c (nis_list): Likewise.
11109         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11110         prototypes.
11111
11112         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11113         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11114         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11115         _nss_nisplus_getservbyport_r): Likewise.
11116         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11117         _nss_nisplus_getnetbyaddr_r): Likewise.
11118         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11119         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11120         _nss_nisplus_getntohost_r): Likewise.
11121         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11122         _nss_nisplus_getrpcbynumber_r): Likewise.
11123
11124 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11125
11126         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11127         * configure: Rebuilt.
11128
11129         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11130         bit-fields.
11131         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11132
11133 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11134
11135         [BZ #2831]
11136         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11137         bit-fields.
11138
11139 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11140
11141         * nscd/gai.c: Include alloca.h.
11142         (__libc_use_alloca): Define.
11143
11144 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11145
11146         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11147         smaller scopes.
11148         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11149         (DL_DST_REQUIRED): Adjust user.
11150
11151         * include/dlfcn.h (struct link_map): New forward decl.
11152
11153         * inet/getnameinfo.c: Include stddef.h.
11154         (getnameinfo): Use offsetof.
11155
11156         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11157
11158         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11159
11160         * string/strerror_l.c: Include stdlib.h.
11161
11162         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11163         * config.make.in (gnu89-inline-CFLAGS): New variable.
11164         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11165         -std=gnu99.
11166         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11167         * argp/argp.h: Use it.
11168         * bits/mathinline.h: Likewise.
11169         * bits/sigset.h: Likewise.
11170         * bits/string.h: Likewise.
11171         * ctype/ctype.h: Likewise.
11172         * hurd/hurd.h: Likewise.
11173         * hurd/hurd/fd.h: Likewise.
11174         * hurd/hurd/port.h: Likewise.
11175         * hurd/hurd/signal.h: Likewise.
11176         * hurd/hurd/threadvar.h: Likewise.
11177         * hurd/hurd/userlink.h: Likewise.
11178         * io/sys/stat.h: Likewise.
11179         * libio/bits/stdio.h: Likewise.
11180         * libio/bits/stdio2.h: Likewise.
11181         * mach/lock-intern.h: Likewise.
11182         * mach/mach/mig_support.h: Likewise.
11183         * math/bits/cmathcalls.h: Likewise.
11184         * posix/bits/unistd.h: Likewise.
11185         * socket/bits/socket2.h: Likewise.
11186         * stdlib/bits/stdlib.h: Likewise.
11187         * stdlib/stdlib.h: Likewise.
11188         * string/argz.h: Likewise.
11189         * string/bits/string2.h: Likewise.
11190         * string/bits/string3.h: Likewise.
11191         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11192         * sysdeps/generic/inttypes.h: Likewise.
11193         * sysdeps/generic/machine-lock.h: Likewise.
11194         * sysdeps/generic/machine-sp.h: Likewise.
11195         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11196         * sysdeps/i386/i486/bits/string.h: Likewise.
11197         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11198         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11199         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11200         * sysdeps/mach/i386/machine-lock.h: Likewise.
11201         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11202         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11203         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11204         * sysdeps/s390/bits/string.h: Likewise.
11205         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11206         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11207         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11208         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11209         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11210         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11211         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11212         * wcsmbs/bits/wchar2.h: Likewise.
11213         * wcsmbs/wchar.h: Likewise.
11214         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11215         __extern_inline definition.
11216
11217 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11218
11219         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11220         NULL.
11221
11222         [BZ #3919]
11223         * math/libm-test.inc (log_test): Test -Inf and NaN.
11224         (log10_test, log1p_test, log2_test): Test -Inf.
11225         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11226         FE_INVALID when argument is qNaN.
11227         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11228         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11229         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11230         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11231         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11232         testb $4, %ah and jump if non-zero.
11233         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11234         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11235
11236         [BZ #4101]
11237         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11238         ancestors with the same depths.
11239         Patch by Niels Moeller <nisse@lysator.liu.se>.
11240         (filter_doc): Don't crash if argp is NULL.
11241         * argp/Makefile (tests): Add tst-argp2.
11242         * argp/tst-argp2.c: New test.
11243
11244         [BZ #4130]
11245         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11246         open_not_cancel_2.
11247         (updwtmp_file): Likewise.
11248
11249         [BZ #4181]
11250         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11251         (inet6_opt_append): Don't check extlen is big enough if extbuf
11252         is NULL.
11253         (inet6_opt_finish): Likewise.
11254         * inet/Makefile (tests): Add test-inet6_opt.
11255         * inet/test-inet6_opt.c: New test.
11256
11257         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11258         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11259         NLMSG_ERR.  Instead use a page sized buffer.
11260         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11261         buffer.
11262
11263 2007-03-14  Richard Henderson  <rth@redhat.com>
11264
11265         * sysdeps/alpha/fpu/s_llround.c: New file.
11266         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11267         * sysdeps/alpha/fpu/s_lround.c: New file.
11268         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11269         * sysdeps/alpha/fpu/s_round.c: New file.
11270         * sysdeps/alpha/fpu/s_roundf.c: New file.
11271         * sysdeps/alpha/fpu/s_trunc.c: New file.
11272         * sysdeps/alpha/fpu/s_truncf.c: New file.
11273
11274         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11275         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11276         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11277         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11278         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11279         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11280
11281         * sysdeps/alpha/fpu/s_fmax.S: New file.
11282         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11283         * sysdeps/alpha/fpu/s_fmin.S: New file.
11284         * sysdeps/alpha/fpu/s_fminf.S: New file.
11285         * sysdeps/alpha/fpu/s_isnan.c: New file.
11286         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11287         * sysdeps/alpha/fpu/s_llrint.c: New file.
11288         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11289         * sysdeps/alpha/fpu/s_lrint.c: New file.
11290         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11291         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11292         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11293
11294         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11295         (__fdimf, fdimf, __fdim, fdim): Remove.
11296         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11297         (__isnanf, __isnan, __isnanl): New.
11298
11299 2007-03-13  Richard Henderson  <rth@redhat.com>
11300
11301         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11302
11303 2007-03-13  Richard Henderson  <rth@redhat.com>
11304
11305         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11306         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11307         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11308         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11309         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11310         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11311
11312 2007-03-13  Richard Henderson  <rth@redhat.com>
11313
11314         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11315         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11316         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11317         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11318         Move to dl-auxv.h; initialize instead of extern weak.
11319         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11320         weak symbol.
11321         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11322         Extern instead of initialized.
11323
11324 2007-03-13  Richard Henderson  <rth@redhat.com>
11325
11326         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11327         __sigsuspend_nocancel.
11328
11329 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11330
11331         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11332         172.16/12 address range.
11333
11334 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11335
11336         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11337         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11338         message.
11339
11340 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11341
11342         [BZ #4069]
11343         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11344         earlier.
11345         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11346
11347         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11348         for x qNaN and y either +-inf or non-integer value.
11349         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11350         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11351         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11352
11353 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11354
11355         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11356         from sysdep_headers.
11357
11358 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11359
11360         * time/tzfile.c (find_transition): Instead of a linear search try to
11361         guess the transition index, use a linear search if the result is at
11362         most 10 transitions away from the guess or binary search otherwise.
11363
11364 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11365
11366         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11367         memory reallocation.
11368
11369 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11370
11371         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11372         and fix some typos.
11373         Optimize use of TOLOWER.
11374
11375         [BZ #3325]
11376         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11377         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11378         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11379
11380         [BZ #3458]
11381         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11382         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11383
11384         [BZ #4076]
11385         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11386         (open_dir_stream): Likewise.
11387         * io/Makefile (tests): Add bug-ftw5.
11388         * io/bug-ftw5.c: New file.
11389
11390         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11391         * nscd/servicescache.c (cache_addserv): Likewise.
11392
11393         * nscd/grpcache.c (cache_addgr): In case a record changed on
11394         refresh, adjust key_copy.
11395
11396         [BZ #4074]
11397         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11398         refresh, adjust key_copy.
11399
11400         [BZ #4070]
11401         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11402         special cases.
11403         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11404
11405 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11406
11407         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11408         optimization.
11409
11410         * stdio-common/vfscanf.c: Small cleanups throughout.
11411
11412 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11413
11414         [BZ #3325]
11415         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11416         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11417         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11418         Patch by Jared Casper <jaredcasper@gmail.com>.
11419
11420         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11421         * sysdeps/unix/opendir.c: Likewise.
11422         * sysdeps/unix/readdir.c: Likewise.
11423
11424         [BZ #2211]
11425         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11426         point numbers.
11427         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11428
11429         * stdio-common/vfscanf.c: Fix problems in width accounting.
11430         * stdio-common/tst-sscanf.c (double_tests): New tests.
11431         (main): Hook them up.
11432
11433         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11434         More simplifications of floating-point reader.
11435
11436         * stdio-common/Makefile (tests): Add tst-swscanf.
11437         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11438         testing.
11439         * stdio-common/tst-swscanf.c: New file.
11440
11441 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11442
11443         [BZ #2633]
11444         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11445         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11446         Remove using for __jmp_buf_tag.
11447         * locale/locale.h (struct lconv): Also define in std namespace.
11448         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11449
11450         [BZ #3842]
11451         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11452         using __libc_enable_secure.
11453
11454         [BZ #3818]
11455         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11456
11457         [BZ #3745]
11458         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11459         of names for ellipsises.
11460
11461         [BZ #3348]
11462         * malloc/memusage.sh: Cleanups.
11463         * debug/xtrace.sh: Quoting and trap changes.
11464
11465 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11466
11467         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11468
11469         * locale/iso-3166.def: Update entry for Serbia.
11470         * locale/iso-4217.def: Define RSD, remove CSD.
11471
11472         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11473         and 64-bit operations.
11474
11475         [BZ #4040]
11476         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11477         16-bit operations.
11478
11479         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11480         of writev.
11481
11482 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11483
11484         [BZ #3991]
11485         * assert/assert.h (assert): Simplify.
11486         (assert_perror): Likewise.
11487         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11488
11489         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11490         reqdata.
11491
11492         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11493         change: don't pass NULL in place of an integer.
11494
11495 2007-02-02  Bruno Haible  <bruno@clisp.org>
11496
11497         [BZ #3954]
11498         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11499         Add mapping for U+327E.
11500         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11501         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11502         mapping of 0xD9 0xE8.
11503         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11504         mapping of U+327E.
11505         Reported by Jungshik Shin <jungshik@google.com>.
11506
11507         [BZ #3955]
11508         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11509         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11510         Reported by Jungshik Shin <jungshik@google.com>.
11511
11512 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11513
11514         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11515         byte variants.
11516
11517         [BZ #4040]
11518         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11519         byte variants.  Patch mostly be tom@tommay.net.
11520
11521 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11522
11523         [BZ #3996]
11524         * posix/glob.c (attribute_hidden): Define if not defined.
11525         (glob): Unescape dirname, filename or username when needed and not
11526         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11527         is NULL.  Handle unescaped [ in pattern without closing ].
11528         Don't pass GLOB_CHECK down to recursive glob for directories.
11529         (__glob_pattern_type): New function.
11530         (__glob_pattern_p): Implement using __glob_pattern_type.
11531         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11532         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11533         Remove unreachable code.
11534         * posix/globtest.sh: Add a couple of new tests.
11535
11536 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11537
11538         * po/ru.po: Update from translation team.
11539
11540 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11541
11542         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11543         to the list of i486+ CPUs.
11544         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11545
11546 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11547
11548         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11549         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11550         references.
11551
11552 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11553
11554         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11555
11556         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11557         * resolv/res_mkquery.c: Define __res_nopt.
11558         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11559         try adding EDNS0 record.
11560         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11561         EDNS0 record was send make sure we don't try it again.
11562         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11563         * include/resolv.h: Declare __res_nopt.
11564
11565 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11566
11567         [BZ #3944]
11568         * time/strptime_l.c (__strptime_internal): Set have_mon for
11569         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11570         have been computed from tm_yday and tm_year.  Don't crash
11571         in day_of_the_week or day_of_the_year if not have_mon
11572         and tm_mon contains bogus value.
11573         * time/Makefile (tests): Add tst-strptime3.
11574         * time/tst-strptime3.c: New test.
11575
11576 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11577
11578         [BZ #3957]
11579         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11580         bit for RE_HAT_LISTS_NOT_NEWLINE.
11581         (build_charclass_op): Remove bogus comment.
11582         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11583         * posix/bug-regex27.c: New test.
11584         * posix/bug-regex28.c: New test.
11585
11586 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11587
11588         * po/sv.po: Update from translation team.
11589
11590 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11591
11592         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11593
11594 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11595
11596         * include/locale.h (__uselocale): Add libc_hidden_proto.
11597         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11598
11599         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11600         gettimeofday.
11601
11602 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11603
11604         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11605         returning.
11606         (PTR_DEMANGLE): Real definition now that it's not the same as
11607         PRT_MANGLE anymore.
11608         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11609
11610         * string/strerror_l.c: New file.
11611         * string/Makefile (routines): Add strerror_l.
11612         * string/string.h: Declare strerror_l.
11613         * string/Versions: Export strerror_l for GLIBC_2.6.
11614
11615 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11616
11617         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11618         as parameter.  Construct request record.  Try sending request
11619         before the first poll use, it usually succeeds.  Adjust all
11620         callers.
11621         * nscd/nscd-client.h: Define MAXKEYLEN.
11622         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11623
11624 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11625
11626         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11627         from return value.
11628         * nscd/nscd_helper.c: Include string.h.
11629         (__nscd_cache_search): Remove const qualifier from return value.
11630         On strict alignment architectures check hash entry and data head
11631         alignment.
11632         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11633         mmapped data during GC cycle contains garbage.  If
11634         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11635         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11636         dropped to 0.
11637         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11638         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11639         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11640         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11641         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11642
11643 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11644
11645         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11646
11647 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11648
11649         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11650         names not numbers in cfi_*.
11651
11652 2007-01-26  Andreas Jaeger  <aj@suse.de>
11653
11654         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11655         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11656         Correct values of PER_HPUX and PER_OSF4.
11657
11658 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11659
11660         * elf/dl-minimal.c: Undefine _itoa first.
11661         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11662         * malloc/mtrace.c: Revert last change.
11663         * posix/wordexp.c: Likewise.
11664
11665 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11666
11667         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11668         and __geode__ to the list of i486+ CPUs.
11669         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11670
11671 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11672
11673         * stdio-common/_itoa.c: Include <limits.h>.
11674         * stdio-common/_itowa.c: Likewise.
11675
11676 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11677
11678         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11679         platforms.
11680         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11681         64-bit platforms.
11682         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11683         possible.
11684         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11685         if possible.
11686
11687         [BZ #3902]
11688         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11689         * stdio-common/Makefile (tests): Add bug17.
11690         * stdio-common/bug17.c: New file.
11691
11692 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11693
11694         * iconvdata/brf.c: New file.
11695         * iconvdata/testdata/BRF: New file.
11696         * iconvdata/testdata/BRF..UTF8: New file.
11697         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11698         * iconvdata/Makefile: Add rules to build BRF.
11699         * iconvdata/TESTS: Add BRF entry.
11700         * iconvdata/gconv-modules: Likewise.
11701         * iconvdata/tst-tables.sh: Likewise.
11702
11703 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11704
11705         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11706         type `long long int', not `long int'.
11707         (wcstoq): Likewise.
11708
11709 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11710
11711         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11712         of values on 64-bit platforms which are too large.
11713
11714 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11715             Joe Kerian  <jkerian@us.us.ibm.com>
11716
11717         [BZ #2749]
11718         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11719         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11720         (__copysignl): Use signbit() for comparison.
11721         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11722         SET_LDOUBLE_WORDS64.
11723
11724         [BZ #2423, #2749]
11725         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11726         (__ceill): Remove calls to fegetround(), fesetround().
11727         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11728         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11729         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11730
11731 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11732
11733         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11734
11735         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11736
11737 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11738
11739         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11740         demangle pointer.
11741         * csu/libc-start.c: Likewise.
11742
11743 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11744
11745         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11746         really work anyway.
11747
11748 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11749
11750         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11751         users.
11752         (handle_request): Remove unnecessary tests.
11753
11754         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11755
11756 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11757
11758         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11759         workbits in semi-raw fraction.
11760
11761         * math/test-misc.c: Add new tests.
11762
11763 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11764
11765         * math/basic-test.c: Include test-skeleton.c.
11766         (TEST_TRUNC): Define.
11767         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11768         (main): Rename to ...
11769         (do_test): ...this.  Run new tests.
11770         (TEST_FUNCTION): Define.
11771
11772 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11773             Joe Kerian  <jkerian@us.us.ibm.com>
11774
11775         [BZ #2749]
11776         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11777         handling for high words.
11778         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11779         and overflow for infinity.
11780
11781 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11782
11783         * nscd/connections.c (handle_request): Add a __builtin_expect.
11784
11785         * nscd/connections.c (serv2db): Change type into structure which
11786         also says whether this is a request for data.  Renamed to
11787         servinfo.  All users changed.
11788         (handle_request): Much simpler test whether we should search the cache.
11789
11790         * nscd/connections.c (handle_request): Fix thinko in selinux test
11791         invocation.
11792
11793         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11794         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11795         it before getting dl_load_lock and then relock.
11796         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11797         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11798         case we unlocked the scope.
11799         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11800         _dl_lookup_symbol_x in case we locked the scope.
11801         (_dl_profile_fixup): Likewise.
11802         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11803         set DL_LOOKUP_SCOPE_LOCK.
11804
11805 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11806
11807         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11808         CFLAGS-getsrvbynpt_r.c.
11809         * nscd/getsrvbynm_r.c: New file.
11810         * nscd/getsrvbypt_r.c: New file.
11811         * nscd/nscd_getserv_r.c: New file.
11812         * nscd/servicescache.c: New file.
11813         * nscd/Makefile (routines): Add nscd_getserv_r.
11814         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11815         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11816         CFLAGS-getsrvbypt_r.c.
11817         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11818         table.  Add entries for services database.
11819         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11820         services database.
11821         (dbs): Add .reset_res and servdb initialization.
11822         (serv2db): Add entries for services database.
11823         (verify_persistent_db): Accept dbnr == servdb.
11824         (invalidate_cache): Rewrite database name recognition to use a table.
11825         Call res_init() if .reset_res is set for database.
11826         (handle_request): Add code to handle services database.
11827         * nscd/gai.c: Don't define __getservbyname_r.
11828         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11829         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11830         (serv_response_header): Define.
11831         (struct datahead): Add serv_response_header member.
11832         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11833         using table.
11834         * nscd/nscd.conf: Add entries for services database.
11835         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11836         Declare serv_iov_disabled.
11837         Declare addservbyname, readdservbyname, addservbyport, and
11838         readdservbyport.
11839         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11840         (find_db): Fix error message.
11841         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11842         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11843         * nscd/selinux.c (perms): Add entries for services database.
11844         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11845         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11846
11847         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11848         * nscd/hstcache.c: Likewise.
11849         * nscd/pwdcache.c: Likewise.
11850
11851         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11852         computation of keylen.
11853
11854         * include/string.h: Only redefine strndupa if this is really for
11855         libc code.
11856
11857 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11858
11859         * nscd/nscd_gethst_r.c: Minor cleanups.
11860
11861         * nscd/connections.c (handle_request): Check selinux permissions
11862         for all non-admin commands.
11863
11864         * sysdeps/i386/i486/bits/atomic.h: Define
11865         atomic_compare_and_exchange_val_acq,
11866         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11867         using __sync_* built-ins for gcc >= 4.1.
11868         * sysdeps/x86_64/bits/atomic.h: Likewise.
11869
11870         [BZ #3840]
11871         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11872         and .oS.d files.
11873
11874 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11875
11876         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11877         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11878         (do_test): Check errno and exit(0) if ENOSYS.
11879
11880 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11881
11882         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11883         thousands separators.
11884         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11885         * stdlib/tst-strtod4.c: New test.
11886
11887         [BZ #3855]
11888         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11889         hexadecimal digit should accept just the initial 0.
11890         * stdlib/tst-strtod2.c (tests): New variable.
11891         (do_test): Run several tests rather than just one.
11892
11893 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11894
11895         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11896         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11897
11898 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11899
11900         * io/fts.c: Make sure fts_cur is always valid after return from
11901         fts_read.
11902         Patch by Miloslav Trmac <mitr@redhat.com>.
11903
11904 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11905
11906         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11907         (R_MIPS_NUM): Bump by 1.
11908
11909 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11910
11911         * posix/execvp.c: Include alloca.h.
11912         (allocate_scripts_argv): Renamed to...
11913         (scripts_argv): ... this.  Don't allocate buffer here nor count
11914         arguments.
11915         (execvp): Use alloca if possible.
11916         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11917         * posix/tst-vfork3.c: New test.
11918
11919 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11920
11921         * string/Makefile (tst-strxfrm2-ENV): Define.
11922         * stdlib/Makefile (tst-strtod3-ENV): Define.
11923
11924 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11925
11926         * posix/getconf.c: Update copyright year.
11927         * nss/getent.c: Likewise.
11928         * iconv/iconvconfig.c: Likewise.
11929         * iconv/iconv_prog.c: Likewise.
11930         * elf/ldconfig.c: Likewise.
11931         * catgets/gencat.c: Likewise.
11932         * csu/version.c: Likewise.
11933         * elf/ldd.bash.in: Likewise.
11934         * elf/sprof.c (print_version): Likewise.
11935         * locale/programs/locale.c: Likewise.
11936         * locale/programs/localedef.c: Likewise.
11937         * nscd/nscd.c (print_version): Likewise.
11938         * debug/xtrace.sh: Likewise.
11939         * malloc/memusage.sh: Likewise.
11940         * malloc/mtrace.pl: Likewise.
11941         * debug/catchsegv.sh: Likewise.
11942
11943 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11944
11945         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11946         attempts.
11947
11948 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11949
11950         * posix/wordexp.c: Remove some unnecessary tests.
11951
11952 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11953
11954         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11955         blacklist the group till after we look it up.
11956
11957 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11958
11959         * include/atomic.h (atomic_forced_read): New macro.
11960
11961 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11962
11963         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11964
11965 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11966
11967         * nss/getXXbyYY_r.c: Include atomic.h.
11968         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11969         add atomic_write_barrier () in between.
11970
11971         * stdlib/Makefile (tests): Add tst-makecontext.
11972         * stdlib/tst-makecontext.c: New test.
11973
11974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11975         (__makecontext): Don't realign uc_mcontext.uc_regs.
11976
11977 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11978
11979         * elf/dl-support.c: Include dl-procinfo.h.
11980         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11981         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11982         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11983         Define.
11984         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11985         hardcoded constants.
11986         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11987         PPC_PLATFORM_* macros for array designators.
11988
11989 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11990
11991         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11992         names to the beginning.
11993         (_dl_powerpc_platforms): Add "power6x".
11994         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11995         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11996         (_DL_PLATFORMS_COUNT): Increase.
11997         (_dl_string_platform): Handle power6x case.
11998         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11999         PPC_FEATURE_POWER6_EXT): Define.
12000         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12001
12002 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12003
12004         [BZ #3747]
12005         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12006         [-2^31 .. 2^31) range.
12007         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12008         targets.
12009         * stdlib/tst-rand48-2.c: New test.
12010         * stdlib/Makefile (tests): Add tst-rand48-2.
12011
12012 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12013
12014         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12015
12016 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12017
12018         * misc/tst-pselect.c (do_test): Make sure the helper process is
12019         terminating when the test is aborted.
12020
12021 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12022
12023         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12024         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12025         Handle relatime mount option.
12026
12027         [BZ #2337]
12028         * libio/Makefile (tests): Add tst-setvbuf1.
12029         * libio/tst-setvbuf1.c: New file.
12030
12031 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12032
12033         [BZ #2337]
12034         * libio/genops.c (__uflow): Fix a typo.
12035         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12036         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12037         the narrow buffer size.
12038
12039 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12040
12041         [BZ #2337]
12042         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12043         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12044         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12045         in _flags.
12046         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12047         _IO_wstr_finish): Likewise.
12048         * libio/wmemstream.c (open_wmemstream): Likewise.
12049         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12050         even for wide streams.
12051
12052 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12053
12054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12055         kernel-features.h.
12056
12057 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12058
12059         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12060         separators also if no non-zero digits found.
12061         * stdlib/Makefile (tests): Add tst-strtod3.
12062
12063 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12064
12065         [BZ #3632]
12066         * include/features.h: Fix comment about default value for
12067         _POSIX_C_SOURCE.
12068
12069         [BZ #3664]
12070         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12071         empty parsed strings.
12072         * stdlib/Makefile (tests): Add tst-strtod2.
12073         * stdlib/tst-strtod2.c: New file.
12074
12075         [BZ #3673]
12076         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12077         computation.
12078         * stdlib/Makefile (tests): Add tst-atof2.
12079         * stdlib/tst-atof2.c: New file.
12080
12081         [BZ #3674]
12082         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12083         correctly if removing trailing zero of hex-float.
12084         * stdlib/Makefile (tests): Add tst-atof1.
12085         * stdlib/tst-atof1.c: New file.
12086
12087 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12088
12089         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12090         Start searching for next comma at p rather than rest.
12091         * misc/Makefile (tests): Add tst-mntent2.
12092         * misc/tst-mntent2.c: New test.
12093
12094         * misc/getusershell.c (initshells): Check for integer overflows.
12095         Make strings buffer one bigger as fgets always succeeds when second
12096         argument is 1.  Don't use calloc for shells array.  Disallow
12097         / as shell.
12098
12099 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12100
12101         * malloc/memusage.c: Handle realloc with new size of zero and
12102         non-NULL pointer correctly.
12103         (me): Really write first record twice.
12104         (struct entry): Make format bi-arch safe.
12105         (dest): Write out more realloc statistics.
12106         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12107
12108 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12109
12110         * nis/nis_subr.c (nis_getnames): Revert last change.
12111
12112 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12113
12114         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12115         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12116         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12117         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12118         ENOTTY.
12119         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12120         * io/tst-ttyname_r.c: New test.
12121
12122 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12123
12124         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12125
12126 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12127
12128         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12129         jump table entries.
12130
12131 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12132
12133         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12134         `clone' function to ensure proper unwinding stop of gdb.
12135         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12136
12137 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12138
12139         * nscd/nscd.init: Remove obsolete and commented-out -S option
12140         handling.
12141
12142 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12143
12144         [BZ #3514]
12145         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12146
12147         [BZ #3515]
12148         * manual/string.texi (strtok): Remove duplicate paragraph.
12149
12150 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12151
12152         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12153         libgcc not supporting `rflags' unwinding (register # >= 17).
12154
12155 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12156
12157         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12158         succeeded.
12159
12160 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12161             Jakub Jelinek  <jakub@redhat.com>
12162             Jan Kratochvil  <jan.kratochvil@redhat.com>
12163
12164         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12165         unwind information.
12166         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12167         'restore_rt' even in the 'signal' directory.
12168         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12169
12170 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12171
12172         [BZ #3559]
12173         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12174         malloc crashed.  Don't allocate memory unnecessarily in each
12175         loop.
12176
12177 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12178
12179         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12180
12181 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12182
12183         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12184
12185 2006-11-18  Bruno Haible  <bruno@clisp.org>
12186
12187         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12188         __sysconf only after having tried to call getgroups32.
12189
12190 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12191
12192         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12193         addresses for IPv4 queries if they can be mapped.
12194
12195 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12196
12197         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12198         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12199         (signmask): Add .size directive.
12200         (othermask): Add .type directive.
12201
12202 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12203
12204         * po/nl.po: Update from translation team.
12205
12206         * timezone/zdump.c: Redo fix for BZ #3137.
12207
12208 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12209
12210         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12211         to first_unused after parsing :include: file.
12212
12213 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12214
12215         * timezone/africa: Update from tzdata2006o.
12216         * timezone/antarctica: Likewise.
12217         * timezone/asia: Likewise.
12218         * timezone/australasia: Likewise.
12219         * timezone/backward: Likewise.
12220         * timezone/europe: Likewise.
12221         * timezone/iso3166.tab: Likewise.
12222         * timezone/northamerica: Likewise.
12223         * timezone/southamerica: Likewise.
12224         * timezone/zone.tab: Likewise.
12225
12226         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12227         on machines with 64-bit time_t.
12228
12229         * timezone/checktab.awk: Update from tzcode2006o.
12230         * timezone/ialloc.c: Likewise.
12231         * timezone/private.h: Likewise.
12232         * timezone/scheck.c: Likewise.
12233         * timezone/tzfile.h: Likewise.
12234         * timezone/tzselect.ksh: Likewise.
12235         * timezone/zdump.c: Likewise.
12236         * timezone/zic.c: Likewise.
12237
12238         [BZ #3483]
12239         * elf/ldconfig.c (main): Call setlocale and textdomain.
12240         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12241
12242         [BZ #3480]
12243         * manual/argp.texi: Fix typos.
12244         * manual/charset.texi: Likewise.
12245         * manual/errno.texi: Likewise.
12246         * manual/filesys.texi: Likewise.
12247         * manual/lang.texi: Likewise.
12248         * manual/maint.texi: Likewise.
12249         * manual/memory.texi: Likewise.
12250         * manual/message.texi: Likewise.
12251         * manual/resource.texi: Likewise.
12252         * manual/search.texi: Likewise.
12253         * manual/signal.texi: Likewise.
12254         * manual/startup.texi: Likewise.
12255         * manual/stdio.texi: Likewise.
12256         * manual/sysinfo.texi: Likewise.
12257         * manual/syslog.texi: Likewise.
12258         * manual/time.texi: Likewise.
12259         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12260
12261         [BZ #3465]
12262         * sunrpc/clnt_raw.c: Minimal message improvements.
12263         * sunrpc/pm_getmaps.c: Likewise.
12264         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12265         * nis/nis_print_group_entry.c: Likewise.
12266         * locale/programs/repertoire.c: Likewise.
12267         * locale/programs/charmap.c: Likewise.
12268         * malloc/memusage.sh: Likewise.
12269         * elf/dl-deps.c: Likewise.
12270         * locale/programs/ld-collate.c: Likewise.
12271         * libio/vswprintf.c: Likewise.
12272         * malloc/memusagestat.c: Likewise.
12273         * sunrpc/auth_unix.c: Likewise.
12274         * sunrpc/rpc_main.c: Likewise.
12275         * nscd/cache.c: Likewise.
12276         * locale/programs/repertoire.c: Unify output messages.
12277         * locale/programs/charmap.c: Likewise.
12278         * locale/programs/ld-ctype.c: Likewise.
12279         * locale/programs/ld-monetary.c: Likewise.
12280         * locale/programs/ld-numeric.c: Likewise.
12281         * locale/programs/ld-time.c: Likewise.
12282         * elf/ldconfig.c: Likewise.
12283         * nscd/selinux.c: Likewise.
12284         * elf/cache.c: Likewise.
12285         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12286
12287         [BZ #3451]
12288         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12289         change atomic.
12290         (ceil): Likewise.
12291
12292 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12293
12294         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12295         if N is one bigger than return value.
12296         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12297         and l1 last arguments, if buf is defined, verify the return value
12298         equals to strlen (buf) and verify no byte beyond passed length
12299         is modified.
12300
12301 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12302
12303         * po/sv.po: Update from translation team.
12304
12305 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12306
12307         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12308         noinline attribute.
12309
12310 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12311
12312         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12313         noinline attribute.
12314
12315         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12316         Use __new_sys_siglist instead of _sys_siglist_internal as
12317         second macro argument.
12318         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12319         strong_alias.
12320
12321 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12322
12323         [BZ #3493]
12324         * posix/unistd.h (sysconf): Remove const attribute.
12325
12326         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12327         temporary or deprecated addresses.
12328         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12329
12330         * string/Makefile (tests): Add tst-strxfrm2.
12331         * string/tst-strxfrm2.c: New file.
12332
12333 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12334
12335         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12336         rather than r->r_brk.
12337
12338 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12339
12340         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12341         optimization even if needed > n.
12342
12343         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12344         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12345         return false, otherwise return true.
12346         (cache_rpath): Return decompose_rpath return value.
12347
12348 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12349
12350         * include/libc-symbols.h (declare_symbol): Rename to...
12351         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12352         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12353         .size directive.
12354         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12355         changes.
12356         * sysdeps/gnu/siglist.c: Likewise.
12357
12358 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12359
12360         * sysdeps/powerpc/fpu/bits/mathinline.h
12361         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12362         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12363
12364 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12365
12366         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12367         Update handling of cache descriptor 0x49 for new models.
12368         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12369         Likewise.
12370
12371 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12372
12373         * malloc/memusage.c (dest): Reset not_me back to false after
12374         printing statistics.
12375
12376 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12377
12378         * configure.in: Work around ld --help change and avoid -z relro
12379         test completely if the architecture doesn't care about security.
12380
12381 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12382
12383         * po/sv.po: Update from translation team.
12384
12385 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12386
12387         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12388         generate compatibility version.
12389
12390 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12391
12392         * configure.in: Relax -z relro requirement a bit.
12393
12394         * po/sv.po: Update from translation team.
12395
12396 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12397
12398         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12399         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12400         * elf/dl-close.c (_dl_close_worker): Likewise.
12401         * elf/dl-open.c (_dl_open_worker): Likewise.
12402         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12403
12404 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12405
12406         * configure.in: Require assembler support for visibility, compiler
12407         support for visibility and aliases, linker support for various -z
12408         options.
12409         * Makeconfig: Remove conditional code which now is unnecessary.
12410         * config.h.in: Likewise.
12411         * config.make.in: Likewise.
12412         * dlfcn/Makefile: Likewise.
12413         * elf/Makefile: Likewise.
12414         * elf/dl-load.c: Likewise.
12415         * elf/rtld.c: Likewise.
12416         * include/libc-symbols.h: Likewise.
12417         * include/stdio.h: Likewise.
12418         * io/Makefile: Likewise.
12419         * io/fstat.c: Likewise.
12420         * io/fstat64.c: Likewise.
12421         * io/fstatat.c: Likewise.
12422         * io/fstatat64.c: Likewise.
12423         * io/lstat.c: Likewise.
12424         * io/lstat64.c: Likewise.
12425         * io/mknod.c: Likewise.
12426         * io/mknodat.c: Likewise.
12427         * io/stat.c: Likewise.
12428         * io/stat64.c: Likewise.
12429         * libio/stdio.c: Likewise.
12430         * nscd/Makefile: Likewise.
12431         * stdlib/Makefile: Likewise.
12432         * stdlib/atexit.c: Likewise.
12433         * sysdeps/generic/ldsodefs.h: Likewise.
12434         * sysdeps/i386/dl-machine.h: Likewise.
12435         * sysdeps/i386/sysdep.h: Likewise.
12436         * sysdeps/i386/i686/memcmp.S: Likewise.
12437         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12438         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12439         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12440
12441         * Makerules: USE_TLS support is now default.
12442         * tls.make.c: Likewise.
12443         * csu/Versions: Likewise.
12444         * csu/libc-start.c: Likewise.
12445         * csu/libc-tls.c: Likewise.
12446         * csu/version.c: Likewise.
12447         * dlfcn/dlinfo.c: Likewise.
12448         * elf/dl-addr.c: Likewise.
12449         * elf/dl-cache.c: Likewise.
12450         * elf/dl-close.c: Likewise.
12451         * elf/dl-iteratephdr.c: Likewise.
12452         * elf/dl-load.c: Likewise.
12453         * elf/dl-lookup.c: Likewise.
12454         * elf/dl-object.c: Likewise.
12455         * elf/dl-open.c: Likewise.
12456         * elf/dl-reloc.c: Likewise.
12457         * elf/dl-support.c: Likewise.
12458         * elf/dl-sym.c: Likewise.
12459         * elf/dl-sysdep.c: Likewise.
12460         * elf/dl-tls.c: Likewise.
12461         * elf/ldconfig.c: Likewise.
12462         * elf/rtld.c: Likewise.
12463         * elf/tst-tls-dlinfo.c: Likewise.
12464         * elf/tst-tls1.c: Likewise.
12465         * elf/tst-tls10.h: Likewise.
12466         * elf/tst-tls14.c: Likewise.
12467         * elf/tst-tls2.c: Likewise.
12468         * elf/tst-tls3.c: Likewise.
12469         * elf/tst-tls4.c: Likewise.
12470         * elf/tst-tls5.c: Likewise.
12471         * elf/tst-tls6.c: Likewise.
12472         * elf/tst-tls7.c: Likewise.
12473         * elf/tst-tls8.c: Likewise.
12474         * elf/tst-tls9.c: Likewise.
12475         * elf/tst-tlsmod1.c: Likewise.
12476         * elf/tst-tlsmod13.c: Likewise.
12477         * elf/tst-tlsmod13a.c: Likewise.
12478         * elf/tst-tlsmod14a.c: Likewise.
12479         * elf/tst-tlsmod2.c: Likewise.
12480         * elf/tst-tlsmod3.c: Likewise.
12481         * elf/tst-tlsmod4.c: Likewise.
12482         * elf/tst-tlsmod5.c: Likewise.
12483         * elf/tst-tlsmod6.c: Likewise.
12484         * include/errno.h: Likewise.
12485         * include/link.h: Likewise.
12486         * include/tls.h: Likewise.
12487         * locale/global-locale.c: Likewise.
12488         * locale/localeinfo.h: Likewise.
12489         * malloc/arena.c: Likewise.
12490         * malloc/hooks.c: Likewise.
12491         * malloc/malloc.c: Likewise.
12492         * resolv/Versions: Likewise.
12493         * sysdeps/alpha/dl-machine.h: Likewise.
12494         * sysdeps/alpha/libc-tls.c: Likewise.
12495         * sysdeps/generic/ldsodefs.h: Likewise.
12496         * sysdeps/generic/tls.h: Likewise.
12497         * sysdeps/i386/dl-machine.h: Likewise.
12498         * sysdeps/ia64/dl-machine.h: Likewise.
12499         * sysdeps/ia64/libc-tls.c: Likewise.
12500         * sysdeps/mach/hurd/fork.c: Likewise.
12501         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12502         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12503         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12504         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12505         * sysdeps/s390/libc-tls.c: Likewise.
12506         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12507         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12508         * sysdeps/sh/dl-machine.h: Likewise.
12509         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12510         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12511         * sysdeps/x86_64/dl-machine.h: Likewise.
12512
12513         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12514         split out locking and parameter checking.
12515         (_dl_close): Call _dl_close_worker after locking and checking.
12516         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12517         _dl_close.
12518         * elf/Makefile: Add rules to build and run tst-thrlock.
12519         * elf/tst-thrlock.c:  New file.
12520
12521         [BZ #3426]
12522         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12523         reality.
12524
12525         [BZ #3429]
12526         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12527         we are sure we do not need it anymore for _dl_close.  Also move
12528         the asserts inside the lock region.
12529         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12530
12531 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12532
12533         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12534         argument.
12535         (_dl_lookup_symbol_x): Adjust caller.
12536
12537         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12538         _ns_global_scope.
12539         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12540
12541         * elf/dl-libc.c: Revert l_scope name changes.
12542         * elf/dl-load.c: Likewise.
12543         * elf/dl-object.c: Likewise.
12544         * elf/rtld.c: Likewise.
12545         * elf/dl-close.c (_dl_close): Likewise.
12546         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12547         always use __rtld_mrlock_{change,done}.  Always free old scope list
12548         here if not l_scope_mem.
12549         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12550         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12551         the lookup and __rtld_mrlock_unlock it after the lookup.
12552         * elf/dl-sym.c: Likewise.
12553         * include/link.h (struct r_scoperec): Remove.
12554         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12555         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12556
12557 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12558
12559         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12560
12561 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12562
12563         * configure.in: Disable building profile libraries by default.
12564
12565 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12566
12567         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12568         as signed longs, check for x_base + pos overflow.
12569         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12570         * sunrpc/tst-xdrmem2.c: New test.
12571
12572 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12573
12574         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12575         _dl_lookup_symbol_x code.
12576
12577 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12578
12579         * elf/dl-runtime.c: Include sysdep-cancel.h.
12580         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12581         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12582         instead of catomic_* macros.
12583         * elf/dl-sym.c: Include sysdep-cancel.h.
12584         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12585         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12586         * elf/dl-close.c: Include sysdep-cancel.h.
12587         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12588         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12589         * elf/dl-open.c: Include sysdep-cancel.h.
12590         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12591         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12592
12593 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12594
12595         [BZ #3313]
12596         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12597         fastbin rather than end of fastbin array.
12598
12599 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12600
12601         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12602         body macro.
12603         * sysdeps/x86_64/bits/atomic.h
12604         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12605         (catomic_decrement): Use correct body macro.
12606
12607 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12608
12609         * include/atomic.h: Add a unique prefix to all local variables
12610         in macros.
12611         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12612
12613 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12614
12615         [BZ #3369]
12616         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12617         and 7.
12618
12619 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12620
12621         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12622
12623 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12624
12625         [BZ #3313]
12626         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12627         determine highest fast bin to consolidate, always look into all of
12628         them.
12629         (do_check_malloc_state): Only require for empty bins for large
12630         sizes in main arena.
12631
12632         * libio/stdio.h: Add more __wur attributes.
12633
12634         * elf/dl-minimal.c (realloc): Optimize last patch.
12635
12636 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12637
12638         [BZ #3352]
12639         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12640         and use memcpy() if it does.
12641
12642 2006-11-12  Andreas Jaeger  <aj@suse.de>
12643
12644         [BZ #2510]
12645         * manual/search.texi (Hash Search Function): Clarify.
12646         (Array Search Function): Clarify.
12647
12648 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12649
12650         [BZ #2830]
12651         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12652         shifting.
12653         * math/atest-exp2.c (read_mpn_hex): Likewise.
12654         * math/atest-sincos.c (main): Likewise.
12655
12656 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12657
12658         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12659         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12660         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12661         version GLIBC_2.6.
12662         * Versions.def: Add GLIBC_2.6 for libc.
12663
12664         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12665
12666         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12667
12668 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12669
12670         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12671
12672         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12673
12674         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12675         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12676
12677 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12678
12679         * include/atomic.c: Define catomic_* operations.
12680         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12681         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12682         * malloc/memusage.c: Likewise.
12683         * gmon/mcount.c: Likewise.
12684         * elf/dl-close.c: Likewise.
12685         * elf/dl-open.c: Likewise.
12686         * elf/dl-profile.c: Likewise.
12687         * elf/dl-sym.c: Likewise.
12688         * elf/dl-runtime.c: Likewise.
12689         * elf/dl-fptr.c: Likewise.
12690         * resolv/res_libc.c: Likewise.
12691
12692 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12693
12694         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12695         components which lack them.
12696
12697         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12698         at least one entry consisting of the parameter concatenated with
12699         the domain.
12700
12701 2006-10-10  Roland McGrath  <roland@frob.com>
12702
12703         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12704         * sysdeps/mach/hurd/futimes.c: Likewise.
12705         * sysdeps/mach/hurd/lutimes.c: Likewise.
12706
12707 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12708             Jakub Jelinek  <jakub@redhat.com>
12709
12710         Implement reference counting of scope records.
12711         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12712         from the list in objects which remain.  Always allocate new scope
12713         record.
12714         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12715         don't resize, allocate a new one.
12716         * elf/dl-runtime.c: Update reference counters before using a scope
12717         array.
12718         * elf/dl-sym.c: Likewise.
12719         * elf/dl-libc.c: Adjust for l_scope name change.
12720         * elf/dl-load.c: Likewise.
12721         * elf/dl-object.c: Likewise.
12722         * elf/rtld.c: Likewise.
12723         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12724         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12725         Add l_scoperec_lock.
12726         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12727         * sysdeps/generic/rtld-lowlevel.h: New file.
12728
12729         * include/atomic.h: Rename atomic_and to atomic_and_val and
12730         atomic_or to atomic_or_val.  Define new macros atomic_and and
12731         atomic_or which do not return values.
12732         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12733         Various cleanups.
12734         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12735
12736         * po/sv.po: Update from translation team.
12737
12738 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12739
12740         * Versions.def: Add GLIBC_2.6 to libpthread.
12741
12742         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12743         (versioned_symbol): Likewise.
12744         (compat_symbol): Likewise.
12745
12746         * po/tr.po: Update from translation team.
12747
12748 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12749
12750         * nis/Banner: Removed.  It's been integral part forever and the
12751         author info is incomplete anyway.
12752         * libio/Banner: Likewise.
12753
12754         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12755         code, make sure the nis_freeresult call doesn't crash and that the
12756         result is reported correctly.
12757
12758 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12759
12760         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12761         when callback is NULL.
12762
12763         * nis/Versions (libnss_nisplus): Add
12764         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12765         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12766         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12767         _nss_create_tablename): Rename to...
12768         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12769         ... these.  No longer static.
12770         (internal_setgrent): Adjust users.
12771         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12772         Don't use locking around _nss_grp_create_tablename call.
12773         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12774
12775 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12776
12777         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12778
12779 2006-10-06  Andreas Jaeger  <aj@suse.de>
12780
12781         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12782
12783 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12784
12785         * po/pl.po: Update from translation team.
12786
12787         * nscd/nscd.c (main): Fix typo in message.
12788         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12789
12790 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12791
12792         [BZ #3291]
12793         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12794         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12795         (__sigprocmask): Define.
12796
12797 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12798
12799         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12800         used.
12801
12802 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12803
12804         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12805         in oldtotal and newtotal calculation.
12806         * nscd/nscd-client.h (struct mapped_database): Add datasize
12807         field.
12808         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12809         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12810         increased.
12811         (__nscd_cache_search): Add checks to make sure we never reference
12812         data beyond the current mapping.
12813
12814 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12815
12816         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12817         variables const to avoid compiler warnings.
12818
12819         * io/fts.c (fts_close): Remove redundant checks.
12820         (fts_build): Likewise.
12821         (fts_palloc): Likewise.
12822
12823         * manual/message.texi (Advanced gettext functions,
12824         Using gettextized software): Fix typos.
12825
12826 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12827
12828         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12829         explain why there are no leaks.
12830
12831 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12832
12833         * libio/wmemstream.c: Include <wchar.h>.
12834         * libio/bug-wmemstream1.c: Likewise.
12835         * libio/tst-wmemstream1.c: Likewise.
12836         * libio/tst-wmemstream2.c: Likewise.
12837
12838         * version.h (RELEASE): Bump to 2.5.
12839         * README: Regenerated.
12840
12841         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12842
12843         [BZ #3273]
12844         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12845         found no group members.
12846         Patch by Petr Baudis.
12847
12848 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12849
12850         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12851         assert bootstrap_map.l_tls_modid is zero.
12852         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12853         if USE___THREAD.
12854
12855 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12856
12857         * libio/stdio.h: Move open_wmemstream prototype to ...
12858         * wcsmbs/wchar.h: ... here.
12859
12860 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12861
12862         [BZ #3252]
12863         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12864         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12865         __{,l}chown to handle the rest.
12866         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12867         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12868         __{,l}chown to handle the rest.
12869         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12870         i386/fchownat.c.
12871         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12872         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12873
12874         [BZ #3253]
12875         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12876         time, rather allocate increasingly bigger arrays of pointers, if
12877         possible with alloca, if too large with malloc.
12878
12879 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12880
12881         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12882
12883         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12884
12885 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12886
12887         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12888         home addresses.
12889         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12890         IFA_F_HOMEADDRESS flag for interfaces.
12891         * include/ifaddrs.h (struct in6addrinfo): Define
12892         in6ai_homeaddress.
12893
12894 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12895
12896         [BZ #3225]
12897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12898         PTR_DEMANGLE3): Define.
12899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12900         PTR_DEMANGLE3): Likewise.
12901         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12902         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12903         Likewise.
12904         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12905
12906 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12907
12908         * po/libc.pot: Regenerated.
12909         * po/be.po: Updated.
12910         * po/ca.po: Likewise.
12911         * po/cs.po: Likewise.
12912         * po/da.po: Likewise.
12913         * po/de.po: Likewise.
12914         * po/el.po: Likewise.
12915         * po/en_GB.po: Likewise.
12916         * po/es.po: Likewise.
12917         * po/fi.po: Likewise.
12918         * po/fr.po: Likewise.
12919         * po/gl.po: Likewise.
12920         * po/hr.po: Likewise.
12921         * po/hu.po: Likewise.
12922         * po/ja.po: Likewise.
12923         * po/ko.po: Likewise.
12924         * po/nb.po: Likewise.
12925         * po/nl.po: Likewise.
12926         * po/pl.po: Likewise.
12927         * po/pt_BR.po: Likewise.
12928         * po/ru.po: Likewise.
12929         * po/rw.po: Likewise.
12930         * po/sk.po: Likewise.
12931         * po/sv.po: Likewise.
12932         * po/tr.po: Likewise.
12933         * po/zh_CN.po: Likewise.
12934         * po/zh_TW.po: Likewise.
12935
12936         [BZ #3137]
12937         * iconv/iconv_prog.c (main): Fix spelling in error message.
12938         * iconv/iconvconfig.c (main): Likewise.
12939         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12940         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12941         * locale/programs/localedef.c (main): Likewise.
12942         * locale/programs/repertoire.c (repertoire_read): Likewise.
12943         * timezone/zdump.c (main): Likewise.
12944         * nscd/connections.c (handle_request): Fix spelling in log message.
12945         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12946
12947 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12948
12949         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12950         interfaces.
12951
12952 2006-09-20  Andreas Jaeger  <aj@suse.de>
12953
12954         * math/libm-test.inc (lrint_test_upward): Fix typo.
12955
12956 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12957
12958         [BZ #2592]
12959         * math/libm-test.inc (lrint_test_tonearest): New function.
12960         (lrint_test_towardzero): New function.
12961         (lrint_test_downward): New function.
12962         (lrint_test_upward): New function.
12963         (main): Run these new tests.
12964         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12965         of values near to 0.
12966         (two52): Use double not long double.
12967         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12968         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12969         (two23): Use float not double.
12970         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12971         (two23): Use float not double.
12972         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12973         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12974         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12975         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12976
12977 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12978
12979         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12980         Cast sp to unsigned long to avoid compiler warning.
12981         Use __makecontext_ret function instead of a trampoline on the stack.
12982         (__makecontext_ret): New function.
12983         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12984
12985 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12986
12987         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12988         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12989         bits.
12990
12991 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12992
12993         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12994         sure no reference to the unloaded map's search list remains in the
12995         dependency's scope.
12996
12997 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12998
12999         * elf/Makefile: Add rules to build and run unload7 test.
13000         * elf/unload7.c: New test.
13001         * elf/unload7mod1.c: New file.
13002         * elf/unload7mod2.c: New file.
13003
13004 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13005
13006         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13007         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13008         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13009         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13010         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13011         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13012         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13013         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13014         PTRACE_GETEVENTMSG): Likewise.
13015         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13016         values.
13017
13018 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13019
13020         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13021         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13022         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13023         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13024
13025 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13026
13027         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13028         write '\0' to the fd.
13029         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13030         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13031         Change regs to unsigned long pointer from unsigned int, fix fscr
13032         offset.
13033
13034 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13035
13036         * io/Makefile (CFLAGS-fstatat.c): Set.
13037         (CFLAGS-fstatat64.c): Likewise.
13038         (CFLAGS-mknodat.c): Likewise.
13039
13040         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13041         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13043         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13044
13045 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13046             Steven Munroe  <sjmunroe@us.ibm.com>
13047
13048         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13049         names to the beginning.  Rename "cell" to "cellbe".
13050         (_dl_powerpc_platforms): New.
13051         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13052         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13053         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13054         (_DL_HWCAP_PLATFORM): Define to new mask.
13055         (_dl_platform_string, _dl_string_platform): New functions.
13056         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13057         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13058
13059 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13060
13061         [BZ #2526]
13062         * README.libm: Fix a thinko in sqrt algorithm description.
13063
13064         [BZ #3143]
13065         * manual/string.texi (argz_delete): Fix prototype.
13066         Patch by <alpt@freaknet.org>.
13067
13068 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13069
13070         [BZ #3138]
13071         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13072         * io/tst-fcntl.c (do_prepare): Likewise.
13073         * posix/tst-exec.c (do_prepare): Likewise.
13074         * posix/tst-preadwrite.c (do_prepare): Likewise.
13075         * posix/tst-spawn.c (do_prepare): Likewise.
13076         * posix/tst-truncate.c (do_prepare): Likewise.
13077         * rt/tst-aio.c (do_prepare): Likewise.
13078         * rt/tst-aio64.c (do_prepare): Likewise.
13079         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13080         size_t.
13081
13082 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13083
13084         [BZ #2821]
13085         * time/mktime.c (guess_time_tm): Fix overflow detection.
13086         * time/Makefile (tests): Add bug-mktime1.
13087         * time/bug-mktime1.c: New file.
13088
13089         [BZ #3189, #3188]
13090         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13091         (mremap): Likewise.
13092
13093 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13094
13095         [BZ #1006]
13096         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13097         Ensure relocation doesn't clobber any bits outside of the
13098         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13099         R_SPARC_HI22 and R_SPARC_H44.
13100
13101         [BZ #2775]
13102         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13103         (long) (MINSIZE + nb - old_size) is positive.
13104
13105         * malloc/arena.c (grow_heap): When growing bail even if new_size
13106         is negative.
13107
13108         [BZ #3155]
13109         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13110         stack below r1.
13111
13112 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13113
13114         * posix/regex_internal.c (re_string_reconstruct): Handle
13115         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13116         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13117         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13118         re_string_context_at.
13119         * posix/Makefile: Add rules to build and run bug-regex26 test.
13120         * posix/bug-regex26.c: New test.
13121
13122         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13123         rather than col_sym_free.  Move seqp declaration earlier.
13124
13125         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13126
13127 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13128
13129         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13130         decl before first goto out.
13131
13132 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13133
13134         * Makerules (shlib.lds): If have-hash-style, put .hash section
13135         at the end of the RO segment.
13136
13137 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13138
13139         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13140         style hash table format is used.
13141
13142 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13143
13144         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13145         randomization rather than before.
13146         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13147
13148 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13149
13150         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13151
13152         * malloc/malloc.c (_int_malloc): Use full list insert and not
13153         shortcut which assumes the list is empty for large requests
13154         too.
13155
13156         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13157
13158 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13159
13160         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13161         and offout arguments to the prototype.
13162         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13163         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13164         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13165         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13166         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13167         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13168         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13169         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13170
13171 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13172
13173         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13174
13175         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13176         dlopen parameters.
13177
13178 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13179
13180         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13181         only if herrno is NETDB_INTERNAL.  Handle errors other than
13182         ERANGE outside of the loops, handle TRY_AGAIN.
13183
13184         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13185         if other's ctype category was missing.
13186         * locale/programs/ld-collate.c (collate_read): Return if
13187         copy_locale's collate category is missing.
13188
13189 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13190
13191         [BZ #2684]
13192         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13193         arenas if allocation failed.
13194         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13195
13196 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13197
13198         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13199         waste bins[0..1].
13200         (malloc_state): Reduce bins size by 2.
13201         (_int_malloc): Fix test for large enough buffer for early termination.
13202         When no unsorted block matches perfectly and an exiting block has
13203         to be split, use full list insert and not shortcut which assumes
13204         the list is empty.
13205
13206         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13207         failure.
13208
13209 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13210
13211         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13212         do anything.
13213
13214         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13215         symbol require exact match (these are PLTs).
13216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13217         (_dl_ppc64_addr_sym_match): Likewise.
13218
13219         [BZ #2683]
13220         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13221         If symbol has a value use it.
13222         * elf/tst-dladdr1.c: New file.
13223         * elf/Makefile: Add rules to build and run tst-addr1.
13224
13225 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13226
13227         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13228         keeps failing and heap growth or new heap creation isn't
13229         successful either.
13230         * malloc/tst-malloc.c (main): Add new tests.
13231
13232 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13233
13234         [BZ #2734]
13235         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13236         as in the x86-64 code to use bswap.
13237
13238 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13239
13240         [BZ #2680]
13241         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13242         __USE_UNIX98.
13243         * posix/bits/unistd.h: Likewise.
13244
13245 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13246
13247         [BZ #2751]
13248         * string/strchr.c: Add cast to avoid warning.
13249
13250 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13251
13252         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13253         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13254         limit is needed to avoid the exploding of the address space
13255         requirement for secondary heaps.
13256         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13257         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13258
13259 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13260
13261         [BZ #3018]
13262         * Makerules (depfiles): Handle extra-test-objs the same as
13263         extra-objs.
13264         (common-mostlyclean): Likewise.
13265         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13266         instead.
13267         * elf/Makefile (extra-objs): Likewise.
13268         * stdlib/Makefile (extra-objs): Likewise.
13269
13270 2006-08-14  Eric Blake  <ebb9@byu.net>
13271
13272         [BZ #3044]
13273         * misc/error.h: Assume C89 or better.
13274         * misc/error.c: Likewise.
13275
13276 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13277
13278         [BZ #3040]
13279         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13280         __ASSUME_ATFCTS is defined.
13281
13282 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13283
13284         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13285         to sort in each call.
13286
13287         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13288         is empty simply return and use next service.
13289         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13290
13291         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13292         tells us when not finding a charmap file is an error.
13293         * locale/programs/charmap.h: Adjust charmap_read prototype.
13294         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13295         cannot find a charmap.
13296         * locale/programs/localedef.c (main): Adjust charmap_read call.
13297
13298 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13299
13300         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13301         sysdeps/posix/pause.c implementation instead.
13302
13303 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13304
13305         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13306         to EPERM.
13307
13308 2006-08-13  Andreas Schwab  <schwab@suse.de>
13309
13310         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13311         Don't clobber caller's LRSAVE.
13312         (_dl_prof_resolve): Likewise.
13313
13314 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13315
13316         [BZ #1996]
13317         * libio/memstream.c (open_memstream): Allocate initial buffer with
13318         calloc.
13319         * libio/wmemstream.c (open_wmemstream): Likewise.
13320         * libio/strops.c: Pretty printing.
13321         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13322         (enlarge_userbuf): New function.
13323         (_IO_str_seekoff): Call it if seek position is larger than current
13324         buffer.
13325         * libio/wstrops.c: Likewise.
13326         * libio/vasprintf.c: Add comment as to why we do not have to use
13327         calloc instead of malloc to allocate initial buffer.
13328         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13329         * libio/bug-memstream1.c: New file.
13330         * libio/bug-wmemstream1.c: New file.
13331
13332 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13333
13334         * libio/wstrops.c: Remove dead macro definitions and comments.
13335         * libio/strops.c: Likewise.
13336
13337         [BZ #2764]
13338         * login/utmpname.c (__utmpname): Remove unnecessary test.
13339
13340 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13341
13342         [BZ #2832]
13343         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13344         0s from integers.
13345
13346 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13347
13348         [BZ #2987]
13349         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13350         for CPU clocks.
13351         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13352         setting of CPU clocks.
13353
13354 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13355
13356         [BZ #2841]
13357         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13358         since C99 requires the result to promote to 'int' when uint_least8_t
13359         and uint_least16_t promote to 'int'.
13360
13361 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13362
13363         [BZ #3013]
13364         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13365         lenght of one output field, correct bitmask creation.
13366         * locale/programs/ld-time.c: Add alignment.
13367
13368         [BZ #2997]
13369         * misc/error.c: Add space between program name and message if file
13370         name is missing.
13371
13372 2006-08-03  Eric Blake  <ebb9@byu.net>
13373
13374         [BZ #2998]
13375         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13376
13377 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13378
13379         * malloc/memusagestat.c: Silence warnings.
13380
13381         * malloc/malloc.c: Dynamically size mmap treshold if the program
13382         frees mmaped blocks.
13383         Patch by Valerie Henson and Arjan van de Ven.
13384
13385 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13386
13387         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13388         __USE_GNU.
13389
13390         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13391         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13392         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13393         Only provide var definitions in strtol_l (or for *ull*
13394         in strtoll_l).
13395
13396         * stdio-common/bug16.c (tests): New array.
13397         (do_tests): Allow the first hexadecimal digit
13398         to be 1, 2, 4 or 8.  Do 3 additional tests.
13399
13400         * sysdeps/s390/fpu/libm-test-ulps: Update.
13401
13402         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13403         fchownat syscall if available.
13404         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13405         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13406         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13407
13408 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13409
13410         * nis/nis_xdr.c: Avoid some function calls.
13411
13412 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13413             Ulrich Drepper  <drepper@redhat.com>
13414
13415         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13416         short cut if only one name component is stripped away.
13417
13418 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13419
13420         * nis/nis_call.c: Minor cleanups throughout.
13421         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13422         (first_shoot): Add search_parent_first parameter.  Only if it is set
13423         search parent server first.
13424         If directory for table found through cold start cache is not the same
13425         as referenced in the cache, don't use it.
13426         (__nisfind_server): Take additional parameter.  Pass it on to
13427         first_shoot.
13428         (__prepare_niscall): Adjust __nisfind_server call.
13429         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13430         * nis/nis_table.c: Adjust __nisfind_server call.
13431         * nis/nis_lookup.c: Likewise.
13432         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13433
13434 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13435
13436         [BZ #2182]
13437         * math/s_cacosh.c: Return values from positive branch.
13438         * math/s_cacoshf.c: Likewise.
13439         * math/s_cacoshl.c: Likewise.
13440
13441         [BZ #2883]
13442         * sysvipc/sys/msg.h: Change return value to ssize_t.
13443         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13444         * sysvipc/msgrcv.c: Likewise.
13445         * include/sys/msg.h: Likewise.
13446
13447         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13448         test introduced in patch for bz #661.
13449         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13450         element for NEWGROUPS.
13451
13452         [BZ #2908]
13453         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13454         'f', use '1' as leading digit not '\1'.
13455         * stdio-common/Makefile (tests): Add bug16.
13456         * stdio-common/bug16.c: New file.
13457
13458         [BZ #2914]
13459         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13460         and don't try to open it.  The patch introducing the macro
13461         contained a bug and used the same file name as the new file
13462         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13463         this out completely.
13464
13465         [BZ #2926]
13466         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13467         Patch by Jerry James <Jerry.James@usu.edu>.
13468
13469         * rt/Makefile (tests): Add tst-clock2.
13470         * rt/tst-clock2.c: New file.
13471
13472         [BZ #2978]
13473         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13474         function and its parameters and pass it to new thread.
13475         (__gai_notify): Add support for alternative waiting for completion.
13476         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13477         waiting for completion.
13478         * resolv/getaddrinfo_a.c: Likewise.
13479         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13480         waiting for completion is used.
13481         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13482         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13483         * resolv/gai_error.c: Likewise.
13484         * resolv/gai_sigqueue.c: Likewise.
13485
13486 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13487
13488         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13489         errno to EBADF and return MACH_PORT_NULL.
13490
13491 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13492
13493         [BZ #2980]
13494         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13495
13496 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13497
13498         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13499         walk them instead of the symbol table.
13500
13501 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13502
13503         [BZ #2098]
13504         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13505         status of NSS calls, not the number of returned entries.
13506
13507         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13508         request_key, keyctl.
13509
13510 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13511
13512         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13513
13514 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13515
13516         * elf/tst-auditmod1.c: Fix typo in #error.
13517
13518 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13519
13520         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13521
13522         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13523
13524 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13525
13526         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13527         that the directory is empty even on non-POSIX filesystems.
13528
13529 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13530
13531         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13532
13533         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13534         the backend NSS module.  If backend setgrent call failed, don't have
13535         internal_setgrent fail.  Just remember this until it is needed.
13536         * nis/nss_compat/compat-pwd.c: Likewise.
13537         * nis/nss_compat/compat-spwd.c: Likewise.
13538
13539 2006-07-30  Roland McGrath  <roland@redhat.com>
13540
13541         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13542         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13543         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13544         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13545
13546         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13547         (nanosleep_not_cancel): New macro.
13548         (sigsuspend_not_cancel): new macro.
13549         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13550         (do_sigsuspend): Define as inline.
13551         (__sigsuspend): Always use do_sigsuspend.
13552         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13553         * include/signal.h: Declare __sigsuspend_nocancel.
13554         * sysdeps/posix/pause.c
13555         [! NO_CANCELLATION] (__pause_nocancel): New function.
13556
13557         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13558         * include/time.h (__nanosleep_nocancel): Likewise.
13559
13560 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13561
13562         * locale/programs/localedef.c (add_to_readlist): Rename local
13563         variables to avoid confusion.
13564
13565         * locale/programs/charmap.c (charmap_read): Emit error message if
13566         charmap couldn't be found or read.
13567
13568 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13569
13570         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13571         __ASSUME_FUTEX_LOCK_PI.
13572         * include/time.h: Declare __nanosleep_nocancel.
13573         * include/unistd.h: Declare __pause_nocancel.
13574
13575         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13576         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13577         get the __stack_chk_fail_local definition when it's needed.
13578
13579 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13580
13581         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13582         * dlfcn/bug-atexit3.c: New file.
13583         * dlfcn/bug-atexit3-lib.cc: New file.
13584
13585         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13586         used when the namespace is not the base namespace.
13587
13588 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13589
13590         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13591         (__new_exitfn): Bump it in every successful call.
13592         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13593         more exit handlers, call them right away.
13594         * stdlib/exit.h: Declare __new_exitfn_called.
13595
13596 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13597
13598         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13599         calling registered handler.
13600
13601         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13602         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13603         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13604         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13605         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13606         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13607         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13608         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13609
13610 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13611
13612         * elf/dl-lookup.c (dl_new_hash): New functions.
13613         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13614         value here.  Compute new-style hash value.  Pass new hash value
13615         and reference to variable with the old value to do_lookup_x.
13616         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13617         old-style hash table.
13618         (_dl_debug_bindings): Pass new hash value and reference to variable
13619         with the old value to do_lookup_x.
13620         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13621         new-style hash value and change old-style hash value parameter to
13622         be a reference.  Reoganize functions to determine whether
13623         new-style hash table is available.  Only fall back on old-style
13624         table.  If old-style hash value is needed, compute it here.
13625         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13626         entry.
13627         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13628         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13629         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13630         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13631         * Makeconfig: If linker supports --hash-style option add it to all
13632         linker command lines to build DSOs.
13633         * config.make.in: Define have-hash-style.
13634         * configure.in: Test whether linker supports --hash-style option.
13635
13636         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13637         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13638
13639 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13640
13641         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13642         auditing.
13643
13644         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13645         RPATH of main map twice.
13646
13647 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13648
13649         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13650         look further, return original strings.
13651         (_nl_find_msg): Do not return found translation if the conversion
13652         failed.  Either signal the string is unusable or that something went
13653         wrong and the original should be used.
13654
13655 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13656
13657         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13658
13659 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13660
13661         [BZ #2766]
13662         * misc/insremque.c (insque): Handle prev == NULL.
13663         * misc/Makefile (tests): Add tst-insremque.
13664         * misc/tst-insremque.c: New test.
13665
13666 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13667
13668         [BZ #2792]
13669         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13670         conflict with DL_DST_REQUIRED.
13671
13672 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13673
13674         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13675         match what Solaris does.
13676
13677 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13678
13679         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13680         local_setegid instead of seteuid and setegid.
13681         * sysdeps/generic/local-setxid.h: New file.
13682         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13683
13684         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13685
13686         * string/Makefile (tests): Add bug-envz1.
13687         * string/bug-envz1.c: New file.
13688
13689 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13690
13691         * posix/regex_internal.c (re_string_skip_chars): If no character has
13692         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13693         to the byte which couldn't be converted.
13694         (re_string_reconstruct): Don't clear valid_raw_len before calling
13695         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13696         tip_context using re_string_context_at.
13697         * posix/Makefile: Add rules to build and run bug-regex25 test.
13698         * posix/bug-regex25.c: New test.
13699
13700 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13701
13702         [BZ #2703]
13703         * string/envz.c (envz_strip): Correct erroneously reversed src
13704         and dest parameters to memmove() invocation.
13705
13706 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13707
13708         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13709         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13710         to make sure the database has been already invalidated.
13711         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13712         after the cache has been invalidated.  Use pthread_mutex_lock rather
13713         than pthread_mutex_trylock if fd != -1.
13714         * nscd/connections.c (invalidate_cache): Add fd argument, write
13715         response to fd if not calling prune_cache, pass fd to prune_cache.
13716         (handle_request): Adjust invalidate_cache caller.
13717         (nscd_run): Pass -1 as fd to prune_cache.
13718
13719 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13720
13721         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13722         the correct place.
13723
13724 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13725
13726         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13727         * nscd/cache.c (prune_cache): Take prunelock before starting the
13728         work.  Just return in case it is already taken.
13729         * nscd/connections.c (dbs): Initialize .prunelock.
13730
13731 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13732
13733         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13734         copying.  No need to allocate new array for group members.  Just
13735         move the pointers and update the size.
13736
13737         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13738         Avoid memory leak in case realloc fails.  Simplification for
13739         better code generation.
13740
13741         Avoid deprecation warning because of libc_hidden_proto for
13742         inet6_option_alloc.
13743         * inet/inet6_option.c (option_alloc): Renamed from
13744         inet6_option_alloc.  Made static.
13745         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13746         (inet6_option_append): Call option_alloc.
13747         * include/netinet/in.h: Remove libc_hidden_proto for
13748         inet6_option_alloc.
13749
13750         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13751         for cleanup when cb!=NULL [Coverity CID 233].
13752
13753 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13754
13755         [BZ #2693]
13756         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13757         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13758         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13759         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13760         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13761         and inet6_rth_getaddr.
13762         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13763         array.
13764         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13765         Mark inet6_option_* interfaces as deprecated.
13766         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13767         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13768         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13769         inet6_rth_segments, and inet6_rth_getaddr.
13770         * inet/inet6_opt.c: New file.
13771         * inet/inet6_rth.c: New file.
13772
13773         * inet/netinet/icmp6.h: Pretty printing.
13774
13775         [BZ #2683]
13776         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13777
13778 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13779
13780         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13781         doing it all here.  When server does not know the answer do not
13782         fail immediate, try parent first.
13783
13784         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13785         overflow test.
13786
13787 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13788
13789         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13790         from __do_niscall.
13791         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13792         and exported.
13793         (__follow_path): New function.  Split out from nis_list.
13794         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13795         _xdr_nis_result.
13796         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13797         _xdr_nis_result.
13798         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13799         and __follow_path.
13800         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13801         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13802         from libnsl for version GLIBC_PRIVATE.
13803         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13804         Remove entry parameter from _nss_nisplus_parse_pwent and
13805         _nss_nisplus_parse_grent.
13806         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13807         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13808         again.  Rewrite getpwent handling to not use nis_first_entry and
13809         nis_next_entry.  Roll out own niscall handling.
13810         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13811
13812         * sunrpc/xdr_rec.c: Fix typo in comment.
13813
13814 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13815
13816         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13817         handling.
13818
13819         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13820         to allocate memory for my_pollfd.  Better initialization of
13821         cb_is_running.  Use TEMP_FAILURE_RETRY.
13822
13823         * malloc/memusage.sh (memusageso): Add quotes.
13824         (memusagestat): Likewise.
13825         * debug/xtrace.sh (pcprofileso): Likewise.
13826         (pcprofiledump): Likewise.
13827         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13828         replacement.
13829         * malloc/Makefile ($(objpfx)memusage): Likewise.
13830
13831         * nis/nis_callback.c (__nis_create_callback): Calls to
13832         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13833         asprintf call fails.
13834
13835         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13836         no uninitialized memory is passed to sendto.
13837
13838 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13839
13840         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13841         of snprintf+strdup.  Handle OOM.
13842         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13843         cb->serv together.  Remove now obsolete free calls.
13844         (__nis_destroy_callback): Remove now obsolete free call.
13845
13846 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13847
13848         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13849         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13850         and ULA respectively). Set precedence for IPv4 address to 10 as
13851         defined in RFC3484 for preferring IPv6.
13852         * posix/gai.conf: Update to match the new default tables.
13853
13854 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13855
13856         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13857         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13858         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13859         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13860
13861         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13862         Removed.
13863         (init_nss_interface): Remove initialization of these variables.
13864
13865 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13866
13867         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13868         nis_free_directory forward to avoid duplication.
13869
13870 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13871
13872         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13873         rec_dirsearch returning NULL.
13874         (first_shoot): Handle __nis_finddirectory returning NULL.
13875         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13876
13877         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13878         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13879
13880 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13881
13882         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13883         pid changed.
13884
13885 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13886
13887         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13888
13889         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13890         * nscd/nscd_getgr_r.c: Likewise.
13891
13892         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13893
13894         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13895         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13896
13897         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13898
13899         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13900
13901         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13902
13903         * include/rpc/auth.h: Mark xdr_des_block_internal and
13904         xdr_opaque_auth_internal as hidden.
13905
13906         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13907         hidden.
13908
13909         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13910
13911         * misc/getusershell.c (okshells): Don't use static initializers,
13912         do it dynamically.
13913
13914         * stdlib/fmtmsg.c (keywords): Change type of len element to
13915         uint32_t to not waste space on 64bit machines.
13916
13917         * locale/setlocale.c: Change _nl_category_names into a string.
13918         Add new _nl_category_name_idxs.  Change all users.
13919         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13920         Declare _nl_category_name_idxs.
13921         * locale/findlocale.c: Adjust for _nl_category_names change.
13922         * locale/loadlocale.c: Likewise.
13923         * locale/newlocale.c: Likewise.
13924         * intl/dcigettext.c: Likewise.
13925
13926         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13927         (add_alias2): ...here.  New function.
13928         (__gconv_read_conf): Simplify builtin alias handling.
13929         (builtin_aliases): Convert to string to avoid relocations.
13930         * iconv/gconv_builtin.h: Add comment about correct formatting.
13931
13932 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13933
13934         * resolv/res_debug.c (loc_ntoa): Make error const.
13935
13936 2006-05-14  Andreas Schwab  <schwab@suse.de>
13937
13938         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13939
13940 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13941
13942         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13943         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13944         sizeof (cpu_set_t).
13945
13946 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13947
13948         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13949
13950         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13951
13952         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13953         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13954
13955         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13956         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13957
13958         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13959         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13960         xdr_cback_data.
13961
13962         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13963         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13964         xdr_ypupdate_args.
13965
13966         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13967         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13968
13969         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13970         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13971
13972         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13973         * include/rpcsvc/nis_callback.h: New file.
13974
13975         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13976         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13977
13978         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13979         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13980
13981         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13982         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13983
13984         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13985         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13986
13987         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13988         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13989         xdr_ypdelete_args.
13990
13991         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13992         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13993
13994         * nis/nis_error.c: Remove table of strings.  Use position
13995         independent mechanism.
13996         * nis/nis_error.h: New file.
13997
13998 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13999
14000         * locale/programs/ld-time.c (time_finish): If wide era name or
14001         format aren't provided, set both wname and wformat to L"".
14002
14003 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14004
14005         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14006         results if the call was succesful.
14007
14008         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14009
14010         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14011         as hidden.
14012
14013 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14014
14015         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14016
14017 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14018
14019         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14020         caller makes sure this is not the case.
14021         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14022
14023 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14024
14025         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14026         calls.
14027
14028         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14029         [Coverity CID 229, 230]
14030
14031         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14032         DGETTEXT calls.
14033         (hol_help): Likewise.  [Coverity CID 226, 227]
14034
14035         * string/argz-replace.c (__argz_replace): Unconditionally call
14036         free on SRC.  [Coverity CID 225]
14037
14038         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14039         the return value of __nis_default_owner and __nis_default_group,
14040         it has been especially allocated.  [Coverity CID 224]
14041
14042         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14043         searchgroup and searchowner.  Significantly simplified.
14044         (__nis_default_owner): Remove duplication.  Do not locally copy the
14045         string before duplicating it.
14046         (__nis_default_group): Likewise.
14047
14048         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14049         we must clear the variable before calling __nisfind_server.
14050
14051         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14052         nis_getnames.  [Coverity CID 223]
14053
14054         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14055         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14056
14057         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14058         allocate memory for the input to add_bytes.  [Coverity CID 221]
14059
14060         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14061         was allocated here.  [Coverity CID 219, 220]
14062
14063         * posix/getconf.c (print_all): Free confstr data after printing.
14064         [Coverity CID 218]
14065
14066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14067         list allocation fails.  [Coverity CID 215]
14068
14069         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14070         [Coverity CID 213]
14071
14072         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14073         string is NULL.  [Coverity CID 212]
14074         * argp/Makefile: Add rules to build and run bug-argp1.
14075         * argp/bug-argp1.c: New file.
14076
14077         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14078         end of string.
14079         * stdlib/canonicalize.c (__realpath): Likewise.
14080
14081         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14082         pointer.  [Coverity CID 206]
14083
14084         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14085         in statically linked code.
14086         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14087         statically built code, be prepared to have no link map.
14088         [Coverity CID 205]
14089
14090         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14091         dgettext calls. [Coverity CID 204]
14092
14093         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14094         the one user.
14095         (uparam_names): Reduce size.  Avoid relative relocations.
14096         Moved to read-only segment.
14097         (fill_in_uparams): Update for new layout.
14098
14099         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14100         assumed to always be != NULL. [Coverity CID 202]
14101
14102         * argp/argp-help.c (hol_entry_help): Remove some dead code
14103         [Coverity CID 200].
14104
14105         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14106         away a few more unconditional yperr2nss calls.
14107         (_nss_nis_getservbyname_r): Likewise.
14108
14109 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14110
14111         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14112         architectures.
14113
14114         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14115         that unused memory passed to sendto is nevertheless initialized.
14116
14117         [BZ #2499]
14118         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14119         possibly unaligned memory accesses.
14120
14121         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14122         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14123         and __putlong respectively.  Correct buffer overflow check for
14124         NS_NOTIFY_OP.
14125
14126         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14127
14128         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14129         (send_dg): Rewrite error handling to be more compact and avoid
14130         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14131
14132         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14133
14134         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14135         instead of ns_get16.
14136         (res_queriesmatch): Likewise.  Minor optimization.
14137
14138         [BZ #2499]
14139         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14140         __libc_res_nsend might reallocate the buffer for the answer.  In
14141         this case we have to reload the HP pointer.
14142
14143 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14144
14145         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14146         some branch prediction hints.
14147
14148         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14149         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14150         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14151         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14153         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14154         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14155         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14156
14157 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14158
14159         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14160         by a GOT relocation to make Scrt1.o position independent.
14161         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14162
14163         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14164         six system call parameters.
14165         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14166
14167 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14168
14169         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14170         malloc&bzero.
14171
14172         * sunrpc/svc_udp.c (BZERO): Remove definition.
14173         (CALLOC): Define.
14174         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14175
14176         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14177         (des_SPtrans): Use uint32_t type.
14178         (des_skb): Likewise.
14179
14180         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14181
14182 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14183
14184         [BZ #2509]
14185         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14186         on 32-bit arches.
14187
14188 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14189
14190         * locale/programs/ld-address.c (address_finish): Fix one more
14191         place where the iso639 array might be accessed beyond the limits.
14192
14193 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14194
14195         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14196         filling it for the first time.
14197
14198         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14199         Adjust all callers.
14200         Free res object content before returning.
14201
14202         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14203
14204         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14205         client->cl_auth.
14206
14207         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14208         cleanup for initial thread, just the free call on TVP.
14209
14210         * nscd/gai.c (__getline): Define.
14211
14212
14213 See ChangeLog.16 for earlier changes.