28953a79c01df1988d0304b8fabc787d987d3481
[platform/upstream/glibc.git] / ChangeLog
1 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
2
3         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
4         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
5
6 2010-01-22  Jim Meyering  <jim@meyering.net>
7
8         [BZ #11193]
9         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
10         buffer length computation.
11
12         [BZ #11192]
13         * posix/regexec.c (re_copy_regs): Don't leak when allocation
14         of the start buffer succeeds but allocation of the "end" one fails.
15
16         [BZ #11191]
17         * posix/regexec.c (re_search_2_stub): Check for overflow
18         when adding the sizes of the two strings.
19
20         [BZ #11190]
21         * posix/regexec.c (re_search_internal): Avoid overflow
22         in computing re_malloc buffer size.
23
24         [BZ #11189]
25         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
26         in computing re_malloc buffer size.
27
28         [BZ #11188]
29         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
30         in size calculation.
31
32         [BZ #11187]
33         * posix/regexec.c (re_search_2_stub): Use simpler method than
34         boolean for freeing internal storage.
35
36 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
37
38         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
39         failed mbrtowc call.
40
41 2010-01-22  Jim Meyering  <jim@meyering.net>
42
43         [BZ #11186]
44         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
45         fits in wchar_t.  Problem reported by Eric Blake.
46
47         [BZ #11185]
48         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
49         and stores into set-but-not-used local, "q".
50
51         [BZ #11184]
52         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
53         detection test.  Patch by Paul Eggert.
54
55         [BZ #11183]
56         * posix/regex_internal.c (re_string_realloc_buffers):
57         Detect and handle internal overflow.  Patch by Paul Eggert
58
59 2010-01-20  Andreas Schwab  <schwab@redhat.com>
60
61         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
62         (CHECK_SP): Fix check for alternate stack.
63         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
64         (CHECK_SP): Likewise.
65
66 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
67
68         * sysdeps/i386/i686/multiarch/memmove.S: Also check
69         bit_Fast_Rep_String when SHARED isn't defined.
70
71 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
72
73         [BZ #11194]
74         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
75
76 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77
78         * sysdeps/mach/hurd/bits/libc-lock.h
79         (__rtld_lock_recursive_t): New type.
80         (__rtld_lock_initialize): New macro.
81
82 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
83
84         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
85         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
86         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
87         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
88
89 2010-01-18  Andreas Schwab  <schwab@redhat.com>
90
91         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
92         definitions of O_DSYNC and O_RSYNC.
93
94         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
95         casting d_tag.
96
97         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
98         dynamic entry types.
99
100 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
101
102         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
103         constant.
104         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
105         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
106         overflow.
107         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
108
109         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
110         math_opt_barrier and math_force_eval macros.
111
112 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
113
114         * posix/regcomp.c: Fix a few more cases of ignored return values.
115         * posix/regex_internal.c: Likewise.
116         * posix/regexec.c: Likewise.
117
118         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
119         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
120         if _XOPEN_SOURCE is not defined as well.
121
122 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
123
124         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
125         high gprs kernel facility.
126         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
127         Added high gprs check for DSOs.
128         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
129         new elf header flag.
130
131 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
132
133         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
134         dl_main.
135         * elf/dl-open.c (_dl_sysdep_start): Likewise..
136         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
137         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
138         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
139         started.
140
141 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
142
143         [BZ #11027]
144         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
145         to RFC 2474.
146         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
147
148         [BZ #11141]
149         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
150         addresses.
151
152         [BZ #11127]
153         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
154         re_node_set_insert failure; return REG_ESPACE.
155         Patch by Paul Eggert.
156
157         * bits/confname.h: Make pre-C99-safe.
158
159 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
160
161         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
162         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
163         files are found by GCC.
164
165 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
166
167         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
168         brk, and sbrk.
169
170         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
171         index, and rindex.
172
173         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
174
175         * Versions.def: Add GLIBC_2.12 for libpthread.
176
177         [BZ #11126]
178         * malloc/malloc.c (malloc_info): Initialize malloc if not already
179         done.  Handle empty bin lists.
180
181         * posix/unistd.h: Change getpagesize and getdtablesize declaration
182         visibility some more.
183
184         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
185
186         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
187
188         [BZ #11120]
189         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
190         needed outside libc.
191
192 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
193
194         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
195
196 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
197
198         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
199
200 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
201
202         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
203
204 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
205
206         * conform/data/complex.h-data: Test for POSIX2008.
207
208         * conform/data/ctype.h-data: Fix POSIX testing.
209
210         * conform/data/dirent.h-data: ino_t only needed for XSI.
211
212         * grp/grp.h: Declare getgrent and endgrent for XPG7.
213
214         * conform/data/inttypes.h-data: Use same types as the headers.
215
216         * resolv/netdb.h: Don't define old resolver macros for XPG7.
217
218         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
219
220         * conform/conformtest.pl: Implement tag for allow-header.
221         Fix newline handling in allow-header implementation.
222
223         * conform/data/time.h-data: Use allow-header instead of duplicating
224         information.
225
226         * conform/data/time.h-data: Allow sigevent tag.
227
228         * posix/sched.h: Define time_t and pid_t for XPG7.
229
230 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
231
232         * sysdeps/i386/i686/bcopy.S: New file.
233
234         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
235
236         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
237         and END_CHK.
238         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
239         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
240         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
241
242         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
243
244         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
245         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
246         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
247         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
248         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
249         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
250         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
251         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
252         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
253         * sysdeps/i386/i686/multiarch/bzero.S: New file.
254         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
255         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
256         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
257         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
258         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
259         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
260         * sysdeps/i386/i686/multiarch/memmove.S: New file.
261         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
262         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
263         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
264         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
265         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
266         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
267         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
268         * sysdeps/i386/i686/multiarch/memset.S: New file.
269         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
270
271         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
272         (END_CHK): Likewise.
273
274         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
275         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
276         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
277
278         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
279         for 0x0e and 0x80.
280         (__x86_64_data_cache_size): New.
281         (init_cacheinfo): Set __x86_64_data_cache_size.
282
283         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
284         on bit_Fast_Rep_String for Intel Core i7.
285
286         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
287         (index_Fast_Rep_String): Likewise.
288         (FEATURE_INDEX_1): Likewise.
289         (FEATURE_INDEX_MAX): Likewise.
290         (cpu_features): Add feature.
291
292 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
293
294         * conform/data/sys/select.h-data: Fix up for XPG7.
295
296 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
297
298         * posix/sys/wait.h: Don't define W* macros etc. if
299         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
300
301 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
302
303         * io/sys/stat.h: Declare fchmod for XPG7.
304         * conform/data/sys/stat.h-data: Fix up for XPG7.
305
306         * termios/termios.h: Define pid_t for XPG7.
307
308         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
309         * conform/data/tgmath.h-data: Likewise.
310
311         * conform/data/time.h-data: Fix POSIX tests.
312
313         * conform/data/wchar.h-data: Fix up XPG7 tests.
314
315         * include/features.h: Fix __USE_ISOC95 handling.
316
317         * conform/data/wordexp.h-data: Fix typo in last change.
318
319         * conform/data/unistd.h-data: Fix up older POSIX tests.
320
321         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
322         * posix/unistd.h: Likewise.
323
324         * posix/unistd.h: Include environments.h also for XPG6 and up.
325         Define intptr_t for XPG6 and up.
326         Fix up for XPG7.
327         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
328
329         * conform/data/sys/types.h-data: Fix up for XPG7.
330
331         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
332         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
333         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
334         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
335         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
336         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
337         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
338         * sysdeps/unix/sysv/bits/stat.h: Likewise.
339         * sysdeps/mach/hurd/bits/stat.h: Likewise.
340
341         * bits/confname.h: Fix typo in last change.
342
343         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
344
345 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
346
347         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
348         and SA_RESETHAND now available in Base.
349         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
350         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
351         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
352         * conform/data/signal.h-data: Update for XPG7.
353
354         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
355
356         * string/strings.h: Don't declare obsolete functions for XPG7.
357         Declare ffs only for XSI.
358         * conform/data/strings.h-data: Update for XPG7.
359
360 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
361
362         [BZ #11125]
363         * libio/stdio.h: Define va_list, off_t, and ssize_t.
364
365         * posix/glob.h: Define size_t.
366
367         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
368
369         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
370
371 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
372
373         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
374         be self-contained.
375
376         * conform/data/stdio.h-data: Expect off_t and ssize_t.
377
378 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
379
380         * libio/stdio.h: Define va_list also for XPG7.
381
382         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
383         * conform/data/ctype.h-data: Likewise.
384         * conform/data/dirent.h-data: Likewise.
385         * conform/data/errno.h-data: Likewise.
386         * conform/data/fcntl.h-data: Likewise.
387         * conform/data/fmtmsg.h-data: Likewise.
388         * conform/data/fnmatch.h-data: Likewise.
389         * conform/data/ftw.h-data: Likewise.
390         * conform/data/glob.h-data: Likewise.
391         * conform/data/grp.h-data: Likewise.
392         * conform/data/iconv.h-data: Likewise.
393         * conform/data/langinfo.h-data: Likewise.
394         * conform/data/libgen.h-data: Likewise.
395         * conform/data/limits.h-data: Likewise.
396         * conform/data/locale.h-data: Likewise.
397         * conform/data/math.h-data: Likewise.
398         * conform/data/monetary.h-data: Likewise.
399         * conform/data/mqueue.h-data: Likewise.
400         * conform/data/ndbm.h-data: Likewise.
401         * conform/data/netdb.h-data: Likewise.
402         * conform/data/pthread.h-data: Likewise.
403         * conform/data/pwd.h-data: Likewise.
404         * conform/data/regex.h-data: Likewise.
405         * conform/data/sched.h-data: Likewise.
406         * conform/data/search.h-data: Likewise.
407         * conform/data/semaphore.h-data: Likewise.
408         * conform/data/setjmp.h-data: Likewise.
409         * conform/data/signal.h-data: Likewise.
410         * conform/data/spawn.h-data: Likewise.
411         * conform/data/stdio.h-data: Likewise.
412         * conform/data/stdlib.h-data: Likewise.
413         * conform/data/string.h-data: Likewise.
414         * conform/data/strings.h-data: Likewise.
415         * conform/data/sys/ipc.h-data: Likewise.
416         * conform/data/sys/msg.h-data: Likewise.
417         * conform/data/sys/resource.h-data: Likewise.
418         * conform/data/sys/sem.h-data: Likewise.
419         * conform/data/sys/shm.h-data: Likewise.
420         * conform/data/sys/socket.h-data: Likewise.
421         * conform/data/sys/stat.h-data: Likewise.
422         * conform/data/sys/time.h-data: Likewise.
423         * conform/data/sys/types.h-data: Likewise.
424         * conform/data/sys/uio.h-data: Likewise.
425         * conform/data/sys/wait.h-data: Likewise.
426         * conform/data/syslog.h-data: Likewise.
427         * conform/data/tar.h-data: Likewise.
428         * conform/data/termios.h-data: Likewise.
429         * conform/data/time.h-data: Likewise.
430         * conform/data/ulimit.h-data: Likewise.
431         * conform/data/unistd.h-data: Likewise.
432         * conform/data/utmpx.h-data: Likewise.
433         * conform/data/wchar.h-data: Likewise.
434         * conform/data/wctype.h-data: Likewise.
435         * conform/data/wordexp.h-data: Likewise.
436
437         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
438         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
439         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
440         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
441         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
442         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
443         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
444         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
445         * sysdeps/unix/sysv/bits/stat.h: Likewise.
446         * sysdeps/mach/hurd/bits/stat.h: Likewise.
447
448         * stdlib/stdlib.h: Define wait-related bits for XPG7.
449         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
450         Declare mkstemp and getsubopt for XPG7.
451         Declare posix_openpt for XPG6 XSI.
452
453         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
454         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
455
456         * string/string.h: Declare strdup for XPG7.
457
458 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
459
460         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
461         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
462
463         * dirent/dirent.h: Really fix feature selection.
464
465         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
466         Fix all users.
467         * locale/C-address.c: Fix all users.
468         * locale/C-collate.c: Likewise.
469         * locale/C-ctype.c: Likewise.
470         * locale/C-identification.c: Likewise.
471         * locale/C-measurement.c: Likewise.
472         * locale/C-messages.c: Likewise.
473         * locale/C-monetary.c: Likewise.
474         * locale/C-name.c: Likewise.
475         * locale/C-numeric.c: Likewise.
476         * locale/C-paper.c: Likewise.
477         * locale/C-telephone.c: Likewise.
478         * locale/C-time.c: Likewise.
479         * locale/findlocale.c: Likewise.
480         * locale/global-locale.c: Likewise.
481         * locale/loadarchive.c: Likewise.
482         * locale/loadlocale.c: Likewise.
483         * locale/nl_langinfo_l.c: Likewise.
484         * locale/setlocale.c: Likewise.
485         * locale/xlocale.c: Likewise.
486         * locale/xlocale.h: Likewise.
487         * stdio-common/vfscanf.c: Likewise.
488         * stdlib/strfmon_l.c: Likewise.
489         * stdlib/strtod_l.c: Likewise.
490         * stdlib/strtol_l.c: Likewise.
491         * string/strcoll_l.c: Likewise.
492         * string/strxfrm_l.c: Likewise.
493         * time/alt_digit.c: Likewise.
494         * time/asctime.c: Likewise.
495         * time/era.c: Likewise.
496         * time/lc-time-cleanup.c: Likewise.
497         * time/strftime_l.c: Likewise.
498         * time/strptime_l.c: Likewise.
499         * wcsmbs/wcsmbsload.c: Likewise.
500         * wcsmbs/wcsmbsload.h: Likewise.
501
502         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
503         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
504         for XPG7.
505         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
506         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
507         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
508         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
509         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
510         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
511
512 2010-01-07  Roland McGrath  <roland@redhat.com>
513
514         * elf/elf.h (PN_XNUM): New macro.
515
516         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
517         literal 2.
518
519 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
520
521         * dirent/dirent.h: Fix typo in feature selection macro use.
522
523 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
524
525         [BZ #11115]
526         * stdlib/tst-makecontext3.c: New file.
527         * stdlib/Makefile (tests): Add new test.
528
529         * stdlib/tst-setcontext.c (check_called): Fix a typo.
530
531 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
532
533         * configure.in: Enable multi-arch by default if the assembler
534         supports gnu_indirect_function symbol type and the architecture
535         supports it.
536
537 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
538
539         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
540         is defined.
541
542 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
543
544         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
545         MACH_PORT_NULL when id != cttyid.
546
547 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
548
549         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
550         __mach_port_deallocate on rootdevid.
551
552 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
553
554         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
555         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
556         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
557         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
558
559 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
560
561         [BZ #10992]
562         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
563         Patch by Eric Blake <ebb9@byu.net>.
564
565 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
566
567         [BZ #11093]
568         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
569         POLLWRBAND also for POSIX 2008.
570         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
571         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
572
573         * include/link.h (struct link_map): Move l_used into its own word.
574         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
575         still zero.
576         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
577         never really used.
578
579 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
580
581         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
582         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
583         check processor feature.
584         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
585         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
586         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
587         (index_SSE2): Likewise.
588
589 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
590
591         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
592         if __ASSEMBLER__ is defined.
593         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
594         (bit_SSE4_2): Likewise.
595         (index_SSSE3): Likewise.
596         (index_SSE4_2): Likewise.
597         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
598         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
599         check processor feature.
600         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
601         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
602         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
603         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
604         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
605         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
606         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
607
608 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
609
610         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
611
612 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
613
614         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
615
616 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
617
618         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
619         O_DSYNC to match 2.6.33+ kernels.
620         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
621         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
622         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
623         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
624         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
625         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
626
627 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
628
629         [BZ #11000]
630         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
631         *herrnop before returning.
632         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
633         Likewise.
634         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
635         TRYAGAIN errors separately.
636         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
637         *name4_r after functions.
638
639 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
640
641         [BZ #11046]
642         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
643         version check.
644
645 2009-11-05  Bruno Haible  <bruno@clisp.org>
646
647         [BZ #11056]
648         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
649         argv argument as non-NULL.
650         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
651
652 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
653
654         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
655         recvmmsg.
656         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
657         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
658
659 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
660
661         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
662         registers.
663         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
664         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
665         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
666
667 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
668
669         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
670         SCHED_RESET_ON_FORK.
671
672 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
673
674         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
675         only used on truly ancient kernel if configuration requires a more
676         recent kernel.
677
678 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
679
680         [BZ #3662]
681         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
682         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
683
684         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
685         pass it on to __ptsname_internal.
686         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
687         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
688         All the code from __ptsname_r but take additional parameter.  Use that
689         instead of pointer to local stat64 variable.
690         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
691         variable.
692         * include/stdlib.h: Declare __ptsname_internal.
693
694         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
695         before the exec.
696         * sysdeps/unix/sysv/linux/grantpt.c: New file.
697         * login/programs/pt_chown.c (main): Don't print message on errors
698         when doing real work.
699
700         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
701         once.
702
703         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
704         irel relocations split out from...
705         (__libc_csu_init): ...here.
706         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
707
708 2009-11-23  Andreas Schwab  <schwab@redhat.com>
709
710         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
711         for timestamps also if __USE_XOPEN2K8.
712         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
713         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
714         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
715         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
716
717 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
718
719         * nscd/connections.c (restart): Try harder to re-exec.
720
721         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
722
723         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
724         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
725         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
726         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
727         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
728         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
729
730         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
731         Define.
732         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
733
734 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
735
736         [BZ #10162]
737         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
738         than software pipeline.  Properly recover from shorter read.
739
740 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
741
742         [BZ #10958]
743         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
744         initialized before using it.
745         (_IO_putwc_unlocked): Likewise.
746
747         [BZ #10918]
748         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
749         in cast to not throw away const-ness of parameters.
750         (__CPU_EQUAL_S): Likewise.
751         (__CPU_OP_S): Likewise.
752
753         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
754         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
755         this gratuitous change and we have to keep compatibility.
756         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
757         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
758         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
759         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
760         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
761         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
762
763 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
764
765         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
766         of parameters of sync_file_range.
767         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
768         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
769         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
770         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
771         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
772         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
773
774 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
775
776         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
777         Implement using sync_file_range2 syscall if __NR_sync_file_range2
778         is defined.
779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
780         file.
781
782 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
783
784         * posix/bug-regex30.c: New file.
785         * posix/Makefile: Add rules to build and run bug-regex30.
786         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
787         character lead bytes when there is a range in a COMPLEX_BRACKET.
788         Reported by Oleg Bylatov.
789
790 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
791
792         [BZ #10969]
793         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
794         * locale/tst-duplocale.c: New file.
795         * locale/Makefile (tests): Add tst-duplocale.
796
797         [BZ #10968]
798         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
799         Patch by Bruno Haible <bruno@clisp.org>.
800         * locale/tst-locname.c: New file.
801         * locale/Makefile (tests): Add tst-locname.
802
803         [BZ #10972]
804         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
805         constants from recent kernels.
806         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
807         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
808         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
809         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
810         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
811         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
812
813 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
814
815         [BZ #10162]
816         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
817         software pipeline.
818
819 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
820
821         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
822         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
823         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
824
825 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
826
827         * posix/bug-regex29.c: Include stdio.h.
828
829 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
830
831         [BZ #10939]
832         * Versions.def: Define GLIBC_2.12 for libc.
833         * manual/errno.texi: Add ERFKILL entry.
834         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
835         for 2.12.
836         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
837         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
838
839         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
840         F_GETOWN_EX definitions according to corrected kernel definitions.
841         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
842         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
844         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
845         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
846         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
847
848 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
849
850         * version.h: Bump for 2.12 development.
851
852 2009-11-10  Andreas Schwab  <schwab@redhat.com>
853
854         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
855         out of buffer space.
856         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
857         map_v4v6_hostent running out of space.
858
859 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
860
861         * string/bits/string3.h (memset): If the second parameter is constant
862         and zero there is likely no transposition.
863         Patch by Caolan McNamara <caolanm@redhat.com.
864
865 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
866
867         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
868         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
869
870 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
871
872         * malloc/memusagestat.c (main): Fix spelling in an error message.
873
874 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
875
876         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
877         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
878
879 2009-11-03  Andreas Schwab  <schwab@redhat.com>
880
881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
882         readahead.
883
884 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
885
886         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
887         relocate opd entry when resolving prelink conflicts.
888
889 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
890
891         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
892         when -D_FILE_OFFSET_BITS=64.
893
894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
895         of last two arguments when -D_FILE_OFFSET_BITS=64.
896         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
897         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
898         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
899         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
900         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
901         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
902
903 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
904
905         [BZ #4457]
906         * sysdeps/generic/libgcc_s.h: New file.
907         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
908
909 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
910
911         * malloc/hooks.c (free_check): Restore locking and call _int_free
912         appropriately.
913
914 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
915
916         * version.h (VERSION): Bump for 2.11 release.
917         * include/features.h (__GLIBC_MINOR__): Bump to 11.
918
919         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
920
921         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
922
923         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
924         to avoid warning.
925         * stdlib/tst-strtoll.c (tests): Likewise.
926
927         [BZ #9986]
928         * time/strftime_l.c (__strftime_internal): Allow %OC.
929
930         * misc/mkostemps.c: New file.
931         * misc/mkostemps64.c: New file.
932
933 2009-10-30  Andreas Schwab  <schwab@redhat.com>
934
935         * locale/programs/locale-spec.c: Include <error.h> and
936         <libintl.h>.
937
938         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
939
940 2009-10-28  Roland McGrath  <roland@redhat.com>
941
942         * Makefile (dist-prepare): New target.
943         (tag-for-dist): Target removed.
944         (glibc-%.tar): Pattern rule removed.
945         (%.tar): New pattern rule, does simple use of git archive.
946         (dist-version): Remove variable definition.
947         (dist): Just depend on that.  Add .tar.xz dependency.
948         If dist-version variable not set on command line, depend on
949         dist-prepare, re-invoke with dist-version set via git describe.
950
951         * Makerules (%.xz): New pattern rule.
952
953 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
954
955         * elf/ifuncdep2.c: Include ifunc-sel.h.
956         (global): Delete.
957         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
958         * elf/ifuncmain1.c (global): Delete.
959         * elf/ifuncmain1vis.c: Likewise.
960         * elf/ifuncmain2.c: Likewise.
961         * elf/ifuncmain5.c: Likewise.
962         * elf/ifuncmod3.c: Likewise.
963         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
964         (foo_ifunc): Use ifunc_one.
965         * elf/ifuncmain7.c: Likewise.
966         * elf/ifuncmod1.c: Include ifunc-sel.h.
967         (global): Define protected var.
968         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
969         * elf/ifuncmod5.c: Likewise.
970         * sysdeps/generic/elf/ifunc-sel.h: New file.
971         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
972
973 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
974
975         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
976         (R_PPC_REL16*): Correct comments.
977         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
978         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
979          R_PPC64_REL16_HA): Define.
980         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
981         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
982         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
983         Delete unused "reloc" param.
984         (__process_machine_rela): Handle R_PPC_IRELATIVE.
985         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
986         Delete "reloc" param.
987         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
988         R_PPC_IRELATIVE.
989         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
990         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
991         relocations.
992
993 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
994
995         [BZ #10315]
996         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
997         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
998         UDP_ENCAP_L2TPINUDP.
999
1000         [BZ #10349]
1001         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1002         parameter, specifying length of prefix.
1003         * stdio-common/tempname.c: Likewise.
1004         * include/stdio.h: Adjust prototypes.
1005         * libio/oldtmpfile.c: Adjust caller.
1006         * misc/mkdtemp.c: Likewise.
1007         * misc/mkostemp.c: Likewise.
1008         * misc/mkostemp64.c: Likewise.
1009         * misc/mkstemp.c:  Likewise.
1010         * misc/mkstemp64.c: Likewise.
1011         * misc/mktemp.c: Likewise.
1012         * stdio-common/tempnam.c: Likewise.
1013         * stdio-common/tmpfile.c: Likewise.
1014         * stdio-common/tmpnam.c: Likewise.
1015         * stdio-common/tmpnam_r.c: Likewise.
1016         * misc/mkstemps.c: New file.
1017         * misc/mkstemps64.c: New file.
1018         * stdlib/stdlib.h: Add prototypes.
1019         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1020         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1021
1022 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1023
1024         * locale/iso-639.def: Add sml entry.
1025
1026         [BZ #10391]
1027         * resolv/res_send.c (send_dg): Initialize resplen.
1028
1029         [BZ #10446]
1030         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1031         definition to the kernel's.
1032         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1033
1034 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1035
1036         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1037         offsets and record sizes in assert()s and response sending.
1038         * nscd/grpcache.c: Likewise.
1039         * nscd/hstcache.c: Likewise.
1040         * nscd/initgrcache.c: Likewise.
1041         * nscd/pwdcache.c: Likewise.
1042
1043 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1044
1045         [BZ #10540]
1046         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1047         /etc/hosts does not exist set errnop and herrnop appropriately.
1048         Patch by Steve Langasek <vorlon@debian.org>.
1049
1050         [BZ #10553]
1051         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1052         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1053
1054         [BZ #10564]
1055         * login/utmp_file.c (TIMEOUT): Increase to 10.
1056
1057         [BZ #10609]
1058         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1059         for file names in case the syscall is not available.
1060         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1061         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1062         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1063         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1064         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1065         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1066         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1067         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1068         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1069         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1070         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1071         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1072         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1073         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1074         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1075         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1076         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1077
1078         [BZ #10643]
1079         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1080         creation filed, remove the request from the 'requests' list and signal
1081         the caller that the request is finished.
1082
1083         [BZ #10692]
1084         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1085         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1086
1087         [BZ #10713]
1088         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1089         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1090
1091         [BZ #10780]
1092         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1093         overflows the int return type.
1094
1095         [BZ #10717]
1096         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1097         have to compute maxsize_total, we have to update the variables, and
1098         the also_total handling must happen after the repair.
1099
1100         [BZ #10742]
1101         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1102         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1103
1104 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1105
1106         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1107         errno is always set when returning unsuccessfully.
1108
1109 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1110
1111         * malloc/memusage.c (update_data): Fix index wraparound handling
1112         so that buffer_cnt is actually reset.
1113
1114 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1115
1116         [BZ #10784]
1117         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1118         of the directory we look at into the static buffer if there is one
1119         at the start of the loop.
1120
1121         [BZ #10789]
1122         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1123         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1124
1125         [BZ #10840]
1126         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1127         __ASSUME_F_GETOWN_EX.
1128         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1129         if possible.
1130         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1131
1132         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1133         and f_owner_ex.
1134         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1135         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1136         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1137         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1138         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1139         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1140
1141         [BZ #10847]
1142         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1143         getutmpx symbol.
1144
1145         [BZ #10823]
1146         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1147         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1148
1149 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1150
1151         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1152
1153 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1154
1155         [BZ #10817]
1156         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1157         Reported by Ray Chason.
1158
1159 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1160
1161         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1162         strend-sse4.
1163         * sysdeps/x86_64/multiarch/strchr.S: New file.
1164         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1165         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1166
1167 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1168
1169         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1170
1171 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1172
1173         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1174         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1175         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1176         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1177         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1178         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1179         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1180         __ieee751_expl to handle overflow.
1181
1182 2009-10-14  David S. Miller  <davem@davemloft.net>
1183
1184         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1185         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1186
1187 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1188
1189         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1190         !USE_MULTIARCH.
1191
1192 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1193
1194         [BZ #10730]
1195         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1196         Patch in part by Steve Ward <planet36@gmail.com>.
1197
1198         [BZ #10731]
1199         * stdlib/rand_r.c: Fix typo.
1200
1201         * po/cs.po: Update from translation team.
1202
1203 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1204
1205         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1206         returning if RTLD_NOLOAD.
1207
1208 2009-10-06  Roland McGrath  <roland@redhat.com>
1209
1210         * sysdeps/x86_64/multiarch/strstr-c.c
1211         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1212
1213         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1214         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1215
1216         * sysdeps/x86_64/multiarch/init-arch.h
1217         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1218         (HAS_CPU_FEATURE): New macro.
1219         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1220         * sysdeps/x86_64/multiarch/init-arch.c
1221         (__get_cpu_features): #undef it before definition.
1222
1223 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1224
1225         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1226         first_weekday to 1 and first_workday to 2.
1227
1228 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1229
1230         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1231         F_GETOWN_EX.
1232         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1233         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1234         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1235         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1236         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1237         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1238
1239 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1240
1241         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1242         * stdio-common/vfprintf.c: Likewise.
1243
1244 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1245
1246         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1247         (mkdirat): Call __directory_name_split_at instead of
1248         __directory_name_split.
1249
1250 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * locale/programs/locale-spec.c (locale_special): If nothing matches
1253         fail with an appropriate message.
1254
1255 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1256
1257         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1258         and XX.
1259
1260 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1261
1262         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1263         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1264
1265 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1266
1267         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1268
1269 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1270
1271         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1272         character size elements in step data.
1273
1274 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1275
1276         * po/hu.po: Update from translation team.
1277         * po/vi.po: Likewise.
1278
1279 2009-09-19  Roland McGrath  <roland@redhat.com>
1280
1281         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1282
1283 2009-09-15  Roland McGrath  <roland@redhat.com>
1284
1285         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1286         * nptl/sysdeps/pthread/configure: Regenerated.
1287         * nptl/sysdeps/x86_64/configure: Regenerated.
1288         * sysdeps/unix/sysv/linux/configure: Regenerated.
1289         * sysdeps/x86_64/elf/configure: Regenerated.
1290
1291         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1292
1293         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1294         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1295         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1296         * configure: Regenerated.
1297
1298 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1299
1300         * posix/getconf.c (main): Handle -- on command line.
1301
1302 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         * configure.in: Support binutils 2.100 and 3.0.
1305
1306 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1307
1308         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1309         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1310         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1311         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1312
1313 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1314
1315         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1316         unnamed_section_defined field.
1317         (collate_read): Test and set unnamed_section_defined.
1318
1319         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1320         _POSIX2_LINE_MAX.
1321
1322 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         * configure.in: Support binutils 2.20.
1325
1326 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1327
1328         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1329         __strstr_ia32): Add attribute_hidden.
1330
1331 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1332
1333         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1334         parsing of group entry.
1335
1336 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1337
1338         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1339         external buffer.  Always discard readahead in internal buffer.
1340         * libio/Makefile (tests): Add bug-wsetpos.
1341         * libio/bug-wsetpos.c: New file.
1342
1343 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1344
1345         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1346         Add attribute_hidden.
1347         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1348         __strcasestr_sse2): Likewise.
1349         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1350         (__fma_fma): Make static.
1351         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1352         (__fmaf_fma): Make static.
1353
1354 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1355
1356         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1357         reformulate in-buffer optimisation check to match code in
1358         _IO_new_file_seekoff.
1359
1360 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1361
1362         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1363         to srwi in 32-bit memcpy for power6.
1364
1365 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1366
1367         * include/stdio.h: Declare hidden proto for fflush.
1368         * libio/iofflush.c: Add hidden weak alias for fflush.
1369
1370 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1371
1372         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1373         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1374
1375 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1376
1377         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1378
1379 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1380
1381         [BZ #10560]
1382         * malloc/malloc.c: Add local assert definition to avoid problems with
1383         memory allocation in the real one.
1384
1385 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1386
1387         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1388         Removed.
1389         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1390         turn off SSSE3 on Atom.
1391
1392 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1393
1394         * stdlib/tst-strtol.c (tests): More tests.
1395         * stdlib/tst-strtoll.c (tests): Likewise.
1396
1397 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1398
1399         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1400
1401         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1402
1403 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1404
1405         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1406         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1407
1408         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1409
1410         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1411
1412         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1413
1414 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1415
1416         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1417
1418 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1419
1420         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1421         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1422
1423         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1424
1425         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1426         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1427
1428         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1429         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1430
1431         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1432         leftover YMM_SIZE definition.
1433
1434 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1435
1436         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1437         union.
1438         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1439         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1440         Redefine.
1441         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1442
1443         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1444         and SET_FLOAT_WORD definitions.
1445
1446 2009-08-24  Roland McGrath  <roland@redhat.com>
1447
1448         * sysdeps/unix/syscall-template.S: New file.
1449         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1450         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1451         (compile-syscall): Pass mkdep and -g options as normal.
1452         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1453         (common-generated): Don't add them here.
1454
1455 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1456
1457         * math/s_fdim.c: In case of overflows set errno.
1458         * math/s_fdimf.c: Likewise.
1459         * math/s_fdiml.c: Likewise.
1460
1461         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1462         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1463         are using the inline optimizations.
1464
1465         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1466         (__signbitf): Likewise.
1467
1468 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1469
1470         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1471         terminated.
1472         * posix/Makefile (tests): Add bug-regex29.
1473         * posix/bug-regex29.c: New file.
1474
1475         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1476         older POSIX versions are selected.
1477
1478         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1479         as well.
1480         * stdio-common/printf_fphex.c: Likewise.
1481         * stdio-common/tstdiomisc.c: Add more tests.
1482
1483         * locale/locale.h: Include xlocale.h and the thread-local locale
1484         declarations for XPG7, not XPG6.
1485
1486 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1487
1488         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1489         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1492         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1493         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1494
1495 2009-08-20  Roland McGrath  <roland@redhat.com>
1496
1497         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1498         Use l_addr instead of l_map_start (dli_fbase).
1499         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1500         address when there is no proximate symbol.
1501         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1502         Likewise.
1503
1504 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1505
1506         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1507
1508 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1509
1510         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1511         Also handle SIGINT.  In that case only do the cleanup and then
1512         re-raise the signal.
1513         (main): Install handler for SIGINT.
1514
1515 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1516
1517         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1518         clobber list.
1519
1520 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1521
1522         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1523         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1524         tst-auditmod7b.c.
1525         (tests): Add tst-audit6 tst-audit7.
1526         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1527         tst-auditmod7a tst-auditmod7b.
1528         ($(objpfx)tst-audit6): New.
1529         ($(objpfx)tst-audit6.out): Likewise.
1530         ($(objpfx)tst-audit7): Likewise.
1531         ($(objpfx)tst-audit7.out): Likewise.
1532         (tst-audit6-ENV): Likewise.
1533         (tst-audit7-ENV): Likewise.
1534         (CFLAGS-tst-auditmod6b.c): Likewise.
1535         (CFLAGS-tst-auditmod6c.c): Likewise.
1536         (CFLAGS-tst-auditmod7b.c): Likewise.
1537         * elf/tst-audit6.c: New file.
1538         * elf/tst-audit7.c: New file.
1539         * elf/tst-auditmod6a.c: New file.
1540         * elf/tst-auditmod6b.c: New file.
1541         * elf/tst-auditmod6c.c: New file.
1542         * elf/tst-auditmod7a.c: New file.
1543         * elf/tst-auditmod7b.c: New file.
1544         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1545         saving and restoring SSE/AVX registers to ...
1546         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1547
1548 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1551         only if SHARED is defined.
1552         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1553
1554 2009-08-03  Jim Meyering  <meyering@redhat.com>
1555
1556         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1557
1558 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1559
1560         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1561         section as the other functions for this architecture.
1562         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1563
1564 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1565
1566         * sysdeps/x86_64/strcmp.S: Add support to compile with
1567         USE_SSSE3.  In this case palignr is used.
1568         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1569         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1570         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1571         Add strcmp-ssse3 and strncmp-ssse3.
1572         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1573         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1574
1575         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1576         warning through fake initialization.
1577
1578 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1579
1580         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1581
1582 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1583
1584         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1585         unique symbols.
1586
1587 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1588
1589         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1590         EBX from EAX = 1.  Handle EAX = 11.
1591
1592 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1593
1594         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1595         inside ''.
1596
1597 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1598
1599         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1600         hidden IFUNC functions.
1601         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1602
1603         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1604
1605         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1606         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1607         strcasestr-c.
1608         (CFLAGS-strcspn-c.c): Define.
1609         (CFLAGS-strpbrk-c.c): Define.
1610         (CFLAGS-strspn-c.c): Define.
1611         (CFLAGS-strstr.c): Define.
1612         (CFLAGS-strcasestr.c): Define.
1613         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1614         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1615         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1616         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1617         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1618         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1619         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1620         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1621         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1622         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1623         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1624         -16L instead of 0xfffffffffffffff0L.
1625         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1626
1627 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1628
1629         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1630
1631 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1632
1633         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1634         another rewrite.  Much smaller and faster.
1635         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1636
1637         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1638         ss_flags from the correct location.
1639
1640 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1641
1642         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1643         * sysdeps/i386/i686/cacheinfo.c: New file.
1644         * sysdeps/i386/i686/multiarch/Makefile: New file.
1645         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1646         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1647         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1648         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1649         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1650         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1651         (__cpuid_count): New. Provide the default.
1652         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1653         (__x86_64_preferred_memory_instruction): Define only if
1654         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1655         (intel_check_word): Use __cpuid.
1656         (handle_intel): Likewise.
1657         (handle_amd): Likewise.
1658         (__cache_sysconf): Likewise.
1659         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1660         (__cache_sysconf): Likewise.
1661         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1662         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1663         (get_common_indeces): Use __cpuid.
1664         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1665         if ENABLE_SSSE3_ON_ATOM is not defined.
1666         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1667         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1668         popcnt instead of popcntq.
1669
1670 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1671
1672         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1673
1674 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1675
1676         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1677         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1678         which always causes a compile error.
1679
1680         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1681
1682         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1683         comes from...
1684         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1685         which always causes a compile error.
1686
1687         * debug/Makefile (tests): Add tst-longjmp_chk2.
1688         * debug/tst-longjmp_chk2.c: New file.
1689
1690         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1691         Remove incorrect use of BP_SYM.
1692         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1693         here now since it is more complex than just a simple check.
1694
1695         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1696         we make no more progress.
1697
1698 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1699
1700         * math/s_fma.c: Don't define alias if __fma is a macro.
1701         * math/s_fmaf.c: Likewise.
1702         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1703         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1704         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1705
1706         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1707         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1708         New macro HAS_FMA.
1709         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1710         function.
1711         * include/libc-symbols.h (libm_ifunc): Define.
1712         * sysdeps/x86_64/multiarch/Versions: New file.
1713
1714         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1715
1716 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1717
1718         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1719
1720 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1721
1722         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1723         call that registers used in calling conventions need to be preserved.
1724         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1725         to preserve register content if necessary.
1726         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1727         (_dl_x86_64_restore_sse): New function.
1728         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1729         is allowed to modify xmm/ymm registers.
1730
1731         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1732         application's perspective.
1733         * stdio-common/scanf17.c: Likewise.
1734
1735 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1736
1737         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1738         size to memsz.
1739         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1740         here.
1741         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1742         two steps to catch bugs.
1743
1744 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1745
1746         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1747         determines which files are used in runtime lookups and only checks
1748         those for SSE use.
1749         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1750         testing.
1751         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1752         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1753         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1754         take a while.
1755
1756         * elf/dl-open.c: Move _dl_scope_free to...
1757         * elf/dl-scope.c: ...here.  New file.
1758         * elf/Makefile (dl-routines): Add scope.
1759
1760         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1761         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1762         RES_USE_DNSSEC.
1763         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1764         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1765         all the places we handled RES_USE_EDNS0 only before.
1766         Patch by Adam Tkac <atkac@redhat.com>.
1767
1768 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1769
1770         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1771         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1772         Update size when reallocating.
1773
1774 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1775
1776         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1777         functions used in ld.so modify xmm/ymm registers.
1778         * sysdeps/x86_64/Makefile:  Hook new test up.
1779         * sysdeps/x86_64/rtld-memchr.c: New file.
1780         * sysdeps/x86_64/rtld-memcmp.c: New file.
1781         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1782         * sysdeps/x86_64/rtld-strchr.S: New file.
1783         * sysdeps/x86_64/rtld-strlen.S: New file.
1784         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1785         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1786
1787 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1788
1789         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1790         strncmp-c.
1791         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1792         (exit): Likewise.
1793         (Byte1): Likewise.
1794         (Byte2): Likewise.
1795         (Byte3): Likewise.
1796         (Byte4): Likewise.
1797         (Byte5): Likewise.
1798         (Byte6): Likewise.
1799         (next_8_bytes): Likewise.
1800         (Byte0): Remove commented out codes.
1801         (unaligned_table): Align jump table at 8 bytes.
1802         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1803         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1804         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1805         * sysdeps/x86_64/strncmp.S: New file.
1806
1807 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1808
1809         [BZ #10422]
1810         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1811         kernels, dropped when eventfd2 support was added.
1812         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1813         kernels, dropped when signalfd4 support was added.
1814         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1815         added, name them.
1816
1817         [BZ #10452]
1818         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1819         replies up.
1820
1821         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1822
1823 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1824
1825         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1826         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1827
1828         [BZ #10448]
1829         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1830         callback we must touch the status to avoid using stale value.
1831
1832         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1833         compiled in.
1834
1835 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1836
1837         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1838         /lib/modules/* headers anymore.  We have sane headers in the standard
1839         place now.
1840
1841 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1842
1843         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1844         "etf3enh" and "highgprs" added.
1845         (_dl_s390_platforms): "z10" added.
1846         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1847         Increased for the new entries.
1848         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1849         HWCAP_S390_HIGH_GPRS added.
1850
1851         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1852         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1853         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1854         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1855         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1856
1857 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1858
1859         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1860         avoid additional cpuid instructions.  Most of the information is
1861         stored somewhere.
1862
1863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1864         cache descriptors.
1865         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1866
1867         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1868         SSSE3 bit for Atoms.
1869         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1870         here anymore.
1871
1872         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1873         structure before copying it to avoid warning.
1874         * posix/tst-rfc3484-2.c (do_test): Likewise.
1875         * posix/tst-rfc3484-3.c (do_test): Likewise.
1876
1877         [BZ #10416]
1878         * include/unistd.h: Make header file suitable for C++ test cases.
1879         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1880
1881         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1882         stack alignment in the exit code.
1883
1884         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1885         potentially be zero.
1886
1887         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1888         unique symbol definition.
1889         Patch by Jakub Jelinek.
1890         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1891         make sure the object with the definition cannot be unloaded.  Adjust
1892         a few types.
1893         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1894         the unique symbol hash table should not be const.
1895
1896 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1897
1898         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1899         unnecesary variables.  Comment fixes.
1900
1901 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1904         Use NONASCII_CASE information provided by the locale to determine
1905         whether optimized string load function can be used.  Minor cleanups.
1906
1907 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1908
1909         * string/strcasestr.c (STRCASESTR): New macro.
1910         (__strcasestr): Renamed to ..
1911         (STRCASESTR): ...this.
1912         * string/strstr.c (STRSTR): New macro.
1913         (strstr): Renamed to ..
1914         (STRSTR): ...this.
1915         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1916         strstr-c strcasestr-c
1917         (CFLAGS-strstr.c): New.
1918         (CFLAGS-strcasestr.c): Likewise.
1919         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1920         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1921         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1922         * sysdeps/x86_64/multiarch/strstr.c: New file.
1923
1924 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1925
1926         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1927         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1928         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1929         _NL_CTYPE_NONASCII_CASE.
1930         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1931         field.
1932         (ctype_finish): Check whether there are any 8-bit characters outside
1933         the range ASCII has or whether the mapping isn't the same as for
1934         ASCII (±0x20).  Set nonascii_case appropriately.
1935         (ctype_output): Add output handler for nonascii_case.
1936
1937 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1938
1939         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1940         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1941
1942 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1943
1944         [BZ #10360]
1945         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1946         0xffff in the EDNS0 record.
1947
1948 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1951         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1952         is written before the list head update.
1953         Patch by Andreas Schwab <aschwab@redhat.com>.
1954
1955 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1956             Jakub Jelinek  <jakub@redhat.com>
1957
1958         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1959         corruption thread-safe.
1960
1961 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1962
1963         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1964         overrides atomic_compare_and_exchange_val_rel, define to
1965         atomic_compare_and_exchange_val_rel by default, otherwise default
1966         to catomic_compare_and_exchange_val_acq.
1967         (catomic_compare_and_exchange_bool_rel): If arch overrides
1968         atomic_compare_and_exchange_bool_rel, define to
1969         atomic_compare_and_exchange_bool_rel by default.
1970         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1971         Use catomic_compare_and_exchange_val_rel instead of
1972         catomic_compare_and_exchange_val_acq.
1973
1974 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1975
1976         * sysdeps/generic/ldsodefs.h: Add prototype for
1977         _dl_higher_prime_number.
1978         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1979
1980         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1981         restoring of ymm registers a bit.
1982
1983 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1984
1985         * sysdeps/x86_64/memcmp.S: New file.
1986
1987 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1988
1989         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1990         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1991         pointers in writable memory.
1992
1993 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1994
1995         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1996         * config.make.in: Add config-cflags-avx entry.
1997         * configure.in: Substitute libc_cv_cc_avx.
1998         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1999         * elf/tst-audit4.c: New file.
2000         * elf/tst-audit5.c: New file.
2001         * elf/tst-auditmod4a.c: New file.
2002         * elf/tst-auditmod4b.c: New file.
2003         * elf/tst-auditmod5a.c: New file.
2004         * elf/tst-auditmod5b.c: New file.
2005         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2006         link-defines.sym.
2007         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2008         (La_x86_64_vector): Likewise.
2009         (La_x86_64_regs): Append lr_vector.
2010         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2011         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2012         saving and restoring SSE registers to ...
2013         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2014         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2015         <link-defines.h>.
2016         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2017         La_x86_64_regs.  Allocate extra space and jump to memory at
2018         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2019         (save_and_restore_vector_sse): New.
2020         (save_and_restore_vector_avx): Likewise.
2021         (check_avx): Likewise.
2022         (save_and_restore_vector): Likewise.
2023         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2024         HAVE_AVX_SUPPORT.
2025         * sysdeps/x86_64/link-defines.sym: New file.
2026
2027 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2028
2029         * elf/do-lookup.h: Removed after folding content into...
2030         * elf/dl-lookup.c: ...here.
2031
2032         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2033
2034 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2035
2036         * configure.in: Check for gnu_unique_symbol symbol type.
2037         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2038         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2039         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2040         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2041         change.
2042         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2043         unique symbol table.
2044         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2045         for first namespace.
2046         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2047         unique symbol hash table.
2048         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2049         * elf/tst-unique1.c: New file.
2050         * elf/tst-unique1mod1.c: New file.
2051         * elf/tst-unique1mod2.c: New file.
2052         * elf/tst-unique2.c: New file.
2053         * elf/tst-unique2mod1.c: New file.
2054         * elf/tst-unique2mod2.c: New file.
2055
2056 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2057
2058         * elf/elf.h (STB_GNU_UNIQUE): Define.
2059
2060         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2061         from...
2062         * include/inline-hashtab.h: ...here.
2063         (htab_expand): Adjust for renamed function.  Correct memory handling.
2064
2065 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2066
2067         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2068
2069 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2070
2071         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2072         (PPC_FEATURE_HAS_VSX): Likewise.
2073
2074 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2075
2076         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2077         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2078
2079         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2080         aligned to 16 byte boundaries.
2081         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2082         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2083         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2084
2085 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2086
2087         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2088         * config.make.in (config-cflags-sse4): New variable.
2089         * configure.in: Substitute libc_cv_cc_sse4.
2090         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2091         HAVE_SSE4_SUPPORT.
2092         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2093         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2094         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2095         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2096         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2097         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2098         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2099         * sysdeps/x86_64/multiarch/strspn.S: New file.
2100
2101 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2102
2103         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2104         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2105         (tests): Add tst-audit3 for x86_64.
2106         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2107         ($(objpfx)tst-audit3): Define.
2108         ($(objpfx)tst-audit3.out): Define.
2109         (tst-audit3-ENV): Define.
2110         * elf/tst-audit3.c: New file.
2111         * elf/tst-auditmod3a.c: New file.
2112         * elf/tst-auditmod3b.c: New file.
2113         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2114         and restore xmm6.
2115
2116         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2117         (__stpncpy): Renamed to ...
2118         (STPNCPY): This.
2119         (stpncpy): Create alias only if STPNCPY is not defined.
2120         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2121         defined.
2122         (strncpy): Renamed to ...
2123         (STRNCPY): This.
2124         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2125          stpncpy-c strncpy-c for string.
2126         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2127         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2128         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2129         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2130         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2131         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2132
2133 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2134
2135         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2136         adding to fast bin list.
2137
2138 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2139
2140         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2141         inet_makeaddr.  This worked only with class-based networks.
2142         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2143         Likewise.
2144
2145         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2146         recognize all types.
2147         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2148         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2149         be in host byte order.
2150
2151 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2152
2153         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2154         (MODEL_OFFSET): Define.
2155         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2156         family and model.
2157         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2158         out common code into new function get_common_indeces. Determine
2159         extended family and model for Intel processors.
2160
2161 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2162
2163         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2164         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2165         option.
2166         * resolv/res_send.c (reopen): New function.  Broken out of...
2167         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2168         fallback mechanism.  If single-request fails switch to
2169         single-request-reopen mode which opens a new socket for the second
2170         request.
2171
2172 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2173
2174         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2175         (CHECK_SP): Use it.
2176
2177 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2178
2179         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2180         for saved registers.
2181         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2182         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2183         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2184
2185 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2186
2187         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2188
2189 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2190
2191         * po/id.po: Update from translation team.
2192
2193         * po/bg.po: Update from translation team.
2194
2195 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2196
2197         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2198         defined.
2199         (strncmp): Renamed to STRNCMP.
2200         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2201         strncmp-c for string.
2202         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2203         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2204         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2205         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2206
2207 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2208
2209         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2210         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2211         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2212         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2213         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2214         ifuncmain7static.c.
2215         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2216         ifuncmain7static, and ifuncmain7picstatic.
2217         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2218         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2219         $(objpfx)ifuncmain7pie.out.
2220         (modules-names): Add ifuncmod5 ifuncmod6
2221         (ifuncmod5.so-no-z-defs): Define.
2222         (ifuncmod6.so-no-z-defs): Define.
2223         (CFLAGS-ifuncmain5pic.c): Define.
2224         (CFLAGS-ifuncmain5picstatic.c): Define.
2225         (CFLAGS-ifuncmain5staticpic.c): Define.
2226         (CFLAGS-ifuncdep5pic.c): Define.
2227         (CFLAGS-ifuncmain7pic.c): Define.
2228         (CFLAGS-ifuncmain7picstatic.c): Define.
2229         (CFLAGS-ifuncmain1staticpie.c): Define.
2230         (CFLAGS-ifuncmain5pie.c): Define.
2231         (CFLAGS-ifuncmain6pie.c): Define.
2232         (CFLAGS-ifuncmain7pie.c): Define.
2233         ($(objpfx)ifuncmain1staticpie.out): Define.
2234         ($(objpfx)ifuncmain1staticpie): Define.
2235         ($(objpfx)ifuncmain5pie.out): Define.
2236         ($(objpfx)ifuncmain5pie): Define.
2237         ($(objpfx)ifuncmain6pie.out): Define.
2238         ($(objpfx)ifuncmain6pie): Define.
2239         ($(objpfx)ifuncmain5): Define.
2240         ($(objpfx)ifuncmain5pic): Define.
2241         ($(objpfx)ifuncmain5static): Define.
2242         ($(objpfx)ifuncmain5staticpic): Define.
2243         ($(objpfx)ifuncmain5picstatic): Define.
2244         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2245         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2246         ifuncmain6pie.out.
2247         * elf/b/elf/ifuncmain1staticpie.c: New file.
2248         * elf/ifuncdep5.c: New file.
2249         * elf/ifuncdep5pic.c: New file.
2250         * elf/ifuncmain5.c: New file.
2251         * elf/ifuncmain5pic.c: New file.
2252         * elf/ifuncmain5picstatic.c: New file.
2253         * elf/ifuncmain5pie.c: New file.
2254         * elf/ifuncmain5static.c: New file.
2255         * elf/ifuncmain5staticpic.c: New file.
2256         * elf/ifuncmain6pie.c: New file.
2257         * elf/ifuncmain7.c: New file.
2258         * elf/ifuncmain7pic.c: New file.
2259         * elf/ifuncmain7picstatic.c: New file.
2260         * elf/ifuncmain7pie.c: New file.
2261         * elf/ifuncmain7static.c: New file.
2262         * elf/ifuncmod5.c: New file.
2263         * elf/ifuncmod6.c: New file.
2264
2265 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2266
2267         [BZ #10085]
2268         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2269         (nss_endgrent): New variable.
2270         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2271         fields. Change type of files to bool and adjust all users.
2272         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2273         (internal_endgrent): Call nss_endgrent if necessary.
2274         (add_group): New function.  Broken out of...
2275         (check_and_add_group): ...here.
2276         (getgrent_next_nss): Remove test that any callback is available.
2277         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2278         callback.  If there is no blacklist we can trust the results returned
2279         by the initgroups_dyn callback.  In case there is a callback and we
2280         find a group entry for the group ID but it doesn't contain the
2281         correct member, switch to the slow mode and use getgrent_r.
2282         (internal_getgrent_r): When we see a +: entry, determine whether
2283         there is any callback and which we can use the initgroups_dyn
2284         callback.
2285
2286 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2287
2288         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2289         (_int_free): Likewise.
2290
2291         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2292         AF_IEEE802154.
2293         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2294         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2295         and ARPHRD_IEEE802154_PHY.
2296
2297         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2298         relative to generic Linux version.
2299
2300 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2301
2302         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2303         ($(objpfx)ifuncmain1vispie): Likewise.
2304
2305 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * login/Makefile: Build pt_chown as PIE.
2308
2309 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2310
2311         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2312         a format string.
2313         * elf/sln.c (usage): Likewise.
2314         * malloc/memusage.sh (do_help): Likewise.
2315         * nss/getent.c (more_help): Likewise.
2316         * posix/getconf.c (main): Likewise.
2317         * sunrpc/rpcinfo.c (usage): Likewise.
2318         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2319
2320 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2321
2322         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2323         those needed.
2324         * login/Makefile: If necessary link pt_chown with -lcap.
2325         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2326         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2327
2328 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2329
2330         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2331         comparisons.
2332         * string/test-memchr.c (do_random_tests): Test very large lengths
2333         as well.
2334
2335 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2336
2337         * Makeconfig (+link-pie): Define.
2338         (+prectorS): Define.
2339         (+postctorS): Define.
2340         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2341         * nscd/Makefile ($(objpfx)nscd): Likewise.
2342
2343 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2344
2345         [BZ #10107]
2346         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2347         with cmplwi.
2348         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2349
2350 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2351
2352         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2353         into ...
2354         * sysdeps/unix/grantpt.c: ...here.
2355
2356 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2357
2358         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2359         chmod if it is necessary.
2360
2361         [BZ #10166]
2362         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2363         when the slave device is in devpts or devfs.
2364
2365         [BZ #10183]
2366         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2367
2368         [BZ #10195]
2369         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2370         of nd_opt_home_agent_info_preference to uint16_t.
2371         Patch by Arnaud Ebalard <arno@natisbad.org>.
2372
2373         [BZ #10207]
2374         * nss/getent.c: Add support for printing gshadow data.
2375
2376         [BZ #10203]
2377         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2378         not just the currently used one and those which follow.
2379         Patch by Joe Landers <jlanders@vmware.com>.
2380
2381         [BZ #10196]
2382         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2383         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2384         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2385
2386         [BZ #10217]
2387         * stdlib/abort.c: Define variable __abort_msg.
2388         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2389         * include/stdlib.h: Declare __abort_msg.
2390         * assert/assert-perr.c: Don't free buffer for message immediately.
2391         Store atomically in __abort_msg and free old buffer if necessary.
2392         * assert/assert.c: Likewise.
2393         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2394         store pointer in __abort_msg, and possibly free old string.
2395         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2396
2397         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2398
2399         [BZ #10211]
2400         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2401         handle leap seconds if they are available.
2402         Patch by Akinori Hattori <hattya@gentoo.org>.
2403
2404         * timezone/tzselect.ksh: Update from tzcode2009i.
2405         * timezone/zdump.c: Likewise.
2406         * timezone/zic.c: Likewise.
2407
2408         * timezone/africa: Update from tzdata2009i.
2409         * timezone/antarctica: Likewise.
2410         * timezone/asia: Likewise.
2411         * timezone/australasia: Likewise.
2412         * timezone/backward: Likewise.
2413         * timezone/etcetera: Likewise.
2414         * timezone/europe: Likewise.
2415         * timezone/factory: Likewise.
2416         * timezone/iso3166.tab: Likewise.
2417         * timezone/leapseconds: Likewise.
2418         * timezone/northamerica: Likewise.
2419         * timezone/pacificnew: Likewise.
2420         * timezone/solar87: Likewise.
2421         * timezone/solar88: Likewise.
2422         * timezone/solar89: Likewise.
2423         * timezone/southamerica: Likewise.
2424         * timezone/systemv: Likewise.
2425         * timezone/yearistype: Likewise.
2426         * timezone/zone.tab: Likewise.
2427
2428 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2429
2430         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2431         STT_GNU_IFUNC symbol or in 8 into type_class.
2432
2433         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2434         instead of Elf64_Addr.
2435
2436 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2437
2438         * po/sv.po: Update from translation team.
2439
2440         [BZ #10229]
2441         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2442         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2443         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2444         the C version.
2445
2446 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2447
2448         * Versions.def: Add GLIBC_2.11 for libpthread.
2449
2450 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2451
2452         * resolv/res_send.c (send_dg): Remember we switched to
2453         single-request mode.
2454
2455 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2456
2457         * dlfcn/dlfcn.h: Remove comma at end of enum.
2458         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2459
2460         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2461         parsing mode string.
2462
2463 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2464
2465         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2466
2467         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2468
2469         * sysdeps/x86_64/multiarch/strlen.S: New file.
2470         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2471         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2472         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2473         content.
2474
2475         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2476         is defined.
2477
2478 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2479
2480         * sysdeps/x86_64/strlen.S: Minor optimizations.
2481
2482 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2483
2484         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2485         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2486         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2487         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2488         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2489         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2490         ifuncmain3.c, ifuncmod3.c,.
2491         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2492         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2493         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2494         ifuncmain4picstatic.
2495         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2496         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2497         ifuncmain3, ifuncmain4.
2498         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2499         $(objpfx)ifuncmain1vispie.out.
2500         (modules-names): Add ifuncmod1 ifuncmod3.
2501         (generated): Add ifuncmain1pie ifuncmain1pie.out
2502         ifuncmain1vispie ifuncmain1vispie.out.
2503         Define rules to build and run the tests.
2504         * elf/ifuncdep1.c: New file.
2505         * elf/ifuncdep1pic.c: New file.
2506         * elf/ifuncdep2.c: New file.
2507         * elf/ifuncdep2pic.c: New file.
2508         * elf/ifuncmain1.c: New file.
2509         * elf/ifuncmain1pic.c: New file.
2510         * elf/ifuncmain1picstatic.c: New file.
2511         * elf/ifuncmain1pie.c: New file.
2512         * elf/ifuncmain1static.c: New file.
2513         * elf/ifuncmain1staticpic.c: New file.
2514         * elf/ifuncmain1vis.c: New file..
2515         * elf/ifuncmain1vispic.c: New file..
2516         * elf/ifuncmain1vispie.c: New file.
2517         * elf/ifuncmain2.c: New file.
2518         * elf/ifuncmain2pic.c: New file.
2519         * elf/ifuncmain2picstatic.c: New file.
2520         * elf/ifuncmain2static.c: New file.
2521         * elf/ifuncmain3.c: New file.
2522         * elf/ifuncmain4.c: New file.
2523         * elf/ifuncmain4picstatic.c: New file.
2524         * elf/ifuncmain4static.c: New file.
2525         * elf/ifuncmod1.c: New file.
2526         * elf/ifuncmod3.c: New file.
2527
2528 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2529
2530         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2531
2532 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2533
2534         [BZ #10221]
2535         * posix/Makefile (routines): Add execvpe.
2536         * posix/Versions: Export execvpe for GLIBC_2.11.
2537         * posix/execvp.c: Now only a wrapper.  Move code to...
2538         * posix/execvpe.c: ...here.  New file.
2539         * posix/unistd.h: Declare execvpe.
2540
2541 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2542
2543         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2544         for STT_GNU_IFUNC handling for efficiency.
2545         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2546
2547         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2548         _exit.
2549         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2550
2551 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2552
2553         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2554         for !SHARED.
2555
2556 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2557
2558         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2559         is not defined.
2560         (__rela_iplt_start): New declaration.
2561         (__rela_iplt_end): Likewise.
2562         (__rel_iplt_start): Likewise.
2563         (__rel_iplt_end): Likewise.
2564         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2565         * elf/elf.h (R_386_IRELATIVE): New macro.
2566         (R_X86_64_IRELATIVE): New macro.
2567         (R_386_NUM): Updated.
2568         (R_X86_64_NUM): Likewise.
2569         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2570         (libc_ifunc_hidden_def): New macro.
2571         * sysdeps/generic/dl-irel.h: New file.
2572         * sysdeps/i386/dl-irel.h: New file.
2573         * sysdeps/x86_64/dl-irel.h: New file.
2574         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2575         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2576         Handle R_386_IRELATIVE.
2577         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2578         (elf_machine_lazy_rela): Likewise.
2579         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2580         R_X86_64_IRELATIVE.
2581         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2582
2583 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2584
2585         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2586         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2587         are no differences.  If an architecture has bits in CPUID index 1
2588         meaning different things the values for the COMMON_CPUID_INDEX_1
2589         index must not be set.
2590         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2591         (HAS_POPCOUNT): ...this.  New macro.
2592         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2593         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2594         to set the value for Intel and AMD architectures.
2595         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2596         INTEL_CPUID_INDEX_1.
2597         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2598         change.
2599
2600 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2601
2602         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2603         and $build.
2604
2605 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2606
2607         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2608         (__expm1l): Set errno to ERANGE on overflow.
2609         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2610         (__tanl): Set errno to EDOM for Â±Inf.
2611         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2612         (__cosl): Set errno to EDOM for Â±Inf.
2613         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2614         (__sinl): Set errno to EDOM for Â±Inf.
2615
2616         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2617         defined, use it.
2618         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2619         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2620         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2621
2622 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2623
2624         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2625         code accessing it.
2626         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2627
2628 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2629
2630         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2631         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2632         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2633         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2634
2635         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2636         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2637         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2638         defined.
2639         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2640         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2641
2642 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2643
2644         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2645         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2646         is, either do nothing at all if __ASSUME_ACCEPT4, or
2647         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2648         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2649         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2650         define.
2651         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2652         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2653         internal_accept4 in socket directory.
2654
2655 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2656
2657         * sysdeps/ia64/configure.in: New file.
2658
2659 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2660
2661         [BZ #10162]
2662         * sysdeps/ia64/memchr.S: Use speculative load.
2663
2664         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2665         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2666         use it.
2667
2668         * sysdeps/i386/__longjmp.S: Add .text.
2669         * sysdeps/x86_64/__longjmp.S: Likewise.
2670
2671 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2672
2673         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2674         __ASSUME_ACCEPT4 for IA-64.
2675
2676 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2677
2678         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2679
2680         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2681         (SOCKOP_accept4): Define.
2682
2683 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2684
2685         Sun approved the change of the license.
2686         * sunrpc/auth_des.c: Replace license text.
2687         * sunrpc/auth_none.c: Likewise.
2688         * sunrpc/auth_unix.c: Likewise.
2689         * sunrpc/authdes_prot.c: Likewise.
2690         * sunrpc/authuxprot.c: Likewise.
2691         * sunrpc/bindrsvprt.c: Likewise.
2692         * sunrpc/clnt_gen.c: Likewise.
2693         * sunrpc/clnt_perr.c: Likewise.
2694         * sunrpc/clnt_raw.c: Likewise.
2695         * sunrpc/clnt_simp.c: Likewise.
2696         * sunrpc/clnt_tcp.c: Likewise.
2697         * sunrpc/clnt_udp.c: Likewise.
2698         * sunrpc/clnt_unix.c: Likewise.
2699         * sunrpc/des_crypt.c: Likewise.
2700         * sunrpc/des_soft.c: Likewise.
2701         * sunrpc/get_myaddr.c: Likewise.
2702         * sunrpc/getrpcport.c: Likewise.
2703         * sunrpc/key_call.c: Likewise.
2704         * sunrpc/key_prot.c: Likewise.
2705         * sunrpc/openchild.c: Likewise.
2706         * sunrpc/pm_getmaps.c: Likewise.
2707         * sunrpc/pm_getport.c: Likewise.
2708         * sunrpc/pmap_clnt.c: Likewise.
2709         * sunrpc/pmap_prot.c: Likewise.
2710         * sunrpc/pmap_prot2.c: Likewise.
2711         * sunrpc/pmap_rmt.c: Likewise.
2712         * sunrpc/rpc/auth.h: Likewise.
2713         * sunrpc/rpc/auth_unix.h: Likewise.
2714         * sunrpc/rpc/clnt.h: Likewise.
2715         * sunrpc/rpc/des_crypt.h: Likewise.
2716         * sunrpc/rpc/key_prot.h: Likewise.
2717         * sunrpc/rpc/netdb.h: Likewise.
2718         * sunrpc/rpc/pmap_clnt.h: Likewise.
2719         * sunrpc/rpc/pmap_prot.h: Likewise.
2720         * sunrpc/rpc/pmap_rmt.h: Likewise.
2721         * sunrpc/rpc/rpc.h: Likewise.
2722         * sunrpc/rpc/rpc_des.h: Likewise.
2723         * sunrpc/rpc/rpc_msg.h: Likewise.
2724         * sunrpc/rpc/svc.h: Likewise.
2725         * sunrpc/rpc/svc_auth.h: Likewise.
2726         * sunrpc/rpc/types.h: Likewise.
2727         * sunrpc/rpc/xdr.h: Likewise.
2728         * sunrpc/rpc_clntout.c: Likewise.
2729         * sunrpc/rpc_cmsg.c: Likewise.
2730         * sunrpc/rpc_common.c: Likewise.
2731         * sunrpc/rpc_cout.c: Likewise.
2732         * sunrpc/rpc_dtable.c: Likewise.
2733         * sunrpc/rpc_hout.c: Likewise.
2734         * sunrpc/rpc_main.c: Likewise.
2735         * sunrpc/rpc_parse.c: Likewise.
2736         * sunrpc/rpc_parse.h: Likewise.
2737         * sunrpc/rpc_prot.c: Likewise.
2738         * sunrpc/rpc_sample.c: Likewise.
2739         * sunrpc/rpc_scan.c: Likewise.
2740         * sunrpc/rpc_scan.h: Likewise.
2741         * sunrpc/rpc_svcout.c: Likewise.
2742         * sunrpc/rpc_tblout.c: Likewise.
2743         * sunrpc/rpc_util.c: Likewise.
2744         * sunrpc/rpc_util.h: Likewise.
2745         * sunrpc/rpcinfo.c: Likewise.
2746         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2747         * sunrpc/rpcsvc/key_prot.x: Likewise.
2748         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2749         * sunrpc/rpcsvc/mount.x: Likewise.
2750         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2751         * sunrpc/rpcsvc/rex.x: Likewise.
2752         * sunrpc/rpcsvc/rstat.x: Likewise.
2753         * sunrpc/rpcsvc/rusers.x: Likewise.
2754         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2755         * sunrpc/rpcsvc/spray.x: Likewise.
2756         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2757         * sunrpc/rtime.c: Likewise.
2758         * sunrpc/svc.c: Likewise.
2759         * sunrpc/svc_auth.c: Likewise.
2760         * sunrpc/svc_authux.c: Likewise.
2761         * sunrpc/svc_raw.c: Likewise.
2762         * sunrpc/svc_run.c: Likewise.
2763         * sunrpc/svc_simple.c: Likewise.
2764         * sunrpc/svc_tcp.c: Likewise.
2765         * sunrpc/svc_udp.c: Likewise.
2766         * sunrpc/svc_unix.c: Likewise.
2767         * sunrpc/svcauth_des.c: Likewise.
2768         * sunrpc/xcrypt.c: Likewise.
2769         * sunrpc/xdr.c: Likewise.
2770         * sunrpc/xdr_array.c: Likewise.
2771         * sunrpc/xdr_float.c: Likewise.
2772         * sunrpc/xdr_mem.c: Likewise.
2773         * sunrpc/xdr_rec.c: Likewise.
2774         * sunrpc/xdr_ref.c: Likewise.
2775         * sunrpc/xdr_sizeof.c: Likewise.
2776         * sunrpc/xdr_stdio.c: Likewise.
2777
2778         * po/da.po: Update from translation team.
2779
2780 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2781
2782         * sysdeps/sh/____longjmp_chk.S: New file.
2783         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2784         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2785
2786 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2787             Ulrich Drepper  <drepper@redhat.com>
2788
2789         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2790         (__nscd_cache_search): Assume each entry in the
2791         hash chain needs one hashentry and half of datahead.  Use
2792         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2793
2794 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2795
2796         * posix/sys/wait.h: Fix typos.  Pretty printing.
2797         * stdlib/stdlib.h: Likewise.  Correct comments.
2798
2799         [BZ #10159]
2800         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2801
2802         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2803         patch.
2804
2805 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2806
2807         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2808         Use it if we absolutely cannot reach any more correct list elements
2809         because that many do not fit into the currently mapped database.
2810
2811 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2812
2813         * nscd/nscd_helper.c: Include stddef.h.
2814         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2815         in a couple of places.  Return NULL if trail is not less than
2816         datasize, don't consider dataheads with length smaller than
2817         offsetof (struct datahead, data) + datalen.
2818         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2819         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2820         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2821         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2822         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2823         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2824         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2825
2826         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2827         Rename ...
2828         (fallocate64): ... to this.
2829         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2830         Rename ...
2831         (fallocate64): ... to this.
2832         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2833         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2834         fallocate64@@GLIBC_2.10.
2835         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2836         fallocate64@@GLIBC_2.11.
2837         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2839         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2840         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2841
2842         * nscd/selinux.c (nscd_avc_destroy): Removed.
2843         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2844         * nscd/nscd.c (termination_handler): Don't call
2845         nscd_avc_destroy.
2846
2847 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2848
2849         * include/atomic.h: Formatting.
2850         (catomic_compare_and_exchange_val_acq): Don't define if already
2851         defined by bits/atomic.h.
2852
2853 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * math/libm-test.inc (expm1_test): Add test for range error.
2856
2857         * Versions.def: Add GLIBC_2.11 for libc.
2858         * debug/Makefile (routines): Add longjmp_chk.
2859         Add rules to build and run tst-longjmp_chk.
2860         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2861         * debug/longjmp_chk.c: New file.
2862         * debug/tst-longjmp_chk.c: New file.
2863         * include/bits/setjmp2.: New file.
2864         * include/stdio.h: Mark __fortify_fail as internal_function.
2865         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2866         * setjmp/bits/setjmp2.h: New file.
2867         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2868         of the aliases.
2869         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2870         defined.
2871         * sysdeps/i386/____longjmp_chk.S: New file.
2872         * sysdeps/x86_64/____longjmp_chk.S: New file.
2873         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2874         * sysdeps/x86_64/__longjmp.S: Likewise.
2875
2876         * version.h: Bump for 2.11 development.
2877
2878         * elf/check-execstack.c: New file.
2879         * elf/Makefile: Add rules to build and run check-execstack.
2880
2881 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2882
2883         * version.h (VERSION): Bump to 2.10.1.
2884
2885         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2886         compatibility functions.
2887         * nss/getXXent_r.c: Likewise.
2888         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2889         * gshadow/getsgnam_r.c: Likewise.
2890         * gshadow/Version: Remove duplicate entries.
2891
2892         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2893         for recent processor.
2894         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2895         Likewise.
2896
2897 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2898
2899         * version.h (VERSION): Bump for 2.10 release.
2900         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2901
2902         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2903         same place we add ASFLAGS-config.
2904
2905 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2906
2907         [BZ #10128]
2908         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2909         or FORMERR and the other NOERROR, don't raise an error.
2910
2911 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2912
2913         [BZ #10118]
2914         * Makeconfig (+asflags): New variable based upon ASFLAG or
2915         asflags-cpu.
2916         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2917         * config.make.in (asflags-cpu): Add variable based upon
2918         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2919         the assembler.
2920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2921         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2922         recognizes power6 instruction set due to passing -mcpu=power6 from
2923         --with-cpu=power6 when compiling .S files.
2924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2925         Likewise.
2926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2927         Likewise.
2928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2929         Likewise.
2930
2931 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2932
2933         * string/stratcliff.c (do_test): Test for zero length
2934         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2935         at the end of the page.
2936
2937 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2938
2939         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2940
2941         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2942         count is zero.
2943
2944         * po/da.po: Update from translation team.
2945
2946 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2947
2948         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2949         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2950
2951 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2952
2953         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2954         and READ_IMPLIES_EXEC.
2955
2956 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2957
2958         * po/da.po: Update from translation team.
2959
2960 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2961
2962         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2963         comment change.
2964
2965 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2966
2967         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2968         to MAP_ANON in PROT_NONE mmap64 call.
2969         (open_archive): Likewise.
2970         (file_data_available_p): Use mmap64 instead of mremap.
2971         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2972         Attempt to reserve address space after mmap64 region.
2973
2974 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2975
2976         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2977         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2978         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2979
2980         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2981         atanh should set ERANGE.
2982
2983         [BZ #10087]
2984         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2985         result of lookup to make call to implement STT_GNU_IFUNC.
2986         (_dl_profile_fixup): Likewise.
2987         Patch by H.J. Lu <hjl.tools@gmail.com>.
2988
2989         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2990         warning.
2991
2992         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2993         from definition.
2994
2995         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2996         label if it is not used.
2997
2998         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2999         of gmon_hist_hdr and gmon_hdr structures and use them.
3000         * elf/sprof.c: Likewise.
3001
3002         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3003         warning.
3004
3005         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3006
3007         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3008         to avoid cast.
3009
3010         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3011         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3012         to avoid warnings.
3013         (iruserok_af): Use ss_family instead of casts.
3014
3015         * gmon/gmon.c (write_hist): Define real-type variant of
3016         gmon_hist_hdr structure and use it.
3017         (write_gmon): Likewise for gmon_hdr.
3018
3019         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3020         function if we are not going to define it.
3021         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3022
3023         * inet/inet6_option.c (option_alloc): Add temporary variable to
3024         avoid warning.
3025
3026         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3027         name of VTable element.
3028         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3029         * libio/iovsscanf.c: Likewise.
3030         * libio/vasprintf.c: Likewise.
3031         * libio/vsnprintf.c: Likewise.
3032         * stdio-common/isoc99_vsscanf.c: Likewise.
3033         * stdlib/strfmon_l.c: Likewise.
3034         * debug/vasprintf_chk.c: Likewise.
3035         * debug/vsnprintf_chk.c: Likewise.
3036         * debug/vsprintf_chk.c: Likewise.
3037
3038         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3039         function pointers.
3040
3041 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3042
3043         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3044
3045 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3048
3049         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3050         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3051         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3052         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3053         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3054         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3055         * math/libm-test.inc: Add tests for errno after tan calls with
3056         Â±Inf.
3057
3058         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3059         errno value vor pow(+-0,neg).
3060         * math/libm-test.inc (pow_test): Add tests for errno value for
3061         pole errors.
3062
3063         * math/w_fmod.c: Also handle x=±Inf as error.
3064         * math/w_fmodf.c: Likewise.
3065         * math/w_fmodl.c: Likewise.
3066         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3067         x=±Inf or y=0.
3068
3069         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3070         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3071         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3072         * sysdeps/i386/fpu/s_sin.S: Likewise.
3073         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3074         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3075         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3076         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3077         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3078         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3079         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3080         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3081         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3082         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3083         Â±Inf.
3084
3085         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3086         ERANGE for underflows.
3087         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3088
3089         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3090         the 2001 revision.
3091
3092         * libio/tst-widetext.input: Remove surrogates.
3093
3094         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3095
3096         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3097         for lgamma should set errno to ERANGE, not EDOM.
3098         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3099
3100 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3101
3102         [BZ #10093]
3103         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3104         UTF-16 surrogates.
3105
3106         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3107         space when temporarily mapping the whole content of the old file.
3108
3109         [BZ #10100]
3110         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3111         not zero.
3112
3113 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3114
3115         * iconvdata/sjis.c (BODY): Don't advance inptr before
3116         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3117         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3118         two byte chars.
3119
3120 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * locale/locarchive.h (struct locarhandle): Rename len field to
3123         mmaped and add new reserved field.
3124         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3125         (create_archive): Reserve address space and then map file into it.
3126         (open_archive): Likewise.
3127         (file_data_available_p): New function.
3128         (compare_from_file): New function.
3129         (close_archive): Adjust to member name changes.
3130         (add_locale): Before comparing locale data, check it is mapped.
3131         Otherwise fall back to reading from the file.
3132
3133 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3134
3135         * stdio-common/psiginfo.c: Include <errno.h>.
3136
3137 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3138
3139         [BZ #9920]
3140         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3141         to get consistency between 32 and 64 bit architectures.
3142
3143         [BZ #10052]
3144         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3145         directory for dummy syscall rules.
3146         Patch by Chris Steinbroner <hesh@pobox.com>.
3147
3148 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3149
3150         [BZ #10092]
3151         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3152         MNT_EXPIRE.
3153
3154 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3155
3156         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3157         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3158
3159 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3160
3161         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3162         data from vector to temporary buffer and call PWRITEV after it
3163         instead of vice versa.
3164         * sysdeps/posix/preadv.c: Fix up comment.
3165         * misc/preadv.c: Likewise.
3166         * misc/preadv64.c: Likewise.
3167         * misc/pwritev.c: Likewise.
3168         * misc/pwritev64.c: Likewise.
3169         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3170
3171 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3172
3173         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3174
3175         * shadow/Makefile (tests): Add tst-shadow.
3176         * shadow/tst-shadow.c: New file.
3177
3178         [BZ #9955]
3179         * gshadow/Makefile: New file.
3180         * gshadow/Versions: New file.
3181         * gshadow/fgetsgent.c: New file.
3182         * gshadow/fgetsgent_r.c: New file.
3183         * gshadow/getsgent.c: New file.
3184         * gshadow/getsgent_r.c: New file.
3185         * gshadow/getsgnam.c: New file.
3186         * gshadow/getsgnam_r.c: New file.
3187         * gshadow/gshadow.h: New file.
3188         * gshadow/putsgent.c: New file.
3189         * gshadow/sgetsgent.c: New file.
3190         * gshadow/sgetsgent_r.c: New file.
3191         * gshadow/tst-gshadow.c: New file.
3192         * include/gshadow.h: New file.
3193         * Makeconfig (all-subdirs): Add gshadow.
3194         * Makefile (installed-headers): Add gshadow/gshadow.h.
3195         * nss/Makefile (databases): Add sgrp.
3196         * nss/Versions: Add gshadow functions as private exports.
3197         * nss/nsswitch.conf: Add gshadow entry.
3198         * nss/sgrp-lookup.c: New file.
3199         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3200         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3201         * nss/nss_files/files-sgrp.c: New file.
3202         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3203         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3204
3205 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3206
3207         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3208         * stdio-common/reg-modifier.c: Likewise.
3209
3210 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3211
3212         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3213         is no FPU.
3214
3215 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3216
3217         [BZ #10086]
3218         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3219         headers up to 2.6.30.
3220
3221         * po/ca.po: Update from translation team.
3222
3223 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3224
3225         [BZ #10069]
3226         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3227         an object that uses static TLS if the TLS modid is higher than the
3228         reserve we always allocate.  At least for multi-threaded code.
3229
3230 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3231
3232         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3233         Numerically stable check for valid width.
3234
3235         * locale/programs/locarchive.c (open_archive): Map the entire file
3236         and not just the administrative data.
3237         (add_locale): When we find a hash sum match compare the content
3238         to be sure.
3239
3240         * malloc/malloc.c (malloc_info): Output address space information.
3241
3242 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3243
3244         * malloc/malloc.c (malloc_info): Also output system memory information.
3245
3246         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3247         architectures have preadv/pwritev in 2.6.30.
3248
3249         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3250         * sysdeps/posix/readv.c: Likewise.
3251         Reported by Markus Armbruster <armbru@redhat.com>.
3252
3253         * malloc/hooks.c (top_check): Force hook value into register.
3254
3255 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3256
3257         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3258         calls to _dl_relocate_object.
3259
3260 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3261
3262         [BZ #9957]
3263         * malloc/malloc.c (force_reg): Define.
3264         (sYSMALLOc): Load hook variable into variable
3265         before test and force into register.
3266         (sYSTRIm): Likewise.
3267         (public_mALLOc): Force hook value into register.
3268         (public_fREe): Likewise.
3269         (public_rEALLOc): Likewise.
3270         (public_mEMALIGn): Likewise.
3271         (public_vALLOc): Likewise.
3272         (public_pVALLOc): Likewise.
3273         (public_cALLOc): Likewise.
3274         (__posix_memalign): Likewise.
3275         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3276         before test and force into register.
3277         * malloc/hooks.c (top_check): Likewise.
3278         (public_sET_STATe): Pretty printing.
3279
3280         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3281         in case we only receive one reply in single-request mode.
3282
3283 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3284
3285         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3286         are dlopened in statically linked program even for __LM_ID_CALLER.
3287
3288 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3289
3290         * resolv/res_send.c (send_dg): Don't switch into single-request
3291         mode if we already are in it.
3292
3293 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3294
3295         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3296         are always at least 4 bytes in the returned line.
3297
3298 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3299
3300         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3301         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3302         instead of 8K.  Stop searching in /proc/stat after hitting first
3303         line not starting with cpu.
3304         (next_line): Truncate too long
3305         lines at buffer size * 3/4 instead of pretending there were line
3306         breaks inside of large lines.
3307
3308 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3309
3310         * sysdeps/x86_64/mp_clz_tab.c: New file.
3311
3312 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3313             Ulrich Drepper  <drepper@redhat.com>
3314
3315         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3316         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3317         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3318
3319 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3320
3321         * sysdeps/sh/libc-tls.c: New file.
3322
3323         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3324
3325 2009-04-14  Roland McGrath  <roland@redhat.com>
3326
3327         * elf/elf.h: Add various missing ARM constants, to match binutils.
3328
3329 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3330
3331         Optimizations from GMP.
3332         * sysdeps/x86_64/add_n.S: New file.
3333         * sysdeps/x86_64/addmul_1.S: New file.
3334         * sysdeps/x86_64/lshift.S: New file.
3335         * sysdeps/x86_64/mul_1.S: New file.
3336         * sysdeps/x86_64/rshift.S: New file.
3337         * sysdeps/x86_64/sub_n.S: New file.
3338         * sysdeps/x86_64/submul_1.S: New file.
3339
3340 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3341
3342         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3343         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3344         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3345         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3346
3347 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3348
3349         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3350         preadv/pwritev.
3351
3352 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3353
3354         * sysdeps/x86-64/strrchr.S: New file.
3355
3356 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3357
3358         * stdio-common/printf.h (struct printf_info): Add user element.
3359         New types printf_arginfo_size_function, printf_va_arg_function.
3360         Declare register_printf_specifier, register_printf_modifier,
3361         register_printf_type.
3362         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3363         (union printf_arg): Add pa_user element.
3364         Adjust __printf_arginfo_table type.
3365         Add __printf_va_arg_table, __printf_modifier_table,
3366         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3367         declarations.
3368         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3369         If registered arginfo call failed try normal specifier.
3370         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3371         function.
3372         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3373         * stdio-common/Versions: Export register_printf_modifier,
3374         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3375         * stdio-common/reg-modifier.c: New file.
3376         * stdio-common/reg-type.c: New file.
3377         * stdio-common/reg-printf.c (__register_printf_specifier): New
3378         function.  Mostly the old __register_printf_function function but
3379         uses locking and type of third parameter changed.
3380         (__register_printf_function): Implement using
3381         __register_printf_specifier.
3382         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3383         calls to arginfo functions.  Allocate enough memory for user-defined
3384         types.  Call new va_arg functions to get user-defined types.
3385         Try installed handlers even for existing format specifiers first.
3386
3387 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3388
3389         * sysdeps/x86_64/rawmemchr.S: New file.
3390
3391         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3392         Simplified code and possible copy problem fixed.
3393
3394         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3395         function if it is not defined.  Add some necessary casts.
3396         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3397
3398         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3399         have preadv/pwritev in 2.6.30.
3400
3401 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * malloc/malloc.c (malloc_info): New function.
3404         * malloc/malloc.h: Declare it.
3405         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3406
3407         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3408         to avoid PLT slot.
3409
3410         * malloc/malloc.c (_int_realloc): Add parameter with old block
3411         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3412         Adjust all callers.
3413         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3414
3415 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3416
3417         * sysdeps/x86_64/strchrnul.S: New file.
3418
3419         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3420         depending libcrypt on -lfreebl3.
3421
3422         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3423         preadv/pwritev in 2.6.30.
3424
3425         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3426         instead of __strcasecmp.
3427
3428         * string/stratcliff.c (do_test): Add memchr tests..
3429         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3430         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3431         first read quad word.
3432
3433 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3434
3435         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3436         * string/tst-svc.input: Add new test case.
3437         * string/tst-svc.expect: Adjust.
3438         * string/Makefile: Don't ignore tst-svc error.
3439
3440         * sysdeps/x86_64/memchr.S: New file.
3441
3442         * resolv/resolv.h (RES_SNGLKUP): Define.
3443         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3444         * resolv/res_send.c (send_dg): If we sent two requests at once and
3445         only get one reply before timeout switch to mode where we send the
3446         second request only after the first answer has been received.
3447
3448 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3449
3450         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3451         * sysdeps/x86_64/strchr.S: Likewise.
3452
3453 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3454
3455         * configure.in: We need to test for the compiler earlier.
3456
3457         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3458         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3459         GLIBC_2.10.
3460         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3461         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3462         and pwritev.
3463         * misc/preadv.c: New file.
3464         * misc/preadv64.c: New file.
3465         * misc/pwritev.c: New file.
3466         * misc/pwritev64.c: New file.
3467         * sysdeps/posx/preadv.c: New file.
3468         * sysdeps/posx/preadv64.c: New file.
3469         * sysdeps/posx/pwritev.c: New file.
3470         * sysdeps/posx/pwritev64.c: New file.
3471         * sysdeps/unix/sysv/linux/preadv.c: New file.
3472         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3473         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3474         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3475         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3476         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3477
3478         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3479         compatibility code.
3480         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3481
3482         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3483         __ASSUME_COMPLETE_READV_WRITEV.
3484         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3485         with modern kernels.
3486         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3487
3488         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3489         to free a possible malloced buffer in case of cancellation.
3490         * sysdeps/posix/writev.c: Likewise for write.
3491
3492 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3493
3494         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3495
3496         * configure.in: Recognize --enable-nss-crypt.
3497         * config.make.in: Add nss-crypt entry.
3498         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3499         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3500         and include path for NSS directory to compiler for md5-crypt,
3501         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3502         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3503         function implementation, use NSS.  Introduce wrappers around the
3504         hash function calls.  Little code size optimization.
3505         * crypt/sha256-crypt.c: Likewise.
3506         * crypt/sha512-crypt.c: Likewise.
3507         * scripts/check-local-headers.sh: Ignore nss3 directory.
3508
3509         * configure.in: Rename pic_default to libc_cv_pic_default.
3510         * config.make.in: Likewise.
3511
3512 2009-04-01  Roland McGrath  <roland@redhat.com>
3513
3514         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3515         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3516         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3517         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3518         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3519         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3520         (R_SPARC_NUM): Update.
3521         From Dave Miller <davem@davemloft.net>.
3522
3523 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3524
3525         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3526
3527 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3528
3529         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3530         those which are used.
3531         * elf/dl-addr.c: Likewise.
3532         * elf/dl-caller.c: Likewise.
3533         * elf/dl-fini.c: Likewise.
3534         * elf/dl-iteratephdr.c: Likewise.
3535         * elf/dl-libc.c: Likewise.
3536         * elf/dl-load.c: Likewise.
3537         * elf/dl-support.c: Likewise.
3538         * elf/dl-sym.c: Likewise.
3539         * elf/rtld.c: Likewise.
3540         * sysdeps/generic/ldsodefs.h: Likewise.
3541
3542         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3543         * elf/dl-minimal.c: Likewise.
3544         * elf/dl-misc.c: Likewise.
3545         * elf/rtld.c: Likewise.
3546         * sysdeps/generic/ldsodefs.h: Likewise.
3547
3548 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3549
3550         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3551         Avoid reuse of complex expression.
3552
3553         * po/fr.po: Update from translation team.
3554
3555 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3556
3557         * include/dirent.h: Yet more changes to match sort function type
3558         change.
3559         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3560         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3561         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3562
3563 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3564
3565         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3566
3567 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3568
3569         * nscd/connections.c (restart): Try to preserve the process name
3570         by reading the /proc/self/exe symlink and using the return name.
3571         Patch by Jeff Bastian <jbastian@redhat.com>.
3572
3573 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3574
3575         [BZ #9733]
3576         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3577         if we are not loading a new audit library.
3578         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3579         Only use profiling trampoline for auditing if we are not relocating
3580         an audit library.
3581         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3582         * elf/rtld.c: Likewise.
3583         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3584
3585         * elf/rtld.c (dl_main): Extend help message for --audit option.
3586
3587         [BZ #9759]
3588         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3589         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3590         * dirent/alphasort.c: Adjust implementation to type change.
3591         * dirent/alphasort64.c: Likewise.
3592         * dirent/scandir.c: Likewise.
3593         * dirent/versionsort.c: Likewise.
3594         * dirent/versionsort64.c: Likewise.
3595         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3596         declaration.
3597         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3598         declaration.
3599
3600         [BZ #9880]
3601         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3602         correctly.  Set segleft member in output as required.
3603         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3604         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3605
3606         [BZ #9881]
3607         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3608         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3609         * inet/Makefile (tests): Add tst-inet6_rth.
3610         * inet/tst-inet6_rth.c: New file.
3611
3612         [BZ #5807]
3613         * string/strlen.c (strlen): Fix omission in the expression to test
3614         for NUL bytes.
3615
3616 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3617
3618         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3619
3620         * elf/dl-runtime.c (reloc_offset): Define.
3621         (reloc_index): Define.
3622         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3623         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3624         computing index from reloc_offset.
3625         (_dl_call_pltexit): Likewise.
3626         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3627         the relocation index to _dl_fixup.
3628         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3629         _dl_call_pltexit.
3630         * sysdeps/x86_64/dl-runtime.c: New file.
3631
3632         [BZ #9893]
3633         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3634         alignment of La_x86_64_regs.  Store xmm parameters.
3635         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3636
3637         [BZ #9913]
3638         * string/strverscmp.c (__strverscmp): Fix case of different digits
3639         in fractional part of string.
3640         Patch by Jingyu Liu <jyliu@fortinet.com>.
3641         * string/Makefile (tests): Add tst-svc2.
3642         * string/tst-svc2.c: New file.
3643
3644         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3645
3646         * locale/iso-639.def: Add Min Nan.
3647
3648 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3649
3650         [BZ #9948]
3651         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3652
3653 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3654
3655         * elf/dl-sysdep.c (auxvars): Compress data structure.
3656
3657         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3658         STT_GNU_IFUNC handling.
3659         (elf_machine_rela): Likewise.
3660
3661 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3662
3663         * config.h.in (USE_MULTIARCH): Define.
3664         * configure.in: Handle --enable-multi-arch.
3665         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3666         (_dl_fixup_profile): Likewise.
3667         * elf/do-lookup.c (dl_lookup_x): Likewise.
3668         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3669         * elf/elf.h (STT_GNU_IFUNC): Define.
3670         * include/libc-symbols.h (libc_ifunc): Define.
3671         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3672         framework in init-arch.h to get CPUID values.
3673         * sysdeps/x86_64/multiarch/Makefile: New file.
3674         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3675         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3676         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3677
3678         * config.make.in (experimental-malloc): Define.
3679         * configure.in: Handle --enable-experimental-malloc.
3680         * malloc/Makefile: Handle experimental-malloc flag.
3681         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3682         * malloc/arena.c: Likewise.
3683         * malloc/hooks.c: Likewise.
3684         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3685
3686 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3689         prediction.  A few size optimizations.
3690
3691 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3692
3693         * time/tzset.c: Optimize a bit for size.
3694
3695 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3696
3697         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3698         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3699
3700         * elf/sprof.c: Avoid warning about multi-line comment.
3701
3702 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3703
3704         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3705         DST name.
3706         * time/tst-posixtz.c: Add tests for quoted timezone names.
3707
3708 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3709
3710         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3711         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3712         200809L instead of 200112L.
3713         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3714         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3715
3716         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3717         instead of __quick_exit_funcs to __run_exit_handlers.
3718         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3719         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3720         (__cxa_at_quick_exit): Remove attribute_hidden.
3721         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3722         to __run_exit_handlers.
3723         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3724         attribute_hidden.
3725
3726 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3727
3728         * po/id.po: Update from translation team.
3729
3730 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3731
3732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3733         .machine push; .machine "power6" and .machine pop around mtfsf
3734         insns outside of _ARCH_PWR6 define.
3735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3737         Likewise.
3738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3739         Likewise.
3740         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3741         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3742         relax_fenv_state): Likewise.
3743
3744 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3745
3746         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3747         cxa_at_quick_exit.
3748         (static-only-routines): Add at_quick_exit.
3749         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3750         GLIBC_2.10.
3751         * stdlib/quick_exit.c: New file.
3752         * stdlib/at_quick_exit.c: New file.
3753         * stdlib/cxa_at_quick_exit.c: New file.
3754         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3755         it appropriately.
3756         (__internal_atexit): New function.
3757         (__new_exitfn): Now takes parameter to point to the list to use.
3758         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3759         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3760         (exit): ...here.  Just call __run_exit_handlers appropriately.
3761         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3762         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3763         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3764         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3765
3766         * po/id.po: Update from translation team.
3767
3768 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3769
3770         * po/ru.po: Update from translation team.
3771
3772 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3773
3774         * po/nl.po: Update from translation team.
3775
3776 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3777
3778         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3780         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3781         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3782         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3783         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3784         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3785
3786         * po/pl.po: Update from translation team.
3787
3788 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3789
3790         [BZ #7083]
3791         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3792         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3793         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3794         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3795         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3796         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3797         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3798         for GLIBC_2.10.
3799         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3800         Add fallocate and fallocate64.
3801
3802         * io/fcntl.h: Pretty printing.
3803
3804 2009-03-02  Richard Guenther  <rguenther@suse.de>
3805
3806         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3807         attribute also for non-C99 inline semantics variant.
3808
3809 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3810
3811         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3812         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3813         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3814         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3816         Likewise.
3817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3818         Likewise.
3819
3820 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3821
3822         * po/cs.po: Update from translation team.
3823
3824 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3825
3826         * po/bg.po: Update from translation team.
3827         * po/sv.po: Likewise.
3828         * po/fi.po: Likewise.
3829         * po/vi.po: Likewise.
3830
3831 2009-02-27  Roland McGrath  <roland@redhat.com>
3832
3833         * Makeconfig (%.v.i): Depend on Makeconfig.
3834         Exclude % lines from initial #-comment removal.
3835
3836 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3837
3838         * po/ko.po: Update from translation team.
3839
3840 2009-02-26  Roland McGrath  <roland@redhat.com>
3841
3842         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3843         avoids unused warning.
3844
3845 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3846             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3847
3848         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3849         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3850         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3851         and asm/user.h.  Include asm/ptrace.h.
3852         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3853         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3854         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3855         Undefine.
3856         (start_thread): Don't undefine.
3857         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3858         Define.
3859
3860 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3861
3862         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3863         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3864         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3865         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3866         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3867         200112L to 200809L.
3868         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3869         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3870         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3871         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3872         _SC_THREAD_ROBUST_PRIO_PROTECT.
3873         * posix/unistd.h: fexecve is in POSIX 2008.
3874         * time/time.h: strftime_l is in POSIX 2008.
3875         * io/sys/stat.h: futimens is in POSIX 2008.
3876         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3877         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3878         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3879         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3880         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3881         open_memstream, and vdprintf are in POSIX 2008.
3882
3883 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3884
3885         * include/features.h: Define macros for XPG7/POSIX 2008.
3886         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3887         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3888         POSIX 2008.
3889         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3890         * locale/xlocale.h: Define locale_t type.
3891         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3892         in POSIX 2008.  Don't define locale_t here.
3893         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3894         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3895         UTIME_OMIT only with __USE_ATFILE.
3896         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3897         * stdio-common/psiginfo.c: New file.
3898         * stdio-common/psiginfo-data.h: New file.
3899         * stdio-common/psiginfo-define.h: New file.
3900         * stdio-common/Makefile (routines): Add psiginfo.
3901         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3902         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3903         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3904         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3905         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3906         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3907         * io/sys/stat.h: Move mknodat definition into same conditional as
3908         mknod.
3909         * time/sys/time.h: futimesat is not among the functions accepted
3910         into the POSIX standard.
3911
3912         * include/features.h: If no feature selection given and we select
3913         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3914         * posix/Versions: Export __posix_getopt.
3915         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3916         Use it to alternatively initialize __posixly_correct.
3917         (_getopt_internal_r): Take addition parameter.  Pass on to
3918         _getopt_initialize.
3919         (_getopt_internal): Take addition parameter.  Pass on to
3920         _getopt_internal_r.
3921         (getopt): Pass additional zero to _getopt_internal.
3922         (__posix_getopt): New function.
3923         * posix/getopt.h: Add redirection for getopt.
3924         * posix/getopt1.c (getopt_long): Pass additional zero to
3925         _getopt_internal.
3926         (getopt_long_only): Likewise.
3927         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3928         (_getopt_long_only_r): Likewise.
3929         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3930         _getopt_internal_r.
3931
3932 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3933
3934         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3935         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3936         * sysdeps/posix/sysconf.c (__sysconf): Handle
3937         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3938         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3939
3940 2009-02-24  Roland McGrath  <roland@redhat.com>
3941
3942         [BZ #9895]
3943         * README.template: Reworded not to use substituted version number.
3944         Renamed to ...
3945         * README: ... here (no longer generated).
3946         * Makefile (README): Target removed.
3947
3948 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3949
3950         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3951         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3952         instead.
3953
3954         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3955
3956         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3957
3958 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3959
3960         * po/bg.po: Update from translation team.
3961
3962 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3963
3964         * stdlib/monetary.h: Uglify function parameter names.
3965         * sunrpc/rpc/pmap_clnt.h: Likewise.
3966         * sunrpc/rpc/svc.h: Likewise.
3967         * sunrpc/rpc/xdr.h: Likewise.
3968         * sunrpc/rpc/clnt.h: Likewise.
3969         * resolv/netdb.h: Likewise.
3970         * resolv/arpa/nameser.h: Likewise.
3971         * resolv/resolv.h: Likewise.
3972         * argp/argp.h: Likewise.
3973         * locale/langinfo.h: Likewise.
3974         * io/sys/stat.h: Likewise.
3975         * posix/spawn.h: Likewise.
3976         * nis/rpcsvc/nislib.h: Likewise.
3977         * malloc/obstack.h: Likewise.
3978         * sysdeps/ia64/bits/link.h: Likewise.
3979         * sysdeps/i386/bits/link.h: Likewise.
3980         * sysdeps/s390/bits/link.h: Likewise.
3981         * sysdeps/powerpc/bits/link.h: Likewise.
3982         * sysdeps/x86_64/bits/link.h: Likewise.
3983         * sysdeps/sparc/bits/link.h: Likewise.
3984         * sysdeps/sh/bits/link.h: Likewise.
3985         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3986         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3987         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3988         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3989
3990 2008-12-01  Fredrik Unger  <fred@tree.se>
3991
3992         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3993         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3994         _FP_UNPACK_RAW_2, fix up first argument.
3995
3996 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3997
3998         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3999         (GET_NPROCS_PARSER): Change parameters and use next_line.
4000         (__get_nprocs): Rewrite to not use stdio routines.
4001         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4002         Change parameters and use next_line.
4003
4004 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4005
4006         [BZ #5381]
4007         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4008         Change mempool_alloc prototype.
4009         * nscd/mem.c (gc): Don't handle mem_in_flight.
4010         (mempool_alloc): Third parameter now only indicates whether this is the
4011         first call (to allocate data) or not.  If it is, get db rdlock.
4012         Release it on error.  Don't handle mem_in_flight.
4013         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4014         Adjust third parameter of mempool_alloc calls.
4015         Nothing to do here in case mempool_alloc fails.
4016         Avoid local variable shadowing parameter.  No need to get db rdlock
4017         before calling cache_add.
4018         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4019         no mem_in_flight array anymore.
4020         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4021         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4022         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4023         in case mempool_alloc fails. No need to get db rdlock before calling
4024         cache_add.
4025         * nscd/hstcache.c (cache_addhst): Likewise.
4026         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4027         * nscd/servicescache.c (cache_addserv): Likewise.
4028         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4029
4030 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4031
4032         * po/lt.po: Update from translation team.
4033
4034 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4035
4036         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4037         defined, allow additional data to be added using the optional
4038         MORE_ELF_HEADER_DATA macro.
4039         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4040         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4041
4042 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4043
4044         * include/atomic.h: Define catomic_and if not already defined.
4045         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4046         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4047
4048 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4049
4050         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4051         Change all callers.
4052         (_int_realloc): Likewise.  Third argument is now padded size
4053         All _int_* functions are now static.
4054
4055         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4056         * malloc/arena.c: Likewise.
4057         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4058         functions.
4059
4060         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4061         easily.
4062
4063         * malloc/malloc.c: Add branch prediction for use of the hooks.
4064
4065         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4066
4067 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4068
4069         [BZ #7095]
4070         * bits/confname.h: Add SUSv7 macros for getconf environments.
4071         * bits/environments.h: Likewise.
4072         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4074         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4075         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4076         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4077         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4078         * posix/getconf.c: Likewise.
4079         * posix/sysconf.c: Likewise.
4080         * sysdeps/posix/sysconf.c: Likewise.
4081         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4082         environments.
4083
4084 2009-01-16  Petr Baudis  <pasky@suse.cz>
4085
4086         [BZ #9753]
4087         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4088         even if we currently have zero nscount.
4089
4090 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4091
4092         [BZ #9781]
4093         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4094         the input line is too long.
4095
4096         * po/Makefile (libc.pot): Add f_print as function taking c-format
4097         parameter.
4098
4099         * debug/xtrace.sh: Unify translatable messages.
4100         * elf/ldd.bash.in: Likewise.
4101         * elf/sprof.c: Likewise.
4102         * locale/programs/locale.c: Likewise.
4103         * malloc/memusage.sh: Likewise.
4104         * nss/getent.c: Likewise.
4105
4106 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4107
4108         * debug/pcprofiledump.c (print_version,
4109         argp_program_version_hook): New function.
4110         * elf/ldconfig.c (more_help): New function.
4111         (argp): Use it.
4112         * elf/sln.c (usage): New function.
4113         (main): Support --help and --version.
4114         * malloc/memusagestat.c (print_version): New function.
4115         (argp_program_version_hook): New variable.
4116         * nscd/nscd.c (more_help): New function.
4117         (argp): Use it.
4118         * posix/getconf.c (main): Send --version output to stdout.
4119         Support --help.
4120         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4121         arguments.  All callers changed.
4122         (print_version): New function.
4123         (parseargs): Support --help and --version.
4124         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4125         changed.
4126         (print_version): New function.
4127         (main): Use getopt_long.  Support --help and --version.
4128         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4129         --version.
4130
4131 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4132
4133         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4134         (update_data): Fix handling of wrapping back
4135         to the beginning of the buffer.
4136
4137         [BZ #9823]
4138         * stdio-common/psignal.c (psignal): Fix test for empty string.
4139
4140 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4141
4142         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4143         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4144         move _null_auth to .rodata.
4145
4146         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4147         value of 24.
4148
4149         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4150
4151         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4152         today than when the original code was written.  Use larger
4153         buffers.  This also makes it unnecessary to have stat information,
4154         if this causes extra efforts.
4155         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4156         __alloc_dir.
4157
4158 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4159
4160         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4161         is set.
4162         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4163         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4164         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4165         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4166         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4167         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4168
4169 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4170
4171         * po/ru.po: Update from translation team.
4172
4173 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4174
4175         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4176         Add _tid slot to maintain consistency with kernel.
4177
4178 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4179
4180         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4181         incomplete characters at end of input buffer.
4182         * libio/Makefile (tests): Add tst-fgetwc.
4183         * libio/tst-fgetwc.c: New file.
4184         * libio/tst-fgetwc.input: New file.
4185
4186 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4187
4188         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4189
4190 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4191
4192         [BZ #9793]
4193         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4194         *OUTBUFSTART unless the whole output fit into the buffer.
4195         * iconv/Makefile (tests): Add tst-iconv4.
4196         * iconv/tst-iconv4.c: New file.
4197
4198 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4199
4200         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4201         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4202
4203 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4204
4205         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4206         newer linker scripts.
4207
4208 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4209
4210         [BZ #7040]
4211         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4212         inotify_rm_watch should have type int.
4213
4214 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4215
4216         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4217         Make aligned_restore_vmx a local symbol.
4218         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4219         Likewise.
4220
4221 2009-01-30  Andreas Jaeger  <aj@suse.de>
4222
4223         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4224         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4225         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4226         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4227         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4228         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4229         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4230
4231 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4232
4233         [BZ #9726]
4234         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4235         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4236
4237 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4238
4239         [BZ #9726]
4240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4241         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4243         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4244
4245 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4246
4247         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4248         memcpy instead of memcmp.
4249         (_dl_setup_pointer_guard): Likewise.
4250
4251 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4252
4253         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4254         manipulated brk, use malloc_printerr.
4255         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4256         requests.
4257
4258 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4259
4260         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4261         rindex): For C++ add inlines so that they can be recognized as
4262         builtins.
4263         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4264
4265 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4266             Jakub Jelinek  <jakub@redhat.com>
4267
4268         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4269         * wcsmbs/wchar.h: Likewise.
4270
4271 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4272
4273         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4274         (stackinfo_sub_sp): Define.
4275
4276 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4277
4278         [BZ #9750]
4279         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4280         * include/alloca.h (alloca_account): Define.
4281         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4282         (stackinfo_sub_sp): Define.
4283
4284         * nscd/connections.c (nscd_init): If database file access fails
4285         check whether this is due to permission problems and bail in that
4286         case.
4287
4288         [BZ #9741]
4289         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4290         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4291
4292 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4293
4294         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4295         Add "t" to clobber list.
4296         (INTERNAL_SYSCALL_NCS): Likewise.
4297
4298 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4299
4300         * nss/getent.c (print_networks): Don't print comma between aliases.
4301
4302 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4303
4304         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4305
4306         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4307         the hash table.
4308         * misc/Makefile (tests): Add bug-hsearch1.
4309         * misc/bug-hsearch1.c: New file.
4310
4311 2009-01-22  Roland McGrath  <roland@redhat.com>
4312
4313         * Makeconfig (%.v.i): Strip trailing # comments,
4314         not only whole-line comments.
4315
4316 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4317
4318         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4319         one parameter.  If non-NULL use it to initialize return value.
4320         (_dl_setup_pointer_guard): New function.
4321         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4322         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4323         * elf/rtld.c (security_init): Pass _dl_random to
4324         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4325         pointer_chk_guard.
4326         * elf/dl-sysdep.c (_dl_random): New variable.
4327         (_dl_sysdep_start): Handle AT_RANDOM.
4328         (_dl_show_auxv): Likewise.
4329         * elf/dl-support.c (_dl_random): New variable.
4330         (_dl_aux_init): Handle AT_RANDOM.
4331         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4332         to _dl_setup_stack_chk_guard.
4333
4334         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4335
4336 2009-01-10  Roland McGrath  <roland@redhat.com>
4337
4338         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4339
4340 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4341
4342         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4343
4344         [BZ #9706]
4345         * nss/nss_files/files-parse.c (strtou32): New function.
4346         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4347         across 32-bit and 64-bit platforms.
4348         (INT_FIELD_MAYBE_NULL): Likewise.
4349
4350 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4351
4352         [BZ #9720]
4353         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4354         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4355         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4356         Likewise.
4357
4358 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4359
4360         [BZ #697]
4361         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4362         being NULL also if there are no backreferences.
4363         * posix/rxspencer/tests: Add testcases.
4364
4365 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4366
4367         [BZ #9697]
4368         * posix/bug-regex17.c: Add testcases.
4369         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4370         handling.
4371
4372 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4373
4374         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4375         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4376         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4377         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4378         for elf subdir.
4379         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4380         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4381         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4382         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4383         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4384         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4385
4386 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4387
4388         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4389         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4390         re_string_skip_chars, re_string_reconstruct): Likewise.
4391         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4392
4393 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4394
4395         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4396         adjust the buffer alignment.
4397
4398 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4399
4400         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4401         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4402         net/route.h.
4403
4404         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4405         flavor to description only when flavor is not NULL.
4406
4407         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4408         mutex after SIGIO/SIGURG lookup loop.
4409
4410 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4411
4412         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4413
4414 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4415
4416         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4417         handling.
4418
4419 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4420
4421         * sysdeps/unix/sysv/linux/kernel-features.h
4422         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4423
4424         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4425         if no output is written.
4426
4427         * version.h: Bump to 2.10 development.
4428
4429         * posix/getconf.c: Update copyright year.
4430         * nss/getent.c: Likewise.
4431         * iconv/iconvconfig.c: Likewise.
4432         * iconv/iconv_prog.c: Likewise.
4433         * elf/ldconfig.c: Likewise.
4434         * catgets/gencat.c: Likewise.
4435         * csu/version.c: Likewise.
4436         * elf/ldd.bash.in: Likewise.
4437         * elf/sprof.c (print_version): Likewise.
4438         * locale/programs/locale.c: Likewise.
4439         * locale/programs/localedef.c: Likewise.
4440         * nscd/nscd.c (print_version): Likewise.
4441         * debug/xtrace.sh: Likewise.
4442         * malloc/memusage.sh: Likewise.
4443         * malloc/mtrace.pl: Likewise.
4444         * debug/catchsegv.sh: Likewise.
4445
4446 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4447
4448         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4449         script.
4450
4451 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4452
4453         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4454         gethostbyname4_r function call succeeded, just leave the loop.
4455
4456         [BZ #9694]
4457         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4458         very end.
4459         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4460         * wctype/Makefile (tests): Add bug-wctypeh.
4461         * wctype/bug-wctypeh.c: New file.
4462
4463         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4464         LOCALDOMAIN is defined.
4465         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4466
4467         * sysdeps/x86_64/bits/select.h: New file.
4468
4469         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4470
4471 2008-12-21  Bruno Haible  <bruno@clisp.org>
4472
4473         [BZ #9677]
4474         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4475         if no output is written.
4476
4477 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4478
4479         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4480         libc internal symbol __dup2 to avoid access through the PLT.
4481
4482 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4483
4484         [BZ #6545]
4485         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4486         available only for __USE_GNU.
4487
4488         * inet/Makefile (tests): Add tst-getni2.
4489         * inet/tst-getni2.c: New file.
4490
4491         [BZ #7080]
4492         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4493         NULL when NI_NAMEREQD is set.
4494         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4495         * inet/Makefile (tests): Add tst-getni1.
4496         * inet/tst-getni1.c: New file.
4497
4498 2008-12-03  Petr Baudis  <pasky@suse.cz>
4499
4500         [BZ #7067]
4501         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4502         instead of prune_lock.
4503         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4504         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4505
4506 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4507
4508         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4509         use.
4510
4511         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4512         handling.
4513
4514         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4515         after reading name server list.
4516
4517         [BZ #7058]
4518         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4519         handling for host name aliases.
4520
4521 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4522
4523         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4524         instead of doing things manually.
4525
4526 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4527
4528         * posix/regex_internal.h (build_wcs_upper_buffer):
4529         Return type is reg_error_t.
4530
4531 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4532
4533         * posix/globtest.sh: Use mktemp to create temporary file and
4534         directory.
4535
4536         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4537         sets correctly.
4538         (__CPU_CLR_S): Likewise.
4539         (__CPU_ISSET_S): Likewise.
4540
4541 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4542             Ulrich Drepper  <drepper@redhat.com>
4543
4544         * scripts/firstversion.awk: Use custom comparison function to compare
4545         version numbers.
4546         * scripts/versions.awk: Use sort invocation which can handle
4547         multi-digit sub-version numbers.
4548
4549 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4550
4551         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4552         * locale/iso-639.def: Add Chhattisgarhi entry.
4553
4554 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4555
4556         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4557         ESRCH return value.
4558         (_nss_dns_gethostbyname4_r): Likewise.
4559         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4560         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4561         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4562         the no_data variable.
4563
4564         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4565         information at the correct index.
4566
4567         * socket/sys/socket.h: Declare accept4.
4568         * socket/accept4.c: New file.
4569         * sysdeps/unix/sysv/linux/accept4.c: New file.
4570         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4571         * socket/Makefile (routines): Add accept4.
4572         * socket/Versions: Export accept4 with version GLIBC_2.10.
4573         * socket/paccept.c: Removed.
4574         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4575         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4576         * Versions.def: Define GLIBC_2.10 for libc.
4577         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4578
4579         * nscd/connections.c: Use accept4.
4580
4581         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4582
4583 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4584
4585         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4586         flag already set.
4587
4588         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4589         not exist.
4590         * stdlib/Makefile (tests): Add tst-unsetenv1.
4591         * stdlib/tst-unsetenv1.c: New file.
4592
4593 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4594
4595         * login/utmp_file.c (file_writable): New variable.
4596         (setutent_file): Don't try to open file for writing.
4597         (pututline_file): Before writing, make descriptor writable if
4598         necessary.
4599
4600 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4601
4602         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4603         to IPv4 or IPv6 if an interface has been found.
4604
4605 2008-11-26  Roland McGrath  <roland@redhat.com>
4606
4607         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4608         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4609
4610         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4611         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4612         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4613
4614         * elf/elf.h (NT_386_IOPERM): New macro.
4615         (NT_PPC_VSX): New macro.
4616
4617 2008-11-25  Roland McGrath  <roland@redhat.com>
4618
4619         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4620         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4621         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4622         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4623         Subdirectories moved to ports repository.
4624         * configure.in (base_machine): Remove alpha case.
4625
4626 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4627
4628         * sysdeps/mach/strerror_l.c: New file.
4629
4630 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4631
4632         [BZ #6411]
4633         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4634         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4635         magic numbers.
4636         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4637         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4638         (relax_fenv_state): Same as above.
4639         (FPSCR_29): Reserve bit in ISA 2.05.
4640         (FPSCR_NI): Provide define for compat.
4641         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4642         magic numbers.
4643         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4644         magic numbers.
4645         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4646         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4647         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4648         access to hwcap to account for hwcap size increase to uint64_t.
4649         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4650         Likewise.
4651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4652         (*setcontext): Likewise.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4654         New file.
4655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4656         New file.
4657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4658         (*setcontext): dynamically select mtfsf insn based on
4659         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4660         increase to uint64_t.
4661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4662         (*swapcontext): dynamically select mtfsf insn based on
4663         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4664         increase to uint64_t.
4665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4666         New file.
4667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4668         New file.
4669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4670         (*setcontext): dynamically select mtfsf insn based on
4671         PPC_FEATURE_HAS_DFP.
4672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4673         (*swapcontext): dynamically select mtfsf insn based on
4674         PPC_FEATURE_HAS_DFP.
4675
4676 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4677
4678         * version.h: Bump for 2.9 release.
4679         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4680
4681         [BZ #7029]
4682         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4683         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4684         all the rounding.
4685
4686 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4687
4688         [BZ #7009]
4689         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4690         unknown request types for now.
4691
4692 2008-11-11  Roland McGrath  <roland@redhat.com>
4693
4694         * sysdeps/x86_64/configure: New file.
4695
4696         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4697         * configure: Regenerated.
4698
4699 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4700
4701         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4702         correct instruction to remove the stack frame.
4703
4704 2008-11-03  Michael Matz  <matz@suse.de>
4705
4706         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4707         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4708
4709 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4710
4711         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4712         Remove.
4713
4714         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4715         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4716         of the thread variable instead of void *.
4717         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4718         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4719         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4720         __libc_tsd_define arguments.
4721         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4722         __libc_tsd_address arguments.  Remove union hack.
4723         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4724         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4725         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4726         Adjust __libc_tsd_{set,get} arguments.
4727         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4728         __libc_tsd_define arguments.
4729         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4730         arguments.
4731         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4732         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4733         (LOCALE): Adjust __libc_tsd_define arguments.
4734         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4735         arguments.
4736         (LOCALE): Adjust __libc_tsd_define arguments.
4737         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4738         arguments.
4739         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4740         arguments.
4741
4742 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4743
4744         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4745         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4746
4747 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4748
4749         [BZ #6966]
4750         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4751
4752 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4753             Ulrich Drepper  <drepper@redhat.com>
4754
4755         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4756         definition for GCC 3.1 and later.
4757
4758 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4759
4760         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4761         refetch dtv, as it might have changed.
4762         * elf/Makefile: Add rules to build and run tst-tls18.
4763         * elf/tst-tls18.c: New test.
4764         * elf/tst-tlsmod18a.c: New file.
4765
4766 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4767
4768         [BZ #6875]
4769         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4770
4771 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4772
4773         [BZ #6867]
4774         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4775
4776         [BZ #6919]
4777         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4778         Fix length of copy operation.
4779
4780 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4781
4782         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4783         and fix its calling convention.
4784
4785 2008-10-07  Andreas Schwab  <schwab@suse.de>
4786
4787         [BZ #6942]
4788         * resolv/res_send.c (send_vc): Fix last change.
4789         (send_dg): Align here as well.
4790
4791 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4792
4793         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4794         return value in case rlimit is RLIM_INFINITY.
4795
4796         [BZ #6947]
4797         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4798         for UL_SETFSIZE.
4799         * resource/Makefile (tests): Add bug-ulimit1.
4800         * resource/bug-ulimit1.c: New file.
4801
4802         [BZ #6974]
4803         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4804         without dot.  Properly terminate the string with a null byte.
4805         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4806
4807         [BZ #6980]
4808         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4809         negative sizees.
4810         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4811         negative __size.
4812
4813         [BZ #6995]
4814         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4815
4816 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4817
4818         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4819         abort if there is no initgroups_dyn function.
4820
4821         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4822         result if any of the queries really provided an answer.
4823
4824 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4825
4826         * po/lt.po: Update from translation team.
4827
4828 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4829
4830         * po/id.po: Update from translation team.
4831
4832 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4833
4834         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4835         Fix tests for existence of second reply.
4836
4837 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4838
4839         * po/id.po: New file.
4840         Contributed by the Indonesian translation team.
4841
4842 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4843
4844         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4845         initialization.
4846
4847 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4848
4849         * elf/Makefile: Add rules to build and run tst-tls17.
4850         * elf/tst-tls17.c: New test.
4851         * elf/tst-tlsmod17a.c: New file.
4852         * elf/tst-tlsmod17b.c: Likewise.
4853
4854 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4855
4856         * stdlib/divmod_1.c: Use correct type for dummy variable.
4857         * stdlib/mod_1.c: Likewise.
4858
4859 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4860
4861         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4862
4863 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4864
4865         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4866         __nonnull order for C++.
4867         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4868         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4869
4870 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4871
4872         * stdlib/longlong.h: Update from GCC.
4873
4874 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4875             David S. Miller  <davem@davemloft.net>
4876
4877         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4878         make sure any registers used with 64-bit 'branch-on-register'
4879         instructions have their top 32-bits clear.
4880         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4881         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4882
4883 2008-09-18  Andreas Schwab  <schwab@suse.de>
4884
4885         [BZ #6942]
4886         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4887         Properly handle partial reads.
4888
4889 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4890
4891         * elf/elf.h (STO_MIPS_PLT): New.
4892         (R_MIPS_COPY): New.
4893         (R_MIPS_JUMP_SLOT): New.
4894         (R_MIPS_NUM): Redefine to 128.
4895         (DT_MIPS_PLTGOT): New.
4896         (DT_MIPS_RWPLT): New.
4897         (DT_MIPS_NUM): Redefine to 0x35.
4898
4899 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4900
4901         * timezone/africa: Update from tzdata2008f.
4902         * timezone/asia: Likewise.
4903         * timezone/australasia: Likewise.
4904         * timezone/europe: Likewise.
4905         * timezone/leapseconds: Likewise.
4906         * timezone/northamerica: Likewise.
4907         * timezone/southamerica: Likewise.
4908         * timezone/zone.tab: Likewise.
4909
4910 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4911
4912         * nscd/connections.c: Disable use of paccept for now.
4913
4914 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4915
4916         * socket/Versions: Remove paccept export for GLIBC_2.9.
4917         * socket/Makefile (routines): Remove paccept.
4918         * socket/sys/socket.h: Remove paccept declaration.
4919
4920         * po/sv.po: Update from translation team.
4921
4922 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4923
4924         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4925         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4926
4927 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4928
4929         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4930         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4931
4932 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4933
4934         * sunrpc/rpc/svc.h: Declare svcfd_create.
4935         Patch by Michael Solberg <msolberg@redhat.com>.
4936
4937 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4938             Ulrich Drepper  <drepper@redhat.com>
4939
4940         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4941         _int_valloc fails.
4942         (public_pVALLOc): Likewise.
4943
4944 2008-09-02  Andreas Jaeger  <aj@suse.de>
4945
4946         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4947         commit.
4948
4949 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4950
4951         [BZ #6860]
4952         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4953
4954 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4955
4956         * Makefile (check-data): Check data directory in add-ons.
4957         * elf/Makefile (check-data): Likewise.
4958
4959 2008-08-18  Roland McGrath  <roland@redhat.com>
4960
4961         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4962         * configure: Regenerated.
4963         * config.make.in (cflags-cpu): New substituted variable.
4964         (with-cpu): Variable removed.
4965         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4966
4967 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4968
4969         [BZ #6845]
4970         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4971         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4972         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4973         redundant.  Functions which call floating point assembler operations
4974         should go into a sysdeps powerpc/fpu directory.
4975
4976 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4977
4978         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4979         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4980
4981 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4982
4983         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4984
4985         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4986         change related to AT_EXECFN.  We cannot use that string.
4987         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4988         _dl_execfn member.
4989         * elf/dl-support.c: Remove _dl_execfn variable.
4990         (_dl_aux_init): Remove handling of AT_EXECFN.
4991         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4992         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4993
4994 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4995
4996         [BZ #6544]
4997         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4998         byte gets added to writes and seeks from the end use the length of
4999         the buffer and not the currently terminating NUL byte.
5000
5001         [BZ #6634]
5002         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5003         Set to true if locking failed.
5004         (getutid_r_file): Adjust caller.
5005         (pututline_file): Likewise.  Return NULL in this case.
5006         Patch mostly by halesh.s@gmail.com.
5007
5008 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5009
5010         [BZ #6589]
5011         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5012         Define.
5013         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5014
5015 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5016
5017         [BZ #6839]
5018         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5019         macro since it is now available in elf/dynamic-link.h.
5020
5021 2008-08-12  Roland McGrath  <roland@frob.com>
5022
5023         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5024         in case used outside of libc.
5025         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5026
5027 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5028
5029         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5030         directly instead of going through dn_comp.
5031
5032 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5033
5034         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5035         Fix asm constraints.
5036
5037 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5038
5039         [BZ #6790]
5040         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5041         (IPV6_PMTUDISC_PROBE): Likewise.
5042
5043 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5044
5045         [BZ #6791]
5046         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5047
5048 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5049             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5050
5051         [BZ #6817]
5052         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5053         Added the members 'vsx' and 'arch_2_06'.
5054         (_dl_powerpc_platforms): Add the member 'power7'.
5055         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5056         to reflect the changes required by VSX and ISA 2.06.
5057         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5058         'power7'.
5059         Defined PPC_PLATFORM_POWER7.
5060         (_dl_string_platform): Add support for POWER7.
5061         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5062         capability and ISA 2.06.
5063
5064 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5065
5066         [BZ #6824]
5067         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5068         macro to detect use of 128 bit long double.
5069         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5070
5071 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5072
5073         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5074
5075         [BZ #5794]
5076         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5077         parameters.
5078         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5079         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5080
5081 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5082
5083         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5084         guaranteed to be large enough to read inotify event.  Ignore
5085         EAGAIN error.  Better error message.  Add branch predicition.
5086         (main_loop_epoll): Likewise.
5087
5088 2008-08-02  Roland McGrath  <roland@frob.com>
5089
5090         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5091         Add memory clobbers.
5092
5093 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5094
5095         * manual/arith.texi: Avoid @strong{Note:}.
5096         * manual/creature.texi: Likewise.
5097         * manual/filesys.texi: Likewise.
5098         * manual/math.texi: Likewise.
5099         * manual/memory.texi: Likewise.
5100         * manual/resource.texi: Likewise.
5101         * manual/syslog.texi: Likewise.
5102         * manual/time.texi: Likewise.
5103
5104         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5105         to prevent warning.
5106
5107 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5108
5109         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5110         new epoll_create1 interface.
5111         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5112         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5113         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5114
5115         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5116         (NS_GET32): Likewise.
5117
5118         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5119         syscalls, too.
5120
5121         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5122         use the AT_EXECFN value if it is no absolute path.
5123         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5124         __ASSUME_AT_EXECFN.
5125
5126         * Versions.def: Add GLIBC_2.9 to libresolv.
5127         * include/resolv.h: Remove hidden proto declarations for __ns_*
5128         functions.  Add them for __dn_count_labels and __p_secstodate.
5129         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5130         Define ns_msg_getflags macro here.
5131         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5132         and __p_secstodate.
5133         * resolv/Versions: Export functions from <arpa/nameser.h> from
5134         libresolv in version GLIBC_2.9.
5135         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5136         hidden definitions.
5137         * resolv/ns_netint.c: Likewise.
5138         * resolv/ns_parse.c: Likewise.
5139         * resolv/ns_print.c: Likewise.
5140         * resolv/ns_samedomain.c: Likewise.
5141         * resolv/ns_ttl.c: Likewise.
5142         * resolv/arpa/nameser_compat.h: Likewise.
5143         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5144         function calls.
5145         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5146         instead of ns_get16.
5147         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5148         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5149         (gaih_getanswer_slice): Likewise.
5150         * resolv/Makefile (libresolv-routines): Add ns_date.
5151         * resolv/ns_date.c: New file.
5152
5153         * elf/Makefile (check-localplt.out): Also check libresolv and
5154         libcrypt.
5155
5156 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5157
5158         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5159         __ASSUME_O_CLOEXEC.
5160
5161 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5162
5163         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5164         buffer passed to NSS functions.
5165
5166         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5167
5168         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5169         Define.
5170
5171         * misc/syslog.c (openlog_internal): Fix compile problem.
5172
5173 2008-07-28  Roland McGrath  <roland@redhat.com>
5174
5175         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5176
5177 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5178
5179         * io/ftw.c (add_object): Remove inline to avoid warning.
5180
5181         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5182
5183         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5184         Use it instead of locally defined resplen2 variable.
5185         (res_nsend): Adjust for __libc_res_nsend interface change.
5186         (send_vc): Initialize *resplen2 if necessary.  Read length of
5187         package into an appropriately aligned variable.  Store converted length
5188         in new variable and use it appropriately.
5189         Add branch prediction help.
5190         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5191         and pass it on to __libc_res_nsend.  Adjust all callers.
5192         (__libc_res_nsearch): Likewise.
5193         (__libc_res_nqeurydomain): Likewise.
5194         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5195         change.
5196         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5197         Define resplen2 variable and pass it to __libc_res_nsearch and then
5198         to gaih_getanswer.
5199         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5200         Add branch prediction.
5201         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5202         (gaih_getanswer): Don't decode second slice if first one failed due
5203         to a too small buffer.  Don't let not found status of second
5204         decoder shadow results of the first.
5205         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5206         and __libc_res_nquery interface changes
5207         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5208         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5209         __libc_res_nsearch, and __libc_res_nsend.
5210         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5211         change.
5212         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5213         __libc_res_nsearch interface changes.
5214
5215 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5216
5217         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5218
5219         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5220         file descriptors with close-on-exec set.
5221         (exec_comm_child): Fix the case where the write end of the pipe is
5222         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5223
5224         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5225         * io/pipe2.c: Likewise.
5226         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5227         instead of __ASSUME_PACCEPT.
5228         * include/unistd.h: Declare __have_pipe2.
5229         * libio/iopopen.c: Implement "e" flag.
5230         * libio/Makefile (tests): Add tst-popen1.
5231         * libio/tst-popen1.c: New file.
5232
5233         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5234         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5235
5236 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5237
5238         [BZ #6771]
5239         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5240         success call of _IO_SEEKOFF or calls which failed because the
5241         descriptor is for a pipe.
5242
5243         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5244         magic number.
5245
5246         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5247
5248         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5249         F_SETFD use if we know fopen set the flag.
5250
5251         * login/utmp_file.c (setutent_file): Minor optimization in case
5252         O_CLOEXEC is available.
5253
5254 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5255
5256         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5257         * elf/Makefile: Use pie-ccflag variable.
5258         * nscd/Makefile: Likewise.
5259         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5260
5261 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5262
5263         [BZ #6724]
5264         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5265         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5266         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5267         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5268         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5269         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5270         utmp32, utmpx32 and login32.
5271         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5272         versions of struct utmp functions to libc and libutil.
5273         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5274         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5275         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5276         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5277         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5278         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5279         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5280         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5281         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5282         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5283         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5284         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5285         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5286         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5287         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5288         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5289         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5290         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5291         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5292         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5293         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5294         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5295
5296 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5297
5298         * scripts/gen-as-const.awk: Generate more widely usable code by
5299         using 64-bit arithmetic.
5300
5301         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5302         the same treatment as narrow output code in last patch.
5303
5304         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5305
5306         [BZ #6763]
5307         * elf/dl-load.c (local_strdup): Remove inline.
5308         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5309         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5310         part of the object.
5311
5312         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5313
5314 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5315
5316         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5317         the new syscalls, too.
5318
5319         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5320         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5321
5322         [BZ #6698]
5323         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5324         parameter for end of buffer.  If temporary copy is too large use
5325         malloc.
5326         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5327         interface change.
5328         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5329         string rewrite when allocating buffer.
5330
5331         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5332         syscalls, too.
5333
5334         * nscd/connections.c (nscd_init): Clean up fcntl call.
5335
5336         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5337         SOCK_NONBLOCK if possible.
5338
5339         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5340         SOCK_CLOEXEC if available.
5341
5342         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5343         __libc_clntudp_bufcreate_internal.
5344         * include/sys/socket.h: Declare __have_sock_cloexec.
5345         * socket/Makefile (aux): Add have_sock_cloexec.
5346         * socket/have_sock_cloexec.c: New file.
5347         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5348         __libc_clntudp_bufcreate.
5349         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5350         which takes an additional parameter.  Create socket with non-blocking
5351         mode and close-on-exec flag set, if wanted.
5352         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5353         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5354         instead of clntudp_create.  The socket has already the close-on-exec
5355         flag set if SOCK_CLOEXEC is defined.
5356
5357 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5358
5359         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5360         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5361         appropriate.
5362         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5363         non-blocking mode by using socket, paccept, and inotify_init1.
5364
5365         * Versions.def (glibc): Add GLIBC_2.9.
5366         * io/Makefile (routines): Add dup3 and pipe2.
5367         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5368         * io/dup3.c: New file.
5369         * io/pipe2.c: New file.
5370         * posix/unistd.h: Declare dup3 and pipe2.
5371         * socket/Makefile (routines): Add paccept.
5372         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5373         * socket/paccept.c: New file.
5374         * socket/sys/socket.h: Declare paccept.
5375         * sysdeps/unix/syscalls.list: Add entry for dup3.
5376         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5377         epoll_create2 and inotify_init1.
5378         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5379         * sysdeps/unix/sysv/linux/paccept.c: New file.
5380         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5381         possible.
5382         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5383         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5384         inotify_init1, and pipe2 entries.
5385         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5386         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5387         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5388         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5389         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5390         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5391         SOCK_NONBLOCK.
5392         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5393         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5394         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5395         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5396         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5397         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5398         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5399         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5400         EPOLL_NONBLOCK.  Declare epoll_create2.
5401         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5402         EFD_NONBLOCK.
5403         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5404         IN_NONBLOCK.  Declare inotify_init1.
5405         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5406         SFD_NONBLOCK.
5407         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5408         TFD_NONBLOCK.
5409
5410         * elf/elf.h: Define AT_EXECFN.
5411         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5412         LD_ORIGIN_PATH.
5413         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5414         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5415         if __ASSUME_AT_EXECFN is defined.
5416         (_dl_aux_init): Handle AT_EXECFN.
5417         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5418         for 2.6.27 and up.
5419         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5420         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5421         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5422         _dl_execfn if available and avoid compatibility code if
5423         __ASSUME_AT_EXECFN is defined.
5424
5425         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5426         _dl_discover_osversion only for older kernels.
5427
5428 2008-07-22  Roland McGrath  <roland@frob.com>
5429
5430         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5431
5432 2008-07-21  Roland McGrath  <roland@frob.com>
5433
5434         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5435         returned too much data out of line.
5436
5437 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5438
5439         * locale/setlocale.c (setname): Remove inline to avoid compiler
5440         warning.
5441
5442         [BZ #6712]
5443         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5444
5445 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5446
5447         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5448         doesn't manage to write anything, fail.
5449
5450         * malloc/hooks.c (__malloc_check_init): Remove printf.
5451
5452 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5453
5454         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5455
5456 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5457
5458         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5459         from inotify.
5460         (main_loop_epoll): Likewise.
5461
5462 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5463
5464         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5465
5466         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5467         if DEBUG is defined.
5468
5469         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5470         query.  Adjust buffer size computation for padding.
5471
5472 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5473
5474         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5475         * stdio-common/tst-setvbuf1.c: New file.
5476         * stdio-common/tst-setvbuf1.expect: New file.
5477
5478         [BZ #6719]
5479         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5480         when selecting fully-buffered stream.
5481         Patch by Wang Xin <wxinee@gmail.com>.
5482
5483 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5484
5485         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5486         (__open_2): New function.
5487         (__open64_2): New alias to __open_2.
5488         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5489         (__openat_2): New function.
5490         (__openat64_2): New alias to __openat_2.
5491
5492 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5493
5494         [BZ #6723]
5495         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5496
5497 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5498
5499         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5500         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5501         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5502         __hurd_dfail.
5503         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5504         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5505         * sysdeps/mach/hurd/send.c (__send): Likewise.
5506         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5507         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5508
5509 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5510
5511         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5512         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5513         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5514         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5515         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5516         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5517
5518 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5519
5520         [BZ #6657]
5521         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5522         of %EY.
5523         Patch by Petr Baudis.
5524
5525 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5526
5527         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5528         Patch by Peter Jones <pjones@redhat.com>.
5529
5530 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5531
5532         [BZ #6654]
5533         * stdlib/canonicalize.c (__realpath): readlink can write too much
5534         into the buffer on platforms without PATH_MAX.
5535
5536 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5537
5538         [BZ #6653]
5539         * posix/tst-regex.c (main): Rename to...
5540         (do_test): ... this. Remove cmdline option processing.
5541         (TIMEOUT): Define.
5542         (TEST_FUNCTION): Define.
5543         (CMDLINE_OPTIONS): Define.
5544
5545 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5546
5547         [BZ #5210]
5548         * configure.in: Add -Werror to -fstack-protector test to catch
5549         unsupported architectures.
5550         Patch by Gilles Esponasse <g.esp@free.fr>.
5551
5552 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5553
5554         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5555         getcontext returns ENOSYS.
5556
5557 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5558
5559         * nscd/connections.c (main_loop_poll): Fix test for read error.
5560         (main_loop_epoll): Likewise.
5561
5562 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5563
5564         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5565         better place so it is not called when nscd is used.
5566
5567         * nscd/connections.c: Also recognize and handle changes to the
5568         resolver configuration file.
5569
5570 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5571
5572         * time/strftime.c: Pass reference to tzset_called around to handle
5573         recursive calls.
5574
5575         [BZ #6612]
5576         * time/strftime.c (__strftime_internal): Call tzset() only
5577         when printing timezone-dependent values.
5578         Based on a patch by Petr Baudis <pasky@suse.cz>.
5579
5580         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5581         unconditionally use second gaih_getanswer_slice result.
5582
5583         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5584         (getaddrinfo): RES must always be non-NULL.
5585
5586 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5587
5588         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5589         cr[34] registers.
5590         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5591         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5592         Likewise.
5593         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5594         register.
5595
5596 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5597
5598         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5599         fields.
5600         * nscd/connections.c (inotify_fd): New variable.
5601         (nscd_init): Try to open an inotify descriptor.
5602         If successful, watch files for databases using inotify instead of
5603         having prune threads stat the files.
5604         (nscd_run_prune): Recognize clear_cache flag being set and call
5605         prune_cache appropriately.
5606         (main_loop_poll): Add inotify descriptor to wait set and handle the
5607         reported changes.
5608         (main_loop_epoll): Likewise.
5609         * nscd/cache.c (prune_cache): Don't stat files for databases if
5610         inotify is used.
5611         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5612         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5613
5614         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5615         fixed-size portion of the record.
5616         * nscd/servicescache.c (cache_addserv): Likewise.
5617         * nscd/pwdcache.c (cache_addpw): Likewise.
5618         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5619
5620 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5621
5622         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5623         out we don't use uninitialized memory.
5624
5625         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5626         the client.
5627
5628 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5629
5630         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5631         ignore T_DNAME messages.
5632         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5633
5634 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5635
5636         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5637         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5638
5639 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5640
5641         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5642         instead of portstr to nscd_getserv_r.  Patch by
5643         Roman Kagan <rkagan@mail.ru>.
5644
5645 2008-05-26  Jim Meyering  <meyering@redhat.com>
5646
5647         Remove more useless "if" tests before "free".
5648         * include/inline-hashtab.h (htab_delete): Likewise.
5649         * libio/freopen.c (freopen): Likewise.
5650         * libio/freopen64.c (freopen64): Likewise.
5651         * locale/programs/ld-collate.c (collate_read): Likewise.
5652         * misc/fstab.c (libc_freeres_fn): Likewise.
5653         * posix/glob.c (globfree): Likewise.
5654
5655 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5656
5657         * string/Makefile (strop-tests): Add memmem.
5658         * string/test-memmem.c: New file.
5659         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5660         (test_init): Size buf1 according to BUF1PAGES.
5661
5662 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5663
5664         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5665         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5666         (CFLAGS-scanf17.c): New.
5667         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5668         * stdio-common/scanf15.c (main): Likewise.
5669         * stdio-common/scanf16.c: New file.
5670         * stdio-common/scanf17.c: New file.
5671
5672 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5673
5674         * resolv/res_send.c (send_dg): If we already have one of two
5675         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5676         use the one answer insted of failing.
5677
5678 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5679
5680         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5681         being executed on PowerPC as the expected result exceeds IBM
5682         long double 128 __LDBL_MAX__.
5683
5684 2008-05-21  Roland McGrath  <roland@redhat.com>
5685
5686         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5687
5688         * Makefile (check-data): Use $(abi-name) before other guesses.
5689         Look in $(add-ons) dirs before scripts/data/.
5690         * elf/Makefile (check-data): Likewise.
5691
5692         * scripts/soversions.awk: Grok ABI line.
5693         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5694         Emit definition for abi-name variable.
5695
5696 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5697
5698         * string/endian.h: Define new fixed-size hto* and *toh macros only
5699         if [__USE_BSD].
5700
5701         * iconvdata/Depend: Add localedata.
5702
5703 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5704
5705         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5706
5707 2008-05-08  David S. Miller  <davem@davemloft.net>
5708
5709         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5710         HIDDEN_JUMPTARGET.
5711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5712         (__SYSCALL_CLOBBERS): Remove %g* registers.
5713         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5714         (__SYSCALL_CLOBBERS): Likewise.
5715         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5716         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5717
5718 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5719
5720         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5721         (CALL_ERRNO_LOCATION): Define.
5722         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5723         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5724         (CALL_ERRNO_LOCATION): Define.
5725         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5726         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5727         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5728
5729 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5730
5731         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5732         variable.
5733
5734 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5735
5736         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5737         (FIRST_FRAME_POINTER): Define.
5738
5739 2008-05-09  David S. Miller  <davem@davemloft.net>
5740
5741         * sysdeps/sparc/sparc64/backtrace.c: New file.
5742
5743 2008-05-14  David S. Miller  <davem@davemloft.net>
5744
5745         * sysdeps/sparc/machine-gmon.h: New file.
5746         * sysdeps/sparc/sparc-mcount.S: Likewise.
5747         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5748         sysdep_routines in gmon directory.
5749
5750 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5751
5752         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5753
5754 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5755
5756         * resolv/res_query.c (__libc_res_nquery): In case one of two
5757         answer was too short don't try to read that answer's header.
5758
5759         * resolv/res_send.c (send_dg): In case of timeout and there are
5760         two queries and one has been answered, return value indicating
5761         success.
5762
5763 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5764
5765         * nscd/cache.c (cache_add): Take additional parameter specifying
5766         whether this is in response of a cache refill.  Check alignment
5767         of package data.  Revamp waking of pruning thread.
5768         (prune_cache): Small optimization.
5769         * nscd/nscd.h: Adjust cache_add prototypes.
5770         * nscd/aicache.c: Adjust cache_add calls.
5771         * nscd/grpcache.c: Likewise.
5772         * nscd/hstcache.c: Likewise.
5773         * nscd/initgrcache.c: Likewise.
5774         * nscd/pwdcache.c: Likewise.
5775         * nscd/servicescache.c: Likewise.
5776         * nscd/connections.c (restart): Really disable cache use before
5777         exec attempt.  If it fails, reenable cache.
5778         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5779         time to max to be able to notice concurrent cache additions.  Unlock
5780         prune_lock while performing gc.  Afterwards compute wakeup time with
5781         current wakeup_time value in mind.
5782
5783 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5784
5785         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5786
5787         * nscd/mem.c (gc): Correctly determine highest used array element
5788         in mark.
5789
5790         * nscd/mem.c (markrange): Add assert to check entries are all
5791         aligned.  Small cleanup in bitmap use.
5792
5793         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5794         blockoff of type nscd_ssize_t.
5795         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5796         (mempoll_alloc): Record block offset and not address.
5797
5798         * nscd/mem.c (gc): Fix test for stack overuse.
5799
5800         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5801         more asserts.
5802
5803         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5804         entry is available, believe it.
5805
5806         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5807         no answers return NSS_STATUS_NOTFOUND.
5808         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5809         buffer does not have any content.
5810
5811 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5812
5813         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5814
5815         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5816         lookup, don't assign canon unconditionally.
5817
5818 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5819
5820         * string/Makefile (distribute): Add str-two-way.h.
5821
5822 2008-03-29  Eric Blake  <ebb9@byu.net>
5823
5824         Rewrite string searches to O(n) rather than O(n^2).
5825         * string/str-two-way.h: New file.  For linear fixed-allocation
5826         string searching.
5827         * string/memmem.c: New implementation.
5828         * string/strstr.c: New implementation.
5829         * string/strcasestr.c: New implementation.
5830
5831 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5832
5833         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5834         opr.ctx_type.
5835         (calc_first): Initialize constraint field.
5836         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5837         Use search_duplicated_node to avoid loops.  Fix grammar.
5838         (duplicate_node): Merge constraint field for all node types.
5839         (calc_eclosure_iter): Look at constraint field for all node types.
5840         * posix/regex_internal.c (create_cd_newstate): Don't look at
5841         create_cd_newstate.
5842
5843 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5844
5845         [BZ #6428]
5846         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5847
5848         [BZ #6442]
5849         * string/endian.h: Add macros for fixed-size endian conversion.
5850         * bits/byteswap.h: Allow inclusion from <endian.h>.
5851         * sysdeps/i386/bits/byteswap.h: Likewise.
5852         * sysdeps/ia64/bits/byteswap.h: Likewise.
5853         * sysdeps/s390/bits/byteswap.h: Likewise.
5854         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5855         * string/Makefile (tests): Add tst-endian.
5856         * string/tst-endian.c: New file.
5857
5858         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5859         Patch by Reuben Thomas.
5860
5861 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5862
5863         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5864
5865 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5866
5867         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5868
5869         [BZ #6461]
5870         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5871         Add missing braces.
5872         (BODY for __gconv_transform_internal_ascii): Likewise.
5873
5874         [BZ #6472]
5875         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5876         to be treated like link-local addresses.
5877         (match_prefix): Don't treat IPv4 loopback address special when
5878         converting to v4 mapped addressed.
5879
5880         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5881         if necessary.
5882         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5883         * posix/tst-rfc3484-2.c: Likewise.
5884         * posix/tst-rfc3484-3.c: Likewise.
5885
5886         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5887         and SCTP.
5888
5889         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5890
5891         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5892
5893         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5894
5895 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5896
5897         * po/lt.po: New file.  From Lituanian translation team.
5898
5899 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5900
5901         Introduce TLS descriptors for i386 and x86_64.
5902         * include/inline-hashtab.h: New file, copied from 2005's
5903         libiberty, with fix for memory leak imported afterwards by
5904         Glauber de Oliveira Costa.
5905         * elf/tlsdeschtab.h: New file.
5906         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5907         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5908         (CHECK_STATIC_TLS): Move to...
5909         * elf/dynamic-link.h: ... this file.
5910         (TRY_STATIC_TLS): New macro.
5911         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5912         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5913         R_386_TLS_DESC): Define.
5914         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5915         binutils.
5916         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5917         R_X86_64_TLSDESC): Define.
5918         (R_386_NUM, R_X86_64_NUM): Adjust.
5919         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5920         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5921         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5922         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5923         release tlsdesc_table.
5924         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5925         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5926         (elf_machine_rel): Handle R_386_TLS_DESC.
5927         (elf_machine_rela): Likewise.
5928         (elf_machine_lazy_rel): Likewise.
5929         (elf_machine_lazy_rela): Likewise.
5930         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5931         * sysdeps/i386/dl-tlsdesc.S: New file.
5932         * sysdeps/i386/dl-tlsdesc.h: New file.
5933         * sysdeps/i386/tlsdesc.c: New file.
5934         * sysdeps/i386/tlsdesc.sym: New file.
5935         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5936         tlsdesc_table.
5937         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5938         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5939         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5940         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5941         release tlsdesc_table.
5942         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5943         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5944         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5945         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5946         (elf_machine_rela): Likewise.
5947         (elf_machine_lazy_rel): Likewise.
5948         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5949         (__tls_get_addr): Do not declare for non-shared compiles.
5950         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5951         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5952         * sysdeps/x86_64/tlsdesc.c: New file.
5953         * sysdeps/x86_64/tlsdesc.sym: New file.
5954         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5955         tlsdesc_table for both 32- and 64-bit structs.
5956
5957 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5958
5959         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5960         its own function.  This reduces the frame setup costs and more.
5961
5962 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5963
5964         [BZ #3406]
5965         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5966         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5967
5968 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5969
5970         * io/openat.c (__openat_2): Also pass fd to __openat.
5971         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5972         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5973
5974         * string/tester.c (test_memcmp): Add a few more tests.
5975         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5976
5977 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5978
5979         * nscd/cache.c (cache_add): Before returning with failure and this
5980         is the first use of the record, mark it as unusable.
5981         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5982         reporting a failure.
5983         * nscd/grpcache.c: Likewise
5984         * nscd/hstcache.c: Likewise.
5985         * nscd/initgrcache.c: Likewise.
5986         * nscd/pwdcache.c: Likewise.
5987         * nscd/servicescache.c: Likewise.
5988
5989 2008-05-10  Roland McGrath  <roland@redhat.com>
5990
5991         [BZ #6505]
5992         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5993
5994 2008-05-08  David S. Miller  <davem@davemloft.net>
5995
5996         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5997
5998         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5999         (__ieee754_y0l): Likewise.
6000         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6001         (__ieee754_y1l): Likewise.
6002         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6003         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6004         frexpl and ldexpl.  math_private.h provides them and the latter
6005         is not even used.
6006         (__log1pl): Use __frexpl.
6007
6008 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6009
6010         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6011         prototypes.
6012         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6013         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6014         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6015         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6016         af==AF_UNSPEC.
6017         (_nss_nis_gethostbyname4_r): New function.
6018         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6019         Change to also handle af==AF_UNSPEC.
6020         (get_tablename): New function.  Use it to avoid duplication.
6021         (_nss_nisplus_gethostbyname4_r): New function.
6022         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6023         available.
6024         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6025         * nss/nss.h: Define struct gaih_addrtuple.
6026         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6027         af==AF_UNSPEC.
6028         (_nss_files_gethostbyname4_r): New function.
6029         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6030         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6031         calls.
6032         * resolv/res_query.c (__libc_res_nquery): Take two additional
6033         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6034         look up IPv4 and IPv6.
6035         Change all callers.
6036         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6037         for an additional query and answer buffer.  Pass to send_vc and
6038         send_dg.
6039         (send_vc): Send possibly two requests and receive two answers.
6040         (send_dg): Likewise.
6041         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6042         __libc_res_nquery.
6043         (_nss_dns_gethostbyname4_r): New function.
6044         (gaih_getanswer_slice): Likewise.
6045         (gaih_getanswer): Likewise.
6046         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6047         __libc_res_nquery call.
6048         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6049         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6050         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6051         available.
6052
6053 2008-05-05  David S. Miller  <davem@davemloft.net>
6054
6055         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6056         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6057
6058 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6059
6060         Fix termios bit macros.
6061         Move *DLY definitions where they belong, in termios.h.
6062         Add *[0-3] definitions.
6063         Fixes confusion between VT and FF.
6064         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6065         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6066         are already defined to avoid collision with termios.h.
6067         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6068         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6069         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6070         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6071         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6072         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6073         VTDLY, VT0, VT1): New macros.
6074         [__USE_GNU] (OLCUC): Change value of macro.
6075         [__USE_XOPEN] (OFILL): New macro.
6076         [__USE_BSD] (CRTSCTS): Change value.
6077         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6078         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6079         (B7200, B14400, B28800, B76800): New macros.
6080
6081 2008-05-01  David S. Miller  <davem@davemloft.net>
6082
6083         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6084         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6085         (gen-as-const-headers): Add it.
6086         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6087         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6088         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6089         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6090
6091         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6092         six system call parameters.
6093         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6094
6095 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6096
6097         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6098         RUSAGE_LWP.
6099         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6100         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6101
6102 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6103
6104         * stdlib/tst-setcontext.c: Include unistd.h.
6105
6106 2008-04-25  David S. Miller  <davem@davemloft.net>
6107
6108         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6109         Pass "union semun" properly in to sys_ipc, it must be passed
6110         by value, not by reference.
6111
6112 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6113
6114         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6115         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6116         * nscd/connections.c (mem_in_flight): Likewise.
6117
6118         * nscd/nscd.h (dbs): Make hidden.
6119
6120         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6121         Avoid returning -1, return 0 instead.
6122
6123 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6124
6125         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6126
6127 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6128
6129         [BZ #5209]
6130         * sysdeps/unix/sysv/linux/times.c: New file.
6131
6132         [BZ #5381]
6133         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6134         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6135         prototype.
6136         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6137         appropriate mem_in_flight element.
6138         (gc): Take allocations which have not yet been committed to the
6139         database into account.
6140         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6141         Reset mem_in_flight before returning.
6142         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6143         cue it up in mem_in_flight_list.
6144         * nscd/aicache.c: Adjust mempool_alloc call.
6145         * nscd/grpcache.c: Likewise.
6146         * nscd/hstcache.c: Likewise.
6147         * nscd/initgrcache.c: Likewise.
6148         * nscd/pwdcache.c: Likewise.
6149         * nscd/servicescache.c: Likewise.
6150         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6151         of -fpie.
6152
6153         * nscd/connections.c (handle_request): Provide better error message
6154         in case SELinux forbids the service.
6155
6156         * version.h (VERSION): Bump to 2.8.90.
6157
6158 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6159
6160         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6161
6162 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6163
6164         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6165         Also use for 32-bit.
6166         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6167         __nextafter instead of nextafter to avoid local PLT.
6168         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6169         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6170
6171         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6172
6173         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6174         __fe_nomask_env.
6175         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6176         <fenv_libc.h> instead of <fenv.h>.
6177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6179
6180         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6181
6182         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6183         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6184         function from fegetexcept and make old name weak alias.
6185         * include/fenv.h: Declare __fegetexcept.
6186         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6187         fegetexcept.
6188         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6189         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6190         to fetestexcept.
6191         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6192         instead of frexpl to avoid local PLT.
6193         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6194         ilogbl to avoid local PLT.
6195         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6196         instead of ldexpl to avoid local PLT.
6197         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6198         __roundl not roundl to avoid local PLT.
6199         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6200         local PLTs.  Use __sincosl instead of separate sinl and cosl
6201         calls.
6202         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6203
6204         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6205         version for ppc64 to 2.4.21 since without it makecontext will fail.
6206
6207         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6208         to the ABI in use.
6209         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6210         .__tls_get_addr.
6211         [__powerpc64__] (TLS_GD): Likewise.
6212
6213 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6214
6215         [BZ #4997]
6216         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6217         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6218         mantissa.
6219         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6220         Likewise.  Also account for when x is an odd number between 2^52
6221         and 2^53-1.
6222         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6223         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6224         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6225         detect aforementioned erroneous conditions.
6226
6227 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6228
6229         * configure.in: Check for -fno-section-anchors in addition to
6230         -fno-toplevel-reorder.
6231
6232 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6233
6234         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6235
6236         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6237         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6238         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6239         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6240         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6241         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6242
6243 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6244
6245         [BZ #5443]
6246         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6247         * time/alt_digit.c: Likewise.
6248         * wcsmbs/wcsmbsload.c: Likewise.
6249
6250 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6251
6252         * version.h (VERSION): Bump to 2.8.
6253
6254         * timzeone/asia: Update from tzdata2008b.
6255         * timezone/backward: Likewise.
6256         * timezone/europe: Likewise.
6257         * timezone/northamerica: Likewise.
6258         * timezone/southamerica: Likewise.
6259         * timezone/iso3166.tab: Likewise.
6260         * timezone/leapseconds: Likewise.
6261         * timezone/zone.tab: Likewise.
6262         * timezone/private.h: Update from tzcode2008a.
6263         * timezone/zdump.c: Likewise.
6264         * timezone/zic.c: Likewise.
6265
6266 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6267
6268         [BZ #5741]
6269         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6270         Define additonal Data Cache Block instruction macros.
6271         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6272         Replace dcbst with dcbf and sync with sync/isync.
6273
6274 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6275
6276         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6277         Always set ELF_RTYPE_CLASS_PLT.
6278         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6279
6280 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6281
6282         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6283         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6284         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6285         For ISA 2.01 and later replace mftb with mfspr 268.
6286
6287 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6288
6289         [BZ #5768]
6290         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6291         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6292
6293 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6294
6295         [BZ #5768]
6296         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6297         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6298         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6299         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6300
6301 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6302
6303         * stdlib/tst-makecontext.c (othervar): New variable.
6304         (cf): Test sign extending the argument to long.
6305
6306 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6307
6308         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6309         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6310         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6311         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6312         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6313         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6314         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6315
6316 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6317
6318         * elf/Makefile (tests): Substitute tests-vis-yes here.
6319         (tests-vis-yes): Delete.
6320         (modules-name, modules-vis-yes): Similarly.
6321
6322 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6323
6324         [BZ #4407]
6325         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6326         Preserve sign in signgamp when x is zero.
6327
6328 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6329
6330         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6331         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6332         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6333         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6334         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6335         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6336
6337 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6338
6339         [BZ #4314]
6340         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6341         buffers.
6342
6343         [BZ #5209]
6344         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6345         a reserved error value.
6346
6347         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6348         value to check for correct sign extension.
6349
6350         [BZ #5436]
6351         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6352         Copy 64-bit parameter values even though this is not required in
6353         the standard.
6354
6355         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6356         PC save.
6357
6358 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6359
6360         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6361         PC save.
6362
6363 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6364
6365         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6366
6367 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6368
6369         [BZ #5998]
6370         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6371         in line-buffered stream failed.
6372         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6373
6374 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6375
6376         [BZ #6024]
6377         * scripts/abi-versions.awk: If the version specified by
6378         --enable-oldest-abi is older than the first version for this
6379         architecture, use the default version.
6380
6381         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6382         as well when ignoring the whole category.
6383
6384 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6385
6386         [BZ #6042]
6387         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6388         ETHERTYPE_* definitions.
6389         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6390
6391 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6392
6393         * stdlib/mbtowc.c (__no_r_state): Remove.
6394         (mbtowc): New static state variable.  Use it instead of
6395         __no_r_state.
6396         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6397         (__wctomb_state): New hidden variable.
6398         (wctomb): Use __wctomb_state instead of __no_r_state.
6399         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6400         (__wctomb_state): New extern decl.
6401         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6402
6403 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6404
6405         [BZ #5475]
6406         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6407
6408 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6409
6410         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6411
6412 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6413
6414         * po/nl.po: Update from translation team.
6415
6416 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6417
6418         [BZ #6007]
6419         * string/strfry.c: Handle empty strings again.
6420
6421 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6422
6423         [BZ #5443]
6424         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6425         before looking for translation.
6426         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6427         * locale/freelocale.c: Likewise.
6428         * locale/newlocale.c: Likewise.
6429         * locale/setlocale.c: Likewise.
6430         Based partially on a patch by ryo@np.css.fujitsu.com.
6431
6432 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6433
6434         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6435         acquiring wrlock.  Do conv_tab allocation while holding lock.
6436         * intl/Makefile: Add rules to build and run tst-gettext6.
6437         * intl/tst-gettext6.c: New test.
6438         * intl/tst-gettext6.sh: New file.
6439
6440 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6441
6442         * po/nl.po: Update from translation team.
6443
6444         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6445         provided through st_blksize, try the default size before giving up.
6446
6447 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6448
6449         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6450
6451         [BZ #5939]
6452         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6453
6454         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6455         error message.  POSIX today does not require the messages to be in
6456         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6457
6458         [BZ #5979]
6459         * sunrpc/auth_unix.c: Unify printed strings.
6460         * sunrpc/clnt_tcp.c: Likewise.
6461         * sunrpc/clnt_udp.c: Likewise.
6462         * sunrpc/clnt_unix.c: Likewise.
6463         * sunrpc/svc_tcp.c: Likewise.
6464         * sunrpc/svc_udp.c: Likewise.
6465         * sunrpc/svc_unix.c: Likewise.
6466         * sunrpc/xdr.c: Likewise.
6467         * sunrpc/xdr_array.c: Likewise.
6468         * sunrpc/xdr_rec.c: Likewise.
6469         * sunrpc/xdr_ref.c: Likewise.
6470         * locale/programs/ld-time.c (time_finish): Unify messages.
6471         * locale/programs/locfile.c (handle_copy): Fix typo.
6472         * nscd/nscd.c (options): Fix typo.
6473
6474         [BZ #5995]
6475         * stdlib/strtod_l.c: Use correct sign for result in one more
6476         underflow case.
6477         Patch by Eric Blake <ebb9@byu.net>.
6478
6479 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6480
6481         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6482         and creat system calls.
6483         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6484         call.
6485         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6486         system calls.
6487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6488         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6489         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6490
6491 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6492
6493         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6494         <linux/limits.h> has defined it.
6495         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6496         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6497         headers.
6498         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6499         it instead of ARG_MAX.
6500
6501 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6502
6503         * posix/gai.conf: Fix comment for scope nullbits.
6504         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6505         default to 128 bits for v4 mapped addresses.
6506
6507 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6508
6509         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6510         ptrace call to get the ieee_instruction_pointer from the kernel.
6511         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6512         ptrace call to set the ieee_instructtion_pointer.
6513         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6514         Add comment that ieee_instruction_pointer is always 0.
6515
6516 2008-03-09  Andreas Jaeger  <aj@suse.de>
6517
6518         [BZ #5857]
6519         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6520         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6521         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6522
6523         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6524         (rint_test): Likewise.
6525
6526 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6527
6528         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6529         call.
6530         (__nisfind_server): Similar for open readColdStartFile call.
6531         Patch partially by Jim Meyering.
6532         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6533         around internal_setent call.
6534
6535         * po/vi.po: New Vietnamese translation.
6536
6537         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6538         ADJ_OFFSET_SS_READ.
6539
6540         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6541         remove CLONE_STOPPED.
6542
6543 2008-02-10  Jim Meyering  <meyering@redhat.com>
6544
6545         Remove useless "if" before "free":
6546         * elf/ldconfig.c (parse_conf_include): Likewise.
6547         * gmon/gmon.c (weak_alias): Likewise.
6548         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6549         * inet/rcmd.c (__validuser2_sa): Likewise.
6550         * intl/bindtextdom.c (set_binding_values): Likewise.
6551         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6552         * libio/genops.c (save_for_backup): Likewise.
6553         * libio/wgenops.c (save_for_wbackup): Likewise.
6554         * locale/programs/ld-collate.c (collate_read): Likewise.
6555         * locale/programs/linereader.c (get_string): Likewise.
6556         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6557         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6558         * resolv/res_debug.c (do_section): Likewise.
6559         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6560         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6561         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6562         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6563         * time/tzset.c (tzset_internal): Likewise.
6564
6565 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6566
6567         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6568         of ASSEMBLER.
6569
6570 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6571
6572         [BZ #5903]
6573         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6574         not stream for output file.  Open output file here.
6575         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6576         and output file name.
6577         (process_fd): Likewise.
6578         (process_file): Likewise.
6579         (main): Adjust callers of changed functions.
6580         * iconv/iconv_prog.h: Adjust prototype.
6581
6582 2008-03-09  Andreas Jaeger  <aj@suse.de>
6583
6584         [BZ #5753]
6585         * sysdeps/ia64/ieee754.h: Use protected namespace
6586         __BIG_ENDIAN/__LITTLE_ENDIAN.
6587         * sysdeps/ieee754/ieee754.h: Likewise.
6588         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6589
6590 2008-03-08  Roland McGrath  <roland@frob.com>
6591
6592         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6593         ignore a signal that came from a machine exception, treat it as a
6594         fatal core-dump signal instead.
6595         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6596
6597         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6598         Clear DF bit in thread state's eflags.
6599         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6600
6601 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6602
6603         [BZ #5774]
6604         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6605         of NAN(...) sequence.
6606         * stdlib/Makefile (tests): Add tst-strtod6.
6607         * stdlib/tst-strtod6.c: New file.
6608
6609         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6610
6611         [BZ #5762]
6612         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6613         putting offending option character in quotes.  Clean up error
6614         messages.
6615         * po/be.po: Adjust msgstr in translation file.
6616         * po/bg.po: Likewise.
6617         * po/ca.po: Likewise.
6618         * po/cs.po: Likewise.
6619         * po/da.po: Likewise.
6620         * po/de.po: Likewise.
6621         * po/es.po: Likewise.
6622         * po/fr.po: Likewise.
6623         * po/hr.po: Likewise.
6624         * po/ko.po: Likewise.
6625         * po/nl.po: Likewise.
6626         * po/rw.po: Likewise.
6627         * po/sk.po: Likewise.
6628         * po/sv.po: Likewise.
6629         * po/tr.po: Likewise.
6630         * po/zh_CN.po: Likewise.
6631         * po/zh_TW.po: Likewise.
6632
6633         [BZ #5760]
6634         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6635         Patch by Roland Bless <roland@bless.de>.
6636
6637         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6638         .o file.
6639         * elf/Makefile (routines): Add dl-sysdep.
6640         (elide-routines.os): Likewise.
6641
6642 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6643
6644         [BZ #5786]
6645         * elf/dl-sysdep.c: Undefine ROUND after use.
6646         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6647         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6648         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6649         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6650         to ...
6651         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6652         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6653         if necessary.
6654         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6655
6656         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6657         _dl_tls_get_addr_soft element.
6658         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6659         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6660         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6661         GLRO.
6662         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6663         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6664         of internal_function.
6665
6666         * stdlib/Makefile (aux): Add tens_in_limb.
6667         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6668         * stdlib/tens_in_limb.c: ...here.  New file.
6669
6670         [BZ #5778]
6671         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6672         __statfs_chown_restricted.
6673         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6674         for _PC_CHOWN_RESTRICTED.
6675         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6676         Implement __statfs_chown_restricted.
6677         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6678         _POSIX_CHOWN_RESTRICTED value to zero.
6679         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6680         defined to zero.
6681
6682         * sysdeps/x86_64/rtld-memset.c: New file.
6683
6684 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6685
6686         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6687
6688         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6689         Barcelona machine.  Make default fall through branch of
6690         __x86_64_preferred_memory_instruction check as the integer code path.
6691
6692 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6693
6694         * sysdeps/x86_64/cacheinfo.c
6695         (__x86_64_preferred_memory_instruction): New variable.
6696         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6697
6698         * sysdeps/x86_64/memset.S: Rewrite.
6699
6700 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6701
6702         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6703         __obstack_printf_chk): New prototypes.
6704         (__vasprintf_chk, __vdprintf_chk,
6705         __obstack_vprintf_chk): Likewise.
6706         Add libc_hidden_proto.
6707         * libio/obprintf.c
6708         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6709         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6710         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6711         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6712         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6713         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6714         __obstack_vprintf_chk): New prototypes.
6715         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6716         obstack_vprintf): New inlines.
6717         * debug/dprintf_chk.c: New file.
6718         * debug/vdprintf_chk.c: New file.
6719         * debug/asprintf_chk.c: New file.
6720         * debug/vasprintf_chk.c: New file.
6721         * debug/obprintf_chk.c: New file.
6722         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6723         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6724         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6725         @@GLIBC_2.8.
6726         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6727         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6728         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6729         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6730         libc_hidden_proto.
6731         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6732         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6733         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6734         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6735         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6736         @@GLIBC_2.8.
6737         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6738         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6739         obstack_vprintf_chk.
6740         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6741         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6742         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6743         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6744         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6745         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6746
6747 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6748
6749         [BZ #5779]
6750         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6751         Patch by Roy Marples <roy@marples.name>.
6752
6753         [BZ #5736]
6754         * malloc/malloc.c: Fix typo in comment.
6755
6756         [BZ #5627]
6757         * locale/iso-639.def: Add Shuswap.
6758
6759 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6760
6761         [BZ #5790]
6762         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6763         overwrite *h_errnop/*errnop values from getanswer_r in case of
6764         failure.
6765
6766 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6767
6768         [BZ #5818]
6769         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6770         (verify_persistent_db): Remove one unnecessary test and add a new one
6771         for bad configuration.
6772         (nscd_init): Improve error reported when persistent database cannot
6773         be reused.
6774         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6775         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6776         .suggested_module and .max_db_size and case config file says the
6777         values are zero.
6778         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6779
6780         [BZ #5854]
6781         * nis/ypclnt.c (yp_order): Fix handling of return value of
6782         do_ypcall_tr call.
6783         Patch by Jeff Moyer <jmoyer@redhat.com>.
6784
6785         * po/fr.po: Update from translation team.
6786
6787 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6788             Carlos O'Donell <carlos@systemhalted.org>
6789
6790         [BZ #5012]
6791         * FAQ.in: Describe why glibc needs to be compiled with
6792         optimization.
6793
6794 2008-02-19  Roland McGrath  <roland@redhat.com>
6795
6796         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6797
6798 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6799
6800         [BZ #5737]
6801         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6802         __USE_MISC is defined.
6803
6804 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6805
6806         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6807         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6808         sys/timerfd.h.
6809         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6810         timerfd_gettime, timerfd_settime.
6811         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6812         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6813
6814 2008-02-08  Roland McGrath  <roland@redhat.com>
6815
6816         * elf/elf.h (NT_PPC_SPE): New macro.
6817
6818 2008-02-06  Roland McGrath  <roland@redhat.com>
6819
6820         * Makerules ($(common-objpfx)sysd-rules):
6821         Depend on $(sysdep-makeconfigs).
6822
6823 2008-01-31  Roland McGrath  <roland@redhat.com>
6824
6825         [BZ #5442]
6826         * configure.in: Use -print-file-name if it yields a directory,
6827         for each of include and include-fixed.
6828         * configure: Regenerated.
6829
6830         * Makeconfig (sysd-rules-targets): New variable.
6831         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6832         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6833
6834 2008-01-30  Roland McGrath  <roland@redhat.com>
6835
6836         * manual/libc.texinfo: Update back-cover text.
6837
6838         * elf/elf.h (NT_386_TLS): New macro.
6839
6840 2008-01-29  Roland McGrath  <roland@redhat.com>
6841
6842         * Makeconfig (sysd-rules-patterns): New variable.
6843         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6844         (check-inhibit-asm): New canned sequence, replaces ...
6845         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6846         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6847         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6848         (CFLAGS-rtld): Variable removed.
6849
6850 2008-01-24  Roland McGrath  <roland@redhat.com>
6851
6852         * configure.in: Let configure fragments set base_os.
6853         * configure: Regenerated.
6854
6855 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6856
6857         * po/ko.po: Update from translation team.
6858
6859 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6860
6861         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6862
6863 2008-01-12  Andreas Jaeger  <aj@suse.de>
6864
6865         [BZ #5040]
6866         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6867         Add EPOLLRDHUP.
6868
6869 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6870
6871         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6872         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6873         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6874
6875 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6876
6877         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6878         * elf/dl-close.c (_dl_close): Check for it.
6879         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6880         (_dl_allocate_static_tls): Likewise.
6881         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6882         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6883         to it.
6884         * elf/tst-tls16.c: New file.
6885         * elf/tst-tlsmod16a.c: New file.
6886         * elf/tst-tlsmod16b.c: New file.
6887         * elf/Makefile: Add rules to build and run tst-tls16.
6888
6889 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6890
6891         [BZ #5628]
6892         * bits/shm.h: Fix comment describing shmid_ds.
6893         * sysdeps/gnu/bits/shm.h: Likewise.
6894         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6895         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6896         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6897         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6898         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6899         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6900         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6901         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6902         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6903
6904         [BZ #5607]
6905         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6906         prototypes.
6907         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6908         additional suffixes.
6909         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6910         Add optional functions mq_timedreceive and mq_timedsend.
6911         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6912         * conform/data/pthread.h-data: Fix prototype of
6913         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6914         * conform/data/semaphore.h-data: Allow time.h definitions.
6915         * conform/data/signal.h-data: Likewise.
6916         * conform/data/stdio.h-data: getw and putw are not required in v6.
6917         * conform/data/stdlib.h-data: Change setstate prototype.
6918         * conform/data/string.h-data: Fix strerror_r prototype.
6919         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6920         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6921         Fix readlink prototype.
6922         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6923         in6addr_loopback.
6924         * inet/netinet/in.h: Cleanup namespace.
6925         * posix/regex.h: Likewise.
6926         * resolv/netdb.h: Likewise.
6927         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6928         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6929         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6930         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6931         of names of in in6_addr.
6932         (default_precedence): Likewise.
6933         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6934         NULL definition.
6935
6936 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6937
6938         * conform/data/fmtmsg.h-data: Add missing allows.
6939         * conform/data/ftw.h-data: Likewise.
6940         * conform/data/inttypes.h-data: Likewise.
6941         * conform/data/math.h-data: Likewise.
6942         * conform/data/signal.h-data: Likewise.
6943         * conform/data/net/if.h-data: Likewise.
6944         * conform/data/netinet/in.h-data: Likewise.
6945         * conform/data/sys/socket.h-data: Likewise.
6946
6947         [BZ #5614]
6948         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6949         (__strtok_r): Simplify.
6950         * string/tester.c (test_strtok_r): Add test case for futile search
6951         with single-character seach string.
6952
6953 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6954
6955         * po/ko.po: Update from translation team.
6956
6957 2008-01-11  Andreas Jaeger  <aj@suse.de>
6958
6959         [BZ #5600]
6960         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6961         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6962         kernel header.
6963
6964 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6965
6966         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6967         native interface lookup in all the relevant places.
6968
6969 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6970             Ulrich Drepper  <drepper@redhat.com>
6971
6972         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6973         field.  Use sockaddr_in6 for source_addr.
6974         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6975         (match_prefix): Likewise.
6976         (get_label): Likewise.
6977         (get_precedence): Likewise.
6978         (rfc3484_sort): Change to use indirect access to results array.
6979         Adjust to use of sockaddr_in6.  Replace service_order test with
6980         simple index comparison.
6981         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6982         service_order field.  Adjust qsort_t calls.  Access sorted result
6983         array indirectly through order array.
6984         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6985         * posix/tst-rfc3484-2.c: Likewise.
6986         * posix/tst-rfc3484-3.c: Likewise.
6987
6988 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6989
6990         [BZ #5541]
6991         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6992         pollfd structures.
6993         Patch by André Cruz.
6994
6995         [BZ #5545]
6996         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6997         (clnt_spcreateerror): Likewise.
6998
6999         [BZ #5553]
7000         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7001         (public_mEMALIGn): Likewise.
7002         Patch mostly by Daniel Jacobowitz.
7003
7004 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7005
7006         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7007         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7008         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7009         * stdlib/tst-makecontext2.c: New test.
7010
7011 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7012
7013         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7014         defined.
7015         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7016         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7017         transliteration hooks and REINIT_PARAMS afterwards.
7018         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7019         status.
7020         (REINIT_PARAMS): Define.
7021         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7022         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7023         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7024         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7025         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7026         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7027         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7028         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7029         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7030         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7031         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7032         * iconvdata/tst-iconv7.c: New test.
7033
7034 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7035
7036         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7037
7038 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7039
7040         [BZ #5112]
7041         * nscd/connections.c (restart): Fix condition.
7042
7043 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7044
7045         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7046         __ctype_toupper_loc): Add __THROW.
7047
7048 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7049
7050         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7051         recognition of interface family.
7052
7053         * posix/getconf.c: Update copyright year.
7054         * nss/getent.c: Likewise.
7055         * iconv/iconvconfig.c: Likewise.
7056         * iconv/iconv_prog.c: Likewise.
7057         * elf/ldconfig.c: Likewise.
7058         * catgets/gencat.c: Likewise.
7059         * csu/version.c: Likewise.
7060         * elf/ldd.bash.in: Likewise.
7061         * elf/sprof.c (print_version): Likewise.
7062         * locale/programs/locale.c: Likewise.
7063         * locale/programs/localedef.c: Likewise.
7064         * nscd/nscd.c (print_version): Likewise.
7065         * debug/xtrace.sh: Likewise.
7066         * malloc/memusage.sh: Likewise.
7067         * malloc/mtrace.pl: Likewise.
7068         * debug/catchsegv.sh: Likewise.
7069
7070 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7071
7072         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7073         second lookup.
7074
7075 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7076
7077         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7078         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7079
7080 2007-12-17  Roland McGrath  <roland@redhat.com>
7081
7082         * inet/ether_line.c (ether_line): Remove unused variable.
7083
7084 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7085
7086         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7087         and winp.
7088         * login/openpty.c (openpty): Likewise.
7089         * login/pty.h (openpty, forkpty): Likewise.
7090         * manual/terminal.texi (openpty, forkpty): Likewise.
7091
7092 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7093
7094         * malloc/malloc.c (public_cALLOc): For arenas other than
7095         main_arena, count all bytes inside the mprotect_size range of the
7096         heap as uninitialized.
7097
7098 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7099
7100         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7101         executable stacks.
7102
7103         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7104         mTRIm for all of them.
7105         (mTRIm): Additionally iterate over all free blocks and use madvise
7106         to free memory for all those blocks which contain at least one
7107         memory page.
7108         * malloc/tst-trim1.c: New file.
7109         * malloc/Makefile (tests): Add tst-trim1.
7110
7111         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7112
7113 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7114
7115         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7116         First cast argument to long
7117         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7118         Return long.
7119         (__vdso_clock_gettime): Likewise.
7120         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7121         return long.
7122
7123 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7124
7125         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7126         * locale/nl_langinfo_l.c: Real implementation, copied from
7127         nl_langinfo.c.
7128         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7129
7130 2007-12-01  Jim Meyering  <meyering@redhat.com>
7131
7132         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7133         that would inhibit utf8-optimization of a regexp containing line-
7134         or buffer-anchors, e.g., `^', `$'.
7135
7136 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7137
7138         * time/bug-getdate1.c (do_test): Don't use century values which
7139         aren't valid on 32-bit systems.
7140
7141 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7142
7143         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7144         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7145         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7146         __strcat_g, __strncat_g): Add __asm__.
7147
7148 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7149
7150         [BZ #5477]
7151         * io/fchmodat.c: Fix typo in stub_warning use.
7152         Patch by Petr Salinger.
7153
7154 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7155
7156         * iconvdata/hp-thai8.c: New file.
7157         * iconvdata/Makefile: Add rules for hp-thai8.c.
7158         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7159         * iconvdata/gconv-modules: Likewise.
7160
7161         [BZ #5464]
7162         * iconvdata/hp-greek8.c: New file.
7163         * iconvdata/Makefile: Add rules for hp-greek8.c.
7164         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7165         * iconvdata/gconv-modules: Likewise.
7166
7167         [BZ #5463]
7168         * iconvdata/hp-turkish8.c: New file.
7169         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7170         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7171         * iconvdata/gconv-modules: Likewise.
7172
7173         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7174         (shrink_heap): ... this new function.
7175         (heap_trim): Call shrink_heap instead of grow_heap.
7176
7177         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7178         case don't call alloc_perturb.
7179
7180 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7181
7182         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7183         possible.
7184         * sysdeps/unix/sysv/linux/kernel-features.h
7185         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7186         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7187
7188 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7189
7190         [BZ #5424]
7191         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7192         * stdio-common/Makefile (tests): Add bug22.
7193         * stdio-common/bug22.c: New file.
7194
7195         [BZ #5451]
7196         * time/getdate.c: Fix filling in default values.
7197         * time/bug-getdate1.c: New file.
7198         * time/Makefile: Add rules to build and run bug-getdate1.
7199
7200         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7201         * iconvdata/ebcdic-es.c: Likewise.
7202         * iconvdata/ebcdic-es-a.c: Likewise.
7203         * iconvdata/ebcdic-uk.c: Likewise.
7204         * iconvdata/iso8859-16.c: Likewise.
7205         * iconvdata/viscii.c: Likewise.
7206         * iconvdata/iso8859-9e.c: Likewise.
7207         * iconvdata/Makefile: Adjust appropriately.
7208
7209         [BZ #5428]
7210         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7211         __need_wint_t.
7212
7213 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7214
7215         [BZ #5427]
7216         * iconvdata/hp-roman9.c: New file.
7217         * iconvdata/Makefile: Add rules for hp-roman9.c.
7218         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7219         * iconvdata/gconv-modules: Likewise.
7220
7221         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7222         * iconvdata/Makefile: Adjust appropriately.
7223
7224         [BZ #5441]
7225         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7226         structure, it's allocated with alloca.
7227         * stdio-common/Makefile (tests): Add bug21.
7228         * stdio-common/bug21.c: New file.
7229
7230 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7231
7232         [BZ #5452]
7233         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7234         keyword for gcc's braced-groups.
7235
7236 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7237
7238         [BZ #5454]
7239         * inet/ether_line.c: Strip hostname of whitespaces.
7240         * inet/Makefile (tests): Add tst-ether_line.
7241         * inet/tst-ether_line.c: New file.
7242
7243 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7244
7245         [BZ #5439]
7246         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7247
7248         [BZ #5435]
7249         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7250
7251         * stdlib/tst-setcontext.c: Catch the case where the links gets
7252         messed up and we do not reach main again.
7253
7254         * po/ca.po: Update from translation team.
7255
7256 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7257
7258         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7259         * posix/regex.h (REG_ENOSYS): Likewise.
7260         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7261
7262 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7263
7264         * nscd/nscd.h (MAX_STACK_USE): Define.
7265         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7266         (gc): Initialize stack_used based on allocation in prune_cache.
7267         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7268         Clear array before use.
7269
7270         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7271         memory allocation failed.
7272         * nscd/hstcache.c (cache_addhst): Likewise.
7273         * nscd/grpcache.c (cache_addgr): Likewise.
7274         * nscd/servicescache.c (cache_addserv): Likewise.
7275         * nscd/pwdcache.c (cache_addpw): Likewise.
7276         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7277
7278 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7279
7280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7281         and creat system calls.
7282
7283         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7284
7285 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7286
7287         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7288         Add netiucv/iucv.h.
7289         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7290         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7291         protocol.
7292         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7293         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7294         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7295
7296 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7297
7298         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7299         strncat): Define as macros to avoid compile errors.
7300
7301         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7302         creat entries.
7303
7304 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7305
7306         [BZ #5382]
7307         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7308         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7309         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7310         overflow it.
7311         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7312
7313         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7314         Return zero in case the thread library is not NPTL.
7315
7316         [BZ #5375]
7317         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7318         initializing interface list.
7319
7320         [BZ #5378]
7321         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7322         use result of nss_getgrgid_r if nothing was found.  For other
7323         error return with a failure.
7324         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7325
7326         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7327         macro name.
7328
7329 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7330
7331         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7332         (get_scope): For IPv4 scope, use scopes table.
7333         (fini): Free scopes table if necessary.
7334         (free_scopelist): New function.
7335         (scopecmp): New function.
7336         (gaiconf_init): Also handle scopev4 entries.
7337         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7338         * posix/tst-rfc3484-2.c (do_test): Likewise.
7339         * posix/gai.conf: Document scopev4 defaults.
7340         * posix/Makefile (tests): Add tst-rfc3484-3.
7341         * posix/tst-rfc3484-3.c: New file.
7342
7343         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7344         Teredo tunnels.
7345         * posix/gai.conf: Update for current default tables.
7346
7347 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7348
7349         * po/tr.po: Update from translation team.
7350
7351 2007-11-18  Roland McGrath  <roland@frob.com>
7352
7353         * manual/arith.texi (Remainder Functions): Spelling fix.
7354         From Shaun Silk <genix@mysoul.com.au>.
7355
7356         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7357
7358 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7359
7360         * po/zh_CN.po: Update from translation team.
7361
7362         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7363         Add sys/signalfd.h and sys/eventfd.h.
7364
7365 2007-11-15  Bruno Haible  <bruno@clisp.org>
7366
7367         [BZ #5346]
7368         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7369         union.
7370         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7371         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7372         it needs only fixed stack space. Delay the initialization of
7373         msgid_len until it is needed.
7374
7375 2007-11-15  Andreas Jaeger  <aj@suse.de>
7376
7377         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7378         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7379
7380 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7381
7382         * po/ko.po: Update from translation team.
7383
7384 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7385
7386         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7387         significantly.  The device type is also part of the ifinfomsg data.
7388
7389         * po/sv.po: Update from translation team.
7390         * po/nl.po: Likewise.
7391
7392         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7393         to wake up in 24 hours.
7394
7395         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7396
7397 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7398
7399         * po/cs.po: Update from translation team.
7400         * po/pl.po: Likewise.
7401
7402         * include/ifaddrs.h: Remove in6ai_temporary.
7403         (struct in6addrinfo): Add index element.
7404         Declare __check_native.
7405         * inet/Makefile (aux): Add check_native.
7406         * sysdeps/unix/sysv/linux/check_native.c: New file.
7407         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7408         IFA_F_TEMPORARY.  Pass back ifa_index.
7409         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7410         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7411         call __check_native if necessary.
7412         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7413         to sort addresses.  Pass information about the results.
7414         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7415         of rfc3484_sort interface.
7416         * posix/tst-rfc3484-2.c: Likewise.
7417
7418         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7419         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7420         for _quicksort.
7421         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7422         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7423         on as third parameter to compare function and _quicksort.
7424         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7425         to the compare function.
7426         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7427         * Versions.def: Add GLIBC_2.8 for libc.
7428
7429         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7430         * posix/tst-rfc3484-2.c: Likewise.
7431
7432         * include/kernel-features.h: Moved to...
7433         * sysdeps/mach/hurd/kernel-features.h: ...here.
7434
7435 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7436
7437         * sysdeps/i386/i586/memcpy_chk.S: New file.
7438         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7439         * sysdeps/i386/i586/memset_chk.S: Likewise.
7440
7441 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7442
7443         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7444         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7445         list of interfaces.  Also store prefix length.
7446         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7447         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7448         prefix if source and destination address are in the same subnet.
7449         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7450         Always look for matching record in in6ai list.
7451         Correct source_addr_len value for IPv6->IPv4 converted records.
7452
7453 2007-11-11  Roland McGrath  <roland@frob.com>
7454
7455         * include/kernel-features.h: New file.
7456
7457 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7458
7459         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7460         complications for 64-bit platforms.
7461
7462         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7463         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7464         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7465         open64_2.
7466         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7467         entries.
7468         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7469         * sysdeps/wordsize-64/alphasort.c: New file.
7470         * sysdeps/wordsize-64/alphasort64.c: New file.
7471         * sysdeps/wordsize-64/fseeko.c: New file.
7472         * sysdeps/wordsize-64/fseeko64.c: New file.
7473         * sysdeps/wordsize-64/ftello.c: New file.
7474         * sysdeps/wordsize-64/ftello64.c: New file.
7475         * sysdeps/wordsize-64/ftw.c: New file.
7476         * sysdeps/wordsize-64/ftw64.c: New file.
7477         * sysdeps/wordsize-64/iofgetpos.c: New file.
7478         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7479         * sysdeps/wordsize-64/iofopen.c: New file.
7480         * sysdeps/wordsize-64/iofopen64.c: New file.
7481         * sysdeps/wordsize-64/iofsetpos.c: New file.
7482         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7483         * sysdeps/wordsize-64/lockf.c: New file.
7484         * sysdeps/wordsize-64/lockf64.c: New file.
7485         * sysdeps/wordsize-64/mkostemp.c: New file.
7486         * sysdeps/wordsize-64/mkostemp64.c: New file.
7487         * sysdeps/wordsize-64/mkstemp.c: New file.
7488         * sysdeps/wordsize-64/mkstemp64.c: New file.
7489         * sysdeps/wordsize-64/scandir.c: New file.
7490         * sysdeps/wordsize-64/scandir64.c: New file.
7491         * sysdeps/wordsize-64/tmpfile.c: New file.
7492         * sysdeps/wordsize-64/tmpfile64.c: New file.
7493         * sysdeps/wordsize-64/versionsort.c: New file.
7494         * sysdeps/wordsize-64/versionsort64.c: New file.
7495         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7496         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7497         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7498         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7499         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7500         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7501         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7502         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7503         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7504         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7505         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7506         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7507
7508         * crypt/sha256-crypt.c: Fix a comment.
7509         * crypt/sha512-crypt.c: Likewise.
7510
7511 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7512
7513         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7514
7515 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7516
7517         [BZ #5277]
7518         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7519         because output buffer is too small break, don't loop.
7520         * iconvdata/Makefile (tests): Add bug-iconv6.
7521         * iconvdata/bug-iconv6.c: New file.
7522
7523 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7524
7525         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7526         with size_t type.
7527         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7528         size_t.  Add casts where needed.
7529
7530         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7531         old headers, don't call avc_has_perm if we don't have the
7532         permission information.
7533
7534 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7535
7536         * elf/rtld.c (dl_main): Use the page size to find the map start.
7537
7538 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7539
7540         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7541         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7542
7543         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7544         when the lookup call failed.
7545
7546         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7547         Add prune_cond and wakeup_time.
7548         (CACHE_PRUNE_INTERNAL): Define.
7549         Update declarations of prune_cache and setup_thread.
7550         * nscd/connections.c (dbs): Update initializers.
7551         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7552         (nscd_init): Default number of threads is now 4.
7553         (invalidate_cache): Take lock before calling prune_cache.
7554         (handle_request): If SELinux forbids the request, say so.
7555         (readylist_cond): Use static initializer.
7556         (nscd_run_prune): New function.  Used only by pruning threads.
7557         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7558         here.
7559         (fd_ready): Update nscd_run reference.
7560         (start_threads): No need to initialize readylist_cond.
7561         Start pruning threads separately.
7562         * nscd/nscd_setup_thread.c: Change return value type to int and always
7563         return 0.
7564         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7565         to int and return nonzero value if we can use the TID address hack.
7566         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7567         the database is later than the new entry's timeout, update the
7568         wakeup time and wake the cleanup thread.
7569         (prune_cache): Return seconds the next entry in the database is still
7570         valid.  Remove locking for pruning here.
7571         * nscd/nscd.conf: Document default number of threads.
7572
7573 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7574
7575         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7576         stack is properly aligned for the target function.
7577         Correct unwind info.
7578
7579         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7580         when using auditing libraries.
7581
7582 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7583
7584         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7585         _nss_dns_getnetbyaddr2_r.
7586         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7587         extra parameter to getanswer_r.
7588         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7589         _nss_dns_getnetbyaddr2_r.
7590
7591         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7592         gethstbynm3_r.
7593         * nscd/gethstbynm2_r.c: Remove.
7594         * nscd/gethstbynm3_r.c: New file.
7595         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7596         __gethostbyaddr_r.
7597         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7598         __gethostbyaddr_r compatibility wrapper.
7599         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7600         determining timeout of entry.
7601         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7602         __gethostbyaddr2_r.
7603         (addhstbyX): Pass reference to variable for TTL to lookup and
7604         cache_addhst.
7605         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7606         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7607         and __nss_next2.  Remove __nss_services_lookup.
7608         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7609         Add compat wrapper.
7610         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7611         __nss_next2.
7612         * nss/getXXent_r.c: Likewise.
7613         * nss/getnssent_r.c: Likewise.
7614         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7615         does not exist in module, try the optional second name.
7616         (__nss_next2): New function.
7617         (__nss_next): Now wrapper around __nss_next2.
7618         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7619         Declare __nss_next2.
7620         Adjust definition of db_lookup_function type.
7621         * nss/service-lookup.c: Define NO_COMPAT.
7622         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7623         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7624         * inet/ether_ntoh.c: Likewise.
7625         * sunrpc/netname.c: Likewise.
7626         * sunrpc/publickey.c: Likewise.
7627         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7628         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7629         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7630         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7631         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7632
7633         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7634
7635         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7636
7637 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7638
7639         [BZ #5204]
7640         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7641         * crypt/sha512c-test.c: Likewise.
7642
7643         [BZ #5225]
7644         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7645         to keep track of end of %[ format string element.
7646         * stdio-common/Makefile (tests): Add bug20.
7647         * stdio-common/bug20.c: New file.
7648
7649         [BZ #5222]
7650         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7651         path elements in counting mode.
7652
7653 2007-10-27  Andreas Jaeger  <aj@suse.de>
7654
7655         [BZ #5040]
7656         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7657
7658         [BZ #3112]
7659         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7660         (__cleanup): Free shared library when exiting.
7661         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7662         (__cleanup): Free shared library when exiting.
7663
7664 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         [BZ #2549]
7667         * math/libm-test.inc (check_float_internal): Support
7668         denormalized return.
7669
7670 2007-10-23  Andreas Jaeger  <aj@suse.de>
7671
7672         [BZ #5208]
7673         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7674         __LONG_LONG_PAIR to handle little endian byte order.
7675         Suggested by abhishekrai@google.com
7676
7677 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7678
7679         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7680
7681 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7682
7683         * nscd/cache.c (prune_cache): Move test for modified file outside
7684         of locking.
7685
7686 2007-10-21  Andreas Jaeger  <aj@suse.de>
7687
7688         * manual/texinfo.tex: Update to latest version.
7689
7690         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7691
7692         * manual/arith.texi (Status bit operations): Fix formatting.
7693
7694         * manual/errno.texi (Error Messages): Fix formatting.
7695
7696         * manual/sysinfo.texi (System Parameters): Fix formatting.
7697
7698         * manual/libc.texinfo: Update VERSION and UPDATED.
7699
7700 2007-10-19  Roland McGrath  <roland@redhat.com>
7701
7702         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7703
7704 2007-10-06  David S. Miller  <davem@davemloft.net>
7705
7706         * configure.in: Add sparcv9v2 and sparc64v2.
7707         * scripts/config.sub: Likewise.
7708         * configure: Regenerate.
7709         * elf/elf.h (HWCAP_SPARC_N2): New.
7710         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7711         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7712         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7713         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7714         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7715         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7716         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7717
7718 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7719
7720         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7721         even if the poll result indicates there is data to read.
7722         Patch by Jeff Moyer <jmoyer@redhat.com>.
7723
7724 2007-10-18  Roland McGrath  <roland@redhat.com>
7725
7726         * elf/elf.h (NT_PPC_VMX): New macro.
7727
7728 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7729
7730         * version.h (VERSION): Set to 2.7.90.
7731
7732 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7733
7734         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7735         weak_alias.
7736
7737 2007-10-17  Roland McGrath  <roland@frob.com>
7738
7739         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7740         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7741
7742 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7743
7744         * version.h (VERSION): Bump to 2.7.
7745         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7746
7747         [BZ #5186]
7748         * time/tzset.c (__tz_convert): Don't force testing for a change of
7749         TZ if not called from localtime.  But then also see whether the
7750         file changed, in case __use_tzfile is set.
7751
7752         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7753         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7754         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7755         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7756         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7757         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7758         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7759         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7760
7761 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7762
7763         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7764         and admin selects to be able to replace the gai.conf file, lock
7765         data structures around the qsort call.
7766
7767 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7768
7769         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7770         new memset.
7771         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7772         too high for the improvements.  Implement bzero unconditionally for
7773         use in libc.
7774
7775 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7776             Jakub Jelinek  <jakub@redhat.com>
7777
7778         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7779         even when time_t is 32-bit.
7780         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7781         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7782         always set after the search.
7783
7784 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7785
7786         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7787         unreachable code on 32-bit machines.
7788
7789 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7790
7791         [BZ #5184]
7792         * time/strftime_l.c: Include stdbool.h.
7793         (my_strftime): New wrapper, old function renamed to...
7794         (__strftime_internal): ... new function.  Add tzset_called
7795         argument, pass it down to recursive calls, don't call tzset ()
7796         if already true, set to true after call to tzset ().
7797
7798 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7799
7800         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7801         into account when copying TZ string.
7802
7803 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7804
7805         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7806         num_transition rather than num_transitions - 1.
7807
7808 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7809
7810         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7811         PIC indirect jump.
7812
7813         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7814         a local label rather than HIDDEN_JUMPTARGET.
7815
7816 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7817
7818         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7819         (init_cacheinfo): Initialize it.
7820         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7821         Always define bzero.
7822         Remove non-glibc code.
7823         * sysdeps/x86_64/bzero.S: Make an empty file.
7824
7825 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7826
7827         * sysdeps/x86_64/cacheinfo.c
7828         (__x86_64_preferred_memory_instruction): New.
7829         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7830
7831         * sysdeps/x86_64/memset.S: Rewrite.
7832
7833 2007-10-15  Roland McGrath  <roland@redhat.com>
7834
7835         * po/libc.pot: Regenerated.
7836
7837 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7838
7839         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7840         pointers.
7841
7842         [BZ #3425]
7843         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7844         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7845         address record to T_A/T_AAAA requests.
7846
7847 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7848
7849         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7850
7851         * posix/glob.c: Add some branch prediction throughout.
7852
7853         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7854         read from nscd.
7855
7856         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7857         service_order.
7858         (rfc3484_sort): Make sure that even if qsort doesn't support
7859         stable sorting out sorting here is stable by comparing service_order.
7860         (getaddrinfo): Initialize service_order.
7861         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7862         service_order field to sorting structure.
7863         * posix/tst-rfc3484-2.c (do_test): Likewise.
7864
7865         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7866         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7867         __tzset_parse_tz and updating of daylight, timezone, tzname into
7868         update_vars.
7869         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7870         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7871         happens in __tz_compute.
7872         * time/tzfile.c (__tzfile_read): Also read TZ string.
7873         (find_transition): Fold into __tzfile_compute.
7874         (__tzfile_compute): For times beyond the last transition try to
7875         use the TZ string.
7876         * timezone/tst-timezone.c: Information in daylight and tzname does
7877         change for Asia/Tokyo timezone with more concrete information.
7878         Remove the test.
7879
7880         * include/stdio.h: Add libc_hidden_proto for ftello.
7881         * libio/ftello.c: Add libc_hidden_def.
7882
7883         [BZ #1140]
7884         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7885         on the specified time and not the last entries in the file.  Move
7886         code to determine tzname[] to...
7887         (find_transition): ...here.  Add ugly guess for times before the
7888         first transition.
7889
7890 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7891
7892         [BZ #3195]
7893         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7894         no entry.
7895         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7896         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7897         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7898         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7899
7900         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7901         read mechanism when there are no group members and avoid no-op
7902         read syscall in this case.
7903
7904         [BZ #3242]
7905         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7906         (__readall): If reading failed due to EAGAIN error wait a bit
7907         and possibly try again.
7908         (__readvall): Likewise.
7909
7910 2007-10-13  Bruno Haible  <bruno@clisp.org>
7911
7912         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7913         when we cannot recode the message.
7914
7915 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7916
7917         [BZ #4359]
7918         * libio/__freading.c (__freading): Don't return true for
7919         write-only streams.  For read/write streams, check whether we
7920         performed a read operation already.
7921         * libio/Makefile (tests): Add tst-ext2.
7922         * libio/tst-ext2.c: New file.
7923
7924 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7925
7926         * locale/programs/repertoire.c (repertoire_read): Always free
7927         memory for repertoire file name [Coverity CID 270].
7928
7929         * elf/cache.c (save_aux_cache): Free memory allocated for
7930         temporary file name [Coverity CID 267].
7931
7932 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7933
7934         * misc/Makefile (headers): Add bits/error.h.
7935
7936 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7937
7938         * posix/fnmatch_loop.c: Take rule index returned as part of
7939         findidx return value into account when accessing weights.
7940         * posix/regcomp.c: Likewise.
7941         * posix/regexec.c: Likewise.
7942
7943         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7944         (skip_to): Fix problems with parameter of elifdef/elifndef.
7945
7946 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7947
7948         * iconv/gconv_simple.c: Add some branch prediction.
7949
7950 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7951
7952         * locale/programs/ld-collate.c (collate_read): If ignore_content
7953         and nowtok is tok_define, eat any tok_eol tokens.
7954
7955 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7956
7957         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7958         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7959
7960         * inet/netinet/in.h: Don't include bits/socket.h.
7961         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7962         macro.
7963         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7964
7965 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7966
7967         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7968         and tok_elifndef.
7969         * locale/programs/locfile-kw.gperf: Likewise.
7970         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7971
7972 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7973
7974         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7975         (__find_specwc): Change into __extern_always_inline function.
7976         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7977         (__parse_one_specmb): Remove ps argument.
7978         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7979         Adjust __find_specmb and __parse_one_specmb callers.
7980         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7981         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7982         Removed.
7983         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7984         caller.
7985
7986 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7987
7988         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7989         with some Pentium Ds.
7990
7991 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7992
7993         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7994         __read not read.
7995         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7996         __write not write.
7997
7998 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7999
8000         [BZ #181]
8001         * locale/C-time.c: Set week_1stday data to 19971201.
8002         * locale/programs/ld-time.c (time_finish): Default for
8003         first_workday is Monday.
8004
8005         [BZ #2633]
8006         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8007
8008         [BZ #5103]
8009         * posix/glob.c (glob): Recognize patterns starting \/.
8010         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8011         (main): Add test for pattern starting \/.
8012
8013         * misc/error.h: Use __const instead of const.
8014         * misc/bits/error.h: Likewise.
8015
8016 2007-10-07  Andreas Jaeger  <aj@suse.de>
8017
8018         * include/bits/error.h: New file.
8019
8020         * misc/bits/error.h (error_at_line): Fix prototype.
8021
8022 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8023
8024         [BZ #3924]
8025         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8026         more little bugs in creating the stack frame when pltexit has to
8027         be called.
8028
8029         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8030         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8031
8032         [BZ #4407]
8033         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8034         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8035         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8036         * math/libm-test.inc: Add test for this case.
8037
8038         [BZ #5010]
8039         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8040         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8041         map service succeeded.
8042         (svc_is_mapped): New function.
8043         (svc_unregister): Use it before trying to unmap service.
8044
8045 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8046
8047         * timezone/zic.c: Update from tzcode2007h.
8048
8049         [BZ #5063]
8050         * timezone/africa: Update from tzdata2007h.
8051         * timezone/antarctica: Likewise.
8052         * timezone/asia: Likewise.
8053         * timezone/australasia: Likewise.
8054         * timezone/europe: Likewise.
8055         * timezone/leapseconds: Likewise.
8056         * timezone/northamerica: Likewise.
8057         * timezone/southamerica: Likewise.
8058         * timzeone/zone.tab: Likewise.
8059
8060         [BZ #5104]
8061         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8062
8063         [BZ #5113]
8064         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8065         avoid warning with -Wconversion.
8066         (__strndup): Likewise.
8067         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8068
8069         [BZ #5112]
8070         * nscd/connections.c (restart): Don't resync if database is
8071         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8072
8073         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8074         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8075
8076         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8077         evetnfd_read, eventfd_write.
8078         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8079         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8080         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8081         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8082         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8083         eventfd_write for GLIBC_2.7.
8084
8085         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8086         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8087         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8088         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8089
8090 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8091
8092         * stdlib/msort.c: Include stdint.h.
8093         (struct msort_param): New type.
8094         (msort_with_tmp): Use struct msort_param pointer for unchanging
8095         parameters.  Add optimized handling for several common sizes
8096         and indirect sorting mode.
8097         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8098         sorting.
8099         Suggested by Belazougui Djamel .
8100
8101         * stdlib/Makefile (tests): Add tst-qsort2.
8102         * stdlib/tst-qsort2.c: New test.
8103
8104 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8105
8106         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8107         for dup2 in case another thread races with the current one.  Retry
8108         in this case.
8109
8110         * misc/error.h: Remove support for use outside of libc.  We have to
8111         include <features.h> now.  Include <bits/error.h> if possible.
8112         * misc/bits/error.h: New file.
8113
8114 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8115
8116         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8117         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8118         __extern_always_inline functions unconditionally, drop macros.
8119
8120         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8121         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8122         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8123
8124         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8125         add __artificial__ attribute.
8126
8127 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8128
8129         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8130         backward to forward direction.
8131
8132         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8133
8134         [BZ #645]
8135         * locale/programs/ld-collate.c (collate_finish): Compare against last
8136         used section which is known to have rules defined.
8137         (collate_read): After order_start, correctly record order of sections
8138         and queue sections up.
8139
8140 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8141
8142         [BZ #5071]
8143         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8144         the same number of pages.
8145         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8146
8147         * locale/programs/ld-collate.c (collate_read): After initial copy
8148         statement, continue in state 0.
8149
8150         * include/stdio_ext.h (__fsetlocking): Define as macro.
8151
8152 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8153
8154         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8155         of section order.
8156
8157         * po/pt_BR.po: Fix typo.
8158
8159 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8160
8161         * iconvdata/Makefile (modules): Add ISO8859-9E.
8162         (distribute): Add iso8859-9e.c.
8163         (gen-8bit-gap-modules): Add iso8859-9e.
8164         * iconvdata/iso8859-9e.c: New file.
8165         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8166         * iconvdata/TESTS: Likewise.
8167         * iconvdata/tst-tables.sh: Likewise.
8168
8169         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8170
8171         * locale/iso-639.def: Add several new entries.
8172
8173 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8174
8175         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8176         void * pointers instead of struct link_map **.
8177         (_dl_scope_free): Change argument type to void *.
8178         * include/link.h (struct link_map): Change type of l_reldeps
8179         to struct link_map_reldeps, move l_reldepsact into that
8180         struct too.
8181         * elf/dl-deps.c: Include atomic.h.
8182         (_dl_map_object_deps): Only change l->l_initfini when it is
8183         fully populated, use _dl_scope_free for freeing it.  Optimize
8184         removal of libs from reldeps by using l_reserved flag, when
8185         some removal is needed, allocate a new list instead of
8186         reallocating and free the old with _dl_scope_free.  Adjust
8187         for l_reldeps and l_reldepsact changes.
8188         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8189         searching in l_initfini and l_reldeps without holding dl_load_lock.
8190         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8191         l_reldepsact changes.
8192         * elf/dl-close.c (_dl_close_worker): Likewise.
8193         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8194
8195 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8196
8197         * iconvdata/Makefile (modules): Add KOI8-RU.
8198         (distribute): Add koi8-ru.c.
8199         (gen-8bit-gap-modules): Add koi8-ru.
8200         * iconvdata/koi8-ru.c: New file.
8201         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8202         * iconvdata/TESTS: Likewise.
8203         * iconvdata/tst-tables.sh: Likewise.
8204
8205         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8206
8207 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8208
8209         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8210         with __warning__/__error__ attributes.
8211         (__warnattr): Define.
8212         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8213         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8214         __warnattr.
8215         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8216         of __*_chk if compile time detectable overflow is found.
8217         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8218         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8219         with __warnattr.
8220         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8221         instead of __*_chk if compile time detectable overflow is found.
8222         (__gets_alias): Rename to...
8223         (__gets_warn): ... this.  Add __warnattr.
8224         (gets): Call __gets_warn instead of __gets_alias.
8225         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8226         aliases with __warnattr.
8227         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8228         time detectable overflow is found.
8229         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8230         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8231         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8232         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8233         __getdomainname_chk_warn): New aliases with __warnattr.
8234         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8235         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8236         __*_chk_warn instead of __*_chk if compile time detectable overflow
8237         is found.
8238         (__getgroups_chk): Rename argument to __listlen from listlen.
8239         (__getwd_alias): Rename to...
8240         (__getwd_warn): ... this.  Add __warnattr.
8241         (getwd): Call __getwd_warn instead of __getwd_alias.
8242         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8243         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8244         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8245         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8246         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8247         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8248         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8249         compile time detectable overflow is found.
8250         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8251         to use __*_chk or not.
8252         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8253         in comparisons which function should be called and in __*_chk*
8254         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8255         detectable overflow is found.
8256         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8257         __*_chk argument.
8258         * debug/tst-chk1.c (do_test): Add a few more tests.
8259
8260 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8261
8262         [BZ #5058]
8263         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8264         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8265         (_nl_unload_domain): Finalize conversions_lock.
8266         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8267         handling table of known conversions.
8268
8269 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8270
8271         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8272         close_not_cancel_no_status instead of close.
8273
8274 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8275
8276         [BZ #5028]
8277         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8278         nrules != 0 for multibyte chars.
8279
8280 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8281
8282         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8283         Provide better error message in case the type is unknown.
8284
8285         [BZ #4963]
8286         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8287         * string/stratcliff.c: Make usable to test wide char functions.
8288         * wcsmbs/wcsatcliff.c: New file.
8289         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8290
8291         [BZ #4972]
8292         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8293         (distribute): Add mac-centraleurope.c.
8294         (gen-8bit-gap-modules): Add mac-centraleurope.
8295         * iconvdata/mac-centraleurope.c: New file.
8296         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8297         * iconvdata/TESTS: Likewise.
8298         * iconvdata/tst-tables.sh: Likewise.
8299
8300         [BZ #5043]
8301         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8302
8303 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8304
8305         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8306         from __x86_64_core_cache_size_half.
8307         (init_cacheinfo): Compute shared cache size for AMD processors with
8308         shared L3 correctly.
8309         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8310         name change.
8311         Patch in large parts by Evandro Menezes.
8312
8313 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8314
8315         * elf/dl-lookup.c (add_dependency): Handle failing memory
8316         allocation for dependency list.  Remove unnecessary check.
8317
8318         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8319         open/close when determining source addresses.
8320
8321         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8322         sha512-crypt, and sha512.
8323         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8324         (distribute): Add sha256.h and sha512.h.
8325         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8326         and call the appropriate code.
8327         * crypt/sha256-crypt.c: New file.
8328         * crypt/sha256.c: New file.
8329         * crypt/sha256.h: New file.
8330         * crypt/sha256c-test.c: New file.
8331         * crypt/sha256test.c: New file.
8332         * crypt/sha512-crypt.c: New file.
8333         * crypt/sha512.c: New file.
8334         * crypt/sha512.h: New file.
8335         * crypt/sha512c-test.c: New file.
8336         * crypt/sha512test.c: New file.
8337
8338 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8339
8340         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8341         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8342         __syslog_chk.
8343
8344 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8347         %as in fscanf format strings.
8348
8349         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8350         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8351         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8352         Likewise.
8353         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8354         Likewise.
8355
8356         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8357         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8358         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8359         * elf/dl-sym.c (do_sym): Likewise.
8360         * include/link.h (struct link_map): Add l_serial field.
8361         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8362         * elf/dl-lookup.c (add_dependency): Add flags argument.
8363         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8364         flags, use THREAD_GSCOPE_RESET_FLAG before and
8365         THREAD_GSCOPE_SET_FLAG after
8366         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8367         Don't dereference map until it has been found on some list.
8368         If map->l_serial changed, return -1.
8369
8370 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8371
8372         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8373         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8374         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8375         libc_hidden_proto.
8376         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8377         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8378         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8379         add libc_hidden_proto.
8380         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8381         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8382         conformance requested.
8383         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8384         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8385         conformance requested.
8386         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8387         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8388         conformance requested.
8389         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8390         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8391         ISO C99 or POSIX conformance requested.
8392         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8393         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8394         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8395         and __isoc99_vsscanf@@GLIBC_2.7.
8396         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8397         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8398         (tests): Add scanf14.
8399         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8400         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8401         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8402         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8403         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8404         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8405         from using internal headers.
8406         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8407         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8408         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8409         and __isoc99_vswscanf@@GLIBC_2.7.
8410         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8411         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8412         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8413         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8414         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8415         * stdio-common/isoc99_scanf.c: New file.
8416         * stdio-common/isoc99_vsscanf.c: New file.
8417         * stdio-common/isoc99_vscanf.c: New file.
8418         * stdio-common/isoc99_vfscanf.c: New file.
8419         * stdio-common/isoc99_fscanf.c: New file.
8420         * stdio-common/isoc99_sscanf.c: New file.
8421         * wcsmbs/isoc99_fwscanf.c: New file.
8422         * wcsmbs/isoc99_vswscanf.c: New file.
8423         * wcsmbs/isoc99_swscanf.c: New file.
8424         * wcsmbs/isoc99_wscanf.c: New file.
8425         * wcsmbs/isoc99_vwscanf.c: New file.
8426         * wcsmbs/isoc99_vfwscanf.c: New file.
8427         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8428         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8429         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8430         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8431         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8432         * stdio-common/scanf14.c: New test.
8433         * stdio-common/scanf15.c: New test.
8434         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8435         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8436         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8437         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8438         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8439         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8440         __nldbl___isoc99_scanf@@GLIBC_2.7,
8441         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8442         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8443         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8444         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8445         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8446         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8447         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8448         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8449         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8450         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8451         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8452         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8453         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8454         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8455         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8456         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8457         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8458         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8459         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8460         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8461         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8462         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8463         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8464         functions.
8465         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8466         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8467         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8468         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8469         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8470         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8471         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8472         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8473         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8474         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8475         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8476         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8477
8478         * stdio-common/Makefile (tests): Add scanf13.
8479         (scanf13-ENV): New.
8480         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8481         m modifier followed by l.
8482         (STRING_ARG): Add width argument.
8483         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8484         <case L_('C')>: Handle %mlc and %mC.
8485         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8486         arguments.
8487         * stdio-common/scanf13.c: New test.
8488
8489         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8490         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8491
8492 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8493
8494         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8495         type and __THROW marker of splice, vmsplice, and tee.
8496         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8497         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8498         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8499         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8500         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8501         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8502         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8503         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8504         as cancellation points.
8505
8506 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8507
8508         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8509         parse more than three parts of the version number.
8510
8511 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8512
8513         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8514         modifier.  Patch by Jakub Jelinek.
8515
8516 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8517
8518         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8519         call_fallocate in misc subdir.
8520         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8521         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8522         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8523         instead of __fallocate64.
8524         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8525
8526 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8527
8528         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8529         * rt/Makefile (headers): Add bits/mqueue2.h.
8530         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8531         optimizing with GCC and __va_arg_pack_len is defined.
8532         * rt/bits/mqueue2.h: New file.
8533         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8534         (mq_open): New strong_alias.
8535         (__mq_open_2): New function.
8536         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8537         (mq_open): New strong_alias.
8538         (__mq_open_2): New function.
8539         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8540         * Versions.def (librt): Add GLIBC_2.7 version.
8541         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8542         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8543
8544         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8545         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8546         is defined rather than when not C++.
8547         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8548         __openat64_alias): New redirects.
8549         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8550         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8551         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8552         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8553         functions instead of function-like macros.
8554
8555 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8556
8557         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8558         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8559         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8560
8561 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8562
8563         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8564         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8565
8566 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8567
8568         * inet/tst-network.c: Increment ERRORS for failing tests.
8569
8570 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8571
8572         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8573         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8574         implement as __extern_always_inline function.
8575         (vsyslog): Define as __extern_always_inline function unconditionally.
8576         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8577         When __va_arg_pack is defined, implement as __extern_always_inline
8578         functions.
8579         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8580         __extern_always_inline functions unconditionally.
8581         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8582         bits/stdio2.h will be included.
8583         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8584         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8585         implement as __extern_always_inline functions.
8586         (vswprintf, vwprintf, vfwprintf): Define as
8587         __extern_always_inline functions unconditionally.
8588         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8589
8590 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8591
8592         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8593         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8594         attribute.
8595         * include/features.h (__USE_EXTERN_INLINES): Define only when
8596         __extern_inline is defined.
8597         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8598         is defined instead of when not __cplusplus.
8599         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8600         is defined instead of when not __cplusplus.
8601         * socket/sys/socket.h: Include bits/socket2.h when
8602         __extern_always_inline is defined instead of when not __cplusplus.
8603         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8604         is defined instead of when not __cplusplus.
8605         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8606         is defined instead of when not __cplusplus.
8607         * string/string.h: Include bits/string3.h when __extern_always_inline
8608         is defined instead of when not __cplusplus.
8609         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8610         is defined instead of when not __cplusplus.
8611         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8612         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8613         is not defined.
8614         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8615         defined __extern_always_inline instead of !defined __cplusplus.
8616         * libio/bits/stdio-ldbl.h: Likewise.
8617         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8618         * misc/bits/syslog.h (syslog): Don't define for C++.
8619         (vsyslog): Use __extern_always_inline function for C++ instead of
8620         a macro.
8621         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8622         whenever that macro is defined.
8623         (vprintf): Don't provide the inline for C++.
8624         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8625         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8626         define the macros for C++.
8627         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8628         __extern_always_inline functions for C++.
8629         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8630         stat64, lstat64, fstat64, fstatat64): Don't define if not
8631         __USE_EXTERN_INLINES.
8632         * wcsmbs/bits/wchar2.h: Fix #error message.
8633         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8634         (vswprintf, vwprintf, vfwprintf): Define using
8635         __extern_always_inline functions for C++.
8636         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8637         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8638         strncpy, strcat, strncat): Define as __extern_always_inline
8639         functions instead of macros for C++.
8640         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8641         defined __extern_inline.
8642         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8643         to __extern_inline whenever that macro is defined.
8644         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8645         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8646         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8647         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8648         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8649         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8650         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8651         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8652         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8653         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8654         prototypes.  Only provide __extern_inline routines if
8655         __USE_EXTERN_INLINES.
8656         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8657         tests.
8658         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8659         For now avoid some *printf tests in C++.  Skip all testing
8660         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8661         is not.
8662         * debug/tst-chk4.cc: New file.
8663         * debug/tst-chk5.cc: New file.
8664         * debug/tst-chk6.cc: New file.
8665         * debug/tst-lfschk4.cc: New file.
8666         * debug/tst-lfschk5.cc: New file.
8667         * debug/tst-lfschk6.cc: New file.
8668         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8669         prototypes in C++.
8670         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8671         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8672         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8673
8674 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8675
8676         * po/cs.po: Update from translation team.
8677
8678 2007-09-11  Roland McGrath  <roland@redhat.com>
8679
8680         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8681         compiling.
8682
8683 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8684
8685         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8686
8687 2007-09-05  Roland McGrath  <roland@redhat.com>
8688
8689         * manual/signal.texi (Signaling Another Process): Typo fix.
8690         From Karl Berry <karl@freefriends.org>.
8691
8692 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8693
8694         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8695         zero if not defined.
8696         (make_request): Recognize optimistic addresses and treat them like
8697         deprecated addresses.
8698         Reported by Neil Horman <nhorman@redhat.com>.
8699
8700 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8701
8702         * nscd/connections.c (send_ro_fd): Also transfer file size.
8703         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8704         file size don't call fstat.
8705
8706         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8707         ahead and map the file.  This should always be correct and we can
8708         catch problems later.
8709
8710 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8711
8712         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8713         prototypes.
8714         (__fread_alias, __fread_unlocked_alias): New aliases.
8715         (fread): New extern inline.
8716         (fread_unlocked): Likewise.  Undef macro before definition of
8717         the inline function.
8718         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8719         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8720         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8721         and __fread_unlocked_chk@@GLIBC_2.7.
8722         * debug/fread_chk.c: New file.
8723         * debug/fread_u_chk.c: New file.
8724         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8725
8726 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8727
8728         * sysdeps/unix/sysv/linux/syscalls.list
8729         (personality): Change caller to EXTRA.
8730
8731 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8732
8733         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8734         to keep gcc quiet.
8735         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8736
8737         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8738         NDEBUG is defined.
8739
8740         * Makerules: Use -p option with mkdir.
8741
8742         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8743         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8744         (_xdr_directory_obj): Likewise.
8745         (xdr_entry_obj): Likewise.
8746         (xdr_group_obj): Likewise.
8747         (xdr_link_obj): Likewise.
8748         (xdr_table_obj): Likewise.
8749         (_xdr_nis_result): Likewise.
8750         (_xdr_ns_request): Likewise.
8751         (_xdr_ib_request): Likewise.
8752         (_xdr_nis_taglist): Likewise.
8753         (xdr_cback_data): Likewise.
8754         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8755         (xdr_ypresp_maplist): Likewise.
8756
8757         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8758
8759         * posix/regex_internal.h: Prevent some declarations and definitions
8760         to be seen when used in tests.
8761
8762         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8763         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8764
8765         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8766
8767         * config.make.in (datarootdir): Add to shut up configure.
8768
8769         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8770         associativity for fully-associative caches.
8771
8772         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8773         requests.  Fill on more associativity values for L2.
8774         Patch mostly by Evandro Menezes.
8775
8776 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8777
8778         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8779         (_libc_vdso_platform_setup): Avoid using exported variable by using
8780         alias.
8781
8782         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8783
8784         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8785         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8786         defined.
8787
8788 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8789
8790         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8791         align stack for call if pltexit is to be used.
8792
8793         [BZ #3924]
8794         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8795         align for function call in case pltexit has to be called later.
8796
8797         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8798         implicit atomic operation when storing function pointer.
8799         (_dl_runtime_profile): Likewise.
8800
8801 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8802
8803         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8804         NIS_NOTFOUND.
8805
8806 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8807
8808         [BZ #4566]
8809         * string/strtok.c: Fix typo in comment.
8810
8811         [BZ #4582]
8812         * debug/segfault.c: Fix typos in comments.
8813
8814         [BZ #4588]
8815         * stdio-common/tempnam.c: Fix comment, it is not checked that
8816         TMPDIR points to a writable directory.
8817
8818         [BZ #4726]
8819         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8820         memory allocated for the name server address.
8821
8822         [BZ #4946]
8823         * nscd/connections.c (handle_request): Using sendfile always
8824         requires that mmap is used for the database.
8825         Patch by Petr Baudis <pasky@suse.cz>.
8826
8827         [BZ #4905]
8828         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8829         suddenly has two or more addresses, ignore it and remove the old
8830         entry.
8831
8832         [BZ #4814]
8833         * resolv/res_hconf.c: Prepare for compiling outside libc.
8834         * nscd/res_hconf.c: New file.
8835         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8836         the new file.
8837         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8838         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8839
8840         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8841
8842         [BZ #4925]
8843         * debug/pcprofiledump.c: Turn on internationalization by calling
8844         setlocale.  Patch mostly by Benno Schulenberg.
8845
8846         [BZ #4936]
8847         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8848         the state.
8849         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8850         * iconvdata/bug-iconv5.c: New file.
8851
8852 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8853
8854         [BZ #4896]
8855         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8856         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8857         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8858         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8859         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8860         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8861         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8862         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8863
8864 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8865
8866         [BZ #4937]
8867         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8868         lookup loop.  Suggested by John Reiser.
8869
8870 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8871
8872         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8873
8874 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8875
8876         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8877         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8878         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8879         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8880         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8881         to...
8882         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8883
8884 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8885
8886         * po/nl.po: Update from translation team.
8887
8888 2007-08-16  Andreas Jaeger  <aj@suse.de>
8889
8890         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8891         Reported by Peter Festner <peter.festner@ewetel.net>.
8892
8893 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8894
8895         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8896
8897 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8898
8899         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8900         to check for undefined symbols.
8901
8902         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8903         If the syscall fails, set errno to the actual returned error number
8904         rather than EINVAL.
8905         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8906         arguments are incorrect, set errno to EINVAL, if the syscall
8907         fails, set errno to the actual returned error number.
8908
8909         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8910         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8911
8912         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8913         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8914         file.
8915         (ASI_PNF, ASI_BLK_P): Don't define.
8916         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8917         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8918         file.
8919         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8920         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8921         file.
8922
8923 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8924
8925         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8926         FE_UNDERFLOW on Niagara CPUs.
8927
8928         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8929         exceptions.
8930
8931 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8932
8933         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8934         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8935         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8936         flush should be used or not inside of the function.
8937         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8938
8939         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8940         __thread_start): Use HIDDEN_JUMPTARGET.
8941         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8942         __thread_start): Likewise.
8943         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8944
8945         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8946         Add libc_hidden_proto.
8947         (STRTOF): Add libc_hidden_proto.
8948         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8949         (strtold_l, wcstold_l): Use them as second argument for
8950         long_double_symbol.
8951
8952 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8953
8954         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8955
8956 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8957
8958         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8959
8960 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8961
8962         * po/bg.po: New file.  From the translation team.
8963
8964 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8965
8966         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8967         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8968         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8969         when each feature was introduced.
8970
8971         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8972         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8973         (CHECK_HASH): New macro.
8974         (PREPARE_VERSION): Use it.
8975
8976         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8977         prototype if not __ASSUME_PSELECT.
8978         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8979         prototype if not __ASSUME_PPOLL.
8980
8981         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8982
8983         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8984         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8985         is defined.
8986
8987 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8988
8989         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8990         (_libc_vdso_platform_setup): If vDSO is not available point
8991         __vdso_gettimeofday to the vsyscall.
8992         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8993         __vdso_gettimeofday instead of vsyscall.
8994
8995 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8996
8997         * nscd/servicescache.c: Include kernel-features.h.
8998         * nscd/gai.c: Likewise.
8999         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9000         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9001         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9002         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9003         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9004         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9005         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9006         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9007         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9008
9009 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9010
9011         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9012         and _dl_get_origin defines anymore.
9013
9014         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9015         Build fix for systems which might lack POSIX timer support.
9016
9017         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9018         (_libc_vdso_platform_setup): Mangle function pointers before storing
9019         them.
9020         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9021         Demangle vdso pointer before use.
9022         (INTERNAL_VSYSCALL): Likewise.
9023
9024         * elf/cache.c (primes): Mark as const.
9025         Noted by Roland McGrath.
9026
9027 2007-08-01  Andreas Jaeger  <aj@suse.de>
9028             Jakub Jelinek  <jakub@redhat.com>
9029
9030         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9031         (options): Add option.
9032         (parse_opt): Handle option.
9033         (manual_link): Adjust process_file caller.  Call implicit_soname.
9034         (search_dir): Formatting.  Use and populate auxiliary cache.
9035         (main): Load and save auxiliary cache.
9036         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9037         stat64 from fstat64 to caller.
9038         (implicit_soname): New function.
9039         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9040         leave *soname as NULL.
9041         * elf/cache.c: Include libgen.h.
9042         (print_entry, print_cache, compare, save_cache, add_to_cache):
9043         Formatting and cleanups.
9044         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9045         aux_cache_file): New structures.
9046         (AUX_CACHEMAGIC): Define.
9047         (primes): New array.
9048         (aux_hash_size, aux_hash): New variables.
9049         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9050         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9051         load_aux_cache, save_aux_cache): New functions.
9052         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9053         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9054         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9055         (process_file): Adjust prototype.
9056
9057 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9058
9059         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9060         with __need_size_t.
9061
9062 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9063
9064         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9065         r_found_version structure as second parameter.
9066         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9067         (_dl_vdso_vsym): Change type of second parameter accordingly.
9068         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9069         (_libc_vdso_platform_setup): Adjust.
9070         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9071         (_libc_vdso_platform_setup): Likewise.
9072
9073         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9074         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9075         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9076         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9077         * csu/libc-start.c: Pretty printing.
9078         Use VDSO_SETUP if defined.
9079         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9080         and let generic code call into _libc_vdso_platform_setup.
9081         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9082         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9083         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9084         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9085         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9086         for GLIBC_PRIVATE.
9087         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9088         (sysdep_rountines): Add dl-vdso.
9089
9090         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9091         of routines.
9092
9093         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9094         attribute_hidden to __vdso_gettimeofday prototype.
9095
9096 2007-08-12  Roland McGrath  <roland@redhat.com>
9097
9098         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9099         From: Karl Berry <karl@freefriends.org>.
9100
9101 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9102
9103         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9104         an atime update for the files we read.
9105
9106 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9107
9108         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9109
9110         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9111         instead of mkstemp.
9112
9113         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9114         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9115         * misc/mkostemp.c: New file.
9116         * misc/mkostemp64.c: New file.
9117         * stdlib/stdlib.h: Declare the new functions.
9118         * sysdeps/posix/tempname.c: Add new parameter which is added to
9119         the flags for open.  Remove __GT_BIGFILE handling.
9120         * stdio-common/tempname.c: Likewise.
9121         * include/stdio.h: Adjust __gen_tempname prototype.
9122         Renumber __GT_* constants.
9123         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9124         * misc/mkdtemp.c: Likewise.
9125         * misc/mkstemp.c: Likewise.
9126         * misc/mkstemp64.c: Likewise.
9127         * misc/mktemp.c: Likewise.
9128         * stdio-common/tempnam.c: Likewise.
9129         * stdio-common/tmpfile.c: Likewise.
9130         * stdio-common/tmpfile64.c: Likewise.
9131         * stdio-common/tmpnam.c: Likewise.
9132         * stdio-common/tmpnam_r.c: Likewise.
9133
9134 2007-08-10  Roland McGrath  <roland@frob.com>
9135
9136         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9137         New macros.
9138         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9139         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9140
9141 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9142
9143         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9144         possible.
9145         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9146         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9147         * nss/nss_files/files-have_o_cloexec.c: New file.
9148
9149         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9150         available.
9151
9152 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9153
9154         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9155         ___new_wcstold_l): New weak aliases.
9156         (strtold_l, wcstold_l): Use them as second argument for
9157         long_double_symbol.
9158
9159 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9160
9161         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9162         register in test for error.
9163
9164         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9165         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9166
9167         * po/sv.po: Update from translation team.
9168
9169 2007-08-06  Roland McGrath  <roland@redhat.com>
9170
9171         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9172         Remove __strto*_l inlines.
9173         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9174         * stdlib/strtod.c: Add libc_hidden_def.
9175         * stdlib/strtod_l.c: Likewise.
9176         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9177         for __new_strtold and __new_wcstold.
9178         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9179         __STRTOF, STRTOF.
9180         * stdlib/strtol.c: Add libc_hidden_def.
9181         * stdlib/strtol_l.c: Likewise.
9182         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9183         strtoq.
9184
9185         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9186
9187         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9188         * scripts/data/localplt-generic.data: ... here.
9189         * elf/Makefile (check-data): Get generic file if no other.
9190         ($(objpfx)check-localplt.out): Make target unconditional.
9191
9192         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9193         Use ElfW(Nhdr).
9194
9195 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9196
9197         * po/zh_CN.po: Updated translation from translation team.
9198
9199 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9200
9201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9202         Don't use CGOTSETUP and CGOTRESTORE macros.
9203
9204 2007-08-04  Roland McGrath  <roland@redhat.com>
9205
9206         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9207
9208 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9209
9210         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9211         __extension__ around the whole statement expression.
9212
9213 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9214
9215         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9216         elements during initialization.
9217
9218         * po/pl.po: Updated translation from translation team.
9219         * po/tr.po: Likewise.
9220         * po/nl.po: Likewise.
9221
9222 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9223
9224         * rt/aio.h: Add __nonnull attributes.
9225
9226 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9227
9228         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9229         * stdlib/Makefile (tests): Add tst-strtod5.
9230         (tst-strtod5-ENV): New.
9231         * stdlib/tst-strtod5.c: New file.
9232
9233         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9234         failed.
9235         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9236         on failure.
9237
9238         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9239         allocated.
9240
9241 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9242
9243         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9244         numbers.
9245
9246 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9247
9248         * io/Makefile (aux): Add have_o_cloexec.
9249         * include/fcntl.h: Declare __have_o_cloexec.
9250         * io/have_o_cloexec.c: New file.
9251         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9252         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9253         fcntl call if not necessary.
9254         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9255         of local variable.
9256
9257         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9258         Avoid memset, add explicit initialization.
9259         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9260         to the end and change into zero-sized array.
9261         Move lock member to fill a hole on 64-bit platforms.
9262
9263         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9264         inline functions.
9265         * include/stdlib.h: Add __strto*_internal prototypes here.
9266         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9267         inline functions.
9268         * include/wchar.h: Add __wcsto*_internal prototypes.
9269         * sysdeps/generic/inttypes.h: No need to protect the declaration
9270         of the __strto*_internal and __wcsto*_internal members here.
9271
9272         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9273
9274 2007-08-02  Roland McGrath  <roland@redhat.com>
9275
9276         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9277         $(inst_bindir)/getconf if possible.
9278
9279         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9280         (generated): Add it.
9281         ($(inst_libexecdir)/getconf): Use it.
9282
9283 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9284
9285         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9286         /proc is faster and sufficient.  /sys is still needed for
9287         __get_nprocs_conf.
9288
9289 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9290
9291         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9292         syscall as __fallocate64.
9293         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9294         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9295
9296 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9297
9298         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9299         value.
9300
9301         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9302         if off_t is different rank from size_t.
9303
9304         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9305         uw_frame_state_for): Avoid type punning warnings.
9306         * sysdeps/generic/unwind-dw2-fde-glibc.c
9307         (_Unwind_IteratePhdrCallback): Likewise.
9308         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9309         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9310         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9311         pointers.
9312
9313 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9314
9315         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9316         total processors using sysfs.
9317         (__get_nprocs): Use sysfs to determine which processors are online.
9318
9319 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9320
9321         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9322         syscall arguments count.
9323
9324         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9325
9326 2007-07-30  Roland McGrath  <roland@redhat.com>
9327
9328         * manual/libc.texinfo: Update copyrights, formatting magic, and
9329         @dircategory.  From Karl Berry <karl@freefriends.org>.
9330
9331 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9332
9333         [BZ #4860]
9334         * io/Makefile (headers): Add bits/fcntl2.h.
9335
9336         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9337         using gcc builtin.
9338         (__CPU_EQUAL_S): Likewise.
9339
9340         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9341         (tests): Add tst-cpuset.
9342         * posix/sched_cpualloc.c: New file.
9343         * posix/sched_cpufree.c: New file.
9344         * posix/tst-cpuset.c: New file.
9345         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9346         GLIBC_2.7.
9347         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9348         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9349         macros.  Define CPU_*_S macros.
9350
9351 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9352
9353         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9354         entry.
9355
9356         [BZ #4858]
9357         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9358         #.0g and value rounded to 1.0.
9359         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9360
9361 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9362
9363         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9364         for int_frac_digits and frac_digits.
9365
9366         * login/logout.c (logout): Avoid aliasing violation.
9367         * login/logwtmp.c (logwtmp): Likewise.
9368
9369         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9370
9371         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9372         to avoid warning.
9373         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9374         warning.
9375         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9376         warning.
9377         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9378         to avoid warnings.
9379
9380         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9381         void **.
9382         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9383
9384         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9385         char * to avoid warning.
9386         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9387
9388         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9389
9390         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9391         allocate_arrays): Cast second argument to charmap_find_symbol
9392         to char * to avoid warnings.
9393
9394         * locale/programs/repertoire.c (repertoire_new_char): Change
9395         from_nr, to_nr and cnt to unsigned long, adjust printf format
9396         string.
9397
9398         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9399         Cast second argument to new_element to char * to avoid warnings.
9400
9401         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9402
9403         * intl/gettextP.h (struct loaded_domain): Change plural to const
9404         struct expression *.
9405         * intl/plural-eval.c (plural_eval): Change first argument to
9406         const struct expression *.
9407         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9408         argument to const struct expression **.
9409         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9410         prototypes.
9411         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9412         in call to __gettext_free_exp.
9413
9414         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9415         unitialized wstring/wpattern var warnings.
9416
9417         * posix/runtests.c (struct a_test): Make data field const char *.
9418
9419         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9420         vars if not LDBL_MANT_DIG >= 106.
9421
9422         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9423
9424         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9425         __find_specmb to avoid warning.
9426
9427         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9428
9429         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9430         to avoid warnings.
9431
9432         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9433         initializer.
9434
9435         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9436         tv var when it will be actually used.
9437
9438         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9439         to avoid warnings.
9440
9441         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9442         char array resp. pointer.
9443         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9444         char array.
9445         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9446         to const unsigned char **.
9447         (ucs4_to_cns11643): Change second argument to unsigned char *.
9448         * iconvdata/euc-tw.c (BODY): Change endp type to
9449         const unsigned char *.
9450         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9451         to unsigned char *.
9452         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9453         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9454         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9455         types to unsigned char pointers/arrays instead of char.
9456         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9457         to unsigned char *.
9458         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9459         * iconvdata/jis0212.h: Include assert.h.
9460         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9461         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9462         of trying to handle that.
9463         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9464         shut up a warning.
9465         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9466         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9467         two dimensional const unsigned char arrays.
9468         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9469         Initialize endp to inptr to shut up a warning.
9470
9471 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9472
9473         [BZ #4772]
9474         * time/strptime_l.c (__strptime_internal): Silently ignore
9475         strftime modifiers and field width in recursive calls.
9476
9477         * include/time.h (enum ptime_locale_status): Remove.
9478         (__strptime_internal): Remove decided and era_cnt arguments,
9479         add statep argument.
9480         * time/strptime_l.c (__strptime_internal): Remove decided
9481         and era_cnt arguments, add statep argument.  Don't recompute
9482         any fields in recursive calls, only update caller's tm
9483         and state, if recursive call fails, don't change tm nor
9484         any state.
9485         (get_alt_number): Adjust.
9486         (recursive): Adjust caller.
9487         (strptime): Likewise.
9488         * time/strptime.c (strptime): Likewise.
9489
9490 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9491
9492         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9493         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9494         if from and to charsets are the same.
9495         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9496         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9497         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9498
9499 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9500
9501         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9502         Don't define wint_t when __need_mbstate_t unless it
9503         is necessary.
9504         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9505         in the typedef if possible.
9506         * wctype/wctype.h (wint_t): Define by including
9507         wchar.h with __need_wint_t instead of including stddef.h
9508         with __need_wint_t and as fallback definining it ourselves.
9509         * iconv/gconv.h (__need_wint_t): Define before including
9510         wchar.h.
9511         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9512         or _GLIBCPP_USE_WCHAR_T.
9513         (__need_wchar_t): Don't define
9514         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9515         (__need_wint_t): Don't define before including stddef.h,
9516         define before including wchar.h only if _LIBC or
9517         _GLIBCPP_USE_WCHAR_T.
9518         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9519         * sysdeps/mach/hurd/_G_config.h: Likewise.
9520         * sysdeps/generic/_G_config.h: Likewise.
9521         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9522         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9523         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9524         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9525
9526 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9527
9528         * sysdeps/posix/posix_fallocate64.c: Undefine
9529         __posix_fallocate64_l64 before alias handling.
9530         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9531         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9532         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9533         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9534
9535         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9536
9537 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9538
9539         * locale/programs/ld-collate.c (atwc): New variable.
9540         (add_to_tablewc): New toplevel function, moved from collate_output.
9541         (collate_output): Remove add_to_tablewc nested function.
9542
9543         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9544         (name_insert): New function.
9545         (write_output): Remove hash_table and hash_size vars and name_insert
9546         nested function.
9547
9548 2007-07-24  Roland McGrath  <roland@redhat.com>
9549
9550         * Makerules (install-others-programs-nosubdir): New target.
9551         (install-no-libc.a-nosubdir): Depend on it.
9552
9553         * iconv/Makefile (install-others-programs): Set this instead of
9554         install-others.
9555         * login/Makefile (install-others-programs): Likewise.
9556         * posix/Makefile (install-others-programs): Likewise.
9557
9558         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9559         dependencies.
9560
9561 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9562
9563         * io/Makefile (tests): Add tst-posix_fallocate.
9564         * io/tst-posix_fallocate.c: New file.
9565
9566         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9567         __ASSUME_FALLOCATE.
9568
9569 2007-07-22  Roland McGrath  <roland@frob.com>
9570
9571         * hurd/getdport.c: Add missing copyright year update.
9572
9573         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9574         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9575
9576 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9577
9578         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9579
9580         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9581         O_CLOEXEC is needed.
9582         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9583         Avoid additional fcntl to set O_CLOEXEC if not needed.
9584         * nis/nss_compat/compat-initgroups.c: Likewise.
9585         * nis/nss_compat/compat-pwd.c: Likewise.
9586         * nis/nss_compat/compat-spwd.c: Likewise.
9587
9588 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9589
9590         [BZ #3665]
9591         * manual/errno.texi: Change ECANCELED value to 119.
9592
9593         [BZ #4610]
9594         * mach/lock-intern.h: Include <sys/cdefs.h>.
9595
9596         [BZ #4178]
9597         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9598         reading A.
9599
9600         [BZ #4126]
9601         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9602         to __sigsuspend.
9603
9604         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9605
9606 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9607
9608         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9609         `__ASSEMBLER__'.
9610         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9611
9612 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9613
9614         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9615         descriptor received from nscd.
9616
9617         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9618
9619         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9620         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9621         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9622         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9623         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9624         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9625
9626 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9627
9628         [BZ #4816]
9629         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9630
9631         [BZ #4813]
9632         * login/forkpty.c (forkpty): Close master and slave fds on
9633         fork failure.  Patch by
9634         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9635
9636 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9637
9638         * include/features.h (__USE_ISOC95): New define.
9639         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9640         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9641         for -std=iso9899:199409.
9642         * CONFORMANCE: Remove comments about unsupported AMD1.
9643
9644 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9645
9646         * sysdeps/ia64/sched_cpucount.c: New file.
9647         * sysdeps/powerpc/sched_cpucount.c: New file.
9648
9649         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9650         __BEGIN_DECLS/__END_DECLS around the prototype.
9651         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9652         pointer to const cpu_set_t.
9653
9654         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9655         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9656         __need_size_t and include stddef.h.
9657         * sysvipc/sys/msg.h: Likewise.
9658         * posix/sched.h: Likewise.
9659         * hurd/hurd/signal.h (__need_size_t): Define.
9660
9661         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9662         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9663         no longer defines wint_t or wchar_t.
9664
9665         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9666         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9667         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9668         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9669         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9670         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9671         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9672         * debug/printf_chk.c (__printf_chk): Likewise.
9673         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9674         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9675
9676         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9677         Define.
9678
9679         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9680         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9681
9682 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9683
9684         [BZ #4792]
9685         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9686         * malloc/malloc.h (realloc): Likewise.
9687
9688         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9689         if one of proc_file_chain streams has that fileno.
9690         * stdio-common/Makefile (tests): Add tst-popen2.
9691         * stdio-common/tst-popen2.c: New test.
9692
9693 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9694
9695         * elf/ldconfig.c: Allow GPLv2 or any later version.
9696         * elf/readlib.c: Likewise.
9697         * elf/chroot_canon.c: Likewise.
9698         * elf/cache.c: Likewise.
9699         * nscd/mem.c: Likewise.
9700         * nscd/getpwuid_r.c: Likewise.
9701         * nscd/grpcache.c: Likewise.
9702         * nscd/aicache.c: Likewise.
9703         * nscd/getsrvbynm_r.c: Likewise.
9704         * nscd/nscd.c: Likewise.
9705         * nscd/servicescache.c: Likewise.
9706         * nscd/getsrvbypt_r.c: Likewise.
9707         * nscd/initgrcache.c: Likewise.
9708         * nscd/gethstbyad_r.c: Likewise.
9709         * nscd/gethstbynm2_r.c: Likewise.
9710         * nscd/getgrnam_r.c: Likewise.
9711         * nscd/nscd_setup_thread.c: Likewise.
9712         * nscd/getpwnam_r.c: Likewise.
9713         * nscd/gai.c: Likewise.
9714         * nscd/connections.c: Likewise.
9715         * nscd/dbg_log.c: Likewise.
9716         * nscd/cache.c: Likewise.
9717         * nscd/hstcache.c: Likewise.
9718         * nscd/nscd_conf.c: Likewise.
9719         * nscd/getgrgid_r.c: Likewise.
9720         * nscd/pwdcache.c: Likewise.
9721         * catgets/gencat.c: Likewise.
9722         * locale/programs/linereader.h: Likewise.
9723         * locale/programs/locarchive.c: Likewise.
9724         * locale/programs/ld-paper.c: Likewise.
9725         * locale/programs/locfile-kw.h: Likewise.
9726         * locale/programs/ld-address.c: Likewise.
9727         * locale/programs/xmalloc.c: Likewise.
9728         * locale/programs/ld-time.c: Likewise.
9729         * locale/programs/localedef.c: Likewise.
9730         * locale/programs/simple-hash.c: Likewise.
9731         * locale/programs/xstrdup.c: Likewise.
9732         * locale/programs/ld-numeric.c: Likewise.
9733         * locale/programs/locfile-kw.gperf: Likewise.
9734         * locale/programs/ld-collate.c: Likewise.
9735         * locale/programs/charmap-kw.gperf: Likewise.
9736         * locale/programs/charmap.h: Likewise.
9737         * locale/programs/charmap-kw.h: Likewise.
9738         * locale/programs/config.h: Likewise.
9739         * locale/programs/locfile.c: Likewise.
9740         * locale/programs/ld-ctype.c: Likewise.
9741         * locale/programs/charmap.c: Likewise.
9742         * locale/programs/ld-messages.c: Likewise.
9743         * locale/programs/repertoire.h: Likewise.
9744         * locale/programs/locale.c: Likewise.
9745         * locale/programs/ld-name.c: Likewise.
9746         * locale/programs/linereader.c: Likewise.
9747         * locale/programs/locfile.h: Likewise.
9748         * locale/programs/3level.h: Likewise.
9749         * locale/programs/ld-monetary.c: Likewise.
9750         * locale/programs/ld-measurement.c: Likewise.
9751         * locale/programs/charmap-dir.c: Likewise.
9752         * locale/programs/ld-identification.c: Likewise.
9753         * locale/programs/localedef.h: Likewise.
9754         * locale/programs/charmap-dir.h: Likewise.
9755         * locale/programs/repertoire.c: Likewise.
9756         * locale/programs/simple-hash.h: Likewise.
9757         * locale/programs/ld-telephone.c: Likewise.
9758         * locale/programs/locale-spec.c: Likewise.
9759         * locale/programs/locfile-token.h: Likewise.
9760         * posix/getconf.c: Likewise.
9761         * iconv/dummy-repertoire.c: Likewise.
9762         * iconv/iconv_charmap.c: Likewise.
9763         * iconv/iconvconfig.c: Likewise.
9764         * iconv/iconv_prog.c: Likewise.
9765         * malloc/memusagestat.c: Likewise.
9766         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9767
9768 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9769
9770         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9771         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9772         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9773         check for the first argument.
9774
9775 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9776
9777         [BZ #4775]
9778         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9779         (__tgmath_real_type): Fix if expr is const int or other const
9780         qualified integral type.
9781         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9782         expressions and handle const qualified arguments.
9783         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9784         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9785         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9786         statement expressions.
9787         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9788         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9789         (__TGMATH_UNARY_IMAG): Define.
9790         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9791         * math/Makefile (tests): Add test-tgmath2.
9792         (CFLAGS-test-tgmath2.c): Add.
9793         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9794         count_cfloat, count_cldouble): New variables.
9795         (NCCALLS): Define.
9796         (main): Check number of complex calls as well.
9797         (F(compile_test)): Add complex tests and tests with const qualified
9798         arguments.
9799         (y, z, ccount): Define.
9800         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9801         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9802         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9803         F(cproj)): New functions.
9804         * math/test-tgmath2.c: New test.
9805
9806 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9807
9808         [BZ #4776]
9809         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9810         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9811         instead output ".".
9812         * dlfcn/Makefile (distribute): Add glreflib3.c.
9813         (module-names): Add glreflib3.
9814         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9815         glreflib1.so.
9816         (LDFLAGS_glreflib3.so): New.
9817         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9818         glreflib1.so.
9819         * dlfcn/glreflib3.c: New file.
9820
9821         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9822         returned -1, return NULL.
9823         * intl/explodename.c (_nl_explode_name): Return -1 if
9824         _nl_normalize_codeset failed.
9825
9826 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9827
9828         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9829         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9830         and avoid branch misspredicts for > 31 bytes memset case.
9831         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9832         Remove toc ref to __cache_line_size.
9833
9834         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9835         to get ISA-V2.0 branch hints.
9836         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9837         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9838         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9839         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9840         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9841         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9842         Remove toc ref to __cache_line_size.
9843
9844         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9845         Include math_ldbl_opt.h.
9846
9847 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9848
9849         [BZ #4773]
9850         * time/strptime_l.c (__strptime_internal): Implement greedy
9851         matching of weekday and month names.
9852
9853 2007-07-09  Roland McGrath  <roland@redhat.com>
9854
9855         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9856         (ELF_NOTE_ABI): Use it.
9857         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9858
9859 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9860
9861         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9862         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9863
9864 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9865
9866         [BZ #4745]
9867         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9868         in loop to look for conversion specifier to avoid testing of
9869         wrong errno value.
9870         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9871         * stdio-common/bug18.c: New file.
9872         * stdio-common/bug18a.c: New file.
9873         * stdio-common/bug19.c: New file.
9874         * stdio-common/bug19a.c: New file.
9875
9876 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9877
9878         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9879         running awk script.
9880
9881 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9882
9883         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9884         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9885         Return NULL if mmap failed instead of asserting it does not.
9886         (calloc): Check for integer overflow.
9887
9888         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9889         than LONG_MAX / 10.
9890
9891 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9892
9893         [BZ #4702]
9894         * nis/nss-default.c: Include errno.h.
9895         (init): Preserve errno.
9896
9897 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9898
9899         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9900
9901 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9902
9903         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9904
9905 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9906
9907         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9908
9909 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9910
9911         * sysdeps/s390/dl-procinfo.c: New file.
9912         * sysdeps/s390/dl-procinfo.h: New file.
9913         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9914
9915 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9916
9917         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9918         in PT_NOTE segments with multiple notes.
9919         * elf/readelflib.c (process_elf_file): Likewise.
9920
9921 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9922
9923         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9924         ISO C compliant.
9925
9926 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9927
9928         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9929
9930 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9931
9932         * include/link.h: Don't include rtld-lowlevel.h.
9933         (struct link_map): Remove l_scope_lock.
9934         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9935         (_dl_scope_free_list): New field (variable) in _rtld_global.
9936         (DL_LOOKUP_SCOPE_LOCK): Remove.
9937         (_dl_scope_free): New prototype.
9938         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9939         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9940         (_dl_profile_fixup): Likewise.
9941         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9942         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9943         THREAD_GSCOPE_RESET_FLAG around it.
9944         * elf/dl-close.c (_dl_close_worker): Don't use
9945         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9946         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9947         scopes were queued or if l_scope_mem has been abandoned.
9948         * elf/dl-open.c (_dl_scope_free): New function.
9949         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9950         * elf/dl-support.c (_dl_scope_free_list): New variable.
9951         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9952         Remove DL_LOOKUP_SCOPE_LOCK handling.
9953         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9954         handling.
9955         * elf/dl-object.c (_dl_new_object): Don't use
9956         __rtld_mrlock_initialize.
9957
9958 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9959
9960         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9961         to fill in holes
9962         (rtld_global_ro): Likewise.
9963
9964 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9965
9966         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9967         Move PT_LOAD checking to...
9968         (_dl_addr_inside_object): ... here, new function.
9969         * elf/dl-sym.c (do_sym): If not l_contiguous,
9970         call _dl_addr_inside_object.
9971         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9972         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9973         * elf/dl-open.c (dl_open_worker): Likewise.
9974         (_dl_addr_inside_object): New function if IS_IN_rtld.
9975         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9976         holes are present or are PROT_NONE protected.
9977         * include/link.h (struct link_map): Add l_contiguous field.
9978         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9979
9980 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9981             Tomas Janousek  <tjanouse@redhat.com>
9982             Ulrich Drepper  <drepper@redhat.com>
9983
9984         [BZ #4647]
9985         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9986         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9987         socket.
9988         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9989         unused member a bitmap.
9990         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9991         servers are configured.
9992
9993 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9994
9995         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9996
9997 2007-06-17  Andreas Schwab  <schwab@suse.de>
9998
9999         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10000
10001 2007-06-16  Andreas Jaeger  <aj@suse.de>
10002
10003         [BZ #4125]
10004         * sysdeps/unix/sysv/linux/sys/ptrace.h
10005         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10006         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10007         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10008         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10009         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10010         Define.
10011         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10012         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10013         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10014         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10015
10016 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10017
10018         [BZ #4599]
10019         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10020         determining whether there are IPv4/IPv6 addresses, ignore loopback
10021         addresses.
10022
10023 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10024
10025         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10026         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10027         as the return type.  Change type of "r" variable to CMPtype.
10028         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10029         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10030         * soft-fp/gedf2.c (__gedf2): Likewise.
10031         * soft-fp/gesf2.c (__gesf2): Likewise.
10032         * soft-fp/getf2.c (__getf2): Likewise.
10033         * soft-fp/ledf2.c (__ledf2): Likewise.
10034         * soft-fp/lesf2.c (__lesf2): Likewise.
10035         * soft-fp/letf2.c (__letf2): Likewise.
10036         * soft-fp/unorddf2 (__unorddf2): Likewise.
10037         * soft-fp/unordsf2 (__unordsf2): Likewise.
10038         * soft-fp/unordtf2 (__unordtf2): Likewise.
10039
10040 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10041
10042         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10043         make sure gcc doesn't mess around with this.
10044
10045 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10046
10047         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10048
10049 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10050
10051         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10052         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10053         at most once per _dl_close_worker.
10054
10055 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10056
10057         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10058         __sched_cpucount as const.
10059         * posix/sched_cpucount.c: Adjust.
10060
10061         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10062         instruction for counting bits.
10063         * sysdeps/x86_64/sched_cpucount.c: New file.
10064
10065 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10066
10067         * configure.in: Avoid variable named BASH.
10068         * config.make.in: Likewise.
10069         Patch in part by Mike Frysinger.
10070
10071 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10072
10073         [BZ #4586]
10074         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10075         pseudo-zeros as zero.
10076         * sysdeps/x86_64/ldbl2mpn.c: New file.
10077         * sysdeps/ia64/ldbl2mpn.c: New file.
10078
10079 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10080
10081         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10082         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10083         Remove unreachable code at the end.
10084
10085 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10086
10087         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10088         ldbl-128ibm in comment.
10089         (fpclassifyl): Correct classification of denormals.
10090         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10091         return value for MIN denormal. Rewrite using long double math too
10092         correctly handle denormals and canonicalize the results.
10093
10094 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10095
10096         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10097         (__mpn_construct_long_double): Fix conversion where result ought
10098         to be smaller than __LDBL_MIN__, or the low double should be
10099         denormal.  Fix decision where to negate low double - honor round
10100         to even rules.
10101         * stdio-common/tst-sprintf2.c: Include string.h.
10102         (COMPARE_LDBL): Define.
10103         (TEST): Also test whether a string hexadecimal float representation
10104         can be parsed back to the number.
10105         (main): Add a couple of further tests.
10106
10107 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10108
10109         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10110         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10111         is non-zero, but smaller than 2 * __DBL_MIN__.
10112         * stdio-common/tst-sprintf2.c: New test.
10113         * stdio-common/Makefile (tests): Add tst-sprintf2.
10114
10115         * math/test-misc.c (main): Don't run last batch of tests with
10116         IBM long double format.
10117
10118 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10119
10120         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10121         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10122         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10123         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10124         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10125         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10126         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10127         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10128         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10129         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10132         New file.
10133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10134         New file.
10135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10136         New file.
10137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10138         New file.
10139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10140         New file.
10141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10143         New file.
10144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10145         New file.
10146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10147         New file.
10148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10149         New file.
10150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10151         New file.
10152
10153 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10154
10155         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10156         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10157         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10158         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10159         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10160         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10161         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10162         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10163
10164 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10165
10166         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10167         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10168         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10169         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10170         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10171         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10172         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10173         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10174
10175 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10176
10177         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10178         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10179         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10180         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10181
10182 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10183
10184         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10185         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10186
10187 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10188
10189         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10190         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10191         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10192         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10193
10194 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10195
10196         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10197         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10198
10199 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10200
10201         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10202         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10203
10204         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10205         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10206         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10207         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10208
10209 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10210
10211         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10212         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10213         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10214         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10215
10216 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10217
10218         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10219         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10220         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10221         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10222         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10223         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10224
10225 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10226
10227         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10228         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10229         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10230         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10231
10232 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10233
10234         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10235         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10236         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10237         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10238         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10239         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10240         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10241         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10242         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10243         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10244         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10245         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10246         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10247         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10248         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10249         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10250
10251 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10252
10253         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10254         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10255
10256 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10257
10258         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10259         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10260
10261 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10262
10263         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10264         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10265         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10266         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10267         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10268         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10269         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10270         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10271         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10272         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10273
10274 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10275
10276         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10277
10278 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10279
10280         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10281         branch miss-predicts. Ensure that cache line crossing does not impact
10282         dispatch grouping.
10283
10284 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10285
10286         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10287         "../../powerpc32/power4/memcopy.h".
10288         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10289         "../../powerpc32/power4/wordcopy.c".
10290
10291 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10292
10293         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10294         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10295         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10296         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10297         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10298         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10299
10300 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10301
10302         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10303
10304 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10305
10306         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10307         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10308         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10309         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10310         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10311         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10312         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10313         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10314
10315 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10316
10317         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10318
10319 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10320
10321         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10322         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10323         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10324         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10325         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10326         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10327         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10328
10329 2007-05-29  Roland McGrath  <roland@redhat.com>
10330
10331         * po/Makefile (po-sed-cmd): New variable.
10332         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10333
10334 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10335
10336         * crypt/md5-crypt.c: Fix comment.
10337
10338         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10339         of crashing.  When this is the case or if the reply is malformed,
10340         don't try to close the new file descriptor since it does not
10341         exist.
10342         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10343
10344 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10345
10346         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10347         if __NR_utimensat is not defined.
10348
10349 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10350
10351         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10352
10353 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10354
10355         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10356         (open): Fix comment typos.  Don't call __open_2 if flags
10357         is a compile time constant without O_CREAT.
10358         (__open64_2): Add nonnull attribute.
10359         (open64): Fix comment typos.  Don't call __open64_2 if flags
10360         is a compile time constant without O_CREAT.
10361         (__openat_2): Add nonnull attribute, fix nonnull attribute
10362         on redirect.
10363         (openat): Fix comment typos.  Don't call __openat_2 if flags
10364         is a compile time constant without O_CREAT.
10365         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10366         on redirect.
10367         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10368         is a compile time constant without O_CREAT.
10369
10370 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10371
10372         * Makerules (sysd-rules): Define PTW for ptw-* files.
10373         * Versions: Define GLIBC_2.7 for libc.
10374         * include/stdio.h: Declare __fortify_fail.
10375         * debug/fortify_fail.c: New file.
10376         * debug/Makefile (routines): Add fortify_fail.
10377         * debug/chk_fail.c: Use __fortify_fail.
10378         * debug/stack_chk_fail.c: Likewise.
10379         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10380         __openat64_2 for GLIBC_2.7.
10381         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10382         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10383         and fails if necessary.
10384         * io/open64.c: Likewise.
10385         * io/openat.c: Likewise.
10386         * io/openat64.c: Likewise.
10387         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10388         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10389         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10390         * io/bits/fcntl2.h: New file.
10391         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10392         __openat64_2.
10393         * include/bits/fcntl2.h: New file.
10394         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10395         Add open_2.
10396         * sysdeps/unix/sysv/linux/open_2.c: New file.
10397
10398 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10399
10400         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10401         as second parameter to handle_intel.
10402
10403         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10404         the entry.
10405
10406         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10407         handling to ...
10408         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10409         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10410         cacheinfo.
10411         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10412         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10413         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10414
10415         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10416
10417 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10418
10419         [BZ #4525]
10420         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10421         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10422         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10423
10424         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10425
10426         [BZ #4514]
10427         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10428         reinitialize workend at the start of each do_positional format spec
10429         loop, free workstart before do_positional loops.
10430         (printf_unknown): Fix size of work_buffer.
10431         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10432
10433         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10434         (public_sET_STATe): If ms->version < 3, put all chunks into
10435         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10436         chunks.
10437
10438         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10439         * malloc/hooks.c: Likewise.
10440         * malloc/arena.c: Likewise.
10441         * malloc/malloc.c (do_check_malloc_state): Don't assert
10442         n_mmaps is not greater than n_mmaps_max.  This removes the need
10443         for the previous change.
10444
10445         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10446         2007-05-07 commit.
10447
10448 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10449
10450         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10451         Define for kernel >= 2.6.22.
10452
10453 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10454
10455         * elf/dl-close.c (_dl_close_worker): When removing object from
10456         global scope, wait for all lookups to finish afterwards.
10457         * elf/dl-open.c (add_to_global): When global scope array must
10458         grow, allocate a new one and free old array only after all
10459         lookups finish.
10460         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10461         (_dl_lookup_symbol_x): Likewise.
10462         * elf/dl-support.c: Define _dl_wait_lookup_done.
10463         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10464         _dl_wait_lookup_done.
10465
10466         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10467         not overlapping with arena.
10468
10469         * malloc/mcheck.c (reallochook): If size==0, free the block.
10470
10471         * rt/tst-shm.c: Use fstat64 instead of fstat.
10472
10473         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10474         __NR_sync_file_range is not defined.
10475
10476 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10477
10478         Dummy files to prevent stub versions from being used.
10479         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10480         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10481         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10482         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10483
10484         * version.h (VERSION): Set to 2.6.90.
10485
10486 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10487
10488         * version.h (VERSION): Define to 2.6.
10489         * include/features.h (__GLIBC_MINOR__): Define to 6.
10490
10491         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10492
10493         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10494         sizes.
10495
10496 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10497
10498         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10499         number of mmaps.  n_mmaps_max is the target.
10500         * malloc/hooks.c: Likewise.
10501         * malloc/arena.c: Likewise.
10502
10503 2007-05-12  Andreas Jaeger  <aj@suse.de>
10504
10505         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10506         getpid.
10507
10508 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10509
10510         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10511         adding new variables.
10512
10513         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10514         optimize.  Completely extend global scope array before making the
10515         new entries visible.
10516
10517 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10518
10519         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10520         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10521         tst-getcpu.
10522
10523         * include/link.h: Move l_version and l_nversion members around to
10524         fill gaps.
10525
10526         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10527
10528         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10529         (__sched_setaffinity_new): If syscall was successful and
10530         RESET_VGETCPU_CACHE is defined, use it before returning.
10531         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10532
10533         * io/sys/stat.h: Make sure struct timespec is defined for
10534         __USE_ATFILE.
10535
10536         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10537         UTIME_OMIT.
10538         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10539         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10540         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10541         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10542         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10543         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10544         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10545         * io/sys/stat.h: Declare utimensat, futimens.
10546         * io/utimensat.c: New file.
10547         * io/futimens.c: New file.
10548         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10549         * sysdeps/unix/sysv/linux/futimens.c: New file.
10550         * io/Makefile (routines): Add utimensat, futimens.
10551         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10552         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10553         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10554         available.
10555
10556         * include/sys/cdefs.h: Redefine __nonnull so that test for
10557         incorrect parameters in the libc code itself are not omitted.
10558
10559 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10560
10561         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10562         exception in addition to inexact when asked to raise only FE_INEXACT.
10563
10564         [BZ #3427]
10565         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10566         in *envp.
10567
10568 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10569
10570         [BZ #4403]
10571         * string/strfry.c (strfry): Make result more random.
10572
10573 2007-05-07  Richard Henderson  <rth@redhat.com>
10574
10575         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10576         if __NO_LONG_DOUBLE_MATH.
10577         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10578         available in the compiler, add .arch directive to the assembly.
10579
10580 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10581
10582         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10583         compat_symbol to GLIBC_2_1.
10584         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10585         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10586         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10587         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10588         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10589         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10590         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10591         libc, not libm.
10592         (__isnanl): New compat_symbol.
10593
10594 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10595             Jakub Jelinek  <jakub@redhat.com>
10596
10597         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10598         (new_heap): Initialize mprotect_size.
10599         (grow_heap): When growing, only mprotect from mprotect_size till
10600         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10601         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10602
10603 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10604             Peter Bergner  <bergner@us.ibm.com>
10605
10606         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10607         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10608         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10609         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10610         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10611         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10612         Call __fe_mask_env() if all FP exceptions disabled.
10613         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10614         from old FPSCR to new fenv to propagate DFP rounding modes.
10615         Call __fe_mask_env() if FP exceptions previously enabled.
10616         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10617         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10618         transitioning from all exceptions disabled to any exception enabled
10619         or visa versa.
10620         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10621         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10622         when transitioning from all exceptions disabled to any exception
10623         enabled or visa versa.
10624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10630
10631 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10632
10633         [BZ #4465]
10634         * posix/unistd.h: Remove __THROW from fdatasync.
10635
10636 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10637
10638         [BZ #4465]
10639         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10640
10641 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10642
10643         * stdio-common/vfprintf.c (process_string_arg): Optimize
10644         ridiculous precision in wide char code printing multi-byte string.
10645         Reported by Jim Meyering <jim@meyering.net>.
10646
10647         [BZ #4131]
10648         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10649         boundaries to work around systems with overlapping binary loading.
10650         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10651
10652 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10653
10654         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10655         __mbsnrtowcs after last change.
10656
10657         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10658         (get_ident): Likewise.
10659
10660 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10661
10662         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10663         with setting the sticky bit.
10664         * math/test-misc.c (main): Add more truncation tests.
10665
10666 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10667
10668         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10669         double in the function declaration.
10670         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10671         double in the function declaration.
10672         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10673         float in the function declaration.
10674         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10675         float in the function declaration.
10676
10677         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10678         denormal operands.  Do not generate FP_EX_DENORM exception.
10679         (FP_UNPACK_RAW_EP): Ditto.
10680         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10681         undefined _FP_UNPACK_RAW_E.
10682         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10683         undefined _FP_UNPACK_RAW_EP.
10684         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10685         undefined _FP_PACK_RAW_E.
10686         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10687         undefined _FP_PACK_RAW_EP.
10688
10689         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10690         _FP_FRAC_COPY_2.
10691         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10692         _FP_FRAC_COPY_4.
10693
10694 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10695             Jakub Jelinek  <jakub@redhat.com>
10696
10697         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10698         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10699         this case.
10700         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10701
10702 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10703
10704         * math/test-misc.c (main): Add tests for rounding long double
10705         values close to smallest double denormalized value to double.
10706
10707 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10708
10709         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10710         condition for truncating to 0.  Set sticky bit for such
10711         truncation.
10712
10713 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10714
10715         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10716         fixed length array for ignore.
10717
10718 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10719
10720         [BZ #4438]
10721         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10722         stack for large precisions.
10723         * stdio-common/test-vfprintf.c (main): Add test for large
10724         precision.
10725
10726 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10727
10728         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10729         for exponent 0.
10730         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10731
10732         [BZ #4439]
10733         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10734         account in the size check.
10735         * resolv/tst-inet_ntop.c: New test.
10736         * resolv/Makefile (tests): Add tst-inet_ntop.
10737
10738 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10739             Jakub Jelinek  <jakub@redhat.com>
10740
10741         [BZ #4349]
10742         * malloc/malloc.c: Keep separate list for first blocks on the bin
10743         lists with a given size.  This helps skipping over list elements
10744         we know won't fit in two places.
10745         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10746
10747 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10748
10749         [BZ #4102]
10750         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10751         label to Teredo tunnel addresses 2001://32.
10752
10753 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10754
10755         * locale/programs/ld-collate.c (collate_read): Allow order_start
10756         after copy.
10757
10758         * locale/programs/ld-collate.c (collate_read): Fix printing of
10759         error message.
10760
10761         [BZ #3213]
10762         * locale/C-translit.h.in: Add entry for U2044.
10763
10764         [BZ #4342]
10765         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10766         hexa-decimal floats without exponent.
10767         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10768
10769 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10770
10771         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10772         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10773         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10774         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10775         GLIBC_2.6.
10776         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10777         Add sched_getcpu.
10778
10779 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10780
10781         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10782         of 0 after the out_fail label.
10783
10784 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10785
10786         [BZ #4406]
10787         * iconv/gconv_charset.h (strip): Allow ':'.
10788         * iconv/iconv_open.c (iconv_open): Adjust comment.
10789
10790 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10791
10792         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10793         version.
10794
10795 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10796
10797         [BZ #4381]
10798         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10799         alignment of buffer and tmp_buffer.
10800         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10801         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10802         alignment of buffer.
10803         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10804         bigger than INT_MAX.
10805         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10806         h_errnop arguments.  Fail if buflen is too small.
10807         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10808
10809 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10810
10811         [BZ #4405]
10812         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10813         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10814
10815 2007-04-22  Roland McGrath  <roland@redhat.com>
10816
10817         * elf/elf.h (NT_PRXFPREG): New macro.
10818
10819 2007-04-19  Andreas Jaeger  <aj@suse.de>
10820
10821         [BZ #3905]
10822         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10823         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10824         Added.
10825
10826 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10827
10828         * include/sys/mman.h: Mark madvise hidden.
10829         * misc/madvise.c: Add libc_hidden_def.
10830
10831 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10832
10833         * nis/nis_domain_of.c (__nis_domain_of): New function.
10834         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10835         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10836         * nis/nis_call.c (rec_dirsearch): Likewise.
10837         (first_shoot): Likewise.  Remove search_parent_first argument.
10838         (struct nis_server_cache): Rename search_parent_first field
10839         to search_parent.
10840         (nis_server_cache_search, nis_server_cache_add): Rename
10841         search_parent_first argument to search_parent.
10842         (__nisfind_server): Likewise.  If search_parent, call
10843         __nis_domain_of.
10844
10845 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10846
10847         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10848
10849 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10850
10851         [BZ #4368]
10852         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10853
10854 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10855
10856         [BZ #4364]
10857         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10858
10859 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10860
10861         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10862         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10863         current number of locales in SUPPORTED.
10864         (create_archive): Initialize serial.
10865         (enlarge_archive): Preserve aliases rather than duplicating
10866         their locrecs.
10867
10868 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10869
10870         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10871         after _IO_un_link, not before it.
10872
10873         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10874         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10875         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10876
10877 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10878
10879         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10880         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10881         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10882         Remove __THROW.
10883         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10884         _IO_file_xsgetn_maybe_mmap): Likewise.
10885         * libio/oldfileops.c (old_do_write): Likewise.
10886         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10887         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10888         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10889         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10890         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10891         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10892         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10893         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10894         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10895         _IO_file_underflow, _IO_file_underflow_mmap,
10896         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10897         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10898         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10899         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10900         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10901         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10902         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10903         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10904         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10905         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10906         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10907         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10908         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10909         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10910         _IO_adjust_column_internal, _IO_default_uflow_internal,
10911         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10912         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10913         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10914         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10915         _IO_file_close_it_internal, _IO_file_underflow_internal,
10916         _IO_file_overflow_internal, _IO_file_attach_internal,
10917         _IO_file_fopen_internal, _IO_file_sync_internal,
10918         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10919         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10920         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10921         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10922         _IO_seekpos_unlocked): Likewise.
10923         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10924         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10925
10926 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10927
10928         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10929         argument in xmalloc size computation.
10930
10931 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10932
10933         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10934         math_opt_barrier and math_force_eval macros.
10935
10936 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10937
10938         [BZ #3306]
10939         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10940         * sysdeps/i386/fpu/math_private.h: New file.
10941         * sysdeps/x86_64/fpu/math_private.h: New file.
10942         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10943         math_force_eval macros.  Use "+m" constraint on asm rather than
10944         "=m" and "m".
10945         * math/s_nextafter.c (__nextafter): Likewise.
10946         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10947         Likewise.
10948         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10949         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10950         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10951         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10952         math_opt_barrier and math_force_eval macros.
10953         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10954         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10955         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10956         (__nexttoward): Use math_opt_barrier and
10957         math_force_eval macros.  Use "+m" constraint on asm rather than
10958         "=m" and "m".  Only use asm to force double result if
10959         FLT_EVAL_METHOD is 2.
10960         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10961         (__nexttowardf): Use math_opt_barrier and
10962         math_force_eval macros.  Use "+m" constraint on asm rather than
10963         "=m" and "m".  Only use asm to force double result if
10964         FLT_EVAL_METHOD is not 0.
10965         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10966         (__nexttowardf): Use math_opt_barrier and
10967         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10968         x to float using asm.
10969         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10970         (__nldbl_nexttowardf): Use math_opt_barrier and
10971         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10972         x to float using asm.
10973         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10974         (__nexttowardf): Use math_opt_barrier and math_force_eval
10975         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10976         * math/bug-nextafter.c (zero, inf): New variables.
10977         (main): Add new tests.
10978         * math/bug-nexttoward.c (zero, inf): New variables.
10979         (main): Add new tests.
10980
10981 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10982
10983         [BZ #3427]
10984         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10985         exceptions both in SW and MXCSR.
10986         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10987         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10988         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10989         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10990         in MXCSR if SSE is available.
10991         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10992         and ldsodefs.h.
10993         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10994         Fix comment typo.
10995         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10996         Return 0 rather than 1.
10997         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10998         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10999         * math/test-fenv.c (feholdexcept_tests): New function.
11000         (main): Call it.
11001
11002 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11003
11004         [BZ #3427]
11005         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11006         in SW.
11007
11008 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11009
11010         [BZ #4344]
11011         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11012         Reported by David Anderson <davea42@earthlink.net>.
11013
11014 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11015
11016         * posix/sys/wait.h: Remove unnecessary forward declaration.
11017
11018 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11019
11020         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11021         with obj->do_servers after first_shoot.
11022
11023 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11024
11025         * posix/Makefile (routines): Add sched_cpucount.
11026         (tests): Add tst-cpucount.
11027         * posix/sched_cpucount.c: New file.
11028         * posix/tst-cpucount.c: New file.
11029         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11030         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11031         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11032         * posix/sched.h: Define CPU_COUNT.
11033
11034 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11035
11036         * posix/fnmatch.c (STRUCT): Define.
11037         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11038         * posix/fnmatch_loop.c (struct STRUCT): New type.
11039         (FCT): Add ends argument.  If ends != NULL and normal * is
11040         seen in the pattern, store current pattern and string pointers
11041         and return.  Adjust recursive calls.
11042         (EXT): Adjust FCT callers.
11043         (STRUCT): Undef at the end of the file.
11044         * posix/Makefile (tests): Add tst-fnmatch2.
11045         * posix/tst-fnmatch2.c: New test.
11046
11047 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11048
11049         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11050         and 1 on failure.
11051
11052         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11053         Change last argument to unsigned int.
11054
11055 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11056
11057         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11058
11059 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11060
11061         * config.h.in (HAVE_LIBCAP): Add.
11062         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11063         sys/capabilities.h.
11064         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11065         free_caps.  Cast away const from 4th cap_set_flag argument.
11066
11067 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11068
11069         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11070         GLIBC_2.6.
11071         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11072         Add sync_file_range.
11073         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11074
11075 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11076
11077         * sysdeps/powerpc/bits/atomic.h
11078         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11079         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11080         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11081         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11082         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11083         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11084         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11085         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11086         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11087         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11088         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11089         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11090         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11091         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11092         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11093         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11094         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11095         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11096         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11097         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11098
11099 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11100
11101         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11102         (__cache_line_size): Define the variable here.  Add
11103         attribute_hidden, remove weak_extern.
11104         (__libc_start_main): Set __cache_line_size
11105         unconditionally.
11106         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11107         (__cache_line_size): Define the variable here.  Add
11108         attribute_hidden, remove weak_extern.
11109         (DL_PLATFORM_AUXV): Set __cache_line_size
11110         unconditionally.
11111         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11112         weak_extern, add attribute_hidden.
11113         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11114         defined in ld.so.
11115         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11116         definition.
11117         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11118
11119 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11120
11121         [BZ #4276]
11122         * timezone/africa: Update from tzdata2007d.
11123         * timezone/asia: Likewise.
11124         * timezone/australasia: Likewise.
11125         * timezone/backward: Likewise.
11126         * timezone/europe: Likewise.
11127         * timezone/iso3166.tab: Likewise.
11128         * timezone/leapseconds: Likewise.
11129         * timezone/northamerica: Likewise.
11130         * timezone/southamerica: Likewise.
11131         * timezone/zone.tab: Likewise.
11132
11133         * timezone/private.h: Update from tzcode2007d.
11134         * timezone/zdump.c: Likewise.
11135         * timezone/zic.c: Likewise.
11136
11137 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11138
11139         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11140         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11141         variables.
11142         (nis_server_cache_search, nis_server_cache_add): New functions.
11143         (__nisfind_server): Use them.  Add dbp and flags argument, if
11144         call __nisbind_create.
11145         (__nisbind_create): Add server_used and current_ep arguments,
11146         only call __nis_findfastest if server_used is ~0.
11147         (__do_niscall2, __prepare_niscall): Adjust callers.
11148         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11149         ckey_cache_euid, ckey_cache_lock): New variables.
11150         (get_ckey): New function.
11151         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11152         __pmap_getnisport.  Save __pmap_getnisport result in
11153         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11154         key.
11155         * nis/nis_lookup.c (nis_lookup): Likewise.
11156         * nis/nis_table.c (nis_list): Likewise.
11157         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11158         prototypes.
11159
11160         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11161         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11162         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11163         _nss_nisplus_getservbyport_r): Likewise.
11164         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11165         _nss_nisplus_getnetbyaddr_r): Likewise.
11166         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11167         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11168         _nss_nisplus_getntohost_r): Likewise.
11169         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11170         _nss_nisplus_getrpcbynumber_r): Likewise.
11171
11172 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11173
11174         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11175         * configure: Rebuilt.
11176
11177         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11178         bit-fields.
11179         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11180
11181 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11182
11183         [BZ #2831]
11184         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11185         bit-fields.
11186
11187 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11188
11189         * nscd/gai.c: Include alloca.h.
11190         (__libc_use_alloca): Define.
11191
11192 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11193
11194         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11195         smaller scopes.
11196         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11197         (DL_DST_REQUIRED): Adjust user.
11198
11199         * include/dlfcn.h (struct link_map): New forward decl.
11200
11201         * inet/getnameinfo.c: Include stddef.h.
11202         (getnameinfo): Use offsetof.
11203
11204         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11205
11206         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11207
11208         * string/strerror_l.c: Include stdlib.h.
11209
11210         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11211         * config.make.in (gnu89-inline-CFLAGS): New variable.
11212         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11213         -std=gnu99.
11214         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11215         * argp/argp.h: Use it.
11216         * bits/mathinline.h: Likewise.
11217         * bits/sigset.h: Likewise.
11218         * bits/string.h: Likewise.
11219         * ctype/ctype.h: Likewise.
11220         * hurd/hurd.h: Likewise.
11221         * hurd/hurd/fd.h: Likewise.
11222         * hurd/hurd/port.h: Likewise.
11223         * hurd/hurd/signal.h: Likewise.
11224         * hurd/hurd/threadvar.h: Likewise.
11225         * hurd/hurd/userlink.h: Likewise.
11226         * io/sys/stat.h: Likewise.
11227         * libio/bits/stdio.h: Likewise.
11228         * libio/bits/stdio2.h: Likewise.
11229         * mach/lock-intern.h: Likewise.
11230         * mach/mach/mig_support.h: Likewise.
11231         * math/bits/cmathcalls.h: Likewise.
11232         * posix/bits/unistd.h: Likewise.
11233         * socket/bits/socket2.h: Likewise.
11234         * stdlib/bits/stdlib.h: Likewise.
11235         * stdlib/stdlib.h: Likewise.
11236         * string/argz.h: Likewise.
11237         * string/bits/string2.h: Likewise.
11238         * string/bits/string3.h: Likewise.
11239         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11240         * sysdeps/generic/inttypes.h: Likewise.
11241         * sysdeps/generic/machine-lock.h: Likewise.
11242         * sysdeps/generic/machine-sp.h: Likewise.
11243         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11244         * sysdeps/i386/i486/bits/string.h: Likewise.
11245         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11246         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11247         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11248         * sysdeps/mach/i386/machine-lock.h: Likewise.
11249         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11250         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11251         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11252         * sysdeps/s390/bits/string.h: Likewise.
11253         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11254         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11255         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11256         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11257         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11258         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11259         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11260         * wcsmbs/bits/wchar2.h: Likewise.
11261         * wcsmbs/wchar.h: Likewise.
11262         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11263         __extern_inline definition.
11264
11265 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11266
11267         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11268         NULL.
11269
11270         [BZ #3919]
11271         * math/libm-test.inc (log_test): Test -Inf and NaN.
11272         (log10_test, log1p_test, log2_test): Test -Inf.
11273         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11274         FE_INVALID when argument is qNaN.
11275         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11276         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11277         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11278         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11279         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11280         testb $4, %ah and jump if non-zero.
11281         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11282         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11283
11284         [BZ #4101]
11285         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11286         ancestors with the same depths.
11287         Patch by Niels Moeller <nisse@lysator.liu.se>.
11288         (filter_doc): Don't crash if argp is NULL.
11289         * argp/Makefile (tests): Add tst-argp2.
11290         * argp/tst-argp2.c: New test.
11291
11292         [BZ #4130]
11293         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11294         open_not_cancel_2.
11295         (updwtmp_file): Likewise.
11296
11297         [BZ #4181]
11298         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11299         (inet6_opt_append): Don't check extlen is big enough if extbuf
11300         is NULL.
11301         (inet6_opt_finish): Likewise.
11302         * inet/Makefile (tests): Add test-inet6_opt.
11303         * inet/test-inet6_opt.c: New test.
11304
11305         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11306         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11307         NLMSG_ERR.  Instead use a page sized buffer.
11308         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11309         buffer.
11310
11311 2007-03-14  Richard Henderson  <rth@redhat.com>
11312
11313         * sysdeps/alpha/fpu/s_llround.c: New file.
11314         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11315         * sysdeps/alpha/fpu/s_lround.c: New file.
11316         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11317         * sysdeps/alpha/fpu/s_round.c: New file.
11318         * sysdeps/alpha/fpu/s_roundf.c: New file.
11319         * sysdeps/alpha/fpu/s_trunc.c: New file.
11320         * sysdeps/alpha/fpu/s_truncf.c: New file.
11321
11322         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11323         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11324         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11325         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11326         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11327         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11328
11329         * sysdeps/alpha/fpu/s_fmax.S: New file.
11330         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11331         * sysdeps/alpha/fpu/s_fmin.S: New file.
11332         * sysdeps/alpha/fpu/s_fminf.S: New file.
11333         * sysdeps/alpha/fpu/s_isnan.c: New file.
11334         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11335         * sysdeps/alpha/fpu/s_llrint.c: New file.
11336         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11337         * sysdeps/alpha/fpu/s_lrint.c: New file.
11338         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11339         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11340         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11341
11342         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11343         (__fdimf, fdimf, __fdim, fdim): Remove.
11344         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11345         (__isnanf, __isnan, __isnanl): New.
11346
11347 2007-03-13  Richard Henderson  <rth@redhat.com>
11348
11349         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11350
11351 2007-03-13  Richard Henderson  <rth@redhat.com>
11352
11353         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11354         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11355         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11356         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11357         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11358         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11359
11360 2007-03-13  Richard Henderson  <rth@redhat.com>
11361
11362         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11363         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11364         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11365         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11366         Move to dl-auxv.h; initialize instead of extern weak.
11367         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11368         weak symbol.
11369         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11370         Extern instead of initialized.
11371
11372 2007-03-13  Richard Henderson  <rth@redhat.com>
11373
11374         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11375         __sigsuspend_nocancel.
11376
11377 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11378
11379         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11380         172.16/12 address range.
11381
11382 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11383
11384         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11385         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11386         message.
11387
11388 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11389
11390         [BZ #4069]
11391         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11392         earlier.
11393         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11394
11395         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11396         for x qNaN and y either +-inf or non-integer value.
11397         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11398         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11399         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11400
11401 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11402
11403         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11404         from sysdep_headers.
11405
11406 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11407
11408         * time/tzfile.c (find_transition): Instead of a linear search try to
11409         guess the transition index, use a linear search if the result is at
11410         most 10 transitions away from the guess or binary search otherwise.
11411
11412 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11413
11414         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11415         memory reallocation.
11416
11417 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11418
11419         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11420         and fix some typos.
11421         Optimize use of TOLOWER.
11422
11423         [BZ #3325]
11424         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11425         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11426         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11427
11428         [BZ #3458]
11429         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11430         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11431
11432         [BZ #4076]
11433         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11434         (open_dir_stream): Likewise.
11435         * io/Makefile (tests): Add bug-ftw5.
11436         * io/bug-ftw5.c: New file.
11437
11438         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11439         * nscd/servicescache.c (cache_addserv): Likewise.
11440
11441         * nscd/grpcache.c (cache_addgr): In case a record changed on
11442         refresh, adjust key_copy.
11443
11444         [BZ #4074]
11445         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11446         refresh, adjust key_copy.
11447
11448         [BZ #4070]
11449         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11450         special cases.
11451         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11452
11453 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11454
11455         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11456         optimization.
11457
11458         * stdio-common/vfscanf.c: Small cleanups throughout.
11459
11460 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11461
11462         [BZ #3325]
11463         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11464         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11465         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11466         Patch by Jared Casper <jaredcasper@gmail.com>.
11467
11468         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11469         * sysdeps/unix/opendir.c: Likewise.
11470         * sysdeps/unix/readdir.c: Likewise.
11471
11472         [BZ #2211]
11473         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11474         point numbers.
11475         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11476
11477         * stdio-common/vfscanf.c: Fix problems in width accounting.
11478         * stdio-common/tst-sscanf.c (double_tests): New tests.
11479         (main): Hook them up.
11480
11481         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11482         More simplifications of floating-point reader.
11483
11484         * stdio-common/Makefile (tests): Add tst-swscanf.
11485         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11486         testing.
11487         * stdio-common/tst-swscanf.c: New file.
11488
11489 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11490
11491         [BZ #2633]
11492         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11493         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11494         Remove using for __jmp_buf_tag.
11495         * locale/locale.h (struct lconv): Also define in std namespace.
11496         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11497
11498         [BZ #3842]
11499         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11500         using __libc_enable_secure.
11501
11502         [BZ #3818]
11503         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11504
11505         [BZ #3745]
11506         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11507         of names for ellipsises.
11508
11509         [BZ #3348]
11510         * malloc/memusage.sh: Cleanups.
11511         * debug/xtrace.sh: Quoting and trap changes.
11512
11513 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11514
11515         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11516
11517         * locale/iso-3166.def: Update entry for Serbia.
11518         * locale/iso-4217.def: Define RSD, remove CSD.
11519
11520         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11521         and 64-bit operations.
11522
11523         [BZ #4040]
11524         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11525         16-bit operations.
11526
11527         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11528         of writev.
11529
11530 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11531
11532         [BZ #3991]
11533         * assert/assert.h (assert): Simplify.
11534         (assert_perror): Likewise.
11535         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11536
11537         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11538         reqdata.
11539
11540         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11541         change: don't pass NULL in place of an integer.
11542
11543 2007-02-02  Bruno Haible  <bruno@clisp.org>
11544
11545         [BZ #3954]
11546         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11547         Add mapping for U+327E.
11548         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11549         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11550         mapping of 0xD9 0xE8.
11551         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11552         mapping of U+327E.
11553         Reported by Jungshik Shin <jungshik@google.com>.
11554
11555         [BZ #3955]
11556         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11557         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11558         Reported by Jungshik Shin <jungshik@google.com>.
11559
11560 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11561
11562         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11563         byte variants.
11564
11565         [BZ #4040]
11566         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11567         byte variants.  Patch mostly be tom@tommay.net.
11568
11569 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11570
11571         [BZ #3996]
11572         * posix/glob.c (attribute_hidden): Define if not defined.
11573         (glob): Unescape dirname, filename or username when needed and not
11574         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11575         is NULL.  Handle unescaped [ in pattern without closing ].
11576         Don't pass GLOB_CHECK down to recursive glob for directories.
11577         (__glob_pattern_type): New function.
11578         (__glob_pattern_p): Implement using __glob_pattern_type.
11579         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11580         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11581         Remove unreachable code.
11582         * posix/globtest.sh: Add a couple of new tests.
11583
11584 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11585
11586         * po/ru.po: Update from translation team.
11587
11588 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11589
11590         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11591         to the list of i486+ CPUs.
11592         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11593
11594 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11595
11596         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11597         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11598         references.
11599
11600 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11601
11602         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11603
11604         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11605         * resolv/res_mkquery.c: Define __res_nopt.
11606         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11607         try adding EDNS0 record.
11608         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11609         EDNS0 record was send make sure we don't try it again.
11610         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11611         * include/resolv.h: Declare __res_nopt.
11612
11613 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11614
11615         [BZ #3944]
11616         * time/strptime_l.c (__strptime_internal): Set have_mon for
11617         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11618         have been computed from tm_yday and tm_year.  Don't crash
11619         in day_of_the_week or day_of_the_year if not have_mon
11620         and tm_mon contains bogus value.
11621         * time/Makefile (tests): Add tst-strptime3.
11622         * time/tst-strptime3.c: New test.
11623
11624 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11625
11626         [BZ #3957]
11627         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11628         bit for RE_HAT_LISTS_NOT_NEWLINE.
11629         (build_charclass_op): Remove bogus comment.
11630         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11631         * posix/bug-regex27.c: New test.
11632         * posix/bug-regex28.c: New test.
11633
11634 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11635
11636         * po/sv.po: Update from translation team.
11637
11638 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11639
11640         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11641
11642 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11643
11644         * include/locale.h (__uselocale): Add libc_hidden_proto.
11645         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11646
11647         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11648         gettimeofday.
11649
11650 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11651
11652         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11653         returning.
11654         (PTR_DEMANGLE): Real definition now that it's not the same as
11655         PRT_MANGLE anymore.
11656         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11657
11658         * string/strerror_l.c: New file.
11659         * string/Makefile (routines): Add strerror_l.
11660         * string/string.h: Declare strerror_l.
11661         * string/Versions: Export strerror_l for GLIBC_2.6.
11662
11663 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11664
11665         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11666         as parameter.  Construct request record.  Try sending request
11667         before the first poll use, it usually succeeds.  Adjust all
11668         callers.
11669         * nscd/nscd-client.h: Define MAXKEYLEN.
11670         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11671
11672 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11673
11674         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11675         from return value.
11676         * nscd/nscd_helper.c: Include string.h.
11677         (__nscd_cache_search): Remove const qualifier from return value.
11678         On strict alignment architectures check hash entry and data head
11679         alignment.
11680         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11681         mmapped data during GC cycle contains garbage.  If
11682         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11683         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11684         dropped to 0.
11685         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11686         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11687         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11688         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11689         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11690
11691 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11692
11693         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11694
11695 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11696
11697         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11698         names not numbers in cfi_*.
11699
11700 2007-01-26  Andreas Jaeger  <aj@suse.de>
11701
11702         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11703         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11704         Correct values of PER_HPUX and PER_OSF4.
11705
11706 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11707
11708         * elf/dl-minimal.c: Undefine _itoa first.
11709         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11710         * malloc/mtrace.c: Revert last change.
11711         * posix/wordexp.c: Likewise.
11712
11713 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11714
11715         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11716         and __geode__ to the list of i486+ CPUs.
11717         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11718
11719 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11720
11721         * stdio-common/_itoa.c: Include <limits.h>.
11722         * stdio-common/_itowa.c: Likewise.
11723
11724 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11725
11726         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11727         platforms.
11728         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11729         64-bit platforms.
11730         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11731         possible.
11732         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11733         if possible.
11734
11735         [BZ #3902]
11736         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11737         * stdio-common/Makefile (tests): Add bug17.
11738         * stdio-common/bug17.c: New file.
11739
11740 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11741
11742         * iconvdata/brf.c: New file.
11743         * iconvdata/testdata/BRF: New file.
11744         * iconvdata/testdata/BRF..UTF8: New file.
11745         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11746         * iconvdata/Makefile: Add rules to build BRF.
11747         * iconvdata/TESTS: Add BRF entry.
11748         * iconvdata/gconv-modules: Likewise.
11749         * iconvdata/tst-tables.sh: Likewise.
11750
11751 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11752
11753         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11754         type `long long int', not `long int'.
11755         (wcstoq): Likewise.
11756
11757 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11758
11759         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11760         of values on 64-bit platforms which are too large.
11761
11762 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11763             Joe Kerian  <jkerian@us.us.ibm.com>
11764
11765         [BZ #2749]
11766         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11767         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11768         (__copysignl): Use signbit() for comparison.
11769         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11770         SET_LDOUBLE_WORDS64.
11771
11772         [BZ #2423, #2749]
11773         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11774         (__ceill): Remove calls to fegetround(), fesetround().
11775         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11776         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11777         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11778
11779 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11780
11781         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11782
11783         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11784
11785 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11786
11787         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11788         demangle pointer.
11789         * csu/libc-start.c: Likewise.
11790
11791 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11792
11793         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11794         really work anyway.
11795
11796 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11797
11798         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11799         users.
11800         (handle_request): Remove unnecessary tests.
11801
11802         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11803
11804 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11805
11806         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11807         workbits in semi-raw fraction.
11808
11809         * math/test-misc.c: Add new tests.
11810
11811 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11812
11813         * math/basic-test.c: Include test-skeleton.c.
11814         (TEST_TRUNC): Define.
11815         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11816         (main): Rename to ...
11817         (do_test): ...this.  Run new tests.
11818         (TEST_FUNCTION): Define.
11819
11820 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11821             Joe Kerian  <jkerian@us.us.ibm.com>
11822
11823         [BZ #2749]
11824         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11825         handling for high words.
11826         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11827         and overflow for infinity.
11828
11829 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11830
11831         * nscd/connections.c (handle_request): Add a __builtin_expect.
11832
11833         * nscd/connections.c (serv2db): Change type into structure which
11834         also says whether this is a request for data.  Renamed to
11835         servinfo.  All users changed.
11836         (handle_request): Much simpler test whether we should search the cache.
11837
11838         * nscd/connections.c (handle_request): Fix thinko in selinux test
11839         invocation.
11840
11841         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11842         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11843         it before getting dl_load_lock and then relock.
11844         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11845         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11846         case we unlocked the scope.
11847         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11848         _dl_lookup_symbol_x in case we locked the scope.
11849         (_dl_profile_fixup): Likewise.
11850         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11851         set DL_LOOKUP_SCOPE_LOCK.
11852
11853 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11854
11855         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11856         CFLAGS-getsrvbynpt_r.c.
11857         * nscd/getsrvbynm_r.c: New file.
11858         * nscd/getsrvbypt_r.c: New file.
11859         * nscd/nscd_getserv_r.c: New file.
11860         * nscd/servicescache.c: New file.
11861         * nscd/Makefile (routines): Add nscd_getserv_r.
11862         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11863         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11864         CFLAGS-getsrvbypt_r.c.
11865         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11866         table.  Add entries for services database.
11867         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11868         services database.
11869         (dbs): Add .reset_res and servdb initialization.
11870         (serv2db): Add entries for services database.
11871         (verify_persistent_db): Accept dbnr == servdb.
11872         (invalidate_cache): Rewrite database name recognition to use a table.
11873         Call res_init() if .reset_res is set for database.
11874         (handle_request): Add code to handle services database.
11875         * nscd/gai.c: Don't define __getservbyname_r.
11876         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11877         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11878         (serv_response_header): Define.
11879         (struct datahead): Add serv_response_header member.
11880         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11881         using table.
11882         * nscd/nscd.conf: Add entries for services database.
11883         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11884         Declare serv_iov_disabled.
11885         Declare addservbyname, readdservbyname, addservbyport, and
11886         readdservbyport.
11887         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11888         (find_db): Fix error message.
11889         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11890         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11891         * nscd/selinux.c (perms): Add entries for services database.
11892         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11893         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11894
11895         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11896         * nscd/hstcache.c: Likewise.
11897         * nscd/pwdcache.c: Likewise.
11898
11899         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11900         computation of keylen.
11901
11902         * include/string.h: Only redefine strndupa if this is really for
11903         libc code.
11904
11905 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11906
11907         * nscd/nscd_gethst_r.c: Minor cleanups.
11908
11909         * nscd/connections.c (handle_request): Check selinux permissions
11910         for all non-admin commands.
11911
11912         * sysdeps/i386/i486/bits/atomic.h: Define
11913         atomic_compare_and_exchange_val_acq,
11914         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11915         using __sync_* built-ins for gcc >= 4.1.
11916         * sysdeps/x86_64/bits/atomic.h: Likewise.
11917
11918         [BZ #3840]
11919         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11920         and .oS.d files.
11921
11922 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11923
11924         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11925         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11926         (do_test): Check errno and exit(0) if ENOSYS.
11927
11928 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11929
11930         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11931         thousands separators.
11932         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11933         * stdlib/tst-strtod4.c: New test.
11934
11935         [BZ #3855]
11936         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11937         hexadecimal digit should accept just the initial 0.
11938         * stdlib/tst-strtod2.c (tests): New variable.
11939         (do_test): Run several tests rather than just one.
11940
11941 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11942
11943         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11944         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11945
11946 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11947
11948         * io/fts.c: Make sure fts_cur is always valid after return from
11949         fts_read.
11950         Patch by Miloslav Trmac <mitr@redhat.com>.
11951
11952 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11953
11954         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11955         (R_MIPS_NUM): Bump by 1.
11956
11957 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11958
11959         * posix/execvp.c: Include alloca.h.
11960         (allocate_scripts_argv): Renamed to...
11961         (scripts_argv): ... this.  Don't allocate buffer here nor count
11962         arguments.
11963         (execvp): Use alloca if possible.
11964         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11965         * posix/tst-vfork3.c: New test.
11966
11967 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11968
11969         * string/Makefile (tst-strxfrm2-ENV): Define.
11970         * stdlib/Makefile (tst-strtod3-ENV): Define.
11971
11972 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11973
11974         * posix/getconf.c: Update copyright year.
11975         * nss/getent.c: Likewise.
11976         * iconv/iconvconfig.c: Likewise.
11977         * iconv/iconv_prog.c: Likewise.
11978         * elf/ldconfig.c: Likewise.
11979         * catgets/gencat.c: Likewise.
11980         * csu/version.c: Likewise.
11981         * elf/ldd.bash.in: Likewise.
11982         * elf/sprof.c (print_version): Likewise.
11983         * locale/programs/locale.c: Likewise.
11984         * locale/programs/localedef.c: Likewise.
11985         * nscd/nscd.c (print_version): Likewise.
11986         * debug/xtrace.sh: Likewise.
11987         * malloc/memusage.sh: Likewise.
11988         * malloc/mtrace.pl: Likewise.
11989         * debug/catchsegv.sh: Likewise.
11990
11991 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11992
11993         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11994         attempts.
11995
11996 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11997
11998         * posix/wordexp.c: Remove some unnecessary tests.
11999
12000 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12001
12002         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12003         blacklist the group till after we look it up.
12004
12005 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12006
12007         * include/atomic.h (atomic_forced_read): New macro.
12008
12009 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12010
12011         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12012
12013 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12014
12015         * nss/getXXbyYY_r.c: Include atomic.h.
12016         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12017         add atomic_write_barrier () in between.
12018
12019         * stdlib/Makefile (tests): Add tst-makecontext.
12020         * stdlib/tst-makecontext.c: New test.
12021
12022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12023         (__makecontext): Don't realign uc_mcontext.uc_regs.
12024
12025 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12026
12027         * elf/dl-support.c: Include dl-procinfo.h.
12028         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12029         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12030         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12031         Define.
12032         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12033         hardcoded constants.
12034         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12035         PPC_PLATFORM_* macros for array designators.
12036
12037 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12038
12039         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12040         names to the beginning.
12041         (_dl_powerpc_platforms): Add "power6x".
12042         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12043         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12044         (_DL_PLATFORMS_COUNT): Increase.
12045         (_dl_string_platform): Handle power6x case.
12046         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12047         PPC_FEATURE_POWER6_EXT): Define.
12048         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12049
12050 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12051
12052         [BZ #3747]
12053         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12054         [-2^31 .. 2^31) range.
12055         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12056         targets.
12057         * stdlib/tst-rand48-2.c: New test.
12058         * stdlib/Makefile (tests): Add tst-rand48-2.
12059
12060 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12061
12062         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12063
12064 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12065
12066         * misc/tst-pselect.c (do_test): Make sure the helper process is
12067         terminating when the test is aborted.
12068
12069 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12070
12071         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12072         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12073         Handle relatime mount option.
12074
12075         [BZ #2337]
12076         * libio/Makefile (tests): Add tst-setvbuf1.
12077         * libio/tst-setvbuf1.c: New file.
12078
12079 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12080
12081         [BZ #2337]
12082         * libio/genops.c (__uflow): Fix a typo.
12083         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12084         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12085         the narrow buffer size.
12086
12087 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12088
12089         [BZ #2337]
12090         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12091         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12092         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12093         in _flags.
12094         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12095         _IO_wstr_finish): Likewise.
12096         * libio/wmemstream.c (open_wmemstream): Likewise.
12097         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12098         even for wide streams.
12099
12100 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12101
12102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12103         kernel-features.h.
12104
12105 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12106
12107         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12108         separators also if no non-zero digits found.
12109         * stdlib/Makefile (tests): Add tst-strtod3.
12110
12111 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12112
12113         [BZ #3632]
12114         * include/features.h: Fix comment about default value for
12115         _POSIX_C_SOURCE.
12116
12117         [BZ #3664]
12118         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12119         empty parsed strings.
12120         * stdlib/Makefile (tests): Add tst-strtod2.
12121         * stdlib/tst-strtod2.c: New file.
12122
12123         [BZ #3673]
12124         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12125         computation.
12126         * stdlib/Makefile (tests): Add tst-atof2.
12127         * stdlib/tst-atof2.c: New file.
12128
12129         [BZ #3674]
12130         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12131         correctly if removing trailing zero of hex-float.
12132         * stdlib/Makefile (tests): Add tst-atof1.
12133         * stdlib/tst-atof1.c: New file.
12134
12135 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12136
12137         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12138         Start searching for next comma at p rather than rest.
12139         * misc/Makefile (tests): Add tst-mntent2.
12140         * misc/tst-mntent2.c: New test.
12141
12142         * misc/getusershell.c (initshells): Check for integer overflows.
12143         Make strings buffer one bigger as fgets always succeeds when second
12144         argument is 1.  Don't use calloc for shells array.  Disallow
12145         / as shell.
12146
12147 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12148
12149         * malloc/memusage.c: Handle realloc with new size of zero and
12150         non-NULL pointer correctly.
12151         (me): Really write first record twice.
12152         (struct entry): Make format bi-arch safe.
12153         (dest): Write out more realloc statistics.
12154         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12155
12156 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12157
12158         * nis/nis_subr.c (nis_getnames): Revert last change.
12159
12160 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12161
12162         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12163         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12164         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12165         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12166         ENOTTY.
12167         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12168         * io/tst-ttyname_r.c: New test.
12169
12170 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12171
12172         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12173
12174 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12175
12176         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12177         jump table entries.
12178
12179 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12180
12181         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12182         `clone' function to ensure proper unwinding stop of gdb.
12183         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12184
12185 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12186
12187         * nscd/nscd.init: Remove obsolete and commented-out -S option
12188         handling.
12189
12190 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12191
12192         [BZ #3514]
12193         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12194
12195         [BZ #3515]
12196         * manual/string.texi (strtok): Remove duplicate paragraph.
12197
12198 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12199
12200         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12201         libgcc not supporting `rflags' unwinding (register # >= 17).
12202
12203 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12204
12205         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12206         succeeded.
12207
12208 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12209             Jakub Jelinek  <jakub@redhat.com>
12210             Jan Kratochvil  <jan.kratochvil@redhat.com>
12211
12212         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12213         unwind information.
12214         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12215         'restore_rt' even in the 'signal' directory.
12216         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12217
12218 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12219
12220         [BZ #3559]
12221         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12222         malloc crashed.  Don't allocate memory unnecessarily in each
12223         loop.
12224
12225 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12226
12227         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12228
12229 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12230
12231         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12232
12233 2006-11-18  Bruno Haible  <bruno@clisp.org>
12234
12235         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12236         __sysconf only after having tried to call getgroups32.
12237
12238 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12239
12240         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12241         addresses for IPv4 queries if they can be mapped.
12242
12243 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12244
12245         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12246         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12247         (signmask): Add .size directive.
12248         (othermask): Add .type directive.
12249
12250 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12251
12252         * po/nl.po: Update from translation team.
12253
12254         * timezone/zdump.c: Redo fix for BZ #3137.
12255
12256 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12257
12258         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12259         to first_unused after parsing :include: file.
12260
12261 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12262
12263         * timezone/africa: Update from tzdata2006o.
12264         * timezone/antarctica: Likewise.
12265         * timezone/asia: Likewise.
12266         * timezone/australasia: Likewise.
12267         * timezone/backward: Likewise.
12268         * timezone/europe: Likewise.
12269         * timezone/iso3166.tab: Likewise.
12270         * timezone/northamerica: Likewise.
12271         * timezone/southamerica: Likewise.
12272         * timezone/zone.tab: Likewise.
12273
12274         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12275         on machines with 64-bit time_t.
12276
12277         * timezone/checktab.awk: Update from tzcode2006o.
12278         * timezone/ialloc.c: Likewise.
12279         * timezone/private.h: Likewise.
12280         * timezone/scheck.c: Likewise.
12281         * timezone/tzfile.h: Likewise.
12282         * timezone/tzselect.ksh: Likewise.
12283         * timezone/zdump.c: Likewise.
12284         * timezone/zic.c: Likewise.
12285
12286         [BZ #3483]
12287         * elf/ldconfig.c (main): Call setlocale and textdomain.
12288         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12289
12290         [BZ #3480]
12291         * manual/argp.texi: Fix typos.
12292         * manual/charset.texi: Likewise.
12293         * manual/errno.texi: Likewise.
12294         * manual/filesys.texi: Likewise.
12295         * manual/lang.texi: Likewise.
12296         * manual/maint.texi: Likewise.
12297         * manual/memory.texi: Likewise.
12298         * manual/message.texi: Likewise.
12299         * manual/resource.texi: Likewise.
12300         * manual/search.texi: Likewise.
12301         * manual/signal.texi: Likewise.
12302         * manual/startup.texi: Likewise.
12303         * manual/stdio.texi: Likewise.
12304         * manual/sysinfo.texi: Likewise.
12305         * manual/syslog.texi: Likewise.
12306         * manual/time.texi: Likewise.
12307         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12308
12309         [BZ #3465]
12310         * sunrpc/clnt_raw.c: Minimal message improvements.
12311         * sunrpc/pm_getmaps.c: Likewise.
12312         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12313         * nis/nis_print_group_entry.c: Likewise.
12314         * locale/programs/repertoire.c: Likewise.
12315         * locale/programs/charmap.c: Likewise.
12316         * malloc/memusage.sh: Likewise.
12317         * elf/dl-deps.c: Likewise.
12318         * locale/programs/ld-collate.c: Likewise.
12319         * libio/vswprintf.c: Likewise.
12320         * malloc/memusagestat.c: Likewise.
12321         * sunrpc/auth_unix.c: Likewise.
12322         * sunrpc/rpc_main.c: Likewise.
12323         * nscd/cache.c: Likewise.
12324         * locale/programs/repertoire.c: Unify output messages.
12325         * locale/programs/charmap.c: Likewise.
12326         * locale/programs/ld-ctype.c: Likewise.
12327         * locale/programs/ld-monetary.c: Likewise.
12328         * locale/programs/ld-numeric.c: Likewise.
12329         * locale/programs/ld-time.c: Likewise.
12330         * elf/ldconfig.c: Likewise.
12331         * nscd/selinux.c: Likewise.
12332         * elf/cache.c: Likewise.
12333         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12334
12335         [BZ #3451]
12336         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12337         change atomic.
12338         (ceil): Likewise.
12339
12340 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12341
12342         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12343         if N is one bigger than return value.
12344         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12345         and l1 last arguments, if buf is defined, verify the return value
12346         equals to strlen (buf) and verify no byte beyond passed length
12347         is modified.
12348
12349 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12350
12351         * po/sv.po: Update from translation team.
12352
12353 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12354
12355         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12356         noinline attribute.
12357
12358 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12359
12360         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12361         noinline attribute.
12362
12363         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12364         Use __new_sys_siglist instead of _sys_siglist_internal as
12365         second macro argument.
12366         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12367         strong_alias.
12368
12369 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12370
12371         [BZ #3493]
12372         * posix/unistd.h (sysconf): Remove const attribute.
12373
12374         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12375         temporary or deprecated addresses.
12376         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12377
12378         * string/Makefile (tests): Add tst-strxfrm2.
12379         * string/tst-strxfrm2.c: New file.
12380
12381 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12382
12383         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12384         rather than r->r_brk.
12385
12386 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12387
12388         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12389         optimization even if needed > n.
12390
12391         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12392         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12393         return false, otherwise return true.
12394         (cache_rpath): Return decompose_rpath return value.
12395
12396 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12397
12398         * include/libc-symbols.h (declare_symbol): Rename to...
12399         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12400         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12401         .size directive.
12402         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12403         changes.
12404         * sysdeps/gnu/siglist.c: Likewise.
12405
12406 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12407
12408         * sysdeps/powerpc/fpu/bits/mathinline.h
12409         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12410         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12411
12412 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12413
12414         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12415         Update handling of cache descriptor 0x49 for new models.
12416         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12417         Likewise.
12418
12419 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12420
12421         * malloc/memusage.c (dest): Reset not_me back to false after
12422         printing statistics.
12423
12424 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12425
12426         * configure.in: Work around ld --help change and avoid -z relro
12427         test completely if the architecture doesn't care about security.
12428
12429 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12430
12431         * po/sv.po: Update from translation team.
12432
12433 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12434
12435         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12436         generate compatibility version.
12437
12438 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12439
12440         * configure.in: Relax -z relro requirement a bit.
12441
12442         * po/sv.po: Update from translation team.
12443
12444 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12445
12446         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12447         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12448         * elf/dl-close.c (_dl_close_worker): Likewise.
12449         * elf/dl-open.c (_dl_open_worker): Likewise.
12450         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12451
12452 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12453
12454         * configure.in: Require assembler support for visibility, compiler
12455         support for visibility and aliases, linker support for various -z
12456         options.
12457         * Makeconfig: Remove conditional code which now is unnecessary.
12458         * config.h.in: Likewise.
12459         * config.make.in: Likewise.
12460         * dlfcn/Makefile: Likewise.
12461         * elf/Makefile: Likewise.
12462         * elf/dl-load.c: Likewise.
12463         * elf/rtld.c: Likewise.
12464         * include/libc-symbols.h: Likewise.
12465         * include/stdio.h: Likewise.
12466         * io/Makefile: Likewise.
12467         * io/fstat.c: Likewise.
12468         * io/fstat64.c: Likewise.
12469         * io/fstatat.c: Likewise.
12470         * io/fstatat64.c: Likewise.
12471         * io/lstat.c: Likewise.
12472         * io/lstat64.c: Likewise.
12473         * io/mknod.c: Likewise.
12474         * io/mknodat.c: Likewise.
12475         * io/stat.c: Likewise.
12476         * io/stat64.c: Likewise.
12477         * libio/stdio.c: Likewise.
12478         * nscd/Makefile: Likewise.
12479         * stdlib/Makefile: Likewise.
12480         * stdlib/atexit.c: Likewise.
12481         * sysdeps/generic/ldsodefs.h: Likewise.
12482         * sysdeps/i386/dl-machine.h: Likewise.
12483         * sysdeps/i386/sysdep.h: Likewise.
12484         * sysdeps/i386/i686/memcmp.S: Likewise.
12485         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12486         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12487         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12488
12489         * Makerules: USE_TLS support is now default.
12490         * tls.make.c: Likewise.
12491         * csu/Versions: Likewise.
12492         * csu/libc-start.c: Likewise.
12493         * csu/libc-tls.c: Likewise.
12494         * csu/version.c: Likewise.
12495         * dlfcn/dlinfo.c: Likewise.
12496         * elf/dl-addr.c: Likewise.
12497         * elf/dl-cache.c: Likewise.
12498         * elf/dl-close.c: Likewise.
12499         * elf/dl-iteratephdr.c: Likewise.
12500         * elf/dl-load.c: Likewise.
12501         * elf/dl-lookup.c: Likewise.
12502         * elf/dl-object.c: Likewise.
12503         * elf/dl-open.c: Likewise.
12504         * elf/dl-reloc.c: Likewise.
12505         * elf/dl-support.c: Likewise.
12506         * elf/dl-sym.c: Likewise.
12507         * elf/dl-sysdep.c: Likewise.
12508         * elf/dl-tls.c: Likewise.
12509         * elf/ldconfig.c: Likewise.
12510         * elf/rtld.c: Likewise.
12511         * elf/tst-tls-dlinfo.c: Likewise.
12512         * elf/tst-tls1.c: Likewise.
12513         * elf/tst-tls10.h: Likewise.
12514         * elf/tst-tls14.c: Likewise.
12515         * elf/tst-tls2.c: Likewise.
12516         * elf/tst-tls3.c: Likewise.
12517         * elf/tst-tls4.c: Likewise.
12518         * elf/tst-tls5.c: Likewise.
12519         * elf/tst-tls6.c: Likewise.
12520         * elf/tst-tls7.c: Likewise.
12521         * elf/tst-tls8.c: Likewise.
12522         * elf/tst-tls9.c: Likewise.
12523         * elf/tst-tlsmod1.c: Likewise.
12524         * elf/tst-tlsmod13.c: Likewise.
12525         * elf/tst-tlsmod13a.c: Likewise.
12526         * elf/tst-tlsmod14a.c: Likewise.
12527         * elf/tst-tlsmod2.c: Likewise.
12528         * elf/tst-tlsmod3.c: Likewise.
12529         * elf/tst-tlsmod4.c: Likewise.
12530         * elf/tst-tlsmod5.c: Likewise.
12531         * elf/tst-tlsmod6.c: Likewise.
12532         * include/errno.h: Likewise.
12533         * include/link.h: Likewise.
12534         * include/tls.h: Likewise.
12535         * locale/global-locale.c: Likewise.
12536         * locale/localeinfo.h: Likewise.
12537         * malloc/arena.c: Likewise.
12538         * malloc/hooks.c: Likewise.
12539         * malloc/malloc.c: Likewise.
12540         * resolv/Versions: Likewise.
12541         * sysdeps/alpha/dl-machine.h: Likewise.
12542         * sysdeps/alpha/libc-tls.c: Likewise.
12543         * sysdeps/generic/ldsodefs.h: Likewise.
12544         * sysdeps/generic/tls.h: Likewise.
12545         * sysdeps/i386/dl-machine.h: Likewise.
12546         * sysdeps/ia64/dl-machine.h: Likewise.
12547         * sysdeps/ia64/libc-tls.c: Likewise.
12548         * sysdeps/mach/hurd/fork.c: Likewise.
12549         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12550         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12551         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12552         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12553         * sysdeps/s390/libc-tls.c: Likewise.
12554         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12555         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12556         * sysdeps/sh/dl-machine.h: Likewise.
12557         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12558         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12559         * sysdeps/x86_64/dl-machine.h: Likewise.
12560
12561         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12562         split out locking and parameter checking.
12563         (_dl_close): Call _dl_close_worker after locking and checking.
12564         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12565         _dl_close.
12566         * elf/Makefile: Add rules to build and run tst-thrlock.
12567         * elf/tst-thrlock.c:  New file.
12568
12569         [BZ #3426]
12570         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12571         reality.
12572
12573         [BZ #3429]
12574         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12575         we are sure we do not need it anymore for _dl_close.  Also move
12576         the asserts inside the lock region.
12577         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12578
12579 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12580
12581         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12582         argument.
12583         (_dl_lookup_symbol_x): Adjust caller.
12584
12585         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12586         _ns_global_scope.
12587         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12588
12589         * elf/dl-libc.c: Revert l_scope name changes.
12590         * elf/dl-load.c: Likewise.
12591         * elf/dl-object.c: Likewise.
12592         * elf/rtld.c: Likewise.
12593         * elf/dl-close.c (_dl_close): Likewise.
12594         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12595         always use __rtld_mrlock_{change,done}.  Always free old scope list
12596         here if not l_scope_mem.
12597         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12598         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12599         the lookup and __rtld_mrlock_unlock it after the lookup.
12600         * elf/dl-sym.c: Likewise.
12601         * include/link.h (struct r_scoperec): Remove.
12602         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12603         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12604
12605 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12606
12607         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12608
12609 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12610
12611         * configure.in: Disable building profile libraries by default.
12612
12613 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12614
12615         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12616         as signed longs, check for x_base + pos overflow.
12617         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12618         * sunrpc/tst-xdrmem2.c: New test.
12619
12620 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12621
12622         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12623         _dl_lookup_symbol_x code.
12624
12625 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12626
12627         * elf/dl-runtime.c: Include sysdep-cancel.h.
12628         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12629         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12630         instead of catomic_* macros.
12631         * elf/dl-sym.c: Include sysdep-cancel.h.
12632         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12633         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12634         * elf/dl-close.c: Include sysdep-cancel.h.
12635         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12636         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12637         * elf/dl-open.c: Include sysdep-cancel.h.
12638         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12639         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12640
12641 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12642
12643         [BZ #3313]
12644         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12645         fastbin rather than end of fastbin array.
12646
12647 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12648
12649         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12650         body macro.
12651         * sysdeps/x86_64/bits/atomic.h
12652         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12653         (catomic_decrement): Use correct body macro.
12654
12655 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12656
12657         * include/atomic.h: Add a unique prefix to all local variables
12658         in macros.
12659         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12660
12661 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12662
12663         [BZ #3369]
12664         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12665         and 7.
12666
12667 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12668
12669         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12670
12671 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12672
12673         [BZ #3313]
12674         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12675         determine highest fast bin to consolidate, always look into all of
12676         them.
12677         (do_check_malloc_state): Only require for empty bins for large
12678         sizes in main arena.
12679
12680         * libio/stdio.h: Add more __wur attributes.
12681
12682         * elf/dl-minimal.c (realloc): Optimize last patch.
12683
12684 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12685
12686         [BZ #3352]
12687         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12688         and use memcpy() if it does.
12689
12690 2006-11-12  Andreas Jaeger  <aj@suse.de>
12691
12692         [BZ #2510]
12693         * manual/search.texi (Hash Search Function): Clarify.
12694         (Array Search Function): Clarify.
12695
12696 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12697
12698         [BZ #2830]
12699         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12700         shifting.
12701         * math/atest-exp2.c (read_mpn_hex): Likewise.
12702         * math/atest-sincos.c (main): Likewise.
12703
12704 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12705
12706         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12707         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12708         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12709         version GLIBC_2.6.
12710         * Versions.def: Add GLIBC_2.6 for libc.
12711
12712         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12713
12714         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12715
12716 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12717
12718         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12719
12720         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12721
12722         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12723         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12724
12725 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12726
12727         * include/atomic.c: Define catomic_* operations.
12728         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12729         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12730         * malloc/memusage.c: Likewise.
12731         * gmon/mcount.c: Likewise.
12732         * elf/dl-close.c: Likewise.
12733         * elf/dl-open.c: Likewise.
12734         * elf/dl-profile.c: Likewise.
12735         * elf/dl-sym.c: Likewise.
12736         * elf/dl-runtime.c: Likewise.
12737         * elf/dl-fptr.c: Likewise.
12738         * resolv/res_libc.c: Likewise.
12739
12740 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12741
12742         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12743         components which lack them.
12744
12745         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12746         at least one entry consisting of the parameter concatenated with
12747         the domain.
12748
12749 2006-10-10  Roland McGrath  <roland@frob.com>
12750
12751         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12752         * sysdeps/mach/hurd/futimes.c: Likewise.
12753         * sysdeps/mach/hurd/lutimes.c: Likewise.
12754
12755 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12756             Jakub Jelinek  <jakub@redhat.com>
12757
12758         Implement reference counting of scope records.
12759         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12760         from the list in objects which remain.  Always allocate new scope
12761         record.
12762         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12763         don't resize, allocate a new one.
12764         * elf/dl-runtime.c: Update reference counters before using a scope
12765         array.
12766         * elf/dl-sym.c: Likewise.
12767         * elf/dl-libc.c: Adjust for l_scope name change.
12768         * elf/dl-load.c: Likewise.
12769         * elf/dl-object.c: Likewise.
12770         * elf/rtld.c: Likewise.
12771         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12772         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12773         Add l_scoperec_lock.
12774         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12775         * sysdeps/generic/rtld-lowlevel.h: New file.
12776
12777         * include/atomic.h: Rename atomic_and to atomic_and_val and
12778         atomic_or to atomic_or_val.  Define new macros atomic_and and
12779         atomic_or which do not return values.
12780         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12781         Various cleanups.
12782         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12783
12784         * po/sv.po: Update from translation team.
12785
12786 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12787
12788         * Versions.def: Add GLIBC_2.6 to libpthread.
12789
12790         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12791         (versioned_symbol): Likewise.
12792         (compat_symbol): Likewise.
12793
12794         * po/tr.po: Update from translation team.
12795
12796 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12797
12798         * nis/Banner: Removed.  It's been integral part forever and the
12799         author info is incomplete anyway.
12800         * libio/Banner: Likewise.
12801
12802         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12803         code, make sure the nis_freeresult call doesn't crash and that the
12804         result is reported correctly.
12805
12806 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12807
12808         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12809         when callback is NULL.
12810
12811         * nis/Versions (libnss_nisplus): Add
12812         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12813         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12814         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12815         _nss_create_tablename): Rename to...
12816         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12817         ... these.  No longer static.
12818         (internal_setgrent): Adjust users.
12819         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12820         Don't use locking around _nss_grp_create_tablename call.
12821         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12822
12823 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12824
12825         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12826
12827 2006-10-06  Andreas Jaeger  <aj@suse.de>
12828
12829         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12830
12831 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12832
12833         * po/pl.po: Update from translation team.
12834
12835         * nscd/nscd.c (main): Fix typo in message.
12836         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12837
12838 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12839
12840         [BZ #3291]
12841         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12842         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12843         (__sigprocmask): Define.
12844
12845 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12846
12847         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12848         used.
12849
12850 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12851
12852         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12853         in oldtotal and newtotal calculation.
12854         * nscd/nscd-client.h (struct mapped_database): Add datasize
12855         field.
12856         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12857         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12858         increased.
12859         (__nscd_cache_search): Add checks to make sure we never reference
12860         data beyond the current mapping.
12861
12862 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12863
12864         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12865         variables const to avoid compiler warnings.
12866
12867         * io/fts.c (fts_close): Remove redundant checks.
12868         (fts_build): Likewise.
12869         (fts_palloc): Likewise.
12870
12871         * manual/message.texi (Advanced gettext functions,
12872         Using gettextized software): Fix typos.
12873
12874 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12875
12876         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12877         explain why there are no leaks.
12878
12879 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12880
12881         * libio/wmemstream.c: Include <wchar.h>.
12882         * libio/bug-wmemstream1.c: Likewise.
12883         * libio/tst-wmemstream1.c: Likewise.
12884         * libio/tst-wmemstream2.c: Likewise.
12885
12886         * version.h (RELEASE): Bump to 2.5.
12887         * README: Regenerated.
12888
12889         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12890
12891         [BZ #3273]
12892         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12893         found no group members.
12894         Patch by Petr Baudis.
12895
12896 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12897
12898         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12899         assert bootstrap_map.l_tls_modid is zero.
12900         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12901         if USE___THREAD.
12902
12903 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12904
12905         * libio/stdio.h: Move open_wmemstream prototype to ...
12906         * wcsmbs/wchar.h: ... here.
12907
12908 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12909
12910         [BZ #3252]
12911         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12912         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12913         __{,l}chown to handle the rest.
12914         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12915         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12916         __{,l}chown to handle the rest.
12917         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12918         i386/fchownat.c.
12919         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12920         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12921
12922         [BZ #3253]
12923         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12924         time, rather allocate increasingly bigger arrays of pointers, if
12925         possible with alloca, if too large with malloc.
12926
12927 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12928
12929         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12930
12931         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12932
12933 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12934
12935         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12936         home addresses.
12937         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12938         IFA_F_HOMEADDRESS flag for interfaces.
12939         * include/ifaddrs.h (struct in6addrinfo): Define
12940         in6ai_homeaddress.
12941
12942 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12943
12944         [BZ #3225]
12945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12946         PTR_DEMANGLE3): Define.
12947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12948         PTR_DEMANGLE3): Likewise.
12949         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12950         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12951         Likewise.
12952         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12953
12954 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12955
12956         * po/libc.pot: Regenerated.
12957         * po/be.po: Updated.
12958         * po/ca.po: Likewise.
12959         * po/cs.po: Likewise.
12960         * po/da.po: Likewise.
12961         * po/de.po: Likewise.
12962         * po/el.po: Likewise.
12963         * po/en_GB.po: Likewise.
12964         * po/es.po: Likewise.
12965         * po/fi.po: Likewise.
12966         * po/fr.po: Likewise.
12967         * po/gl.po: Likewise.
12968         * po/hr.po: Likewise.
12969         * po/hu.po: Likewise.
12970         * po/ja.po: Likewise.
12971         * po/ko.po: Likewise.
12972         * po/nb.po: Likewise.
12973         * po/nl.po: Likewise.
12974         * po/pl.po: Likewise.
12975         * po/pt_BR.po: Likewise.
12976         * po/ru.po: Likewise.
12977         * po/rw.po: Likewise.
12978         * po/sk.po: Likewise.
12979         * po/sv.po: Likewise.
12980         * po/tr.po: Likewise.
12981         * po/zh_CN.po: Likewise.
12982         * po/zh_TW.po: Likewise.
12983
12984         [BZ #3137]
12985         * iconv/iconv_prog.c (main): Fix spelling in error message.
12986         * iconv/iconvconfig.c (main): Likewise.
12987         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12988         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12989         * locale/programs/localedef.c (main): Likewise.
12990         * locale/programs/repertoire.c (repertoire_read): Likewise.
12991         * timezone/zdump.c (main): Likewise.
12992         * nscd/connections.c (handle_request): Fix spelling in log message.
12993         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12994
12995 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12996
12997         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12998         interfaces.
12999
13000 2006-09-20  Andreas Jaeger  <aj@suse.de>
13001
13002         * math/libm-test.inc (lrint_test_upward): Fix typo.
13003
13004 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13005
13006         [BZ #2592]
13007         * math/libm-test.inc (lrint_test_tonearest): New function.
13008         (lrint_test_towardzero): New function.
13009         (lrint_test_downward): New function.
13010         (lrint_test_upward): New function.
13011         (main): Run these new tests.
13012         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13013         of values near to 0.
13014         (two52): Use double not long double.
13015         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13016         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13017         (two23): Use float not double.
13018         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13019         (two23): Use float not double.
13020         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13021         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13022         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13023         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13024
13025 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13026
13027         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13028         Cast sp to unsigned long to avoid compiler warning.
13029         Use __makecontext_ret function instead of a trampoline on the stack.
13030         (__makecontext_ret): New function.
13031         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13032
13033 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13034
13035         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13036         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13037         bits.
13038
13039 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13040
13041         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13042         sure no reference to the unloaded map's search list remains in the
13043         dependency's scope.
13044
13045 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13046
13047         * elf/Makefile: Add rules to build and run unload7 test.
13048         * elf/unload7.c: New test.
13049         * elf/unload7mod1.c: New file.
13050         * elf/unload7mod2.c: New file.
13051
13052 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13053
13054         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13055         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13056         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13057         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13058         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13059         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13060         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13061         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13062         PTRACE_GETEVENTMSG): Likewise.
13063         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13064         values.
13065
13066 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13067
13068         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13069         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13070         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13071         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13072
13073 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13074
13075         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13076         write '\0' to the fd.
13077         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13078         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13079         Change regs to unsigned long pointer from unsigned int, fix fscr
13080         offset.
13081
13082 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13083
13084         * io/Makefile (CFLAGS-fstatat.c): Set.
13085         (CFLAGS-fstatat64.c): Likewise.
13086         (CFLAGS-mknodat.c): Likewise.
13087
13088         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13089         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13091         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13092
13093 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13094             Steven Munroe  <sjmunroe@us.ibm.com>
13095
13096         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13097         names to the beginning.  Rename "cell" to "cellbe".
13098         (_dl_powerpc_platforms): New.
13099         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13100         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13101         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13102         (_DL_HWCAP_PLATFORM): Define to new mask.
13103         (_dl_platform_string, _dl_string_platform): New functions.
13104         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13105         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13106
13107 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13108
13109         [BZ #2526]
13110         * README.libm: Fix a thinko in sqrt algorithm description.
13111
13112         [BZ #3143]
13113         * manual/string.texi (argz_delete): Fix prototype.
13114         Patch by <alpt@freaknet.org>.
13115
13116 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13117
13118         [BZ #3138]
13119         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13120         * io/tst-fcntl.c (do_prepare): Likewise.
13121         * posix/tst-exec.c (do_prepare): Likewise.
13122         * posix/tst-preadwrite.c (do_prepare): Likewise.
13123         * posix/tst-spawn.c (do_prepare): Likewise.
13124         * posix/tst-truncate.c (do_prepare): Likewise.
13125         * rt/tst-aio.c (do_prepare): Likewise.
13126         * rt/tst-aio64.c (do_prepare): Likewise.
13127         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13128         size_t.
13129
13130 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13131
13132         [BZ #2821]
13133         * time/mktime.c (guess_time_tm): Fix overflow detection.
13134         * time/Makefile (tests): Add bug-mktime1.
13135         * time/bug-mktime1.c: New file.
13136
13137         [BZ #3189, #3188]
13138         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13139         (mremap): Likewise.
13140
13141 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13142
13143         [BZ #1006]
13144         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13145         Ensure relocation doesn't clobber any bits outside of the
13146         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13147         R_SPARC_HI22 and R_SPARC_H44.
13148
13149         [BZ #2775]
13150         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13151         (long) (MINSIZE + nb - old_size) is positive.
13152
13153         * malloc/arena.c (grow_heap): When growing bail even if new_size
13154         is negative.
13155
13156         [BZ #3155]
13157         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13158         stack below r1.
13159
13160 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13161
13162         * posix/regex_internal.c (re_string_reconstruct): Handle
13163         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13164         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13165         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13166         re_string_context_at.
13167         * posix/Makefile: Add rules to build and run bug-regex26 test.
13168         * posix/bug-regex26.c: New test.
13169
13170         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13171         rather than col_sym_free.  Move seqp declaration earlier.
13172
13173         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13174
13175 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13176
13177         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13178         decl before first goto out.
13179
13180 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13181
13182         * Makerules (shlib.lds): If have-hash-style, put .hash section
13183         at the end of the RO segment.
13184
13185 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13186
13187         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13188         style hash table format is used.
13189
13190 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13191
13192         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13193         randomization rather than before.
13194         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13195
13196 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13197
13198         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13199
13200         * malloc/malloc.c (_int_malloc): Use full list insert and not
13201         shortcut which assumes the list is empty for large requests
13202         too.
13203
13204         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13205
13206 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13207
13208         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13209         and offout arguments to the prototype.
13210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13211         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13212         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13213         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13214         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13215         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13216         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13217         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13218
13219 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13220
13221         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13222
13223         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13224         dlopen parameters.
13225
13226 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13227
13228         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13229         only if herrno is NETDB_INTERNAL.  Handle errors other than
13230         ERANGE outside of the loops, handle TRY_AGAIN.
13231
13232         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13233         if other's ctype category was missing.
13234         * locale/programs/ld-collate.c (collate_read): Return if
13235         copy_locale's collate category is missing.
13236
13237 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13238
13239         [BZ #2684]
13240         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13241         arenas if allocation failed.
13242         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13243
13244 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13245
13246         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13247         waste bins[0..1].
13248         (malloc_state): Reduce bins size by 2.
13249         (_int_malloc): Fix test for large enough buffer for early termination.
13250         When no unsorted block matches perfectly and an exiting block has
13251         to be split, use full list insert and not shortcut which assumes
13252         the list is empty.
13253
13254         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13255         failure.
13256
13257 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13258
13259         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13260         do anything.
13261
13262         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13263         symbol require exact match (these are PLTs).
13264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13265         (_dl_ppc64_addr_sym_match): Likewise.
13266
13267         [BZ #2683]
13268         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13269         If symbol has a value use it.
13270         * elf/tst-dladdr1.c: New file.
13271         * elf/Makefile: Add rules to build and run tst-addr1.
13272
13273 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13274
13275         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13276         keeps failing and heap growth or new heap creation isn't
13277         successful either.
13278         * malloc/tst-malloc.c (main): Add new tests.
13279
13280 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13281
13282         [BZ #2734]
13283         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13284         as in the x86-64 code to use bswap.
13285
13286 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13287
13288         [BZ #2680]
13289         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13290         __USE_UNIX98.
13291         * posix/bits/unistd.h: Likewise.
13292
13293 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13294
13295         [BZ #2751]
13296         * string/strchr.c: Add cast to avoid warning.
13297
13298 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13299
13300         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13301         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13302         limit is needed to avoid the exploding of the address space
13303         requirement for secondary heaps.
13304         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13305         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13306
13307 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13308
13309         [BZ #3018]
13310         * Makerules (depfiles): Handle extra-test-objs the same as
13311         extra-objs.
13312         (common-mostlyclean): Likewise.
13313         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13314         instead.
13315         * elf/Makefile (extra-objs): Likewise.
13316         * stdlib/Makefile (extra-objs): Likewise.
13317
13318 2006-08-14  Eric Blake  <ebb9@byu.net>
13319
13320         [BZ #3044]
13321         * misc/error.h: Assume C89 or better.
13322         * misc/error.c: Likewise.
13323
13324 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13325
13326         [BZ #3040]
13327         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13328         __ASSUME_ATFCTS is defined.
13329
13330 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13331
13332         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13333         to sort in each call.
13334
13335         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13336         is empty simply return and use next service.
13337         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13338
13339         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13340         tells us when not finding a charmap file is an error.
13341         * locale/programs/charmap.h: Adjust charmap_read prototype.
13342         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13343         cannot find a charmap.
13344         * locale/programs/localedef.c (main): Adjust charmap_read call.
13345
13346 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13347
13348         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13349         sysdeps/posix/pause.c implementation instead.
13350
13351 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13352
13353         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13354         to EPERM.
13355
13356 2006-08-13  Andreas Schwab  <schwab@suse.de>
13357
13358         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13359         Don't clobber caller's LRSAVE.
13360         (_dl_prof_resolve): Likewise.
13361
13362 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13363
13364         [BZ #1996]
13365         * libio/memstream.c (open_memstream): Allocate initial buffer with
13366         calloc.
13367         * libio/wmemstream.c (open_wmemstream): Likewise.
13368         * libio/strops.c: Pretty printing.
13369         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13370         (enlarge_userbuf): New function.
13371         (_IO_str_seekoff): Call it if seek position is larger than current
13372         buffer.
13373         * libio/wstrops.c: Likewise.
13374         * libio/vasprintf.c: Add comment as to why we do not have to use
13375         calloc instead of malloc to allocate initial buffer.
13376         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13377         * libio/bug-memstream1.c: New file.
13378         * libio/bug-wmemstream1.c: New file.
13379
13380 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13381
13382         * libio/wstrops.c: Remove dead macro definitions and comments.
13383         * libio/strops.c: Likewise.
13384
13385         [BZ #2764]
13386         * login/utmpname.c (__utmpname): Remove unnecessary test.
13387
13388 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13389
13390         [BZ #2832]
13391         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13392         0s from integers.
13393
13394 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13395
13396         [BZ #2987]
13397         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13398         for CPU clocks.
13399         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13400         setting of CPU clocks.
13401
13402 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13403
13404         [BZ #2841]
13405         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13406         since C99 requires the result to promote to 'int' when uint_least8_t
13407         and uint_least16_t promote to 'int'.
13408
13409 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13410
13411         [BZ #3013]
13412         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13413         lenght of one output field, correct bitmask creation.
13414         * locale/programs/ld-time.c: Add alignment.
13415
13416         [BZ #2997]
13417         * misc/error.c: Add space between program name and message if file
13418         name is missing.
13419
13420 2006-08-03  Eric Blake  <ebb9@byu.net>
13421
13422         [BZ #2998]
13423         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13424
13425 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13426
13427         * malloc/memusagestat.c: Silence warnings.
13428
13429         * malloc/malloc.c: Dynamically size mmap treshold if the program
13430         frees mmaped blocks.
13431         Patch by Valerie Henson and Arjan van de Ven.
13432
13433 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13434
13435         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13436         __USE_GNU.
13437
13438         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13439         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13440         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13441         Only provide var definitions in strtol_l (or for *ull*
13442         in strtoll_l).
13443
13444         * stdio-common/bug16.c (tests): New array.
13445         (do_tests): Allow the first hexadecimal digit
13446         to be 1, 2, 4 or 8.  Do 3 additional tests.
13447
13448         * sysdeps/s390/fpu/libm-test-ulps: Update.
13449
13450         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13451         fchownat syscall if available.
13452         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13453         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13454         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13455
13456 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13457
13458         * nis/nis_xdr.c: Avoid some function calls.
13459
13460 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13461             Ulrich Drepper  <drepper@redhat.com>
13462
13463         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13464         short cut if only one name component is stripped away.
13465
13466 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13467
13468         * nis/nis_call.c: Minor cleanups throughout.
13469         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13470         (first_shoot): Add search_parent_first parameter.  Only if it is set
13471         search parent server first.
13472         If directory for table found through cold start cache is not the same
13473         as referenced in the cache, don't use it.
13474         (__nisfind_server): Take additional parameter.  Pass it on to
13475         first_shoot.
13476         (__prepare_niscall): Adjust __nisfind_server call.
13477         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13478         * nis/nis_table.c: Adjust __nisfind_server call.
13479         * nis/nis_lookup.c: Likewise.
13480         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13481
13482 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13483
13484         [BZ #2182]
13485         * math/s_cacosh.c: Return values from positive branch.
13486         * math/s_cacoshf.c: Likewise.
13487         * math/s_cacoshl.c: Likewise.
13488
13489         [BZ #2883]
13490         * sysvipc/sys/msg.h: Change return value to ssize_t.
13491         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13492         * sysvipc/msgrcv.c: Likewise.
13493         * include/sys/msg.h: Likewise.
13494
13495         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13496         test introduced in patch for bz #661.
13497         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13498         element for NEWGROUPS.
13499
13500         [BZ #2908]
13501         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13502         'f', use '1' as leading digit not '\1'.
13503         * stdio-common/Makefile (tests): Add bug16.
13504         * stdio-common/bug16.c: New file.
13505
13506         [BZ #2914]
13507         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13508         and don't try to open it.  The patch introducing the macro
13509         contained a bug and used the same file name as the new file
13510         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13511         this out completely.
13512
13513         [BZ #2926]
13514         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13515         Patch by Jerry James <Jerry.James@usu.edu>.
13516
13517         * rt/Makefile (tests): Add tst-clock2.
13518         * rt/tst-clock2.c: New file.
13519
13520         [BZ #2978]
13521         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13522         function and its parameters and pass it to new thread.
13523         (__gai_notify): Add support for alternative waiting for completion.
13524         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13525         waiting for completion.
13526         * resolv/getaddrinfo_a.c: Likewise.
13527         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13528         waiting for completion is used.
13529         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13530         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13531         * resolv/gai_error.c: Likewise.
13532         * resolv/gai_sigqueue.c: Likewise.
13533
13534 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13535
13536         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13537         errno to EBADF and return MACH_PORT_NULL.
13538
13539 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13540
13541         [BZ #2980]
13542         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13543
13544 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13545
13546         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13547         walk them instead of the symbol table.
13548
13549 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13550
13551         [BZ #2098]
13552         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13553         status of NSS calls, not the number of returned entries.
13554
13555         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13556         request_key, keyctl.
13557
13558 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13559
13560         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13561
13562 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13563
13564         * elf/tst-auditmod1.c: Fix typo in #error.
13565
13566 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13567
13568         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13569
13570         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13571
13572 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13573
13574         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13575         that the directory is empty even on non-POSIX filesystems.
13576
13577 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13578
13579         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13580
13581         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13582         the backend NSS module.  If backend setgrent call failed, don't have
13583         internal_setgrent fail.  Just remember this until it is needed.
13584         * nis/nss_compat/compat-pwd.c: Likewise.
13585         * nis/nss_compat/compat-spwd.c: Likewise.
13586
13587 2006-07-30  Roland McGrath  <roland@redhat.com>
13588
13589         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13590         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13591         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13592         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13593
13594         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13595         (nanosleep_not_cancel): New macro.
13596         (sigsuspend_not_cancel): new macro.
13597         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13598         (do_sigsuspend): Define as inline.
13599         (__sigsuspend): Always use do_sigsuspend.
13600         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13601         * include/signal.h: Declare __sigsuspend_nocancel.
13602         * sysdeps/posix/pause.c
13603         [! NO_CANCELLATION] (__pause_nocancel): New function.
13604
13605         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13606         * include/time.h (__nanosleep_nocancel): Likewise.
13607
13608 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13609
13610         * locale/programs/localedef.c (add_to_readlist): Rename local
13611         variables to avoid confusion.
13612
13613         * locale/programs/charmap.c (charmap_read): Emit error message if
13614         charmap couldn't be found or read.
13615
13616 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13617
13618         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13619         __ASSUME_FUTEX_LOCK_PI.
13620         * include/time.h: Declare __nanosleep_nocancel.
13621         * include/unistd.h: Declare __pause_nocancel.
13622
13623         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13624         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13625         get the __stack_chk_fail_local definition when it's needed.
13626
13627 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13628
13629         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13630         * dlfcn/bug-atexit3.c: New file.
13631         * dlfcn/bug-atexit3-lib.cc: New file.
13632
13633         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13634         used when the namespace is not the base namespace.
13635
13636 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13637
13638         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13639         (__new_exitfn): Bump it in every successful call.
13640         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13641         more exit handlers, call them right away.
13642         * stdlib/exit.h: Declare __new_exitfn_called.
13643
13644 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13645
13646         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13647         calling registered handler.
13648
13649         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13650         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13651         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13652         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13653         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13654         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13655         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13656         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13657
13658 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13659
13660         * elf/dl-lookup.c (dl_new_hash): New functions.
13661         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13662         value here.  Compute new-style hash value.  Pass new hash value
13663         and reference to variable with the old value to do_lookup_x.
13664         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13665         old-style hash table.
13666         (_dl_debug_bindings): Pass new hash value and reference to variable
13667         with the old value to do_lookup_x.
13668         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13669         new-style hash value and change old-style hash value parameter to
13670         be a reference.  Reoganize functions to determine whether
13671         new-style hash table is available.  Only fall back on old-style
13672         table.  If old-style hash value is needed, compute it here.
13673         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13674         entry.
13675         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13676         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13677         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13678         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13679         * Makeconfig: If linker supports --hash-style option add it to all
13680         linker command lines to build DSOs.
13681         * config.make.in: Define have-hash-style.
13682         * configure.in: Test whether linker supports --hash-style option.
13683
13684         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13685         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13686
13687 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13688
13689         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13690         auditing.
13691
13692         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13693         RPATH of main map twice.
13694
13695 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13696
13697         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13698         look further, return original strings.
13699         (_nl_find_msg): Do not return found translation if the conversion
13700         failed.  Either signal the string is unusable or that something went
13701         wrong and the original should be used.
13702
13703 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13704
13705         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13706
13707 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13708
13709         [BZ #2766]
13710         * misc/insremque.c (insque): Handle prev == NULL.
13711         * misc/Makefile (tests): Add tst-insremque.
13712         * misc/tst-insremque.c: New test.
13713
13714 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13715
13716         [BZ #2792]
13717         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13718         conflict with DL_DST_REQUIRED.
13719
13720 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13721
13722         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13723         match what Solaris does.
13724
13725 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13726
13727         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13728         local_setegid instead of seteuid and setegid.
13729         * sysdeps/generic/local-setxid.h: New file.
13730         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13731
13732         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13733
13734         * string/Makefile (tests): Add bug-envz1.
13735         * string/bug-envz1.c: New file.
13736
13737 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13738
13739         * posix/regex_internal.c (re_string_skip_chars): If no character has
13740         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13741         to the byte which couldn't be converted.
13742         (re_string_reconstruct): Don't clear valid_raw_len before calling
13743         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13744         tip_context using re_string_context_at.
13745         * posix/Makefile: Add rules to build and run bug-regex25 test.
13746         * posix/bug-regex25.c: New test.
13747
13748 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13749
13750         [BZ #2703]
13751         * string/envz.c (envz_strip): Correct erroneously reversed src
13752         and dest parameters to memmove() invocation.
13753
13754 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13755
13756         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13757         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13758         to make sure the database has been already invalidated.
13759         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13760         after the cache has been invalidated.  Use pthread_mutex_lock rather
13761         than pthread_mutex_trylock if fd != -1.
13762         * nscd/connections.c (invalidate_cache): Add fd argument, write
13763         response to fd if not calling prune_cache, pass fd to prune_cache.
13764         (handle_request): Adjust invalidate_cache caller.
13765         (nscd_run): Pass -1 as fd to prune_cache.
13766
13767 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13768
13769         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13770         the correct place.
13771
13772 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13773
13774         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13775         * nscd/cache.c (prune_cache): Take prunelock before starting the
13776         work.  Just return in case it is already taken.
13777         * nscd/connections.c (dbs): Initialize .prunelock.
13778
13779 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13780
13781         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13782         copying.  No need to allocate new array for group members.  Just
13783         move the pointers and update the size.
13784
13785         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13786         Avoid memory leak in case realloc fails.  Simplification for
13787         better code generation.
13788
13789         Avoid deprecation warning because of libc_hidden_proto for
13790         inet6_option_alloc.
13791         * inet/inet6_option.c (option_alloc): Renamed from
13792         inet6_option_alloc.  Made static.
13793         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13794         (inet6_option_append): Call option_alloc.
13795         * include/netinet/in.h: Remove libc_hidden_proto for
13796         inet6_option_alloc.
13797
13798         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13799         for cleanup when cb!=NULL [Coverity CID 233].
13800
13801 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13802
13803         [BZ #2693]
13804         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13805         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13806         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13807         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13808         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13809         and inet6_rth_getaddr.
13810         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13811         array.
13812         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13813         Mark inet6_option_* interfaces as deprecated.
13814         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13815         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13816         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13817         inet6_rth_segments, and inet6_rth_getaddr.
13818         * inet/inet6_opt.c: New file.
13819         * inet/inet6_rth.c: New file.
13820
13821         * inet/netinet/icmp6.h: Pretty printing.
13822
13823         [BZ #2683]
13824         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13825
13826 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13827
13828         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13829         doing it all here.  When server does not know the answer do not
13830         fail immediate, try parent first.
13831
13832         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13833         overflow test.
13834
13835 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13836
13837         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13838         from __do_niscall.
13839         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13840         and exported.
13841         (__follow_path): New function.  Split out from nis_list.
13842         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13843         _xdr_nis_result.
13844         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13845         _xdr_nis_result.
13846         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13847         and __follow_path.
13848         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13849         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13850         from libnsl for version GLIBC_PRIVATE.
13851         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13852         Remove entry parameter from _nss_nisplus_parse_pwent and
13853         _nss_nisplus_parse_grent.
13854         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13855         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13856         again.  Rewrite getpwent handling to not use nis_first_entry and
13857         nis_next_entry.  Roll out own niscall handling.
13858         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13859
13860         * sunrpc/xdr_rec.c: Fix typo in comment.
13861
13862 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13863
13864         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13865         handling.
13866
13867         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13868         to allocate memory for my_pollfd.  Better initialization of
13869         cb_is_running.  Use TEMP_FAILURE_RETRY.
13870
13871         * malloc/memusage.sh (memusageso): Add quotes.
13872         (memusagestat): Likewise.
13873         * debug/xtrace.sh (pcprofileso): Likewise.
13874         (pcprofiledump): Likewise.
13875         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13876         replacement.
13877         * malloc/Makefile ($(objpfx)memusage): Likewise.
13878
13879         * nis/nis_callback.c (__nis_create_callback): Calls to
13880         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13881         asprintf call fails.
13882
13883         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13884         no uninitialized memory is passed to sendto.
13885
13886 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13887
13888         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13889         of snprintf+strdup.  Handle OOM.
13890         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13891         cb->serv together.  Remove now obsolete free calls.
13892         (__nis_destroy_callback): Remove now obsolete free call.
13893
13894 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13895
13896         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13897         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13898         and ULA respectively). Set precedence for IPv4 address to 10 as
13899         defined in RFC3484 for preferring IPv6.
13900         * posix/gai.conf: Update to match the new default tables.
13901
13902 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13903
13904         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13905         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13906         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13907         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13908
13909         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13910         Removed.
13911         (init_nss_interface): Remove initialization of these variables.
13912
13913 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13914
13915         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13916         nis_free_directory forward to avoid duplication.
13917
13918 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13919
13920         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13921         rec_dirsearch returning NULL.
13922         (first_shoot): Handle __nis_finddirectory returning NULL.
13923         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13924
13925         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13926         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13927
13928 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13929
13930         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13931         pid changed.
13932
13933 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13934
13935         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13936
13937         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13938         * nscd/nscd_getgr_r.c: Likewise.
13939
13940         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13941
13942         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13943         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13944
13945         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13946
13947         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13948
13949         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13950
13951         * include/rpc/auth.h: Mark xdr_des_block_internal and
13952         xdr_opaque_auth_internal as hidden.
13953
13954         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13955         hidden.
13956
13957         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13958
13959         * misc/getusershell.c (okshells): Don't use static initializers,
13960         do it dynamically.
13961
13962         * stdlib/fmtmsg.c (keywords): Change type of len element to
13963         uint32_t to not waste space on 64bit machines.
13964
13965         * locale/setlocale.c: Change _nl_category_names into a string.
13966         Add new _nl_category_name_idxs.  Change all users.
13967         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13968         Declare _nl_category_name_idxs.
13969         * locale/findlocale.c: Adjust for _nl_category_names change.
13970         * locale/loadlocale.c: Likewise.
13971         * locale/newlocale.c: Likewise.
13972         * intl/dcigettext.c: Likewise.
13973
13974         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13975         (add_alias2): ...here.  New function.
13976         (__gconv_read_conf): Simplify builtin alias handling.
13977         (builtin_aliases): Convert to string to avoid relocations.
13978         * iconv/gconv_builtin.h: Add comment about correct formatting.
13979
13980 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13981
13982         * resolv/res_debug.c (loc_ntoa): Make error const.
13983
13984 2006-05-14  Andreas Schwab  <schwab@suse.de>
13985
13986         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13987
13988 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13989
13990         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13991         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13992         sizeof (cpu_set_t).
13993
13994 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13995
13996         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13997
13998         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13999
14000         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14001         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14002
14003         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14004         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14005
14006         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14007         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14008         xdr_cback_data.
14009
14010         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14011         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14012         xdr_ypupdate_args.
14013
14014         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14015         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14016
14017         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14018         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14019
14020         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14021         * include/rpcsvc/nis_callback.h: New file.
14022
14023         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14024         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14025
14026         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14027         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14028
14029         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14030         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14031
14032         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14033         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14034
14035         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14036         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14037         xdr_ypdelete_args.
14038
14039         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14040         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14041
14042         * nis/nis_error.c: Remove table of strings.  Use position
14043         independent mechanism.
14044         * nis/nis_error.h: New file.
14045
14046 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14047
14048         * locale/programs/ld-time.c (time_finish): If wide era name or
14049         format aren't provided, set both wname and wformat to L"".
14050
14051 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14052
14053         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14054         results if the call was succesful.
14055
14056         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14057
14058         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14059         as hidden.
14060
14061 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14062
14063         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14064
14065 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14066
14067         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14068         caller makes sure this is not the case.
14069         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14070
14071 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14072
14073         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14074         calls.
14075
14076         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14077         [Coverity CID 229, 230]
14078
14079         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14080         DGETTEXT calls.
14081         (hol_help): Likewise.  [Coverity CID 226, 227]
14082
14083         * string/argz-replace.c (__argz_replace): Unconditionally call
14084         free on SRC.  [Coverity CID 225]
14085
14086         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14087         the return value of __nis_default_owner and __nis_default_group,
14088         it has been especially allocated.  [Coverity CID 224]
14089
14090         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14091         searchgroup and searchowner.  Significantly simplified.
14092         (__nis_default_owner): Remove duplication.  Do not locally copy the
14093         string before duplicating it.
14094         (__nis_default_group): Likewise.
14095
14096         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14097         we must clear the variable before calling __nisfind_server.
14098
14099         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14100         nis_getnames.  [Coverity CID 223]
14101
14102         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14103         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14104
14105         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14106         allocate memory for the input to add_bytes.  [Coverity CID 221]
14107
14108         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14109         was allocated here.  [Coverity CID 219, 220]
14110
14111         * posix/getconf.c (print_all): Free confstr data after printing.
14112         [Coverity CID 218]
14113
14114         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14115         list allocation fails.  [Coverity CID 215]
14116
14117         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14118         [Coverity CID 213]
14119
14120         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14121         string is NULL.  [Coverity CID 212]
14122         * argp/Makefile: Add rules to build and run bug-argp1.
14123         * argp/bug-argp1.c: New file.
14124
14125         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14126         end of string.
14127         * stdlib/canonicalize.c (__realpath): Likewise.
14128
14129         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14130         pointer.  [Coverity CID 206]
14131
14132         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14133         in statically linked code.
14134         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14135         statically built code, be prepared to have no link map.
14136         [Coverity CID 205]
14137
14138         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14139         dgettext calls. [Coverity CID 204]
14140
14141         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14142         the one user.
14143         (uparam_names): Reduce size.  Avoid relative relocations.
14144         Moved to read-only segment.
14145         (fill_in_uparams): Update for new layout.
14146
14147         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14148         assumed to always be != NULL. [Coverity CID 202]
14149
14150         * argp/argp-help.c (hol_entry_help): Remove some dead code
14151         [Coverity CID 200].
14152
14153         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14154         away a few more unconditional yperr2nss calls.
14155         (_nss_nis_getservbyname_r): Likewise.
14156
14157 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14158
14159         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14160         architectures.
14161
14162         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14163         that unused memory passed to sendto is nevertheless initialized.
14164
14165         [BZ #2499]
14166         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14167         possibly unaligned memory accesses.
14168
14169         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14170         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14171         and __putlong respectively.  Correct buffer overflow check for
14172         NS_NOTIFY_OP.
14173
14174         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14175
14176         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14177         (send_dg): Rewrite error handling to be more compact and avoid
14178         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14179
14180         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14181
14182         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14183         instead of ns_get16.
14184         (res_queriesmatch): Likewise.  Minor optimization.
14185
14186         [BZ #2499]
14187         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14188         __libc_res_nsend might reallocate the buffer for the answer.  In
14189         this case we have to reload the HP pointer.
14190
14191 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14192
14193         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14194         some branch prediction hints.
14195
14196         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14197         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14198         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14199         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14200         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14201         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14202         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14203         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14204
14205 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14206
14207         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14208         by a GOT relocation to make Scrt1.o position independent.
14209         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14210
14211         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14212         six system call parameters.
14213         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14214
14215 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14216
14217         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14218         malloc&bzero.
14219
14220         * sunrpc/svc_udp.c (BZERO): Remove definition.
14221         (CALLOC): Define.
14222         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14223
14224         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14225         (des_SPtrans): Use uint32_t type.
14226         (des_skb): Likewise.
14227
14228         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14229
14230 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14231
14232         [BZ #2509]
14233         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14234         on 32-bit arches.
14235
14236 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14237
14238         * locale/programs/ld-address.c (address_finish): Fix one more
14239         place where the iso639 array might be accessed beyond the limits.
14240
14241 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14242
14243         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14244         filling it for the first time.
14245
14246         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14247         Adjust all callers.
14248         Free res object content before returning.
14249
14250         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14251
14252         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14253         client->cl_auth.
14254
14255         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14256         cleanup for initial thread, just the free call on TVP.
14257
14258         * nscd/gai.c (__getline): Define.
14259
14260
14261 See ChangeLog.16 for earlier changes.