Pass $(sysdep-LDFLAGS) when using --print-file-name.
[platform/upstream/glibc.git] / ChangeLog
1 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
2
3         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
4         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
5         files are found by GCC.
6
7 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
8
9         [BZ #11126]
10         * malloc/malloc.c (malloc_info): Initialize malloc if not already
11         done.  Handle empty bin lists.
12
13         * posix/unistd.h: Change getpagesize and getdtablesize declaration
14         visibility some more.
15
16         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
17
18         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
19
20         [BZ #11120]
21         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
22         needed outside libc.
23
24 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
25
26         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
27
28 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
29
30         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
31
32 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
33
34         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
35
36 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
37
38         * conform/data/complex.h-data: Test for POSIX2008.
39
40         * conform/data/ctype.h-data: Fix POSIX testing.
41
42         * conform/data/dirent.h-data: ino_t only needed for XSI.
43
44         * grp/grp.h: Declare getgrent and endgrent for XPG7.
45
46         * conform/data/inttypes.h-data: Use same types as the headers.
47
48         * resolv/netdb.h: Don't define old resolver macros for XPG7.
49
50         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
51
52         * conform/conformtest.pl: Implement tag for allow-header.
53         Fix newline handling in allow-header implementation.
54
55         * conform/data/time.h-data: Use allow-header instead of duplicating
56         information.
57
58         * conform/data/time.h-data: Allow sigevent tag.
59
60         * posix/sched.h: Define time_t and pid_t for XPG7.
61
62 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
63
64         * sysdeps/i386/i686/bcopy.S: New file.
65
66         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
67
68         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
69         and END_CHK.
70         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
71         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
72         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
73
74         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
75
76         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
78         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
79         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
80         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
81         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
82         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
83         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
84         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
85         * sysdeps/i386/i686/multiarch/bzero.S: New file.
86         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
87         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
88         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
89         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
90         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
91         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
92         * sysdeps/i386/i686/multiarch/memmove.S: New file.
93         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
94         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
95         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
96         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
97         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
98         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
99         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
100         * sysdeps/i386/i686/multiarch/memset.S: New file.
101         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
102
103         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
104         (END_CHK): Likewise.
105
106         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
107         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
108         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
109
110         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
111         for 0x0e and 0x80.
112         (__x86_64_data_cache_size): New.
113         (init_cacheinfo): Set __x86_64_data_cache_size.
114
115         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
116         on bit_Fast_Rep_String for Intel Core i7.
117
118         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
119         (index_Fast_Rep_String): Likewise.
120         (FEATURE_INDEX_1): Likewise.
121         (FEATURE_INDEX_MAX): Likewise.
122         (cpu_features): Add feature.
123
124 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
125
126         * conform/data/sys/select.h-data: Fix up for XPG7.
127
128 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
129
130         * posix/sys/wait.h: Don't define W* macros etc. if
131         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
132
133 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
134
135         * io/sys/stat.h: Declare fchmod for XPG7.
136         * conform/data/sys/stat.h-data: Fix up for XPG7.
137
138         * termios/termios.h: Define pid_t for XPG7.
139
140         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
141         * conform/data/tgmath.h-data: Likewise.
142
143         * conform/data/time.h-data: Fix POSIX tests.
144
145         * conform/data/wchar.h-data: Fix up XPG7 tests.
146
147         * include/features.h: Fix __USE_ISOC95 handling.
148
149         * conform/data/wordexp.h-data: Fix typo in last change.
150
151         * conform/data/unistd.h-data: Fix up older POSIX tests.
152
153         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
154         * posix/unistd.h: Likewise.
155
156         * posix/unistd.h: Include environments.h also for XPG6 and up.
157         Define intptr_t for XPG6 and up.
158         Fix up for XPG7.
159         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
160
161         * conform/data/sys/types.h-data: Fix up for XPG7.
162
163         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
164         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
165         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
166         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
167         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
168         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
169         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
170         * sysdeps/unix/sysv/bits/stat.h: Likewise.
171         * sysdeps/mach/hurd/bits/stat.h: Likewise.
172
173         * bits/confname.h: Fix typo in last change.
174
175         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
176
177 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
178
179         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
180         and SA_RESETHAND now available in Base.
181         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
182         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
183         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
184         * conform/data/signal.h-data: Update for XPG7.
185
186         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
187
188         * string/strings.h: Don't declare obsolete functions for XPG7.
189         Declare ffs only for XSI.
190         * conform/data/strings.h-data: Update for XPG7.
191
192 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
193
194         [BZ #11125]
195         * libio/stdio.h: Define va_list, off_t, and ssize_t.
196
197         * posix/glob.h: Define size_t.
198
199         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
200
201         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
202
203 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
204
205         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
206         be self-contained.
207
208         * conform/data/stdio.h-data: Expect off_t and ssize_t.
209
210 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
211
212         * libio/stdio.h: Define va_list also for XPG7.
213
214         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
215         * conform/data/ctype.h-data: Likewise.
216         * conform/data/dirent.h-data: Likewise.
217         * conform/data/errno.h-data: Likewise.
218         * conform/data/fcntl.h-data: Likewise.
219         * conform/data/fmtmsg.h-data: Likewise.
220         * conform/data/fnmatch.h-data: Likewise.
221         * conform/data/ftw.h-data: Likewise.
222         * conform/data/glob.h-data: Likewise.
223         * conform/data/grp.h-data: Likewise.
224         * conform/data/iconv.h-data: Likewise.
225         * conform/data/langinfo.h-data: Likewise.
226         * conform/data/libgen.h-data: Likewise.
227         * conform/data/limits.h-data: Likewise.
228         * conform/data/locale.h-data: Likewise.
229         * conform/data/math.h-data: Likewise.
230         * conform/data/monetary.h-data: Likewise.
231         * conform/data/mqueue.h-data: Likewise.
232         * conform/data/ndbm.h-data: Likewise.
233         * conform/data/netdb.h-data: Likewise.
234         * conform/data/pthread.h-data: Likewise.
235         * conform/data/pwd.h-data: Likewise.
236         * conform/data/regex.h-data: Likewise.
237         * conform/data/sched.h-data: Likewise.
238         * conform/data/search.h-data: Likewise.
239         * conform/data/semaphore.h-data: Likewise.
240         * conform/data/setjmp.h-data: Likewise.
241         * conform/data/signal.h-data: Likewise.
242         * conform/data/spawn.h-data: Likewise.
243         * conform/data/stdio.h-data: Likewise.
244         * conform/data/stdlib.h-data: Likewise.
245         * conform/data/string.h-data: Likewise.
246         * conform/data/strings.h-data: Likewise.
247         * conform/data/sys/ipc.h-data: Likewise.
248         * conform/data/sys/msg.h-data: Likewise.
249         * conform/data/sys/resource.h-data: Likewise.
250         * conform/data/sys/sem.h-data: Likewise.
251         * conform/data/sys/shm.h-data: Likewise.
252         * conform/data/sys/socket.h-data: Likewise.
253         * conform/data/sys/stat.h-data: Likewise.
254         * conform/data/sys/time.h-data: Likewise.
255         * conform/data/sys/types.h-data: Likewise.
256         * conform/data/sys/uio.h-data: Likewise.
257         * conform/data/sys/wait.h-data: Likewise.
258         * conform/data/syslog.h-data: Likewise.
259         * conform/data/tar.h-data: Likewise.
260         * conform/data/termios.h-data: Likewise.
261         * conform/data/time.h-data: Likewise.
262         * conform/data/ulimit.h-data: Likewise.
263         * conform/data/unistd.h-data: Likewise.
264         * conform/data/utmpx.h-data: Likewise.
265         * conform/data/wchar.h-data: Likewise.
266         * conform/data/wctype.h-data: Likewise.
267         * conform/data/wordexp.h-data: Likewise.
268
269         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
270         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
271         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
272         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
273         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
274         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
275         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
276         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
277         * sysdeps/unix/sysv/bits/stat.h: Likewise.
278         * sysdeps/mach/hurd/bits/stat.h: Likewise.
279
280         * stdlib/stdlib.h: Define wait-related bits for XPG7.
281         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
282         Declare mkstemp and getsubopt for XPG7.
283         Declare posix_openpt for XPG6 XSI.
284
285         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
286         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
287
288         * string/string.h: Declare strdup for XPG7.
289
290 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
291
292         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
293         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
294
295         * dirent/dirent.h: Really fix feature selection.
296
297         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
298         Fix all users.
299         * locale/C-address.c: Fix all users.
300         * locale/C-collate.c: Likewise.
301         * locale/C-ctype.c: Likewise.
302         * locale/C-identification.c: Likewise.
303         * locale/C-measurement.c: Likewise.
304         * locale/C-messages.c: Likewise.
305         * locale/C-monetary.c: Likewise.
306         * locale/C-name.c: Likewise.
307         * locale/C-numeric.c: Likewise.
308         * locale/C-paper.c: Likewise.
309         * locale/C-telephone.c: Likewise.
310         * locale/C-time.c: Likewise.
311         * locale/findlocale.c: Likewise.
312         * locale/global-locale.c: Likewise.
313         * locale/loadarchive.c: Likewise.
314         * locale/loadlocale.c: Likewise.
315         * locale/nl_langinfo_l.c: Likewise.
316         * locale/setlocale.c: Likewise.
317         * locale/xlocale.c: Likewise.
318         * locale/xlocale.h: Likewise.
319         * stdio-common/vfscanf.c: Likewise.
320         * stdlib/strfmon_l.c: Likewise.
321         * stdlib/strtod_l.c: Likewise.
322         * stdlib/strtol_l.c: Likewise.
323         * string/strcoll_l.c: Likewise.
324         * string/strxfrm_l.c: Likewise.
325         * time/alt_digit.c: Likewise.
326         * time/asctime.c: Likewise.
327         * time/era.c: Likewise.
328         * time/lc-time-cleanup.c: Likewise.
329         * time/strftime_l.c: Likewise.
330         * time/strptime_l.c: Likewise.
331         * wcsmbs/wcsmbsload.c: Likewise.
332         * wcsmbs/wcsmbsload.h: Likewise.
333
334         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
335         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
336         for XPG7.
337         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
338         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
339         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
340         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
341         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
342         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
343
344 2010-01-07  Roland McGrath  <roland@redhat.com>
345
346         * elf/elf.h (PN_XNUM): New macro.
347
348         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
349         literal 2.
350
351 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
352
353         * dirent/dirent.h: Fix typo in feature selection macro use.
354
355 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
356
357         [BZ #11115]
358         * stdlib/tst-makecontext3.c: New file.
359         * stdlib/Makefile (tests): Add new test.
360
361         * stdlib/tst-setcontext.c (check_called): Fix a typo.
362
363 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
364
365         * configure.in: Enable multi-arch by default if the assembler
366         supports gnu_indirect_function symbol type and the architecture
367         supports it.
368
369 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
370
371         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
372         is defined.
373
374 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
375
376         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
377         MACH_PORT_NULL when id != cttyid.
378
379 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
380
381         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
382         __mach_port_deallocate on rootdevid.
383
384 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
385
386         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
387         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
388         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
389         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
390
391 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
392
393         [BZ #10992]
394         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
395         Patch by Eric Blake <ebb9@byu.net>.
396
397 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
398
399         [BZ #11093]
400         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
401         POLLWRBAND also for POSIX 2008.
402         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
403         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
404
405         * include/link.h (struct link_map): Move l_used into its own word.
406         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
407         still zero.
408         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
409         never really used.
410
411 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
412
413         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
414         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
415         check processor feature.
416         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
417         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
418         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
419         (index_SSE2): Likewise.
420
421 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
422
423         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
424         if __ASSEMBLER__ is defined.
425         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
426         (bit_SSE4_2): Likewise.
427         (index_SSSE3): Likewise.
428         (index_SSE4_2): Likewise.
429         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
430         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
431         check processor feature.
432         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
433         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
434         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
435         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
436         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
437         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
438         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
439
440 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
441
442         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
443
444 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
445
446         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
447
448 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
449
450         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
451         O_DSYNC to match 2.6.33+ kernels.
452         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
453         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
454         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
455         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
456         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
457         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
458
459 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
460
461         [BZ #11000]
462         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
463         *herrnop before returning.
464         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
465         Likewise.
466         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
467         TRYAGAIN errors separately.
468         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
469         *name4_r after functions.
470
471 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
472
473         [BZ #11046]
474         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
475         version check.
476
477 2009-11-05  Bruno Haible  <bruno@clisp.org>
478
479         [BZ #11056]
480         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
481         argv argument as non-NULL.
482         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
483
484 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
485
486         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
487         recvmmsg.
488         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
489         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
490
491 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
492
493         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
494         registers.
495         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
496         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
497         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
498
499 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
500
501         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
502         SCHED_RESET_ON_FORK.
503
504 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
505
506         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
507         only used on truly ancient kernel if configuration requires a more
508         recent kernel.
509
510 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
511
512         [BZ #3662]
513         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
514         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
515
516         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
517         pass it on to __ptsname_internal.
518         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
519         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
520         All the code from __ptsname_r but take additional parameter.  Use that
521         instead of pointer to local stat64 variable.
522         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
523         variable.
524         * include/stdlib.h: Declare __ptsname_internal.
525
526         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
527         before the exec.
528         * sysdeps/unix/sysv/linux/grantpt.c: New file.
529         * login/programs/pt_chown.c (main): Don't print message on errors
530         when doing real work.
531
532         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
533         once.
534
535         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
536         irel relocations split out from...
537         (__libc_csu_init): ...here.
538         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
539
540 2009-11-23  Andreas Schwab  <schwab@redhat.com>
541
542         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
543         for timestamps also if __USE_XOPEN2K8.
544         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
545         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
546         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
547         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
548
549 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
550
551         * nscd/connections.c (restart): Try harder to re-exec.
552
553         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
554
555         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
556         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
557         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
558         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
559         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
560         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
561
562         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
563         Define.
564         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
565
566 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
567
568         [BZ #10162]
569         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
570         than software pipeline.  Properly recover from shorter read.
571
572 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
573
574         [BZ #10958]
575         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
576         initialized before using it.
577         (_IO_putwc_unlocked): Likewise.
578
579         [BZ #10918]
580         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
581         in cast to not throw away const-ness of parameters.
582         (__CPU_EQUAL_S): Likewise.
583         (__CPU_OP_S): Likewise.
584
585         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
586         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
587         this gratuitous change and we have to keep compatibility.
588         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
589         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
590         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
591         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
592         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
594
595 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
596
597         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
598         of parameters of sync_file_range.
599         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
600         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
601         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
602         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
603         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
604         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
605
606 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
607
608         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
609         Implement using sync_file_range2 syscall if __NR_sync_file_range2
610         is defined.
611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
612         file.
613
614 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
615
616         * posix/bug-regex30.c: New file.
617         * posix/Makefile: Add rules to build and run bug-regex30.
618         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
619         character lead bytes when there is a range in a COMPLEX_BRACKET.
620         Reported by Oleg Bylatov.
621
622 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
623
624         [BZ #10969]
625         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
626         * locale/tst-duplocale.c: New file.
627         * locale/Makefile (tests): Add tst-duplocale.
628
629         [BZ #10968]
630         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
631         Patch by Bruno Haible <bruno@clisp.org>.
632         * locale/tst-locname.c: New file.
633         * locale/Makefile (tests): Add tst-locname.
634
635         [BZ #10972]
636         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
637         constants from recent kernels.
638         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
639         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
640         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
641         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
642         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
643         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
644
645 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
646
647         [BZ #10162]
648         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
649         software pipeline.
650
651 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
652
653         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
654         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
655         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
656
657 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
658
659         * posix/bug-regex29.c: Include stdio.h.
660
661 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
662
663         [BZ #10939]
664         * Versions.def: Define GLIBC_2.12 for libc.
665         * manual/errno.texi: Add ERFKILL entry.
666         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
667         for 2.12.
668         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
669         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
670
671         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
672         F_GETOWN_EX definitions according to corrected kernel definitions.
673         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
674         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
675         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
676         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
677         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
678         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
679
680 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
681
682         * version.h: Bump for 2.12 development.
683
684 2009-11-10  Andreas Schwab  <schwab@redhat.com>
685
686         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
687         out of buffer space.
688         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
689         map_v4v6_hostent running out of space.
690
691 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
692
693         * string/bits/string3.h (memset): If the second parameter is constant
694         and zero there is likely no transposition.
695         Patch by Caolan McNamara <caolanm@redhat.com.
696
697 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
698
699         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
700         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
701
702 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
703
704         * malloc/memusagestat.c (main): Fix spelling in an error message.
705
706 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
707
708         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
709         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
710
711 2009-11-03  Andreas Schwab  <schwab@redhat.com>
712
713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
714         readahead.
715
716 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
717
718         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
719         relocate opd entry when resolving prelink conflicts.
720
721 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
722
723         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
724         when -D_FILE_OFFSET_BITS=64.
725
726         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
727         of last two arguments when -D_FILE_OFFSET_BITS=64.
728         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
729         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
730         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
731         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
732         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
733         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
734
735 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
736
737         [BZ #4457]
738         * sysdeps/generic/libgcc_s.h: New file.
739         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
740
741 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
742
743         * malloc/hooks.c (free_check): Restore locking and call _int_free
744         appropriately.
745
746 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
747
748         * version.h (VERSION): Bump for 2.11 release.
749         * include/features.h (__GLIBC_MINOR__): Bump to 11.
750
751         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
752
753         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
754
755         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
756         to avoid warning.
757         * stdlib/tst-strtoll.c (tests): Likewise.
758
759         [BZ #9986]
760         * time/strftime_l.c (__strftime_internal): Allow %OC.
761
762         * misc/mkostemps.c: New file.
763         * misc/mkostemps64.c: New file.
764
765 2009-10-30  Andreas Schwab  <schwab@redhat.com>
766
767         * locale/programs/locale-spec.c: Include <error.h> and
768         <libintl.h>.
769
770         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
771
772 2009-10-28  Roland McGrath  <roland@redhat.com>
773
774         * Makefile (dist-prepare): New target.
775         (tag-for-dist): Target removed.
776         (glibc-%.tar): Pattern rule removed.
777         (%.tar): New pattern rule, does simple use of git archive.
778         (dist-version): Remove variable definition.
779         (dist): Just depend on that.  Add .tar.xz dependency.
780         If dist-version variable not set on command line, depend on
781         dist-prepare, re-invoke with dist-version set via git describe.
782
783         * Makerules (%.xz): New pattern rule.
784
785 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
786
787         * elf/ifuncdep2.c: Include ifunc-sel.h.
788         (global): Delete.
789         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
790         * elf/ifuncmain1.c (global): Delete.
791         * elf/ifuncmain1vis.c: Likewise.
792         * elf/ifuncmain2.c: Likewise.
793         * elf/ifuncmain5.c: Likewise.
794         * elf/ifuncmod3.c: Likewise.
795         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
796         (foo_ifunc): Use ifunc_one.
797         * elf/ifuncmain7.c: Likewise.
798         * elf/ifuncmod1.c: Include ifunc-sel.h.
799         (global): Define protected var.
800         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
801         * elf/ifuncmod5.c: Likewise.
802         * sysdeps/generic/elf/ifunc-sel.h: New file.
803         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
804
805 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
806
807         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
808         (R_PPC_REL16*): Correct comments.
809         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
810         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
811          R_PPC64_REL16_HA): Define.
812         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
813         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
814         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
815         Delete unused "reloc" param.
816         (__process_machine_rela): Handle R_PPC_IRELATIVE.
817         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
818         Delete "reloc" param.
819         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
820         R_PPC_IRELATIVE.
821         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
822         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
823         relocations.
824
825 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
826
827         [BZ #10315]
828         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
829         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
830         UDP_ENCAP_L2TPINUDP.
831
832         [BZ #10349]
833         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
834         parameter, specifying length of prefix.
835         * stdio-common/tempname.c: Likewise.
836         * include/stdio.h: Adjust prototypes.
837         * libio/oldtmpfile.c: Adjust caller.
838         * misc/mkdtemp.c: Likewise.
839         * misc/mkostemp.c: Likewise.
840         * misc/mkostemp64.c: Likewise.
841         * misc/mkstemp.c:  Likewise.
842         * misc/mkstemp64.c: Likewise.
843         * misc/mktemp.c: Likewise.
844         * stdio-common/tempnam.c: Likewise.
845         * stdio-common/tmpfile.c: Likewise.
846         * stdio-common/tmpnam.c: Likewise.
847         * stdio-common/tmpnam_r.c: Likewise.
848         * misc/mkstemps.c: New file.
849         * misc/mkstemps64.c: New file.
850         * stdlib/stdlib.h: Add prototypes.
851         * misc/Makefile (routines): Add mkstemps and mkstemps64.
852         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
853
854 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
855
856         * locale/iso-639.def: Add sml entry.
857
858         [BZ #10391]
859         * resolv/res_send.c (send_dg): Initialize resplen.
860
861         [BZ #10446]
862         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
863         definition to the kernel's.
864         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
865
866 2009-08-18  Anders Johansson  <ajohansson@novell.com>
867
868         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
869         offsets and record sizes in assert()s and response sending.
870         * nscd/grpcache.c: Likewise.
871         * nscd/hstcache.c: Likewise.
872         * nscd/initgrcache.c: Likewise.
873         * nscd/pwdcache.c: Likewise.
874
875 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
876
877         [BZ #10540]
878         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
879         /etc/hosts does not exist set errnop and herrnop appropriately.
880         Patch by Steve Langasek <vorlon@debian.org>.
881
882         [BZ #10553]
883         * malloc/malloc.c (malloc_info): Fix typos in format strings.
884         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
885
886         [BZ #10564]
887         * login/utmp_file.c (TIMEOUT): Increase to 10.
888
889         [BZ #10609]
890         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
891         for file names in case the syscall is not available.
892         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
893         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
894         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
895         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
896         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
897         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
898         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
899         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
900         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
901         * sysdeps/unix/sysv/linux/openat.c: Likewise.
902         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
903         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
904         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
905         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
906         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
907         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
908         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
909
910         [BZ #10643]
911         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
912         creation filed, remove the request from the 'requests' list and signal
913         the caller that the request is finished.
914
915         [BZ #10692]
916         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
917         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
918
919         [BZ #10713]
920         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
921         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
922
923         [BZ #10780]
924         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
925         overflows the int return type.
926
927         [BZ #10717]
928         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
929         have to compute maxsize_total, we have to update the variables, and
930         the also_total handling must happen after the repair.
931
932         [BZ #10742]
933         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
934         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
935
936 2009-10-27  Andreas Schwab  <schwab@redhat.com>
937
938         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
939         errno is always set when returning unsuccessfully.
940
941 2009-10-29  Andreas Schwab  <schwab@redhat.com>
942
943         * malloc/memusage.c (update_data): Fix index wraparound handling
944         so that buffer_cnt is actually reset.
945
946 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
947
948         [BZ #10784]
949         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
950         of the directory we look at into the static buffer if there is one
951         at the start of the loop.
952
953         [BZ #10789]
954         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
955         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
956
957         [BZ #10840]
958         * sysdeps/unix/sysv/linux/kernel-features.h: Define
959         __ASSUME_F_GETOWN_EX.
960         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
961         if possible.
962         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
963
964         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
965         and f_owner_ex.
966         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
967         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
968         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
969         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
970         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
971         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
972
973         [BZ #10847]
974         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
975         getutmpx symbol.
976
977         [BZ #10823]
978         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
979         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
980
981 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
982
983         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
984
985 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
986
987         [BZ #10817]
988         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
989         Reported by Ray Chason.
990
991 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
992
993         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
994         strend-sse4.
995         * sysdeps/x86_64/multiarch/strchr.S: New file.
996         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
997         * sysdeps/x86_64/multiarch/strrchr.S: New file.
998
999 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1000
1001         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1002
1003 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1004
1005         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1006         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1007         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1008         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1009         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1010         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1011         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1012         __ieee751_expl to handle overflow.
1013
1014 2009-10-14  David S. Miller  <davem@davemloft.net>
1015
1016         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1017         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1018
1019 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1020
1021         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1022         !USE_MULTIARCH.
1023
1024 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1025
1026         [BZ #10730]
1027         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1028         Patch in part by Steve Ward <planet36@gmail.com>.
1029
1030         [BZ #10731]
1031         * stdlib/rand_r.c: Fix typo.
1032
1033         * po/cs.po: Update from translation team.
1034
1035 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1036
1037         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1038         returning if RTLD_NOLOAD.
1039
1040 2009-10-06  Roland McGrath  <roland@redhat.com>
1041
1042         * sysdeps/x86_64/multiarch/strstr-c.c
1043         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1044
1045         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1046         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1047
1048         * sysdeps/x86_64/multiarch/init-arch.h
1049         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1050         (HAS_CPU_FEATURE): New macro.
1051         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1052         * sysdeps/x86_64/multiarch/init-arch.c
1053         (__get_cpu_features): #undef it before definition.
1054
1055 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1056
1057         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1058         first_weekday to 1 and first_workday to 2.
1059
1060 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1061
1062         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1063         F_GETOWN_EX.
1064         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1065         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1066         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1067         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1068         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1069         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1070
1071 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1072
1073         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1074         * stdio-common/vfprintf.c: Likewise.
1075
1076 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1077
1078         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1079         (mkdirat): Call __directory_name_split_at instead of
1080         __directory_name_split.
1081
1082 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1083
1084         * locale/programs/locale-spec.c (locale_special): If nothing matches
1085         fail with an appropriate message.
1086
1087 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1088
1089         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1090         and XX.
1091
1092 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1093
1094         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1095         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1096
1097 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1098
1099         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1100
1101 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1102
1103         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1104         character size elements in step data.
1105
1106 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1107
1108         * po/hu.po: Update from translation team.
1109         * po/vi.po: Likewise.
1110
1111 2009-09-19  Roland McGrath  <roland@redhat.com>
1112
1113         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1114
1115 2009-09-15  Roland McGrath  <roland@redhat.com>
1116
1117         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1118         * nptl/sysdeps/pthread/configure: Regenerated.
1119         * nptl/sysdeps/x86_64/configure: Regenerated.
1120         * sysdeps/unix/sysv/linux/configure: Regenerated.
1121         * sysdeps/x86_64/elf/configure: Regenerated.
1122
1123         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1124
1125         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1126         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1127         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1128         * configure: Regenerated.
1129
1130 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1131
1132         * posix/getconf.c (main): Handle -- on command line.
1133
1134 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1135
1136         * configure.in: Support binutils 2.100 and 3.0.
1137
1138 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1139
1140         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1141         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1142         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1143         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1144
1145 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1146
1147         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1148         unnamed_section_defined field.
1149         (collate_read): Test and set unnamed_section_defined.
1150
1151         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1152         _POSIX2_LINE_MAX.
1153
1154 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1155
1156         * configure.in: Support binutils 2.20.
1157
1158 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1159
1160         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1161         __strstr_ia32): Add attribute_hidden.
1162
1163 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1164
1165         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1166         parsing of group entry.
1167
1168 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1169
1170         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1171         external buffer.  Always discard readahead in internal buffer.
1172         * libio/Makefile (tests): Add bug-wsetpos.
1173         * libio/bug-wsetpos.c: New file.
1174
1175 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1176
1177         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1178         Add attribute_hidden.
1179         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1180         __strcasestr_sse2): Likewise.
1181         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1182         (__fma_fma): Make static.
1183         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1184         (__fmaf_fma): Make static.
1185
1186 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1187
1188         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1189         reformulate in-buffer optimisation check to match code in
1190         _IO_new_file_seekoff.
1191
1192 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1193
1194         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1195         to srwi in 32-bit memcpy for power6.
1196
1197 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1198
1199         * include/stdio.h: Declare hidden proto for fflush.
1200         * libio/iofflush.c: Add hidden weak alias for fflush.
1201
1202 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1203
1204         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1205         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1206
1207 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1208
1209         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1210
1211 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1212
1213         [BZ #10560]
1214         * malloc/malloc.c: Add local assert definition to avoid problems with
1215         memory allocation in the real one.
1216
1217 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1218
1219         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1220         Removed.
1221         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1222         turn off SSSE3 on Atom.
1223
1224 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1225
1226         * stdlib/tst-strtol.c (tests): More tests.
1227         * stdlib/tst-strtoll.c (tests): Likewise.
1228
1229 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1230
1231         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1232
1233         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1234
1235 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1236
1237         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1238         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1239
1240         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1241
1242         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1243
1244         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1245
1246 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1247
1248         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1249
1250 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1253         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1254
1255         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1256
1257         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1258         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1259
1260         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1261         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1262
1263         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1264         leftover YMM_SIZE definition.
1265
1266 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1267
1268         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1269         union.
1270         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1271         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1272         Redefine.
1273         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1274
1275         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1276         and SET_FLOAT_WORD definitions.
1277
1278 2009-08-24  Roland McGrath  <roland@redhat.com>
1279
1280         * sysdeps/unix/syscall-template.S: New file.
1281         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1282         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1283         (compile-syscall): Pass mkdep and -g options as normal.
1284         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1285         (common-generated): Don't add them here.
1286
1287 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1288
1289         * math/s_fdim.c: In case of overflows set errno.
1290         * math/s_fdimf.c: Likewise.
1291         * math/s_fdiml.c: Likewise.
1292
1293         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1294         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1295         are using the inline optimizations.
1296
1297         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1298         (__signbitf): Likewise.
1299
1300 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1301
1302         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1303         terminated.
1304         * posix/Makefile (tests): Add bug-regex29.
1305         * posix/bug-regex29.c: New file.
1306
1307         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1308         older POSIX versions are selected.
1309
1310         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1311         as well.
1312         * stdio-common/printf_fphex.c: Likewise.
1313         * stdio-common/tstdiomisc.c: Add more tests.
1314
1315         * locale/locale.h: Include xlocale.h and the thread-local locale
1316         declarations for XPG7, not XPG6.
1317
1318 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1319
1320         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1321         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1324         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1325         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1326
1327 2009-08-20  Roland McGrath  <roland@redhat.com>
1328
1329         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1330         Use l_addr instead of l_map_start (dli_fbase).
1331         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1332         address when there is no proximate symbol.
1333         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1334         Likewise.
1335
1336 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1337
1338         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1339
1340 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1341
1342         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1343         Also handle SIGINT.  In that case only do the cleanup and then
1344         re-raise the signal.
1345         (main): Install handler for SIGINT.
1346
1347 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1348
1349         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1350         clobber list.
1351
1352 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1353
1354         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1355         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1356         tst-auditmod7b.c.
1357         (tests): Add tst-audit6 tst-audit7.
1358         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1359         tst-auditmod7a tst-auditmod7b.
1360         ($(objpfx)tst-audit6): New.
1361         ($(objpfx)tst-audit6.out): Likewise.
1362         ($(objpfx)tst-audit7): Likewise.
1363         ($(objpfx)tst-audit7.out): Likewise.
1364         (tst-audit6-ENV): Likewise.
1365         (tst-audit7-ENV): Likewise.
1366         (CFLAGS-tst-auditmod6b.c): Likewise.
1367         (CFLAGS-tst-auditmod6c.c): Likewise.
1368         (CFLAGS-tst-auditmod7b.c): Likewise.
1369         * elf/tst-audit6.c: New file.
1370         * elf/tst-audit7.c: New file.
1371         * elf/tst-auditmod6a.c: New file.
1372         * elf/tst-auditmod6b.c: New file.
1373         * elf/tst-auditmod6c.c: New file.
1374         * elf/tst-auditmod7a.c: New file.
1375         * elf/tst-auditmod7b.c: New file.
1376         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1377         saving and restoring SSE/AVX registers to ...
1378         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1379
1380 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1381
1382         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1383         only if SHARED is defined.
1384         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1385
1386 2009-08-03  Jim Meyering  <meyering@redhat.com>
1387
1388         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1389
1390 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1391
1392         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1393         section as the other functions for this architecture.
1394         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1395
1396 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1397
1398         * sysdeps/x86_64/strcmp.S: Add support to compile with
1399         USE_SSSE3.  In this case palignr is used.
1400         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1401         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1402         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1403         Add strcmp-ssse3 and strncmp-ssse3.
1404         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1405         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1406
1407         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1408         warning through fake initialization.
1409
1410 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1411
1412         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1413
1414 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1415
1416         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1417         unique symbols.
1418
1419 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1420
1421         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1422         EBX from EAX = 1.  Handle EAX = 11.
1423
1424 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1425
1426         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1427         inside ''.
1428
1429 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1430
1431         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1432         hidden IFUNC functions.
1433         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1434
1435         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1436
1437         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1438         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1439         strcasestr-c.
1440         (CFLAGS-strcspn-c.c): Define.
1441         (CFLAGS-strpbrk-c.c): Define.
1442         (CFLAGS-strspn-c.c): Define.
1443         (CFLAGS-strstr.c): Define.
1444         (CFLAGS-strcasestr.c): Define.
1445         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1446         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1447         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1448         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1449         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1450         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1451         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1452         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1453         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1454         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1455         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1456         -16L instead of 0xfffffffffffffff0L.
1457         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1458
1459 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1460
1461         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1462
1463 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1464
1465         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1466         another rewrite.  Much smaller and faster.
1467         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1468
1469         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1470         ss_flags from the correct location.
1471
1472 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1473
1474         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1475         * sysdeps/i386/i686/cacheinfo.c: New file.
1476         * sysdeps/i386/i686/multiarch/Makefile: New file.
1477         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1478         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1479         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1480         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1481         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1482         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1483         (__cpuid_count): New. Provide the default.
1484         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1485         (__x86_64_preferred_memory_instruction): Define only if
1486         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1487         (intel_check_word): Use __cpuid.
1488         (handle_intel): Likewise.
1489         (handle_amd): Likewise.
1490         (__cache_sysconf): Likewise.
1491         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1492         (__cache_sysconf): Likewise.
1493         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1494         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1495         (get_common_indeces): Use __cpuid.
1496         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1497         if ENABLE_SSSE3_ON_ATOM is not defined.
1498         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1499         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1500         popcnt instead of popcntq.
1501
1502 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1503
1504         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1505
1506 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1507
1508         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1509         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1510         which always causes a compile error.
1511
1512         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1513
1514         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1515         comes from...
1516         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1517         which always causes a compile error.
1518
1519         * debug/Makefile (tests): Add tst-longjmp_chk2.
1520         * debug/tst-longjmp_chk2.c: New file.
1521
1522         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1523         Remove incorrect use of BP_SYM.
1524         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1525         here now since it is more complex than just a simple check.
1526
1527         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1528         we make no more progress.
1529
1530 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1531
1532         * math/s_fma.c: Don't define alias if __fma is a macro.
1533         * math/s_fmaf.c: Likewise.
1534         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1535         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1536         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1537
1538         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1539         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1540         New macro HAS_FMA.
1541         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1542         function.
1543         * include/libc-symbols.h (libm_ifunc): Define.
1544         * sysdeps/x86_64/multiarch/Versions: New file.
1545
1546         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1547
1548 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1551
1552 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1553
1554         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1555         call that registers used in calling conventions need to be preserved.
1556         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1557         to preserve register content if necessary.
1558         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1559         (_dl_x86_64_restore_sse): New function.
1560         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1561         is allowed to modify xmm/ymm registers.
1562
1563         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1564         application's perspective.
1565         * stdio-common/scanf17.c: Likewise.
1566
1567 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1568
1569         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1570         size to memsz.
1571         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1572         here.
1573         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1574         two steps to catch bugs.
1575
1576 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1577
1578         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1579         determines which files are used in runtime lookups and only checks
1580         those for SSE use.
1581         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1582         testing.
1583         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1584         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1585         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1586         take a while.
1587
1588         * elf/dl-open.c: Move _dl_scope_free to...
1589         * elf/dl-scope.c: ...here.  New file.
1590         * elf/Makefile (dl-routines): Add scope.
1591
1592         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1593         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1594         RES_USE_DNSSEC.
1595         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1596         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1597         all the places we handled RES_USE_EDNS0 only before.
1598         Patch by Adam Tkac <atkac@redhat.com>.
1599
1600 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1601
1602         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1603         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1604         Update size when reallocating.
1605
1606 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1607
1608         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1609         functions used in ld.so modify xmm/ymm registers.
1610         * sysdeps/x86_64/Makefile:  Hook new test up.
1611         * sysdeps/x86_64/rtld-memchr.c: New file.
1612         * sysdeps/x86_64/rtld-memcmp.c: New file.
1613         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1614         * sysdeps/x86_64/rtld-strchr.S: New file.
1615         * sysdeps/x86_64/rtld-strlen.S: New file.
1616         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1617         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1618
1619 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1620
1621         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1622         strncmp-c.
1623         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1624         (exit): Likewise.
1625         (Byte1): Likewise.
1626         (Byte2): Likewise.
1627         (Byte3): Likewise.
1628         (Byte4): Likewise.
1629         (Byte5): Likewise.
1630         (Byte6): Likewise.
1631         (next_8_bytes): Likewise.
1632         (Byte0): Remove commented out codes.
1633         (unaligned_table): Align jump table at 8 bytes.
1634         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1635         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1636         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1637         * sysdeps/x86_64/strncmp.S: New file.
1638
1639 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1640
1641         [BZ #10422]
1642         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1643         kernels, dropped when eventfd2 support was added.
1644         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1645         kernels, dropped when signalfd4 support was added.
1646         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1647         added, name them.
1648
1649         [BZ #10452]
1650         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1651         replies up.
1652
1653         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1654
1655 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1656
1657         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1658         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1659
1660         [BZ #10448]
1661         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1662         callback we must touch the status to avoid using stale value.
1663
1664         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1665         compiled in.
1666
1667 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1668
1669         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1670         /lib/modules/* headers anymore.  We have sane headers in the standard
1671         place now.
1672
1673 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1674
1675         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1676         "etf3enh" and "highgprs" added.
1677         (_dl_s390_platforms): "z10" added.
1678         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1679         Increased for the new entries.
1680         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1681         HWCAP_S390_HIGH_GPRS added.
1682
1683         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1684         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1685         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1686         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1687         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1688
1689 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1690
1691         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1692         avoid additional cpuid instructions.  Most of the information is
1693         stored somewhere.
1694
1695         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1696         cache descriptors.
1697         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1698
1699         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1700         SSSE3 bit for Atoms.
1701         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1702         here anymore.
1703
1704         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1705         structure before copying it to avoid warning.
1706         * posix/tst-rfc3484-2.c (do_test): Likewise.
1707         * posix/tst-rfc3484-3.c (do_test): Likewise.
1708
1709         [BZ #10416]
1710         * include/unistd.h: Make header file suitable for C++ test cases.
1711         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1712
1713         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1714         stack alignment in the exit code.
1715
1716         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1717         potentially be zero.
1718
1719         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1720         unique symbol definition.
1721         Patch by Jakub Jelinek.
1722         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1723         make sure the object with the definition cannot be unloaded.  Adjust
1724         a few types.
1725         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1726         the unique symbol hash table should not be const.
1727
1728 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1729
1730         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1731         unnecesary variables.  Comment fixes.
1732
1733 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1734
1735         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1736         Use NONASCII_CASE information provided by the locale to determine
1737         whether optimized string load function can be used.  Minor cleanups.
1738
1739 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1740
1741         * string/strcasestr.c (STRCASESTR): New macro.
1742         (__strcasestr): Renamed to ..
1743         (STRCASESTR): ...this.
1744         * string/strstr.c (STRSTR): New macro.
1745         (strstr): Renamed to ..
1746         (STRSTR): ...this.
1747         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1748         strstr-c strcasestr-c
1749         (CFLAGS-strstr.c): New.
1750         (CFLAGS-strcasestr.c): Likewise.
1751         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1752         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1753         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1754         * sysdeps/x86_64/multiarch/strstr.c: New file.
1755
1756 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1759         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1760         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1761         _NL_CTYPE_NONASCII_CASE.
1762         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1763         field.
1764         (ctype_finish): Check whether there are any 8-bit characters outside
1765         the range ASCII has or whether the mapping isn't the same as for
1766         ASCII (±0x20).  Set nonascii_case appropriately.
1767         (ctype_output): Add output handler for nonascii_case.
1768
1769 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1770
1771         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1772         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1773
1774 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1775
1776         [BZ #10360]
1777         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1778         0xffff in the EDNS0 record.
1779
1780 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1781
1782         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1783         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1784         is written before the list head update.
1785         Patch by Andreas Schwab <aschwab@redhat.com>.
1786
1787 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1788             Jakub Jelinek  <jakub@redhat.com>
1789
1790         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1791         corruption thread-safe.
1792
1793 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1794
1795         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1796         overrides atomic_compare_and_exchange_val_rel, define to
1797         atomic_compare_and_exchange_val_rel by default, otherwise default
1798         to catomic_compare_and_exchange_val_acq.
1799         (catomic_compare_and_exchange_bool_rel): If arch overrides
1800         atomic_compare_and_exchange_bool_rel, define to
1801         atomic_compare_and_exchange_bool_rel by default.
1802         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1803         Use catomic_compare_and_exchange_val_rel instead of
1804         catomic_compare_and_exchange_val_acq.
1805
1806 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1807
1808         * sysdeps/generic/ldsodefs.h: Add prototype for
1809         _dl_higher_prime_number.
1810         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1811
1812         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1813         restoring of ymm registers a bit.
1814
1815 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1816
1817         * sysdeps/x86_64/memcmp.S: New file.
1818
1819 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1820
1821         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1822         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1823         pointers in writable memory.
1824
1825 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1826
1827         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1828         * config.make.in: Add config-cflags-avx entry.
1829         * configure.in: Substitute libc_cv_cc_avx.
1830         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1831         * elf/tst-audit4.c: New file.
1832         * elf/tst-audit5.c: New file.
1833         * elf/tst-auditmod4a.c: New file.
1834         * elf/tst-auditmod4b.c: New file.
1835         * elf/tst-auditmod5a.c: New file.
1836         * elf/tst-auditmod5b.c: New file.
1837         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1838         link-defines.sym.
1839         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1840         (La_x86_64_vector): Likewise.
1841         (La_x86_64_regs): Append lr_vector.
1842         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1843         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1844         saving and restoring SSE registers to ...
1845         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1846         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1847         <link-defines.h>.
1848         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1849         La_x86_64_regs.  Allocate extra space and jump to memory at
1850         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1851         (save_and_restore_vector_sse): New.
1852         (save_and_restore_vector_avx): Likewise.
1853         (check_avx): Likewise.
1854         (save_and_restore_vector): Likewise.
1855         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1856         HAVE_AVX_SUPPORT.
1857         * sysdeps/x86_64/link-defines.sym: New file.
1858
1859 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1860
1861         * elf/do-lookup.h: Removed after folding content into...
1862         * elf/dl-lookup.c: ...here.
1863
1864         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1865
1866 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1867
1868         * configure.in: Check for gnu_unique_symbol symbol type.
1869         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1870         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1871         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1872         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1873         change.
1874         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1875         unique symbol table.
1876         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1877         for first namespace.
1878         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1879         unique symbol hash table.
1880         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1881         * elf/tst-unique1.c: New file.
1882         * elf/tst-unique1mod1.c: New file.
1883         * elf/tst-unique1mod2.c: New file.
1884         * elf/tst-unique2.c: New file.
1885         * elf/tst-unique2mod1.c: New file.
1886         * elf/tst-unique2mod2.c: New file.
1887
1888 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1889
1890         * elf/elf.h (STB_GNU_UNIQUE): Define.
1891
1892         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1893         from...
1894         * include/inline-hashtab.h: ...here.
1895         (htab_expand): Adjust for renamed function.  Correct memory handling.
1896
1897 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1898
1899         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1900
1901 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1902
1903         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1904         (PPC_FEATURE_HAS_VSX): Likewise.
1905
1906 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1907
1908         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1909         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1910
1911         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1912         aligned to 16 byte boundaries.
1913         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1914         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1915         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1916
1917 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1920         * config.make.in (config-cflags-sse4): New variable.
1921         * configure.in: Substitute libc_cv_cc_sse4.
1922         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1923         HAVE_SSE4_SUPPORT.
1924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1925         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1926         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1927         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1928         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1929         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1930         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1931         * sysdeps/x86_64/multiarch/strspn.S: New file.
1932
1933 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1934
1935         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1936         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1937         (tests): Add tst-audit3 for x86_64.
1938         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1939         ($(objpfx)tst-audit3): Define.
1940         ($(objpfx)tst-audit3.out): Define.
1941         (tst-audit3-ENV): Define.
1942         * elf/tst-audit3.c: New file.
1943         * elf/tst-auditmod3a.c: New file.
1944         * elf/tst-auditmod3b.c: New file.
1945         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1946         and restore xmm6.
1947
1948         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1949         (__stpncpy): Renamed to ...
1950         (STPNCPY): This.
1951         (stpncpy): Create alias only if STPNCPY is not defined.
1952         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1953         defined.
1954         (strncpy): Renamed to ...
1955         (STRNCPY): This.
1956         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1957          stpncpy-c strncpy-c for string.
1958         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1959         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1960         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1961         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1962         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1963         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1964
1965 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1966
1967         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1968         adding to fast bin list.
1969
1970 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1971
1972         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1973         inet_makeaddr.  This worked only with class-based networks.
1974         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1975         Likewise.
1976
1977         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1978         recognize all types.
1979         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1980         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1981         be in host byte order.
1982
1983 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1984
1985         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1986         (MODEL_OFFSET): Define.
1987         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1988         family and model.
1989         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1990         out common code into new function get_common_indeces. Determine
1991         extended family and model for Intel processors.
1992
1993 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1994
1995         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1996         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1997         option.
1998         * resolv/res_send.c (reopen): New function.  Broken out of...
1999         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2000         fallback mechanism.  If single-request fails switch to
2001         single-request-reopen mode which opens a new socket for the second
2002         request.
2003
2004 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2005
2006         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2007         (CHECK_SP): Use it.
2008
2009 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2010
2011         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2012         for saved registers.
2013         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2014         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2015         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2016
2017 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2018
2019         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2020
2021 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2022
2023         * po/id.po: Update from translation team.
2024
2025         * po/bg.po: Update from translation team.
2026
2027 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2028
2029         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2030         defined.
2031         (strncmp): Renamed to STRNCMP.
2032         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2033         strncmp-c for string.
2034         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2035         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2036         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2037         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2038
2039 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2040
2041         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2042         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2043         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2044         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2045         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2046         ifuncmain7static.c.
2047         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2048         ifuncmain7static, and ifuncmain7picstatic.
2049         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2050         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2051         $(objpfx)ifuncmain7pie.out.
2052         (modules-names): Add ifuncmod5 ifuncmod6
2053         (ifuncmod5.so-no-z-defs): Define.
2054         (ifuncmod6.so-no-z-defs): Define.
2055         (CFLAGS-ifuncmain5pic.c): Define.
2056         (CFLAGS-ifuncmain5picstatic.c): Define.
2057         (CFLAGS-ifuncmain5staticpic.c): Define.
2058         (CFLAGS-ifuncdep5pic.c): Define.
2059         (CFLAGS-ifuncmain7pic.c): Define.
2060         (CFLAGS-ifuncmain7picstatic.c): Define.
2061         (CFLAGS-ifuncmain1staticpie.c): Define.
2062         (CFLAGS-ifuncmain5pie.c): Define.
2063         (CFLAGS-ifuncmain6pie.c): Define.
2064         (CFLAGS-ifuncmain7pie.c): Define.
2065         ($(objpfx)ifuncmain1staticpie.out): Define.
2066         ($(objpfx)ifuncmain1staticpie): Define.
2067         ($(objpfx)ifuncmain5pie.out): Define.
2068         ($(objpfx)ifuncmain5pie): Define.
2069         ($(objpfx)ifuncmain6pie.out): Define.
2070         ($(objpfx)ifuncmain6pie): Define.
2071         ($(objpfx)ifuncmain5): Define.
2072         ($(objpfx)ifuncmain5pic): Define.
2073         ($(objpfx)ifuncmain5static): Define.
2074         ($(objpfx)ifuncmain5staticpic): Define.
2075         ($(objpfx)ifuncmain5picstatic): Define.
2076         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2077         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2078         ifuncmain6pie.out.
2079         * elf/b/elf/ifuncmain1staticpie.c: New file.
2080         * elf/ifuncdep5.c: New file.
2081         * elf/ifuncdep5pic.c: New file.
2082         * elf/ifuncmain5.c: New file.
2083         * elf/ifuncmain5pic.c: New file.
2084         * elf/ifuncmain5picstatic.c: New file.
2085         * elf/ifuncmain5pie.c: New file.
2086         * elf/ifuncmain5static.c: New file.
2087         * elf/ifuncmain5staticpic.c: New file.
2088         * elf/ifuncmain6pie.c: New file.
2089         * elf/ifuncmain7.c: New file.
2090         * elf/ifuncmain7pic.c: New file.
2091         * elf/ifuncmain7picstatic.c: New file.
2092         * elf/ifuncmain7pie.c: New file.
2093         * elf/ifuncmain7static.c: New file.
2094         * elf/ifuncmod5.c: New file.
2095         * elf/ifuncmod6.c: New file.
2096
2097 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2098
2099         [BZ #10085]
2100         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2101         (nss_endgrent): New variable.
2102         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2103         fields. Change type of files to bool and adjust all users.
2104         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2105         (internal_endgrent): Call nss_endgrent if necessary.
2106         (add_group): New function.  Broken out of...
2107         (check_and_add_group): ...here.
2108         (getgrent_next_nss): Remove test that any callback is available.
2109         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2110         callback.  If there is no blacklist we can trust the results returned
2111         by the initgroups_dyn callback.  In case there is a callback and we
2112         find a group entry for the group ID but it doesn't contain the
2113         correct member, switch to the slow mode and use getgrent_r.
2114         (internal_getgrent_r): When we see a +: entry, determine whether
2115         there is any callback and which we can use the initgroups_dyn
2116         callback.
2117
2118 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2119
2120         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2121         (_int_free): Likewise.
2122
2123         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2124         AF_IEEE802154.
2125         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2126         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2127         and ARPHRD_IEEE802154_PHY.
2128
2129         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2130         relative to generic Linux version.
2131
2132 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2133
2134         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2135         ($(objpfx)ifuncmain1vispie): Likewise.
2136
2137 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2138
2139         * login/Makefile: Build pt_chown as PIE.
2140
2141 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2142
2143         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2144         a format string.
2145         * elf/sln.c (usage): Likewise.
2146         * malloc/memusage.sh (do_help): Likewise.
2147         * nss/getent.c (more_help): Likewise.
2148         * posix/getconf.c (main): Likewise.
2149         * sunrpc/rpcinfo.c (usage): Likewise.
2150         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2151
2152 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2153
2154         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2155         those needed.
2156         * login/Makefile: If necessary link pt_chown with -lcap.
2157         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2158         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2159
2160 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2161
2162         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2163         comparisons.
2164         * string/test-memchr.c (do_random_tests): Test very large lengths
2165         as well.
2166
2167 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2168
2169         * Makeconfig (+link-pie): Define.
2170         (+prectorS): Define.
2171         (+postctorS): Define.
2172         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2173         * nscd/Makefile ($(objpfx)nscd): Likewise.
2174
2175 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2176
2177         [BZ #10107]
2178         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2179         with cmplwi.
2180         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2181
2182 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2183
2184         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2185         into ...
2186         * sysdeps/unix/grantpt.c: ...here.
2187
2188 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2189
2190         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2191         chmod if it is necessary.
2192
2193         [BZ #10166]
2194         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2195         when the slave device is in devpts or devfs.
2196
2197         [BZ #10183]
2198         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2199
2200         [BZ #10195]
2201         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2202         of nd_opt_home_agent_info_preference to uint16_t.
2203         Patch by Arnaud Ebalard <arno@natisbad.org>.
2204
2205         [BZ #10207]
2206         * nss/getent.c: Add support for printing gshadow data.
2207
2208         [BZ #10203]
2209         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2210         not just the currently used one and those which follow.
2211         Patch by Joe Landers <jlanders@vmware.com>.
2212
2213         [BZ #10196]
2214         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2215         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2216         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2217
2218         [BZ #10217]
2219         * stdlib/abort.c: Define variable __abort_msg.
2220         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2221         * include/stdlib.h: Declare __abort_msg.
2222         * assert/assert-perr.c: Don't free buffer for message immediately.
2223         Store atomically in __abort_msg and free old buffer if necessary.
2224         * assert/assert.c: Likewise.
2225         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2226         store pointer in __abort_msg, and possibly free old string.
2227         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2228
2229         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2230
2231         [BZ #10211]
2232         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2233         handle leap seconds if they are available.
2234         Patch by Akinori Hattori <hattya@gentoo.org>.
2235
2236         * timezone/tzselect.ksh: Update from tzcode2009i.
2237         * timezone/zdump.c: Likewise.
2238         * timezone/zic.c: Likewise.
2239
2240         * timezone/africa: Update from tzdata2009i.
2241         * timezone/antarctica: Likewise.
2242         * timezone/asia: Likewise.
2243         * timezone/australasia: Likewise.
2244         * timezone/backward: Likewise.
2245         * timezone/etcetera: Likewise.
2246         * timezone/europe: Likewise.
2247         * timezone/factory: Likewise.
2248         * timezone/iso3166.tab: Likewise.
2249         * timezone/leapseconds: Likewise.
2250         * timezone/northamerica: Likewise.
2251         * timezone/pacificnew: Likewise.
2252         * timezone/solar87: Likewise.
2253         * timezone/solar88: Likewise.
2254         * timezone/solar89: Likewise.
2255         * timezone/southamerica: Likewise.
2256         * timezone/systemv: Likewise.
2257         * timezone/yearistype: Likewise.
2258         * timezone/zone.tab: Likewise.
2259
2260 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2261
2262         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2263         STT_GNU_IFUNC symbol or in 8 into type_class.
2264
2265         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2266         instead of Elf64_Addr.
2267
2268 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2269
2270         * po/sv.po: Update from translation team.
2271
2272         [BZ #10229]
2273         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2274         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2275         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2276         the C version.
2277
2278 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2279
2280         * Versions.def: Add GLIBC_2.11 for libpthread.
2281
2282 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2283
2284         * resolv/res_send.c (send_dg): Remember we switched to
2285         single-request mode.
2286
2287 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2288
2289         * dlfcn/dlfcn.h: Remove comma at end of enum.
2290         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2291
2292         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2293         parsing mode string.
2294
2295 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2296
2297         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2298
2299         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2300
2301         * sysdeps/x86_64/multiarch/strlen.S: New file.
2302         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2303         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2304         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2305         content.
2306
2307         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2308         is defined.
2309
2310 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2311
2312         * sysdeps/x86_64/strlen.S: Minor optimizations.
2313
2314 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2315
2316         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2317         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2318         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2319         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2320         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2321         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2322         ifuncmain3.c, ifuncmod3.c,.
2323         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2324         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2325         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2326         ifuncmain4picstatic.
2327         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2328         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2329         ifuncmain3, ifuncmain4.
2330         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2331         $(objpfx)ifuncmain1vispie.out.
2332         (modules-names): Add ifuncmod1 ifuncmod3.
2333         (generated): Add ifuncmain1pie ifuncmain1pie.out
2334         ifuncmain1vispie ifuncmain1vispie.out.
2335         Define rules to build and run the tests.
2336         * elf/ifuncdep1.c: New file.
2337         * elf/ifuncdep1pic.c: New file.
2338         * elf/ifuncdep2.c: New file.
2339         * elf/ifuncdep2pic.c: New file.
2340         * elf/ifuncmain1.c: New file.
2341         * elf/ifuncmain1pic.c: New file.
2342         * elf/ifuncmain1picstatic.c: New file.
2343         * elf/ifuncmain1pie.c: New file.
2344         * elf/ifuncmain1static.c: New file.
2345         * elf/ifuncmain1staticpic.c: New file.
2346         * elf/ifuncmain1vis.c: New file..
2347         * elf/ifuncmain1vispic.c: New file..
2348         * elf/ifuncmain1vispie.c: New file.
2349         * elf/ifuncmain2.c: New file.
2350         * elf/ifuncmain2pic.c: New file.
2351         * elf/ifuncmain2picstatic.c: New file.
2352         * elf/ifuncmain2static.c: New file.
2353         * elf/ifuncmain3.c: New file.
2354         * elf/ifuncmain4.c: New file.
2355         * elf/ifuncmain4picstatic.c: New file.
2356         * elf/ifuncmain4static.c: New file.
2357         * elf/ifuncmod1.c: New file.
2358         * elf/ifuncmod3.c: New file.
2359
2360 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2361
2362         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2363
2364 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2365
2366         [BZ #10221]
2367         * posix/Makefile (routines): Add execvpe.
2368         * posix/Versions: Export execvpe for GLIBC_2.11.
2369         * posix/execvp.c: Now only a wrapper.  Move code to...
2370         * posix/execvpe.c: ...here.  New file.
2371         * posix/unistd.h: Declare execvpe.
2372
2373 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2374
2375         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2376         for STT_GNU_IFUNC handling for efficiency.
2377         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2378
2379         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2380         _exit.
2381         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2382
2383 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2384
2385         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2386         for !SHARED.
2387
2388 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2389
2390         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2391         is not defined.
2392         (__rela_iplt_start): New declaration.
2393         (__rela_iplt_end): Likewise.
2394         (__rel_iplt_start): Likewise.
2395         (__rel_iplt_end): Likewise.
2396         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2397         * elf/elf.h (R_386_IRELATIVE): New macro.
2398         (R_X86_64_IRELATIVE): New macro.
2399         (R_386_NUM): Updated.
2400         (R_X86_64_NUM): Likewise.
2401         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2402         (libc_ifunc_hidden_def): New macro.
2403         * sysdeps/generic/dl-irel.h: New file.
2404         * sysdeps/i386/dl-irel.h: New file.
2405         * sysdeps/x86_64/dl-irel.h: New file.
2406         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2407         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2408         Handle R_386_IRELATIVE.
2409         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2410         (elf_machine_lazy_rela): Likewise.
2411         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2412         R_X86_64_IRELATIVE.
2413         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2414
2415 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2416
2417         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2418         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2419         are no differences.  If an architecture has bits in CPUID index 1
2420         meaning different things the values for the COMMON_CPUID_INDEX_1
2421         index must not be set.
2422         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2423         (HAS_POPCOUNT): ...this.  New macro.
2424         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2425         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2426         to set the value for Intel and AMD architectures.
2427         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2428         INTEL_CPUID_INDEX_1.
2429         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2430         change.
2431
2432 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2433
2434         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2435         and $build.
2436
2437 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2438
2439         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2440         (__expm1l): Set errno to ERANGE on overflow.
2441         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2442         (__tanl): Set errno to EDOM for Â±Inf.
2443         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2444         (__cosl): Set errno to EDOM for Â±Inf.
2445         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2446         (__sinl): Set errno to EDOM for Â±Inf.
2447
2448         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2449         defined, use it.
2450         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2451         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2452         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2453
2454 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2455
2456         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2457         code accessing it.
2458         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2459
2460 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2461
2462         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2463         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2464         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2465         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2466
2467         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2468         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2469         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2470         defined.
2471         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2472         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2473
2474 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2475
2476         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2477         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2478         is, either do nothing at all if __ASSUME_ACCEPT4, or
2479         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2480         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2481         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2482         define.
2483         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2484         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2485         internal_accept4 in socket directory.
2486
2487 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2488
2489         * sysdeps/ia64/configure.in: New file.
2490
2491 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2492
2493         [BZ #10162]
2494         * sysdeps/ia64/memchr.S: Use speculative load.
2495
2496         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2497         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2498         use it.
2499
2500         * sysdeps/i386/__longjmp.S: Add .text.
2501         * sysdeps/x86_64/__longjmp.S: Likewise.
2502
2503 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2504
2505         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2506         __ASSUME_ACCEPT4 for IA-64.
2507
2508 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2509
2510         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2511
2512         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2513         (SOCKOP_accept4): Define.
2514
2515 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2516
2517         Sun approved the change of the license.
2518         * sunrpc/auth_des.c: Replace license text.
2519         * sunrpc/auth_none.c: Likewise.
2520         * sunrpc/auth_unix.c: Likewise.
2521         * sunrpc/authdes_prot.c: Likewise.
2522         * sunrpc/authuxprot.c: Likewise.
2523         * sunrpc/bindrsvprt.c: Likewise.
2524         * sunrpc/clnt_gen.c: Likewise.
2525         * sunrpc/clnt_perr.c: Likewise.
2526         * sunrpc/clnt_raw.c: Likewise.
2527         * sunrpc/clnt_simp.c: Likewise.
2528         * sunrpc/clnt_tcp.c: Likewise.
2529         * sunrpc/clnt_udp.c: Likewise.
2530         * sunrpc/clnt_unix.c: Likewise.
2531         * sunrpc/des_crypt.c: Likewise.
2532         * sunrpc/des_soft.c: Likewise.
2533         * sunrpc/get_myaddr.c: Likewise.
2534         * sunrpc/getrpcport.c: Likewise.
2535         * sunrpc/key_call.c: Likewise.
2536         * sunrpc/key_prot.c: Likewise.
2537         * sunrpc/openchild.c: Likewise.
2538         * sunrpc/pm_getmaps.c: Likewise.
2539         * sunrpc/pm_getport.c: Likewise.
2540         * sunrpc/pmap_clnt.c: Likewise.
2541         * sunrpc/pmap_prot.c: Likewise.
2542         * sunrpc/pmap_prot2.c: Likewise.
2543         * sunrpc/pmap_rmt.c: Likewise.
2544         * sunrpc/rpc/auth.h: Likewise.
2545         * sunrpc/rpc/auth_unix.h: Likewise.
2546         * sunrpc/rpc/clnt.h: Likewise.
2547         * sunrpc/rpc/des_crypt.h: Likewise.
2548         * sunrpc/rpc/key_prot.h: Likewise.
2549         * sunrpc/rpc/netdb.h: Likewise.
2550         * sunrpc/rpc/pmap_clnt.h: Likewise.
2551         * sunrpc/rpc/pmap_prot.h: Likewise.
2552         * sunrpc/rpc/pmap_rmt.h: Likewise.
2553         * sunrpc/rpc/rpc.h: Likewise.
2554         * sunrpc/rpc/rpc_des.h: Likewise.
2555         * sunrpc/rpc/rpc_msg.h: Likewise.
2556         * sunrpc/rpc/svc.h: Likewise.
2557         * sunrpc/rpc/svc_auth.h: Likewise.
2558         * sunrpc/rpc/types.h: Likewise.
2559         * sunrpc/rpc/xdr.h: Likewise.
2560         * sunrpc/rpc_clntout.c: Likewise.
2561         * sunrpc/rpc_cmsg.c: Likewise.
2562         * sunrpc/rpc_common.c: Likewise.
2563         * sunrpc/rpc_cout.c: Likewise.
2564         * sunrpc/rpc_dtable.c: Likewise.
2565         * sunrpc/rpc_hout.c: Likewise.
2566         * sunrpc/rpc_main.c: Likewise.
2567         * sunrpc/rpc_parse.c: Likewise.
2568         * sunrpc/rpc_parse.h: Likewise.
2569         * sunrpc/rpc_prot.c: Likewise.
2570         * sunrpc/rpc_sample.c: Likewise.
2571         * sunrpc/rpc_scan.c: Likewise.
2572         * sunrpc/rpc_scan.h: Likewise.
2573         * sunrpc/rpc_svcout.c: Likewise.
2574         * sunrpc/rpc_tblout.c: Likewise.
2575         * sunrpc/rpc_util.c: Likewise.
2576         * sunrpc/rpc_util.h: Likewise.
2577         * sunrpc/rpcinfo.c: Likewise.
2578         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2579         * sunrpc/rpcsvc/key_prot.x: Likewise.
2580         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2581         * sunrpc/rpcsvc/mount.x: Likewise.
2582         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2583         * sunrpc/rpcsvc/rex.x: Likewise.
2584         * sunrpc/rpcsvc/rstat.x: Likewise.
2585         * sunrpc/rpcsvc/rusers.x: Likewise.
2586         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2587         * sunrpc/rpcsvc/spray.x: Likewise.
2588         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2589         * sunrpc/rtime.c: Likewise.
2590         * sunrpc/svc.c: Likewise.
2591         * sunrpc/svc_auth.c: Likewise.
2592         * sunrpc/svc_authux.c: Likewise.
2593         * sunrpc/svc_raw.c: Likewise.
2594         * sunrpc/svc_run.c: Likewise.
2595         * sunrpc/svc_simple.c: Likewise.
2596         * sunrpc/svc_tcp.c: Likewise.
2597         * sunrpc/svc_udp.c: Likewise.
2598         * sunrpc/svc_unix.c: Likewise.
2599         * sunrpc/svcauth_des.c: Likewise.
2600         * sunrpc/xcrypt.c: Likewise.
2601         * sunrpc/xdr.c: Likewise.
2602         * sunrpc/xdr_array.c: Likewise.
2603         * sunrpc/xdr_float.c: Likewise.
2604         * sunrpc/xdr_mem.c: Likewise.
2605         * sunrpc/xdr_rec.c: Likewise.
2606         * sunrpc/xdr_ref.c: Likewise.
2607         * sunrpc/xdr_sizeof.c: Likewise.
2608         * sunrpc/xdr_stdio.c: Likewise.
2609
2610         * po/da.po: Update from translation team.
2611
2612 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2613
2614         * sysdeps/sh/____longjmp_chk.S: New file.
2615         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2616         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2617
2618 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2619             Ulrich Drepper  <drepper@redhat.com>
2620
2621         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2622         (__nscd_cache_search): Assume each entry in the
2623         hash chain needs one hashentry and half of datahead.  Use
2624         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2625
2626 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2627
2628         * posix/sys/wait.h: Fix typos.  Pretty printing.
2629         * stdlib/stdlib.h: Likewise.  Correct comments.
2630
2631         [BZ #10159]
2632         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2633
2634         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2635         patch.
2636
2637 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2638
2639         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2640         Use it if we absolutely cannot reach any more correct list elements
2641         because that many do not fit into the currently mapped database.
2642
2643 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2644
2645         * nscd/nscd_helper.c: Include stddef.h.
2646         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2647         in a couple of places.  Return NULL if trail is not less than
2648         datasize, don't consider dataheads with length smaller than
2649         offsetof (struct datahead, data) + datalen.
2650         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2651         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2652         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2653         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2654         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2655         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2656         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2657
2658         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2659         Rename ...
2660         (fallocate64): ... to this.
2661         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2662         Rename ...
2663         (fallocate64): ... to this.
2664         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2665         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2666         fallocate64@@GLIBC_2.10.
2667         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2668         fallocate64@@GLIBC_2.11.
2669         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2671         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2672         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2673
2674         * nscd/selinux.c (nscd_avc_destroy): Removed.
2675         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2676         * nscd/nscd.c (termination_handler): Don't call
2677         nscd_avc_destroy.
2678
2679 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2680
2681         * include/atomic.h: Formatting.
2682         (catomic_compare_and_exchange_val_acq): Don't define if already
2683         defined by bits/atomic.h.
2684
2685 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2686
2687         * math/libm-test.inc (expm1_test): Add test for range error.
2688
2689         * Versions.def: Add GLIBC_2.11 for libc.
2690         * debug/Makefile (routines): Add longjmp_chk.
2691         Add rules to build and run tst-longjmp_chk.
2692         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2693         * debug/longjmp_chk.c: New file.
2694         * debug/tst-longjmp_chk.c: New file.
2695         * include/bits/setjmp2.: New file.
2696         * include/stdio.h: Mark __fortify_fail as internal_function.
2697         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2698         * setjmp/bits/setjmp2.h: New file.
2699         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2700         of the aliases.
2701         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2702         defined.
2703         * sysdeps/i386/____longjmp_chk.S: New file.
2704         * sysdeps/x86_64/____longjmp_chk.S: New file.
2705         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2706         * sysdeps/x86_64/__longjmp.S: Likewise.
2707
2708         * version.h: Bump for 2.11 development.
2709
2710         * elf/check-execstack.c: New file.
2711         * elf/Makefile: Add rules to build and run check-execstack.
2712
2713 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2714
2715         * version.h (VERSION): Bump to 2.10.1.
2716
2717         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2718         compatibility functions.
2719         * nss/getXXent_r.c: Likewise.
2720         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2721         * gshadow/getsgnam_r.c: Likewise.
2722         * gshadow/Version: Remove duplicate entries.
2723
2724         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2725         for recent processor.
2726         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2727         Likewise.
2728
2729 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2730
2731         * version.h (VERSION): Bump for 2.10 release.
2732         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2733
2734         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2735         same place we add ASFLAGS-config.
2736
2737 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2738
2739         [BZ #10128]
2740         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2741         or FORMERR and the other NOERROR, don't raise an error.
2742
2743 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2744
2745         [BZ #10118]
2746         * Makeconfig (+asflags): New variable based upon ASFLAG or
2747         asflags-cpu.
2748         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2749         * config.make.in (asflags-cpu): Add variable based upon
2750         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2751         the assembler.
2752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2753         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2754         recognizes power6 instruction set due to passing -mcpu=power6 from
2755         --with-cpu=power6 when compiling .S files.
2756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2757         Likewise.
2758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2759         Likewise.
2760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2761         Likewise.
2762
2763 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2764
2765         * string/stratcliff.c (do_test): Test for zero length
2766         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2767         at the end of the page.
2768
2769 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2770
2771         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2772
2773         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2774         count is zero.
2775
2776         * po/da.po: Update from translation team.
2777
2778 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2779
2780         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2781         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2782
2783 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2784
2785         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2786         and READ_IMPLIES_EXEC.
2787
2788 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2789
2790         * po/da.po: Update from translation team.
2791
2792 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2793
2794         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2795         comment change.
2796
2797 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2798
2799         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2800         to MAP_ANON in PROT_NONE mmap64 call.
2801         (open_archive): Likewise.
2802         (file_data_available_p): Use mmap64 instead of mremap.
2803         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2804         Attempt to reserve address space after mmap64 region.
2805
2806 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2807
2808         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2809         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2810         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2811
2812         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2813         atanh should set ERANGE.
2814
2815         [BZ #10087]
2816         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2817         result of lookup to make call to implement STT_GNU_IFUNC.
2818         (_dl_profile_fixup): Likewise.
2819         Patch by H.J. Lu <hjl.tools@gmail.com>.
2820
2821         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2822         warning.
2823
2824         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2825         from definition.
2826
2827         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2828         label if it is not used.
2829
2830         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2831         of gmon_hist_hdr and gmon_hdr structures and use them.
2832         * elf/sprof.c: Likewise.
2833
2834         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2835         warning.
2836
2837         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2838
2839         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2840         to avoid cast.
2841
2842         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2843         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2844         to avoid warnings.
2845         (iruserok_af): Use ss_family instead of casts.
2846
2847         * gmon/gmon.c (write_hist): Define real-type variant of
2848         gmon_hist_hdr structure and use it.
2849         (write_gmon): Likewise for gmon_hdr.
2850
2851         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2852         function if we are not going to define it.
2853         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2854
2855         * inet/inet6_option.c (option_alloc): Add temporary variable to
2856         avoid warning.
2857
2858         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2859         name of VTable element.
2860         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2861         * libio/iovsscanf.c: Likewise.
2862         * libio/vasprintf.c: Likewise.
2863         * libio/vsnprintf.c: Likewise.
2864         * stdio-common/isoc99_vsscanf.c: Likewise.
2865         * stdlib/strfmon_l.c: Likewise.
2866         * debug/vasprintf_chk.c: Likewise.
2867         * debug/vsnprintf_chk.c: Likewise.
2868         * debug/vsprintf_chk.c: Likewise.
2869
2870         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2871         function pointers.
2872
2873 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2874
2875         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2876
2877 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2878
2879         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2880
2881         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2882         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2883         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2884         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2885         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2886         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2887         * math/libm-test.inc: Add tests for errno after tan calls with
2888         Â±Inf.
2889
2890         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2891         errno value vor pow(+-0,neg).
2892         * math/libm-test.inc (pow_test): Add tests for errno value for
2893         pole errors.
2894
2895         * math/w_fmod.c: Also handle x=±Inf as error.
2896         * math/w_fmodf.c: Likewise.
2897         * math/w_fmodl.c: Likewise.
2898         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2899         x=±Inf or y=0.
2900
2901         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2902         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2903         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2904         * sysdeps/i386/fpu/s_sin.S: Likewise.
2905         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2906         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2907         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2908         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2909         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2910         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2911         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2912         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2913         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2914         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2915         Â±Inf.
2916
2917         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2918         ERANGE for underflows.
2919         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2920
2921         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2922         the 2001 revision.
2923
2924         * libio/tst-widetext.input: Remove surrogates.
2925
2926         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2927
2928         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2929         for lgamma should set errno to ERANGE, not EDOM.
2930         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2931
2932 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2933
2934         [BZ #10093]
2935         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2936         UTF-16 surrogates.
2937
2938         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2939         space when temporarily mapping the whole content of the old file.
2940
2941         [BZ #10100]
2942         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2943         not zero.
2944
2945 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2946
2947         * iconvdata/sjis.c (BODY): Don't advance inptr before
2948         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2949         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2950         two byte chars.
2951
2952 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2953
2954         * locale/locarchive.h (struct locarhandle): Rename len field to
2955         mmaped and add new reserved field.
2956         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2957         (create_archive): Reserve address space and then map file into it.
2958         (open_archive): Likewise.
2959         (file_data_available_p): New function.
2960         (compare_from_file): New function.
2961         (close_archive): Adjust to member name changes.
2962         (add_locale): Before comparing locale data, check it is mapped.
2963         Otherwise fall back to reading from the file.
2964
2965 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2966
2967         * stdio-common/psiginfo.c: Include <errno.h>.
2968
2969 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2970
2971         [BZ #9920]
2972         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2973         to get consistency between 32 and 64 bit architectures.
2974
2975         [BZ #10052]
2976         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2977         directory for dummy syscall rules.
2978         Patch by Chris Steinbroner <hesh@pobox.com>.
2979
2980 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2981
2982         [BZ #10092]
2983         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2984         MNT_EXPIRE.
2985
2986 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2987
2988         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2989         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2990
2991 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2992
2993         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2994         data from vector to temporary buffer and call PWRITEV after it
2995         instead of vice versa.
2996         * sysdeps/posix/preadv.c: Fix up comment.
2997         * misc/preadv.c: Likewise.
2998         * misc/preadv64.c: Likewise.
2999         * misc/pwritev.c: Likewise.
3000         * misc/pwritev64.c: Likewise.
3001         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3002
3003 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3004
3005         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3006
3007         * shadow/Makefile (tests): Add tst-shadow.
3008         * shadow/tst-shadow.c: New file.
3009
3010         [BZ #9955]
3011         * gshadow/Makefile: New file.
3012         * gshadow/Versions: New file.
3013         * gshadow/fgetsgent.c: New file.
3014         * gshadow/fgetsgent_r.c: New file.
3015         * gshadow/getsgent.c: New file.
3016         * gshadow/getsgent_r.c: New file.
3017         * gshadow/getsgnam.c: New file.
3018         * gshadow/getsgnam_r.c: New file.
3019         * gshadow/gshadow.h: New file.
3020         * gshadow/putsgent.c: New file.
3021         * gshadow/sgetsgent.c: New file.
3022         * gshadow/sgetsgent_r.c: New file.
3023         * gshadow/tst-gshadow.c: New file.
3024         * include/gshadow.h: New file.
3025         * Makeconfig (all-subdirs): Add gshadow.
3026         * Makefile (installed-headers): Add gshadow/gshadow.h.
3027         * nss/Makefile (databases): Add sgrp.
3028         * nss/Versions: Add gshadow functions as private exports.
3029         * nss/nsswitch.conf: Add gshadow entry.
3030         * nss/sgrp-lookup.c: New file.
3031         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3032         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3033         * nss/nss_files/files-sgrp.c: New file.
3034         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3035         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3036
3037 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3038
3039         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3040         * stdio-common/reg-modifier.c: Likewise.
3041
3042 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3043
3044         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3045         is no FPU.
3046
3047 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3048
3049         [BZ #10086]
3050         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3051         headers up to 2.6.30.
3052
3053         * po/ca.po: Update from translation team.
3054
3055 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3056
3057         [BZ #10069]
3058         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3059         an object that uses static TLS if the TLS modid is higher than the
3060         reserve we always allocate.  At least for multi-threaded code.
3061
3062 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3063
3064         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3065         Numerically stable check for valid width.
3066
3067         * locale/programs/locarchive.c (open_archive): Map the entire file
3068         and not just the administrative data.
3069         (add_locale): When we find a hash sum match compare the content
3070         to be sure.
3071
3072         * malloc/malloc.c (malloc_info): Output address space information.
3073
3074 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3075
3076         * malloc/malloc.c (malloc_info): Also output system memory information.
3077
3078         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3079         architectures have preadv/pwritev in 2.6.30.
3080
3081         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3082         * sysdeps/posix/readv.c: Likewise.
3083         Reported by Markus Armbruster <armbru@redhat.com>.
3084
3085         * malloc/hooks.c (top_check): Force hook value into register.
3086
3087 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3088
3089         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3090         calls to _dl_relocate_object.
3091
3092 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3093
3094         [BZ #9957]
3095         * malloc/malloc.c (force_reg): Define.
3096         (sYSMALLOc): Load hook variable into variable
3097         before test and force into register.
3098         (sYSTRIm): Likewise.
3099         (public_mALLOc): Force hook value into register.
3100         (public_fREe): Likewise.
3101         (public_rEALLOc): Likewise.
3102         (public_mEMALIGn): Likewise.
3103         (public_vALLOc): Likewise.
3104         (public_pVALLOc): Likewise.
3105         (public_cALLOc): Likewise.
3106         (__posix_memalign): Likewise.
3107         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3108         before test and force into register.
3109         * malloc/hooks.c (top_check): Likewise.
3110         (public_sET_STATe): Pretty printing.
3111
3112         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3113         in case we only receive one reply in single-request mode.
3114
3115 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3116
3117         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3118         are dlopened in statically linked program even for __LM_ID_CALLER.
3119
3120 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * resolv/res_send.c (send_dg): Don't switch into single-request
3123         mode if we already are in it.
3124
3125 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3126
3127         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3128         are always at least 4 bytes in the returned line.
3129
3130 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3131
3132         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3133         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3134         instead of 8K.  Stop searching in /proc/stat after hitting first
3135         line not starting with cpu.
3136         (next_line): Truncate too long
3137         lines at buffer size * 3/4 instead of pretending there were line
3138         breaks inside of large lines.
3139
3140 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3141
3142         * sysdeps/x86_64/mp_clz_tab.c: New file.
3143
3144 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3145             Ulrich Drepper  <drepper@redhat.com>
3146
3147         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3148         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3149         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3150
3151 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3152
3153         * sysdeps/sh/libc-tls.c: New file.
3154
3155         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3156
3157 2009-04-14  Roland McGrath  <roland@redhat.com>
3158
3159         * elf/elf.h: Add various missing ARM constants, to match binutils.
3160
3161 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3162
3163         Optimizations from GMP.
3164         * sysdeps/x86_64/add_n.S: New file.
3165         * sysdeps/x86_64/addmul_1.S: New file.
3166         * sysdeps/x86_64/lshift.S: New file.
3167         * sysdeps/x86_64/mul_1.S: New file.
3168         * sysdeps/x86_64/rshift.S: New file.
3169         * sysdeps/x86_64/sub_n.S: New file.
3170         * sysdeps/x86_64/submul_1.S: New file.
3171
3172 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3173
3174         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3175         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3176         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3177         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3178
3179 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3180
3181         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3182         preadv/pwritev.
3183
3184 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3185
3186         * sysdeps/x86-64/strrchr.S: New file.
3187
3188 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3189
3190         * stdio-common/printf.h (struct printf_info): Add user element.
3191         New types printf_arginfo_size_function, printf_va_arg_function.
3192         Declare register_printf_specifier, register_printf_modifier,
3193         register_printf_type.
3194         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3195         (union printf_arg): Add pa_user element.
3196         Adjust __printf_arginfo_table type.
3197         Add __printf_va_arg_table, __printf_modifier_table,
3198         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3199         declarations.
3200         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3201         If registered arginfo call failed try normal specifier.
3202         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3203         function.
3204         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3205         * stdio-common/Versions: Export register_printf_modifier,
3206         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3207         * stdio-common/reg-modifier.c: New file.
3208         * stdio-common/reg-type.c: New file.
3209         * stdio-common/reg-printf.c (__register_printf_specifier): New
3210         function.  Mostly the old __register_printf_function function but
3211         uses locking and type of third parameter changed.
3212         (__register_printf_function): Implement using
3213         __register_printf_specifier.
3214         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3215         calls to arginfo functions.  Allocate enough memory for user-defined
3216         types.  Call new va_arg functions to get user-defined types.
3217         Try installed handlers even for existing format specifiers first.
3218
3219 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3220
3221         * sysdeps/x86_64/rawmemchr.S: New file.
3222
3223         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3224         Simplified code and possible copy problem fixed.
3225
3226         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3227         function if it is not defined.  Add some necessary casts.
3228         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3229
3230         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3231         have preadv/pwritev in 2.6.30.
3232
3233 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3234
3235         * malloc/malloc.c (malloc_info): New function.
3236         * malloc/malloc.h: Declare it.
3237         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3238
3239         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3240         to avoid PLT slot.
3241
3242         * malloc/malloc.c (_int_realloc): Add parameter with old block
3243         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3244         Adjust all callers.
3245         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3246
3247 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3248
3249         * sysdeps/x86_64/strchrnul.S: New file.
3250
3251         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3252         depending libcrypt on -lfreebl3.
3253
3254         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3255         preadv/pwritev in 2.6.30.
3256
3257         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3258         instead of __strcasecmp.
3259
3260         * string/stratcliff.c (do_test): Add memchr tests..
3261         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3262         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3263         first read quad word.
3264
3265 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3266
3267         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3268         * string/tst-svc.input: Add new test case.
3269         * string/tst-svc.expect: Adjust.
3270         * string/Makefile: Don't ignore tst-svc error.
3271
3272         * sysdeps/x86_64/memchr.S: New file.
3273
3274         * resolv/resolv.h (RES_SNGLKUP): Define.
3275         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3276         * resolv/res_send.c (send_dg): If we sent two requests at once and
3277         only get one reply before timeout switch to mode where we send the
3278         second request only after the first answer has been received.
3279
3280 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3281
3282         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3283         * sysdeps/x86_64/strchr.S: Likewise.
3284
3285 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3286
3287         * configure.in: We need to test for the compiler earlier.
3288
3289         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3290         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3291         GLIBC_2.10.
3292         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3293         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3294         and pwritev.
3295         * misc/preadv.c: New file.
3296         * misc/preadv64.c: New file.
3297         * misc/pwritev.c: New file.
3298         * misc/pwritev64.c: New file.
3299         * sysdeps/posx/preadv.c: New file.
3300         * sysdeps/posx/preadv64.c: New file.
3301         * sysdeps/posx/pwritev.c: New file.
3302         * sysdeps/posx/pwritev64.c: New file.
3303         * sysdeps/unix/sysv/linux/preadv.c: New file.
3304         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3305         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3306         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3307         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3308         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3309
3310         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3311         compatibility code.
3312         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3313
3314         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3315         __ASSUME_COMPLETE_READV_WRITEV.
3316         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3317         with modern kernels.
3318         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3319
3320         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3321         to free a possible malloced buffer in case of cancellation.
3322         * sysdeps/posix/writev.c: Likewise for write.
3323
3324 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3325
3326         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3327
3328         * configure.in: Recognize --enable-nss-crypt.
3329         * config.make.in: Add nss-crypt entry.
3330         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3331         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3332         and include path for NSS directory to compiler for md5-crypt,
3333         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3334         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3335         function implementation, use NSS.  Introduce wrappers around the
3336         hash function calls.  Little code size optimization.
3337         * crypt/sha256-crypt.c: Likewise.
3338         * crypt/sha512-crypt.c: Likewise.
3339         * scripts/check-local-headers.sh: Ignore nss3 directory.
3340
3341         * configure.in: Rename pic_default to libc_cv_pic_default.
3342         * config.make.in: Likewise.
3343
3344 2009-04-01  Roland McGrath  <roland@redhat.com>
3345
3346         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3347         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3348         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3349         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3350         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3351         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3352         (R_SPARC_NUM): Update.
3353         From Dave Miller <davem@davemloft.net>.
3354
3355 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3356
3357         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3358
3359 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3360
3361         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3362         those which are used.
3363         * elf/dl-addr.c: Likewise.
3364         * elf/dl-caller.c: Likewise.
3365         * elf/dl-fini.c: Likewise.
3366         * elf/dl-iteratephdr.c: Likewise.
3367         * elf/dl-libc.c: Likewise.
3368         * elf/dl-load.c: Likewise.
3369         * elf/dl-support.c: Likewise.
3370         * elf/dl-sym.c: Likewise.
3371         * elf/rtld.c: Likewise.
3372         * sysdeps/generic/ldsodefs.h: Likewise.
3373
3374         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3375         * elf/dl-minimal.c: Likewise.
3376         * elf/dl-misc.c: Likewise.
3377         * elf/rtld.c: Likewise.
3378         * sysdeps/generic/ldsodefs.h: Likewise.
3379
3380 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3381
3382         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3383         Avoid reuse of complex expression.
3384
3385         * po/fr.po: Update from translation team.
3386
3387 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3388
3389         * include/dirent.h: Yet more changes to match sort function type
3390         change.
3391         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3392         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3393         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3394
3395 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3396
3397         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3398
3399 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3400
3401         * nscd/connections.c (restart): Try to preserve the process name
3402         by reading the /proc/self/exe symlink and using the return name.
3403         Patch by Jeff Bastian <jbastian@redhat.com>.
3404
3405 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3406
3407         [BZ #9733]
3408         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3409         if we are not loading a new audit library.
3410         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3411         Only use profiling trampoline for auditing if we are not relocating
3412         an audit library.
3413         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3414         * elf/rtld.c: Likewise.
3415         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3416
3417         * elf/rtld.c (dl_main): Extend help message for --audit option.
3418
3419         [BZ #9759]
3420         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3421         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3422         * dirent/alphasort.c: Adjust implementation to type change.
3423         * dirent/alphasort64.c: Likewise.
3424         * dirent/scandir.c: Likewise.
3425         * dirent/versionsort.c: Likewise.
3426         * dirent/versionsort64.c: Likewise.
3427         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3428         declaration.
3429         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3430         declaration.
3431
3432         [BZ #9880]
3433         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3434         correctly.  Set segleft member in output as required.
3435         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3436         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3437
3438         [BZ #9881]
3439         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3440         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3441         * inet/Makefile (tests): Add tst-inet6_rth.
3442         * inet/tst-inet6_rth.c: New file.
3443
3444         [BZ #5807]
3445         * string/strlen.c (strlen): Fix omission in the expression to test
3446         for NUL bytes.
3447
3448 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3449
3450         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3451
3452         * elf/dl-runtime.c (reloc_offset): Define.
3453         (reloc_index): Define.
3454         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3455         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3456         computing index from reloc_offset.
3457         (_dl_call_pltexit): Likewise.
3458         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3459         the relocation index to _dl_fixup.
3460         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3461         _dl_call_pltexit.
3462         * sysdeps/x86_64/dl-runtime.c: New file.
3463
3464         [BZ #9893]
3465         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3466         alignment of La_x86_64_regs.  Store xmm parameters.
3467         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3468
3469         [BZ #9913]
3470         * string/strverscmp.c (__strverscmp): Fix case of different digits
3471         in fractional part of string.
3472         Patch by Jingyu Liu <jyliu@fortinet.com>.
3473         * string/Makefile (tests): Add tst-svc2.
3474         * string/tst-svc2.c: New file.
3475
3476         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3477
3478         * locale/iso-639.def: Add Min Nan.
3479
3480 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3481
3482         [BZ #9948]
3483         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3484
3485 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3486
3487         * elf/dl-sysdep.c (auxvars): Compress data structure.
3488
3489         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3490         STT_GNU_IFUNC handling.
3491         (elf_machine_rela): Likewise.
3492
3493 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3494
3495         * config.h.in (USE_MULTIARCH): Define.
3496         * configure.in: Handle --enable-multi-arch.
3497         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3498         (_dl_fixup_profile): Likewise.
3499         * elf/do-lookup.c (dl_lookup_x): Likewise.
3500         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3501         * elf/elf.h (STT_GNU_IFUNC): Define.
3502         * include/libc-symbols.h (libc_ifunc): Define.
3503         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3504         framework in init-arch.h to get CPUID values.
3505         * sysdeps/x86_64/multiarch/Makefile: New file.
3506         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3507         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3508         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3509
3510         * config.make.in (experimental-malloc): Define.
3511         * configure.in: Handle --enable-experimental-malloc.
3512         * malloc/Makefile: Handle experimental-malloc flag.
3513         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3514         * malloc/arena.c: Likewise.
3515         * malloc/hooks.c: Likewise.
3516         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3517
3518 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3519
3520         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3521         prediction.  A few size optimizations.
3522
3523 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3524
3525         * time/tzset.c: Optimize a bit for size.
3526
3527 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3528
3529         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3530         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3531
3532         * elf/sprof.c: Avoid warning about multi-line comment.
3533
3534 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3535
3536         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3537         DST name.
3538         * time/tst-posixtz.c: Add tests for quoted timezone names.
3539
3540 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3541
3542         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3543         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3544         200809L instead of 200112L.
3545         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3546         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3547
3548         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3549         instead of __quick_exit_funcs to __run_exit_handlers.
3550         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3551         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3552         (__cxa_at_quick_exit): Remove attribute_hidden.
3553         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3554         to __run_exit_handlers.
3555         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3556         attribute_hidden.
3557
3558 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3559
3560         * po/id.po: Update from translation team.
3561
3562 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3563
3564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3565         .machine push; .machine "power6" and .machine pop around mtfsf
3566         insns outside of _ARCH_PWR6 define.
3567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3569         Likewise.
3570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3571         Likewise.
3572         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3573         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3574         relax_fenv_state): Likewise.
3575
3576 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3577
3578         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3579         cxa_at_quick_exit.
3580         (static-only-routines): Add at_quick_exit.
3581         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3582         GLIBC_2.10.
3583         * stdlib/quick_exit.c: New file.
3584         * stdlib/at_quick_exit.c: New file.
3585         * stdlib/cxa_at_quick_exit.c: New file.
3586         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3587         it appropriately.
3588         (__internal_atexit): New function.
3589         (__new_exitfn): Now takes parameter to point to the list to use.
3590         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3591         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3592         (exit): ...here.  Just call __run_exit_handlers appropriately.
3593         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3594         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3595         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3596         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3597
3598         * po/id.po: Update from translation team.
3599
3600 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3601
3602         * po/ru.po: Update from translation team.
3603
3604 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3605
3606         * po/nl.po: Update from translation team.
3607
3608 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3609
3610         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3611         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3612         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3613         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3614         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3615         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3616         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3617
3618         * po/pl.po: Update from translation team.
3619
3620 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3621
3622         [BZ #7083]
3623         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3624         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3625         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3626         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3627         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3628         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3629         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3630         for GLIBC_2.10.
3631         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3632         Add fallocate and fallocate64.
3633
3634         * io/fcntl.h: Pretty printing.
3635
3636 2009-03-02  Richard Guenther  <rguenther@suse.de>
3637
3638         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3639         attribute also for non-C99 inline semantics variant.
3640
3641 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3642
3643         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3644         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3645         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3646         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3648         Likewise.
3649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3650         Likewise.
3651
3652 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3653
3654         * po/cs.po: Update from translation team.
3655
3656 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3657
3658         * po/bg.po: Update from translation team.
3659         * po/sv.po: Likewise.
3660         * po/fi.po: Likewise.
3661         * po/vi.po: Likewise.
3662
3663 2009-02-27  Roland McGrath  <roland@redhat.com>
3664
3665         * Makeconfig (%.v.i): Depend on Makeconfig.
3666         Exclude % lines from initial #-comment removal.
3667
3668 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3669
3670         * po/ko.po: Update from translation team.
3671
3672 2009-02-26  Roland McGrath  <roland@redhat.com>
3673
3674         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3675         avoids unused warning.
3676
3677 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3678             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3679
3680         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3681         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3682         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3683         and asm/user.h.  Include asm/ptrace.h.
3684         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3685         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3686         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3687         Undefine.
3688         (start_thread): Don't undefine.
3689         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3690         Define.
3691
3692 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3693
3694         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3695         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3696         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3697         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3698         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3699         200112L to 200809L.
3700         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3701         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3702         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3703         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3704         _SC_THREAD_ROBUST_PRIO_PROTECT.
3705         * posix/unistd.h: fexecve is in POSIX 2008.
3706         * time/time.h: strftime_l is in POSIX 2008.
3707         * io/sys/stat.h: futimens is in POSIX 2008.
3708         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3709         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3710         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3711         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3712         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3713         open_memstream, and vdprintf are in POSIX 2008.
3714
3715 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3716
3717         * include/features.h: Define macros for XPG7/POSIX 2008.
3718         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3719         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3720         POSIX 2008.
3721         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3722         * locale/xlocale.h: Define locale_t type.
3723         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3724         in POSIX 2008.  Don't define locale_t here.
3725         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3726         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3727         UTIME_OMIT only with __USE_ATFILE.
3728         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3729         * stdio-common/psiginfo.c: New file.
3730         * stdio-common/psiginfo-data.h: New file.
3731         * stdio-common/psiginfo-define.h: New file.
3732         * stdio-common/Makefile (routines): Add psiginfo.
3733         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3734         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3735         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3736         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3737         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3738         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3739         * io/sys/stat.h: Move mknodat definition into same conditional as
3740         mknod.
3741         * time/sys/time.h: futimesat is not among the functions accepted
3742         into the POSIX standard.
3743
3744         * include/features.h: If no feature selection given and we select
3745         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3746         * posix/Versions: Export __posix_getopt.
3747         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3748         Use it to alternatively initialize __posixly_correct.
3749         (_getopt_internal_r): Take addition parameter.  Pass on to
3750         _getopt_initialize.
3751         (_getopt_internal): Take addition parameter.  Pass on to
3752         _getopt_internal_r.
3753         (getopt): Pass additional zero to _getopt_internal.
3754         (__posix_getopt): New function.
3755         * posix/getopt.h: Add redirection for getopt.
3756         * posix/getopt1.c (getopt_long): Pass additional zero to
3757         _getopt_internal.
3758         (getopt_long_only): Likewise.
3759         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3760         (_getopt_long_only_r): Likewise.
3761         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3762         _getopt_internal_r.
3763
3764 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3765
3766         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3767         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3768         * sysdeps/posix/sysconf.c (__sysconf): Handle
3769         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3770         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3771
3772 2009-02-24  Roland McGrath  <roland@redhat.com>
3773
3774         [BZ #9895]
3775         * README.template: Reworded not to use substituted version number.
3776         Renamed to ...
3777         * README: ... here (no longer generated).
3778         * Makefile (README): Target removed.
3779
3780 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3781
3782         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3783         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3784         instead.
3785
3786         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3787
3788         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3789
3790 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3791
3792         * po/bg.po: Update from translation team.
3793
3794 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3795
3796         * stdlib/monetary.h: Uglify function parameter names.
3797         * sunrpc/rpc/pmap_clnt.h: Likewise.
3798         * sunrpc/rpc/svc.h: Likewise.
3799         * sunrpc/rpc/xdr.h: Likewise.
3800         * sunrpc/rpc/clnt.h: Likewise.
3801         * resolv/netdb.h: Likewise.
3802         * resolv/arpa/nameser.h: Likewise.
3803         * resolv/resolv.h: Likewise.
3804         * argp/argp.h: Likewise.
3805         * locale/langinfo.h: Likewise.
3806         * io/sys/stat.h: Likewise.
3807         * posix/spawn.h: Likewise.
3808         * nis/rpcsvc/nislib.h: Likewise.
3809         * malloc/obstack.h: Likewise.
3810         * sysdeps/ia64/bits/link.h: Likewise.
3811         * sysdeps/i386/bits/link.h: Likewise.
3812         * sysdeps/s390/bits/link.h: Likewise.
3813         * sysdeps/powerpc/bits/link.h: Likewise.
3814         * sysdeps/x86_64/bits/link.h: Likewise.
3815         * sysdeps/sparc/bits/link.h: Likewise.
3816         * sysdeps/sh/bits/link.h: Likewise.
3817         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3818         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3819         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3820         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3821
3822 2008-12-01  Fredrik Unger  <fred@tree.se>
3823
3824         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3825         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3826         _FP_UNPACK_RAW_2, fix up first argument.
3827
3828 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3829
3830         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3831         (GET_NPROCS_PARSER): Change parameters and use next_line.
3832         (__get_nprocs): Rewrite to not use stdio routines.
3833         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3834         Change parameters and use next_line.
3835
3836 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3837
3838         [BZ #5381]
3839         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3840         Change mempool_alloc prototype.
3841         * nscd/mem.c (gc): Don't handle mem_in_flight.
3842         (mempool_alloc): Third parameter now only indicates whether this is the
3843         first call (to allocate data) or not.  If it is, get db rdlock.
3844         Release it on error.  Don't handle mem_in_flight.
3845         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3846         Adjust third parameter of mempool_alloc calls.
3847         Nothing to do here in case mempool_alloc fails.
3848         Avoid local variable shadowing parameter.  No need to get db rdlock
3849         before calling cache_add.
3850         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3851         no mem_in_flight array anymore.
3852         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3853         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3854         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3855         in case mempool_alloc fails. No need to get db rdlock before calling
3856         cache_add.
3857         * nscd/hstcache.c (cache_addhst): Likewise.
3858         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3859         * nscd/servicescache.c (cache_addserv): Likewise.
3860         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3861
3862 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3863
3864         * po/lt.po: Update from translation team.
3865
3866 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3867
3868         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3869         defined, allow additional data to be added using the optional
3870         MORE_ELF_HEADER_DATA macro.
3871         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3872         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3873
3874 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3875
3876         * include/atomic.h: Define catomic_and if not already defined.
3877         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3878         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3879
3880 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3881
3882         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3883         Change all callers.
3884         (_int_realloc): Likewise.  Third argument is now padded size
3885         All _int_* functions are now static.
3886
3887         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3888         * malloc/arena.c: Likewise.
3889         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3890         functions.
3891
3892         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3893         easily.
3894
3895         * malloc/malloc.c: Add branch prediction for use of the hooks.
3896
3897         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3898
3899 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3900
3901         [BZ #7095]
3902         * bits/confname.h: Add SUSv7 macros for getconf environments.
3903         * bits/environments.h: Likewise.
3904         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3905         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3906         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3907         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3908         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3909         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3910         * posix/getconf.c: Likewise.
3911         * posix/sysconf.c: Likewise.
3912         * sysdeps/posix/sysconf.c: Likewise.
3913         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3914         environments.
3915
3916 2009-01-16  Petr Baudis  <pasky@suse.cz>
3917
3918         [BZ #9753]
3919         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3920         even if we currently have zero nscount.
3921
3922 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3923
3924         [BZ #9781]
3925         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3926         the input line is too long.
3927
3928         * po/Makefile (libc.pot): Add f_print as function taking c-format
3929         parameter.
3930
3931         * debug/xtrace.sh: Unify translatable messages.
3932         * elf/ldd.bash.in: Likewise.
3933         * elf/sprof.c: Likewise.
3934         * locale/programs/locale.c: Likewise.
3935         * malloc/memusage.sh: Likewise.
3936         * nss/getent.c: Likewise.
3937
3938 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3939
3940         * debug/pcprofiledump.c (print_version,
3941         argp_program_version_hook): New function.
3942         * elf/ldconfig.c (more_help): New function.
3943         (argp): Use it.
3944         * elf/sln.c (usage): New function.
3945         (main): Support --help and --version.
3946         * malloc/memusagestat.c (print_version): New function.
3947         (argp_program_version_hook): New variable.
3948         * nscd/nscd.c (more_help): New function.
3949         (argp): Use it.
3950         * posix/getconf.c (main): Send --version output to stdout.
3951         Support --help.
3952         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3953         arguments.  All callers changed.
3954         (print_version): New function.
3955         (parseargs): Support --help and --version.
3956         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3957         changed.
3958         (print_version): New function.
3959         (main): Use getopt_long.  Support --help and --version.
3960         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3961         --version.
3962
3963 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3964
3965         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3966         (update_data): Fix handling of wrapping back
3967         to the beginning of the buffer.
3968
3969         [BZ #9823]
3970         * stdio-common/psignal.c (psignal): Fix test for empty string.
3971
3972 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3973
3974         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3975         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3976         move _null_auth to .rodata.
3977
3978         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3979         value of 24.
3980
3981         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3982
3983         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3984         today than when the original code was written.  Use larger
3985         buffers.  This also makes it unnecessary to have stat information,
3986         if this causes extra efforts.
3987         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3988         __alloc_dir.
3989
3990 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3991
3992         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3993         is set.
3994         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3995         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3996         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3997         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3998         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3999         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4000
4001 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4002
4003         * po/ru.po: Update from translation team.
4004
4005 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4006
4007         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4008         Add _tid slot to maintain consistency with kernel.
4009
4010 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4011
4012         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4013         incomplete characters at end of input buffer.
4014         * libio/Makefile (tests): Add tst-fgetwc.
4015         * libio/tst-fgetwc.c: New file.
4016         * libio/tst-fgetwc.input: New file.
4017
4018 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4019
4020         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4021
4022 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4023
4024         [BZ #9793]
4025         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4026         *OUTBUFSTART unless the whole output fit into the buffer.
4027         * iconv/Makefile (tests): Add tst-iconv4.
4028         * iconv/tst-iconv4.c: New file.
4029
4030 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4031
4032         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4033         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4034
4035 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4036
4037         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4038         newer linker scripts.
4039
4040 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4041
4042         [BZ #7040]
4043         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4044         inotify_rm_watch should have type int.
4045
4046 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4047
4048         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4049         Make aligned_restore_vmx a local symbol.
4050         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4051         Likewise.
4052
4053 2009-01-30  Andreas Jaeger  <aj@suse.de>
4054
4055         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4056         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4057         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4058         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4059         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4060         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4061         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4062
4063 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4064
4065         [BZ #9726]
4066         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4067         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4068
4069 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4070
4071         [BZ #9726]
4072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4073         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4075         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4076
4077 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4078
4079         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4080         memcpy instead of memcmp.
4081         (_dl_setup_pointer_guard): Likewise.
4082
4083 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4084
4085         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4086         manipulated brk, use malloc_printerr.
4087         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4088         requests.
4089
4090 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4091
4092         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4093         rindex): For C++ add inlines so that they can be recognized as
4094         builtins.
4095         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4096
4097 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4098             Jakub Jelinek  <jakub@redhat.com>
4099
4100         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4101         * wcsmbs/wchar.h: Likewise.
4102
4103 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4104
4105         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4106         (stackinfo_sub_sp): Define.
4107
4108 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4109
4110         [BZ #9750]
4111         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4112         * include/alloca.h (alloca_account): Define.
4113         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4114         (stackinfo_sub_sp): Define.
4115
4116         * nscd/connections.c (nscd_init): If database file access fails
4117         check whether this is due to permission problems and bail in that
4118         case.
4119
4120         [BZ #9741]
4121         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4122         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4123
4124 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4125
4126         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4127         Add "t" to clobber list.
4128         (INTERNAL_SYSCALL_NCS): Likewise.
4129
4130 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * nss/getent.c (print_networks): Don't print comma between aliases.
4133
4134 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4135
4136         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4137
4138         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4139         the hash table.
4140         * misc/Makefile (tests): Add bug-hsearch1.
4141         * misc/bug-hsearch1.c: New file.
4142
4143 2009-01-22  Roland McGrath  <roland@redhat.com>
4144
4145         * Makeconfig (%.v.i): Strip trailing # comments,
4146         not only whole-line comments.
4147
4148 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4149
4150         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4151         one parameter.  If non-NULL use it to initialize return value.
4152         (_dl_setup_pointer_guard): New function.
4153         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4154         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4155         * elf/rtld.c (security_init): Pass _dl_random to
4156         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4157         pointer_chk_guard.
4158         * elf/dl-sysdep.c (_dl_random): New variable.
4159         (_dl_sysdep_start): Handle AT_RANDOM.
4160         (_dl_show_auxv): Likewise.
4161         * elf/dl-support.c (_dl_random): New variable.
4162         (_dl_aux_init): Handle AT_RANDOM.
4163         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4164         to _dl_setup_stack_chk_guard.
4165
4166         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4167
4168 2009-01-10  Roland McGrath  <roland@redhat.com>
4169
4170         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4171
4172 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4173
4174         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4175
4176         [BZ #9706]
4177         * nss/nss_files/files-parse.c (strtou32): New function.
4178         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4179         across 32-bit and 64-bit platforms.
4180         (INT_FIELD_MAYBE_NULL): Likewise.
4181
4182 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4183
4184         [BZ #9720]
4185         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4186         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4187         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4188         Likewise.
4189
4190 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4191
4192         [BZ #697]
4193         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4194         being NULL also if there are no backreferences.
4195         * posix/rxspencer/tests: Add testcases.
4196
4197 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4198
4199         [BZ #9697]
4200         * posix/bug-regex17.c: Add testcases.
4201         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4202         handling.
4203
4204 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4205
4206         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4207         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4208         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4209         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4210         for elf subdir.
4211         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4212         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4213         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4214         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4215         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4216         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4217
4218 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4219
4220         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4221         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4222         re_string_skip_chars, re_string_reconstruct): Likewise.
4223         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4224
4225 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4226
4227         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4228         adjust the buffer alignment.
4229
4230 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4231
4232         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4233         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4234         net/route.h.
4235
4236         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4237         flavor to description only when flavor is not NULL.
4238
4239         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4240         mutex after SIGIO/SIGURG lookup loop.
4241
4242 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4243
4244         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4245
4246 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4247
4248         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4249         handling.
4250
4251 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4252
4253         * sysdeps/unix/sysv/linux/kernel-features.h
4254         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4255
4256         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4257         if no output is written.
4258
4259         * version.h: Bump to 2.10 development.
4260
4261         * posix/getconf.c: Update copyright year.
4262         * nss/getent.c: Likewise.
4263         * iconv/iconvconfig.c: Likewise.
4264         * iconv/iconv_prog.c: Likewise.
4265         * elf/ldconfig.c: Likewise.
4266         * catgets/gencat.c: Likewise.
4267         * csu/version.c: Likewise.
4268         * elf/ldd.bash.in: Likewise.
4269         * elf/sprof.c (print_version): Likewise.
4270         * locale/programs/locale.c: Likewise.
4271         * locale/programs/localedef.c: Likewise.
4272         * nscd/nscd.c (print_version): Likewise.
4273         * debug/xtrace.sh: Likewise.
4274         * malloc/memusage.sh: Likewise.
4275         * malloc/mtrace.pl: Likewise.
4276         * debug/catchsegv.sh: Likewise.
4277
4278 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4279
4280         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4281         script.
4282
4283 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4284
4285         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4286         gethostbyname4_r function call succeeded, just leave the loop.
4287
4288         [BZ #9694]
4289         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4290         very end.
4291         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4292         * wctype/Makefile (tests): Add bug-wctypeh.
4293         * wctype/bug-wctypeh.c: New file.
4294
4295         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4296         LOCALDOMAIN is defined.
4297         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4298
4299         * sysdeps/x86_64/bits/select.h: New file.
4300
4301         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4302
4303 2008-12-21  Bruno Haible  <bruno@clisp.org>
4304
4305         [BZ #9677]
4306         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4307         if no output is written.
4308
4309 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4310
4311         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4312         libc internal symbol __dup2 to avoid access through the PLT.
4313
4314 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4315
4316         [BZ #6545]
4317         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4318         available only for __USE_GNU.
4319
4320         * inet/Makefile (tests): Add tst-getni2.
4321         * inet/tst-getni2.c: New file.
4322
4323         [BZ #7080]
4324         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4325         NULL when NI_NAMEREQD is set.
4326         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4327         * inet/Makefile (tests): Add tst-getni1.
4328         * inet/tst-getni1.c: New file.
4329
4330 2008-12-03  Petr Baudis  <pasky@suse.cz>
4331
4332         [BZ #7067]
4333         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4334         instead of prune_lock.
4335         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4336         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4337
4338 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4339
4340         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4341         use.
4342
4343         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4344         handling.
4345
4346         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4347         after reading name server list.
4348
4349         [BZ #7058]
4350         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4351         handling for host name aliases.
4352
4353 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4354
4355         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4356         instead of doing things manually.
4357
4358 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4359
4360         * posix/regex_internal.h (build_wcs_upper_buffer):
4361         Return type is reg_error_t.
4362
4363 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4364
4365         * posix/globtest.sh: Use mktemp to create temporary file and
4366         directory.
4367
4368         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4369         sets correctly.
4370         (__CPU_CLR_S): Likewise.
4371         (__CPU_ISSET_S): Likewise.
4372
4373 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4374             Ulrich Drepper  <drepper@redhat.com>
4375
4376         * scripts/firstversion.awk: Use custom comparison function to compare
4377         version numbers.
4378         * scripts/versions.awk: Use sort invocation which can handle
4379         multi-digit sub-version numbers.
4380
4381 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4382
4383         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4384         * locale/iso-639.def: Add Chhattisgarhi entry.
4385
4386 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4387
4388         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4389         ESRCH return value.
4390         (_nss_dns_gethostbyname4_r): Likewise.
4391         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4392         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4393         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4394         the no_data variable.
4395
4396         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4397         information at the correct index.
4398
4399         * socket/sys/socket.h: Declare accept4.
4400         * socket/accept4.c: New file.
4401         * sysdeps/unix/sysv/linux/accept4.c: New file.
4402         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4403         * socket/Makefile (routines): Add accept4.
4404         * socket/Versions: Export accept4 with version GLIBC_2.10.
4405         * socket/paccept.c: Removed.
4406         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4407         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4408         * Versions.def: Define GLIBC_2.10 for libc.
4409         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4410
4411         * nscd/connections.c: Use accept4.
4412
4413         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4414
4415 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4416
4417         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4418         flag already set.
4419
4420         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4421         not exist.
4422         * stdlib/Makefile (tests): Add tst-unsetenv1.
4423         * stdlib/tst-unsetenv1.c: New file.
4424
4425 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4426
4427         * login/utmp_file.c (file_writable): New variable.
4428         (setutent_file): Don't try to open file for writing.
4429         (pututline_file): Before writing, make descriptor writable if
4430         necessary.
4431
4432 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4435         to IPv4 or IPv6 if an interface has been found.
4436
4437 2008-11-26  Roland McGrath  <roland@redhat.com>
4438
4439         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4440         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4441
4442         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4443         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4444         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4445
4446         * elf/elf.h (NT_386_IOPERM): New macro.
4447         (NT_PPC_VSX): New macro.
4448
4449 2008-11-25  Roland McGrath  <roland@redhat.com>
4450
4451         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4452         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4453         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4454         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4455         Subdirectories moved to ports repository.
4456         * configure.in (base_machine): Remove alpha case.
4457
4458 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4459
4460         * sysdeps/mach/strerror_l.c: New file.
4461
4462 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4463
4464         [BZ #6411]
4465         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4466         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4467         magic numbers.
4468         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4469         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4470         (relax_fenv_state): Same as above.
4471         (FPSCR_29): Reserve bit in ISA 2.05.
4472         (FPSCR_NI): Provide define for compat.
4473         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4474         magic numbers.
4475         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4476         magic numbers.
4477         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4478         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4479         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4480         access to hwcap to account for hwcap size increase to uint64_t.
4481         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4482         Likewise.
4483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4484         (*setcontext): Likewise.
4485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4486         New file.
4487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4488         New file.
4489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4490         (*setcontext): dynamically select mtfsf insn based on
4491         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4492         increase to uint64_t.
4493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4494         (*swapcontext): dynamically select mtfsf insn based on
4495         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4496         increase to uint64_t.
4497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4498         New file.
4499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4500         New file.
4501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4502         (*setcontext): dynamically select mtfsf insn based on
4503         PPC_FEATURE_HAS_DFP.
4504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4505         (*swapcontext): dynamically select mtfsf insn based on
4506         PPC_FEATURE_HAS_DFP.
4507
4508 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4509
4510         * version.h: Bump for 2.9 release.
4511         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4512
4513         [BZ #7029]
4514         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4515         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4516         all the rounding.
4517
4518 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4519
4520         [BZ #7009]
4521         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4522         unknown request types for now.
4523
4524 2008-11-11  Roland McGrath  <roland@redhat.com>
4525
4526         * sysdeps/x86_64/configure: New file.
4527
4528         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4529         * configure: Regenerated.
4530
4531 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4532
4533         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4534         correct instruction to remove the stack frame.
4535
4536 2008-11-03  Michael Matz  <matz@suse.de>
4537
4538         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4539         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4540
4541 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4542
4543         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4544         Remove.
4545
4546         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4547         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4548         of the thread variable instead of void *.
4549         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4550         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4551         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4552         __libc_tsd_define arguments.
4553         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4554         __libc_tsd_address arguments.  Remove union hack.
4555         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4556         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4557         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4558         Adjust __libc_tsd_{set,get} arguments.
4559         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4560         __libc_tsd_define arguments.
4561         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4562         arguments.
4563         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4564         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4565         (LOCALE): Adjust __libc_tsd_define arguments.
4566         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4567         arguments.
4568         (LOCALE): Adjust __libc_tsd_define arguments.
4569         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4570         arguments.
4571         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4572         arguments.
4573
4574 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4575
4576         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4577         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4578
4579 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4580
4581         [BZ #6966]
4582         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4583
4584 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4585             Ulrich Drepper  <drepper@redhat.com>
4586
4587         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4588         definition for GCC 3.1 and later.
4589
4590 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4591
4592         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4593         refetch dtv, as it might have changed.
4594         * elf/Makefile: Add rules to build and run tst-tls18.
4595         * elf/tst-tls18.c: New test.
4596         * elf/tst-tlsmod18a.c: New file.
4597
4598 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4599
4600         [BZ #6875]
4601         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4602
4603 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4604
4605         [BZ #6867]
4606         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4607
4608         [BZ #6919]
4609         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4610         Fix length of copy operation.
4611
4612 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4613
4614         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4615         and fix its calling convention.
4616
4617 2008-10-07  Andreas Schwab  <schwab@suse.de>
4618
4619         [BZ #6942]
4620         * resolv/res_send.c (send_vc): Fix last change.
4621         (send_dg): Align here as well.
4622
4623 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4624
4625         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4626         return value in case rlimit is RLIM_INFINITY.
4627
4628         [BZ #6947]
4629         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4630         for UL_SETFSIZE.
4631         * resource/Makefile (tests): Add bug-ulimit1.
4632         * resource/bug-ulimit1.c: New file.
4633
4634         [BZ #6974]
4635         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4636         without dot.  Properly terminate the string with a null byte.
4637         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4638
4639         [BZ #6980]
4640         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4641         negative sizees.
4642         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4643         negative __size.
4644
4645         [BZ #6995]
4646         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4647
4648 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4649
4650         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4651         abort if there is no initgroups_dyn function.
4652
4653         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4654         result if any of the queries really provided an answer.
4655
4656 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4657
4658         * po/lt.po: Update from translation team.
4659
4660 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4661
4662         * po/id.po: Update from translation team.
4663
4664 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4665
4666         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4667         Fix tests for existence of second reply.
4668
4669 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4670
4671         * po/id.po: New file.
4672         Contributed by the Indonesian translation team.
4673
4674 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4675
4676         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4677         initialization.
4678
4679 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4680
4681         * elf/Makefile: Add rules to build and run tst-tls17.
4682         * elf/tst-tls17.c: New test.
4683         * elf/tst-tlsmod17a.c: New file.
4684         * elf/tst-tlsmod17b.c: Likewise.
4685
4686 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4687
4688         * stdlib/divmod_1.c: Use correct type for dummy variable.
4689         * stdlib/mod_1.c: Likewise.
4690
4691 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4692
4693         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4694
4695 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4696
4697         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4698         __nonnull order for C++.
4699         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4700         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4701
4702 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4703
4704         * stdlib/longlong.h: Update from GCC.
4705
4706 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4707             David S. Miller  <davem@davemloft.net>
4708
4709         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4710         make sure any registers used with 64-bit 'branch-on-register'
4711         instructions have their top 32-bits clear.
4712         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4713         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4714
4715 2008-09-18  Andreas Schwab  <schwab@suse.de>
4716
4717         [BZ #6942]
4718         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4719         Properly handle partial reads.
4720
4721 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4722
4723         * elf/elf.h (STO_MIPS_PLT): New.
4724         (R_MIPS_COPY): New.
4725         (R_MIPS_JUMP_SLOT): New.
4726         (R_MIPS_NUM): Redefine to 128.
4727         (DT_MIPS_PLTGOT): New.
4728         (DT_MIPS_RWPLT): New.
4729         (DT_MIPS_NUM): Redefine to 0x35.
4730
4731 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4732
4733         * timezone/africa: Update from tzdata2008f.
4734         * timezone/asia: Likewise.
4735         * timezone/australasia: Likewise.
4736         * timezone/europe: Likewise.
4737         * timezone/leapseconds: Likewise.
4738         * timezone/northamerica: Likewise.
4739         * timezone/southamerica: Likewise.
4740         * timezone/zone.tab: Likewise.
4741
4742 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4743
4744         * nscd/connections.c: Disable use of paccept for now.
4745
4746 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4747
4748         * socket/Versions: Remove paccept export for GLIBC_2.9.
4749         * socket/Makefile (routines): Remove paccept.
4750         * socket/sys/socket.h: Remove paccept declaration.
4751
4752         * po/sv.po: Update from translation team.
4753
4754 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4755
4756         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4757         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4758
4759 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4760
4761         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4762         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4763
4764 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4765
4766         * sunrpc/rpc/svc.h: Declare svcfd_create.
4767         Patch by Michael Solberg <msolberg@redhat.com>.
4768
4769 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4770             Ulrich Drepper  <drepper@redhat.com>
4771
4772         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4773         _int_valloc fails.
4774         (public_pVALLOc): Likewise.
4775
4776 2008-09-02  Andreas Jaeger  <aj@suse.de>
4777
4778         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4779         commit.
4780
4781 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4782
4783         [BZ #6860]
4784         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4785
4786 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4787
4788         * Makefile (check-data): Check data directory in add-ons.
4789         * elf/Makefile (check-data): Likewise.
4790
4791 2008-08-18  Roland McGrath  <roland@redhat.com>
4792
4793         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4794         * configure: Regenerated.
4795         * config.make.in (cflags-cpu): New substituted variable.
4796         (with-cpu): Variable removed.
4797         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4798
4799 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4800
4801         [BZ #6845]
4802         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4803         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4804         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4805         redundant.  Functions which call floating point assembler operations
4806         should go into a sysdeps powerpc/fpu directory.
4807
4808 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4809
4810         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4811         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4812
4813 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4814
4815         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4816
4817         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4818         change related to AT_EXECFN.  We cannot use that string.
4819         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4820         _dl_execfn member.
4821         * elf/dl-support.c: Remove _dl_execfn variable.
4822         (_dl_aux_init): Remove handling of AT_EXECFN.
4823         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4824         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4825
4826 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4827
4828         [BZ #6544]
4829         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4830         byte gets added to writes and seeks from the end use the length of
4831         the buffer and not the currently terminating NUL byte.
4832
4833         [BZ #6634]
4834         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4835         Set to true if locking failed.
4836         (getutid_r_file): Adjust caller.
4837         (pututline_file): Likewise.  Return NULL in this case.
4838         Patch mostly by halesh.s@gmail.com.
4839
4840 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4841
4842         [BZ #6589]
4843         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4844         Define.
4845         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4846
4847 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4848
4849         [BZ #6839]
4850         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4851         macro since it is now available in elf/dynamic-link.h.
4852
4853 2008-08-12  Roland McGrath  <roland@frob.com>
4854
4855         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4856         in case used outside of libc.
4857         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4858
4859 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4860
4861         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4862         directly instead of going through dn_comp.
4863
4864 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4865
4866         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4867         Fix asm constraints.
4868
4869 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4870
4871         [BZ #6790]
4872         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4873         (IPV6_PMTUDISC_PROBE): Likewise.
4874
4875 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4876
4877         [BZ #6791]
4878         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4879
4880 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4881             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4882
4883         [BZ #6817]
4884         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4885         Added the members 'vsx' and 'arch_2_06'.
4886         (_dl_powerpc_platforms): Add the member 'power7'.
4887         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4888         to reflect the changes required by VSX and ISA 2.06.
4889         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4890         'power7'.
4891         Defined PPC_PLATFORM_POWER7.
4892         (_dl_string_platform): Add support for POWER7.
4893         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4894         capability and ISA 2.06.
4895
4896 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4897
4898         [BZ #6824]
4899         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4900         macro to detect use of 128 bit long double.
4901         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4902
4903 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4904
4905         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4906
4907         [BZ #5794]
4908         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4909         parameters.
4910         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4911         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4912
4913 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4914
4915         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4916         guaranteed to be large enough to read inotify event.  Ignore
4917         EAGAIN error.  Better error message.  Add branch predicition.
4918         (main_loop_epoll): Likewise.
4919
4920 2008-08-02  Roland McGrath  <roland@frob.com>
4921
4922         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4923         Add memory clobbers.
4924
4925 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4926
4927         * manual/arith.texi: Avoid @strong{Note:}.
4928         * manual/creature.texi: Likewise.
4929         * manual/filesys.texi: Likewise.
4930         * manual/math.texi: Likewise.
4931         * manual/memory.texi: Likewise.
4932         * manual/resource.texi: Likewise.
4933         * manual/syslog.texi: Likewise.
4934         * manual/time.texi: Likewise.
4935
4936         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4937         to prevent warning.
4938
4939 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4940
4941         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4942         new epoll_create1 interface.
4943         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4944         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4945         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4946
4947         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4948         (NS_GET32): Likewise.
4949
4950         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4951         syscalls, too.
4952
4953         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4954         use the AT_EXECFN value if it is no absolute path.
4955         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4956         __ASSUME_AT_EXECFN.
4957
4958         * Versions.def: Add GLIBC_2.9 to libresolv.
4959         * include/resolv.h: Remove hidden proto declarations for __ns_*
4960         functions.  Add them for __dn_count_labels and __p_secstodate.
4961         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4962         Define ns_msg_getflags macro here.
4963         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4964         and __p_secstodate.
4965         * resolv/Versions: Export functions from <arpa/nameser.h> from
4966         libresolv in version GLIBC_2.9.
4967         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4968         hidden definitions.
4969         * resolv/ns_netint.c: Likewise.
4970         * resolv/ns_parse.c: Likewise.
4971         * resolv/ns_print.c: Likewise.
4972         * resolv/ns_samedomain.c: Likewise.
4973         * resolv/ns_ttl.c: Likewise.
4974         * resolv/arpa/nameser_compat.h: Likewise.
4975         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4976         function calls.
4977         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4978         instead of ns_get16.
4979         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4980         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4981         (gaih_getanswer_slice): Likewise.
4982         * resolv/Makefile (libresolv-routines): Add ns_date.
4983         * resolv/ns_date.c: New file.
4984
4985         * elf/Makefile (check-localplt.out): Also check libresolv and
4986         libcrypt.
4987
4988 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4989
4990         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4991         __ASSUME_O_CLOEXEC.
4992
4993 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4994
4995         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4996         buffer passed to NSS functions.
4997
4998         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4999
5000         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5001         Define.
5002
5003         * misc/syslog.c (openlog_internal): Fix compile problem.
5004
5005 2008-07-28  Roland McGrath  <roland@redhat.com>
5006
5007         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5008
5009 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5010
5011         * io/ftw.c (add_object): Remove inline to avoid warning.
5012
5013         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5014
5015         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5016         Use it instead of locally defined resplen2 variable.
5017         (res_nsend): Adjust for __libc_res_nsend interface change.
5018         (send_vc): Initialize *resplen2 if necessary.  Read length of
5019         package into an appropriately aligned variable.  Store converted length
5020         in new variable and use it appropriately.
5021         Add branch prediction help.
5022         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5023         and pass it on to __libc_res_nsend.  Adjust all callers.
5024         (__libc_res_nsearch): Likewise.
5025         (__libc_res_nqeurydomain): Likewise.
5026         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5027         change.
5028         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5029         Define resplen2 variable and pass it to __libc_res_nsearch and then
5030         to gaih_getanswer.
5031         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5032         Add branch prediction.
5033         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5034         (gaih_getanswer): Don't decode second slice if first one failed due
5035         to a too small buffer.  Don't let not found status of second
5036         decoder shadow results of the first.
5037         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5038         and __libc_res_nquery interface changes
5039         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5040         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5041         __libc_res_nsearch, and __libc_res_nsend.
5042         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5043         change.
5044         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5045         __libc_res_nsearch interface changes.
5046
5047 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5048
5049         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5050
5051         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5052         file descriptors with close-on-exec set.
5053         (exec_comm_child): Fix the case where the write end of the pipe is
5054         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5055
5056         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5057         * io/pipe2.c: Likewise.
5058         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5059         instead of __ASSUME_PACCEPT.
5060         * include/unistd.h: Declare __have_pipe2.
5061         * libio/iopopen.c: Implement "e" flag.
5062         * libio/Makefile (tests): Add tst-popen1.
5063         * libio/tst-popen1.c: New file.
5064
5065         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5066         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5067
5068 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5069
5070         [BZ #6771]
5071         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5072         success call of _IO_SEEKOFF or calls which failed because the
5073         descriptor is for a pipe.
5074
5075         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5076         magic number.
5077
5078         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5079
5080         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5081         F_SETFD use if we know fopen set the flag.
5082
5083         * login/utmp_file.c (setutent_file): Minor optimization in case
5084         O_CLOEXEC is available.
5085
5086 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5087
5088         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5089         * elf/Makefile: Use pie-ccflag variable.
5090         * nscd/Makefile: Likewise.
5091         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5092
5093 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5094
5095         [BZ #6724]
5096         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5097         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5098         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5099         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5100         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5101         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5102         utmp32, utmpx32 and login32.
5103         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5104         versions of struct utmp functions to libc and libutil.
5105         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5106         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5107         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5108         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5109         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5110         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5111         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5112         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5113         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5114         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5115         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5116         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5117         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5118         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5119         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5120         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5121         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5122         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5123         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5124         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5125         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5126         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5127
5128 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5129
5130         * scripts/gen-as-const.awk: Generate more widely usable code by
5131         using 64-bit arithmetic.
5132
5133         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5134         the same treatment as narrow output code in last patch.
5135
5136         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5137
5138         [BZ #6763]
5139         * elf/dl-load.c (local_strdup): Remove inline.
5140         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5141         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5142         part of the object.
5143
5144         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5145
5146 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5147
5148         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5149         the new syscalls, too.
5150
5151         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5152         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5153
5154         [BZ #6698]
5155         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5156         parameter for end of buffer.  If temporary copy is too large use
5157         malloc.
5158         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5159         interface change.
5160         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5161         string rewrite when allocating buffer.
5162
5163         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5164         syscalls, too.
5165
5166         * nscd/connections.c (nscd_init): Clean up fcntl call.
5167
5168         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5169         SOCK_NONBLOCK if possible.
5170
5171         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5172         SOCK_CLOEXEC if available.
5173
5174         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5175         __libc_clntudp_bufcreate_internal.
5176         * include/sys/socket.h: Declare __have_sock_cloexec.
5177         * socket/Makefile (aux): Add have_sock_cloexec.
5178         * socket/have_sock_cloexec.c: New file.
5179         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5180         __libc_clntudp_bufcreate.
5181         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5182         which takes an additional parameter.  Create socket with non-blocking
5183         mode and close-on-exec flag set, if wanted.
5184         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5185         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5186         instead of clntudp_create.  The socket has already the close-on-exec
5187         flag set if SOCK_CLOEXEC is defined.
5188
5189 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5190
5191         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5192         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5193         appropriate.
5194         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5195         non-blocking mode by using socket, paccept, and inotify_init1.
5196
5197         * Versions.def (glibc): Add GLIBC_2.9.
5198         * io/Makefile (routines): Add dup3 and pipe2.
5199         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5200         * io/dup3.c: New file.
5201         * io/pipe2.c: New file.
5202         * posix/unistd.h: Declare dup3 and pipe2.
5203         * socket/Makefile (routines): Add paccept.
5204         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5205         * socket/paccept.c: New file.
5206         * socket/sys/socket.h: Declare paccept.
5207         * sysdeps/unix/syscalls.list: Add entry for dup3.
5208         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5209         epoll_create2 and inotify_init1.
5210         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5211         * sysdeps/unix/sysv/linux/paccept.c: New file.
5212         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5213         possible.
5214         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5215         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5216         inotify_init1, and pipe2 entries.
5217         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5218         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5219         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5220         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5221         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5222         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5223         SOCK_NONBLOCK.
5224         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5225         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5226         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5227         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5228         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5229         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5230         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5231         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5232         EPOLL_NONBLOCK.  Declare epoll_create2.
5233         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5234         EFD_NONBLOCK.
5235         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5236         IN_NONBLOCK.  Declare inotify_init1.
5237         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5238         SFD_NONBLOCK.
5239         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5240         TFD_NONBLOCK.
5241
5242         * elf/elf.h: Define AT_EXECFN.
5243         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5244         LD_ORIGIN_PATH.
5245         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5246         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5247         if __ASSUME_AT_EXECFN is defined.
5248         (_dl_aux_init): Handle AT_EXECFN.
5249         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5250         for 2.6.27 and up.
5251         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5252         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5253         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5254         _dl_execfn if available and avoid compatibility code if
5255         __ASSUME_AT_EXECFN is defined.
5256
5257         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5258         _dl_discover_osversion only for older kernels.
5259
5260 2008-07-22  Roland McGrath  <roland@frob.com>
5261
5262         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5263
5264 2008-07-21  Roland McGrath  <roland@frob.com>
5265
5266         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5267         returned too much data out of line.
5268
5269 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5270
5271         * locale/setlocale.c (setname): Remove inline to avoid compiler
5272         warning.
5273
5274         [BZ #6712]
5275         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5276
5277 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5278
5279         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5280         doesn't manage to write anything, fail.
5281
5282         * malloc/hooks.c (__malloc_check_init): Remove printf.
5283
5284 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5285
5286         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5287
5288 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5289
5290         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5291         from inotify.
5292         (main_loop_epoll): Likewise.
5293
5294 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5295
5296         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5297
5298         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5299         if DEBUG is defined.
5300
5301         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5302         query.  Adjust buffer size computation for padding.
5303
5304 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5305
5306         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5307         * stdio-common/tst-setvbuf1.c: New file.
5308         * stdio-common/tst-setvbuf1.expect: New file.
5309
5310         [BZ #6719]
5311         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5312         when selecting fully-buffered stream.
5313         Patch by Wang Xin <wxinee@gmail.com>.
5314
5315 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5316
5317         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5318         (__open_2): New function.
5319         (__open64_2): New alias to __open_2.
5320         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5321         (__openat_2): New function.
5322         (__openat64_2): New alias to __openat_2.
5323
5324 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5325
5326         [BZ #6723]
5327         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5328
5329 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5330
5331         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5332         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5333         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5334         __hurd_dfail.
5335         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5336         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5337         * sysdeps/mach/hurd/send.c (__send): Likewise.
5338         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5339         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5340
5341 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5342
5343         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5344         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5345         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5346         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5347         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5348         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5349
5350 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5351
5352         [BZ #6657]
5353         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5354         of %EY.
5355         Patch by Petr Baudis.
5356
5357 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5358
5359         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5360         Patch by Peter Jones <pjones@redhat.com>.
5361
5362 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5363
5364         [BZ #6654]
5365         * stdlib/canonicalize.c (__realpath): readlink can write too much
5366         into the buffer on platforms without PATH_MAX.
5367
5368 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5369
5370         [BZ #6653]
5371         * posix/tst-regex.c (main): Rename to...
5372         (do_test): ... this. Remove cmdline option processing.
5373         (TIMEOUT): Define.
5374         (TEST_FUNCTION): Define.
5375         (CMDLINE_OPTIONS): Define.
5376
5377 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5378
5379         [BZ #5210]
5380         * configure.in: Add -Werror to -fstack-protector test to catch
5381         unsupported architectures.
5382         Patch by Gilles Esponasse <g.esp@free.fr>.
5383
5384 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5385
5386         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5387         getcontext returns ENOSYS.
5388
5389 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5390
5391         * nscd/connections.c (main_loop_poll): Fix test for read error.
5392         (main_loop_epoll): Likewise.
5393
5394 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5395
5396         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5397         better place so it is not called when nscd is used.
5398
5399         * nscd/connections.c: Also recognize and handle changes to the
5400         resolver configuration file.
5401
5402 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5403
5404         * time/strftime.c: Pass reference to tzset_called around to handle
5405         recursive calls.
5406
5407         [BZ #6612]
5408         * time/strftime.c (__strftime_internal): Call tzset() only
5409         when printing timezone-dependent values.
5410         Based on a patch by Petr Baudis <pasky@suse.cz>.
5411
5412         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5413         unconditionally use second gaih_getanswer_slice result.
5414
5415         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5416         (getaddrinfo): RES must always be non-NULL.
5417
5418 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5419
5420         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5421         cr[34] registers.
5422         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5423         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5424         Likewise.
5425         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5426         register.
5427
5428 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5429
5430         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5431         fields.
5432         * nscd/connections.c (inotify_fd): New variable.
5433         (nscd_init): Try to open an inotify descriptor.
5434         If successful, watch files for databases using inotify instead of
5435         having prune threads stat the files.
5436         (nscd_run_prune): Recognize clear_cache flag being set and call
5437         prune_cache appropriately.
5438         (main_loop_poll): Add inotify descriptor to wait set and handle the
5439         reported changes.
5440         (main_loop_epoll): Likewise.
5441         * nscd/cache.c (prune_cache): Don't stat files for databases if
5442         inotify is used.
5443         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5444         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5445
5446         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5447         fixed-size portion of the record.
5448         * nscd/servicescache.c (cache_addserv): Likewise.
5449         * nscd/pwdcache.c (cache_addpw): Likewise.
5450         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5451
5452 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5453
5454         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5455         out we don't use uninitialized memory.
5456
5457         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5458         the client.
5459
5460 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5461
5462         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5463         ignore T_DNAME messages.
5464         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5465
5466 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5467
5468         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5469         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5470
5471 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5472
5473         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5474         instead of portstr to nscd_getserv_r.  Patch by
5475         Roman Kagan <rkagan@mail.ru>.
5476
5477 2008-05-26  Jim Meyering  <meyering@redhat.com>
5478
5479         Remove more useless "if" tests before "free".
5480         * include/inline-hashtab.h (htab_delete): Likewise.
5481         * libio/freopen.c (freopen): Likewise.
5482         * libio/freopen64.c (freopen64): Likewise.
5483         * locale/programs/ld-collate.c (collate_read): Likewise.
5484         * misc/fstab.c (libc_freeres_fn): Likewise.
5485         * posix/glob.c (globfree): Likewise.
5486
5487 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5488
5489         * string/Makefile (strop-tests): Add memmem.
5490         * string/test-memmem.c: New file.
5491         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5492         (test_init): Size buf1 according to BUF1PAGES.
5493
5494 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5495
5496         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5497         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5498         (CFLAGS-scanf17.c): New.
5499         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5500         * stdio-common/scanf15.c (main): Likewise.
5501         * stdio-common/scanf16.c: New file.
5502         * stdio-common/scanf17.c: New file.
5503
5504 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5505
5506         * resolv/res_send.c (send_dg): If we already have one of two
5507         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5508         use the one answer insted of failing.
5509
5510 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5511
5512         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5513         being executed on PowerPC as the expected result exceeds IBM
5514         long double 128 __LDBL_MAX__.
5515
5516 2008-05-21  Roland McGrath  <roland@redhat.com>
5517
5518         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5519
5520         * Makefile (check-data): Use $(abi-name) before other guesses.
5521         Look in $(add-ons) dirs before scripts/data/.
5522         * elf/Makefile (check-data): Likewise.
5523
5524         * scripts/soversions.awk: Grok ABI line.
5525         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5526         Emit definition for abi-name variable.
5527
5528 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5529
5530         * string/endian.h: Define new fixed-size hto* and *toh macros only
5531         if [__USE_BSD].
5532
5533         * iconvdata/Depend: Add localedata.
5534
5535 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5536
5537         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5538
5539 2008-05-08  David S. Miller  <davem@davemloft.net>
5540
5541         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5542         HIDDEN_JUMPTARGET.
5543         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5544         (__SYSCALL_CLOBBERS): Remove %g* registers.
5545         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5546         (__SYSCALL_CLOBBERS): Likewise.
5547         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5548         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5549
5550 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5551
5552         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5553         (CALL_ERRNO_LOCATION): Define.
5554         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5555         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5556         (CALL_ERRNO_LOCATION): Define.
5557         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5558         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5559         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5560
5561 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5562
5563         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5564         variable.
5565
5566 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5567
5568         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5569         (FIRST_FRAME_POINTER): Define.
5570
5571 2008-05-09  David S. Miller  <davem@davemloft.net>
5572
5573         * sysdeps/sparc/sparc64/backtrace.c: New file.
5574
5575 2008-05-14  David S. Miller  <davem@davemloft.net>
5576
5577         * sysdeps/sparc/machine-gmon.h: New file.
5578         * sysdeps/sparc/sparc-mcount.S: Likewise.
5579         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5580         sysdep_routines in gmon directory.
5581
5582 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5583
5584         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5585
5586 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5587
5588         * resolv/res_query.c (__libc_res_nquery): In case one of two
5589         answer was too short don't try to read that answer's header.
5590
5591         * resolv/res_send.c (send_dg): In case of timeout and there are
5592         two queries and one has been answered, return value indicating
5593         success.
5594
5595 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5596
5597         * nscd/cache.c (cache_add): Take additional parameter specifying
5598         whether this is in response of a cache refill.  Check alignment
5599         of package data.  Revamp waking of pruning thread.
5600         (prune_cache): Small optimization.
5601         * nscd/nscd.h: Adjust cache_add prototypes.
5602         * nscd/aicache.c: Adjust cache_add calls.
5603         * nscd/grpcache.c: Likewise.
5604         * nscd/hstcache.c: Likewise.
5605         * nscd/initgrcache.c: Likewise.
5606         * nscd/pwdcache.c: Likewise.
5607         * nscd/servicescache.c: Likewise.
5608         * nscd/connections.c (restart): Really disable cache use before
5609         exec attempt.  If it fails, reenable cache.
5610         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5611         time to max to be able to notice concurrent cache additions.  Unlock
5612         prune_lock while performing gc.  Afterwards compute wakeup time with
5613         current wakeup_time value in mind.
5614
5615 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5616
5617         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5618
5619         * nscd/mem.c (gc): Correctly determine highest used array element
5620         in mark.
5621
5622         * nscd/mem.c (markrange): Add assert to check entries are all
5623         aligned.  Small cleanup in bitmap use.
5624
5625         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5626         blockoff of type nscd_ssize_t.
5627         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5628         (mempoll_alloc): Record block offset and not address.
5629
5630         * nscd/mem.c (gc): Fix test for stack overuse.
5631
5632         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5633         more asserts.
5634
5635         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5636         entry is available, believe it.
5637
5638         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5639         no answers return NSS_STATUS_NOTFOUND.
5640         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5641         buffer does not have any content.
5642
5643 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5644
5645         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5646
5647         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5648         lookup, don't assign canon unconditionally.
5649
5650 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5651
5652         * string/Makefile (distribute): Add str-two-way.h.
5653
5654 2008-03-29  Eric Blake  <ebb9@byu.net>
5655
5656         Rewrite string searches to O(n) rather than O(n^2).
5657         * string/str-two-way.h: New file.  For linear fixed-allocation
5658         string searching.
5659         * string/memmem.c: New implementation.
5660         * string/strstr.c: New implementation.
5661         * string/strcasestr.c: New implementation.
5662
5663 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5664
5665         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5666         opr.ctx_type.
5667         (calc_first): Initialize constraint field.
5668         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5669         Use search_duplicated_node to avoid loops.  Fix grammar.
5670         (duplicate_node): Merge constraint field for all node types.
5671         (calc_eclosure_iter): Look at constraint field for all node types.
5672         * posix/regex_internal.c (create_cd_newstate): Don't look at
5673         create_cd_newstate.
5674
5675 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5676
5677         [BZ #6428]
5678         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5679
5680         [BZ #6442]
5681         * string/endian.h: Add macros for fixed-size endian conversion.
5682         * bits/byteswap.h: Allow inclusion from <endian.h>.
5683         * sysdeps/i386/bits/byteswap.h: Likewise.
5684         * sysdeps/ia64/bits/byteswap.h: Likewise.
5685         * sysdeps/s390/bits/byteswap.h: Likewise.
5686         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5687         * string/Makefile (tests): Add tst-endian.
5688         * string/tst-endian.c: New file.
5689
5690         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5691         Patch by Reuben Thomas.
5692
5693 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5694
5695         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5696
5697 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5698
5699         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5700
5701         [BZ #6461]
5702         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5703         Add missing braces.
5704         (BODY for __gconv_transform_internal_ascii): Likewise.
5705
5706         [BZ #6472]
5707         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5708         to be treated like link-local addresses.
5709         (match_prefix): Don't treat IPv4 loopback address special when
5710         converting to v4 mapped addressed.
5711
5712         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5713         if necessary.
5714         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5715         * posix/tst-rfc3484-2.c: Likewise.
5716         * posix/tst-rfc3484-3.c: Likewise.
5717
5718         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5719         and SCTP.
5720
5721         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5722
5723         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5724
5725         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5726
5727 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5728
5729         * po/lt.po: New file.  From Lituanian translation team.
5730
5731 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5732
5733         Introduce TLS descriptors for i386 and x86_64.
5734         * include/inline-hashtab.h: New file, copied from 2005's
5735         libiberty, with fix for memory leak imported afterwards by
5736         Glauber de Oliveira Costa.
5737         * elf/tlsdeschtab.h: New file.
5738         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5739         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5740         (CHECK_STATIC_TLS): Move to...
5741         * elf/dynamic-link.h: ... this file.
5742         (TRY_STATIC_TLS): New macro.
5743         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5744         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5745         R_386_TLS_DESC): Define.
5746         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5747         binutils.
5748         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5749         R_X86_64_TLSDESC): Define.
5750         (R_386_NUM, R_X86_64_NUM): Adjust.
5751         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5752         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5753         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5754         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5755         release tlsdesc_table.
5756         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5757         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5758         (elf_machine_rel): Handle R_386_TLS_DESC.
5759         (elf_machine_rela): Likewise.
5760         (elf_machine_lazy_rel): Likewise.
5761         (elf_machine_lazy_rela): Likewise.
5762         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5763         * sysdeps/i386/dl-tlsdesc.S: New file.
5764         * sysdeps/i386/dl-tlsdesc.h: New file.
5765         * sysdeps/i386/tlsdesc.c: New file.
5766         * sysdeps/i386/tlsdesc.sym: New file.
5767         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5768         tlsdesc_table.
5769         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5770         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5771         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5772         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5773         release tlsdesc_table.
5774         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5775         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5776         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5777         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5778         (elf_machine_rela): Likewise.
5779         (elf_machine_lazy_rel): Likewise.
5780         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5781         (__tls_get_addr): Do not declare for non-shared compiles.
5782         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5783         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5784         * sysdeps/x86_64/tlsdesc.c: New file.
5785         * sysdeps/x86_64/tlsdesc.sym: New file.
5786         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5787         tlsdesc_table for both 32- and 64-bit structs.
5788
5789 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5790
5791         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5792         its own function.  This reduces the frame setup costs and more.
5793
5794 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5795
5796         [BZ #3406]
5797         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5798         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5799
5800 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5801
5802         * io/openat.c (__openat_2): Also pass fd to __openat.
5803         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5804         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5805
5806         * string/tester.c (test_memcmp): Add a few more tests.
5807         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5808
5809 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5810
5811         * nscd/cache.c (cache_add): Before returning with failure and this
5812         is the first use of the record, mark it as unusable.
5813         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5814         reporting a failure.
5815         * nscd/grpcache.c: Likewise
5816         * nscd/hstcache.c: Likewise.
5817         * nscd/initgrcache.c: Likewise.
5818         * nscd/pwdcache.c: Likewise.
5819         * nscd/servicescache.c: Likewise.
5820
5821 2008-05-10  Roland McGrath  <roland@redhat.com>
5822
5823         [BZ #6505]
5824         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5825
5826 2008-05-08  David S. Miller  <davem@davemloft.net>
5827
5828         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5829
5830         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5831         (__ieee754_y0l): Likewise.
5832         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5833         (__ieee754_y1l): Likewise.
5834         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5835         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5836         frexpl and ldexpl.  math_private.h provides them and the latter
5837         is not even used.
5838         (__log1pl): Use __frexpl.
5839
5840 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5841
5842         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5843         prototypes.
5844         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5845         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5846         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5847         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5848         af==AF_UNSPEC.
5849         (_nss_nis_gethostbyname4_r): New function.
5850         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5851         Change to also handle af==AF_UNSPEC.
5852         (get_tablename): New function.  Use it to avoid duplication.
5853         (_nss_nisplus_gethostbyname4_r): New function.
5854         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5855         available.
5856         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5857         * nss/nss.h: Define struct gaih_addrtuple.
5858         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5859         af==AF_UNSPEC.
5860         (_nss_files_gethostbyname4_r): New function.
5861         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5862         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5863         calls.
5864         * resolv/res_query.c (__libc_res_nquery): Take two additional
5865         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5866         look up IPv4 and IPv6.
5867         Change all callers.
5868         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5869         for an additional query and answer buffer.  Pass to send_vc and
5870         send_dg.
5871         (send_vc): Send possibly two requests and receive two answers.
5872         (send_dg): Likewise.
5873         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5874         __libc_res_nquery.
5875         (_nss_dns_gethostbyname4_r): New function.
5876         (gaih_getanswer_slice): Likewise.
5877         (gaih_getanswer): Likewise.
5878         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5879         __libc_res_nquery call.
5880         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5881         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5882         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5883         available.
5884
5885 2008-05-05  David S. Miller  <davem@davemloft.net>
5886
5887         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5888         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5889
5890 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5891
5892         Fix termios bit macros.
5893         Move *DLY definitions where they belong, in termios.h.
5894         Add *[0-3] definitions.
5895         Fixes confusion between VT and FF.
5896         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5897         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5898         are already defined to avoid collision with termios.h.
5899         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5900         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5901         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5902         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5903         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5904         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5905         VTDLY, VT0, VT1): New macros.
5906         [__USE_GNU] (OLCUC): Change value of macro.
5907         [__USE_XOPEN] (OFILL): New macro.
5908         [__USE_BSD] (CRTSCTS): Change value.
5909         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5910         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5911         (B7200, B14400, B28800, B76800): New macros.
5912
5913 2008-05-01  David S. Miller  <davem@davemloft.net>
5914
5915         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5916         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5917         (gen-as-const-headers): Add it.
5918         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5919         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5920         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5921         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5922
5923         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5924         six system call parameters.
5925         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5926
5927 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5928
5929         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5930         RUSAGE_LWP.
5931         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5932         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5933
5934 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5935
5936         * stdlib/tst-setcontext.c: Include unistd.h.
5937
5938 2008-04-25  David S. Miller  <davem@davemloft.net>
5939
5940         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5941         Pass "union semun" properly in to sys_ipc, it must be passed
5942         by value, not by reference.
5943
5944 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5945
5946         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5947         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5948         * nscd/connections.c (mem_in_flight): Likewise.
5949
5950         * nscd/nscd.h (dbs): Make hidden.
5951
5952         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5953         Avoid returning -1, return 0 instead.
5954
5955 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5956
5957         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5958
5959 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5960
5961         [BZ #5209]
5962         * sysdeps/unix/sysv/linux/times.c: New file.
5963
5964         [BZ #5381]
5965         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5966         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5967         prototype.
5968         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5969         appropriate mem_in_flight element.
5970         (gc): Take allocations which have not yet been committed to the
5971         database into account.
5972         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5973         Reset mem_in_flight before returning.
5974         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5975         cue it up in mem_in_flight_list.
5976         * nscd/aicache.c: Adjust mempool_alloc call.
5977         * nscd/grpcache.c: Likewise.
5978         * nscd/hstcache.c: Likewise.
5979         * nscd/initgrcache.c: Likewise.
5980         * nscd/pwdcache.c: Likewise.
5981         * nscd/servicescache.c: Likewise.
5982         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5983         of -fpie.
5984
5985         * nscd/connections.c (handle_request): Provide better error message
5986         in case SELinux forbids the service.
5987
5988         * version.h (VERSION): Bump to 2.8.90.
5989
5990 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5991
5992         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5993
5994 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5995
5996         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5997         Also use for 32-bit.
5998         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5999         __nextafter instead of nextafter to avoid local PLT.
6000         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6001         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6002
6003         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6004
6005         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6006         __fe_nomask_env.
6007         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6008         <fenv_libc.h> instead of <fenv.h>.
6009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6011
6012         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6013
6014         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6015         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6016         function from fegetexcept and make old name weak alias.
6017         * include/fenv.h: Declare __fegetexcept.
6018         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6019         fegetexcept.
6020         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6021         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6022         to fetestexcept.
6023         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6024         instead of frexpl to avoid local PLT.
6025         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6026         ilogbl to avoid local PLT.
6027         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6028         instead of ldexpl to avoid local PLT.
6029         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6030         __roundl not roundl to avoid local PLT.
6031         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6032         local PLTs.  Use __sincosl instead of separate sinl and cosl
6033         calls.
6034         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6035
6036         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6037         version for ppc64 to 2.4.21 since without it makecontext will fail.
6038
6039         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6040         to the ABI in use.
6041         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6042         .__tls_get_addr.
6043         [__powerpc64__] (TLS_GD): Likewise.
6044
6045 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6046
6047         [BZ #4997]
6048         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6049         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6050         mantissa.
6051         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6052         Likewise.  Also account for when x is an odd number between 2^52
6053         and 2^53-1.
6054         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6055         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6056         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6057         detect aforementioned erroneous conditions.
6058
6059 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6060
6061         * configure.in: Check for -fno-section-anchors in addition to
6062         -fno-toplevel-reorder.
6063
6064 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6065
6066         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6067
6068         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6069         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6070         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6071         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6072         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6073         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6074
6075 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6076
6077         [BZ #5443]
6078         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6079         * time/alt_digit.c: Likewise.
6080         * wcsmbs/wcsmbsload.c: Likewise.
6081
6082 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6083
6084         * version.h (VERSION): Bump to 2.8.
6085
6086         * timzeone/asia: Update from tzdata2008b.
6087         * timezone/backward: Likewise.
6088         * timezone/europe: Likewise.
6089         * timezone/northamerica: Likewise.
6090         * timezone/southamerica: Likewise.
6091         * timezone/iso3166.tab: Likewise.
6092         * timezone/leapseconds: Likewise.
6093         * timezone/zone.tab: Likewise.
6094         * timezone/private.h: Update from tzcode2008a.
6095         * timezone/zdump.c: Likewise.
6096         * timezone/zic.c: Likewise.
6097
6098 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6099
6100         [BZ #5741]
6101         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6102         Define additonal Data Cache Block instruction macros.
6103         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6104         Replace dcbst with dcbf and sync with sync/isync.
6105
6106 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6107
6108         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6109         Always set ELF_RTYPE_CLASS_PLT.
6110         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6111
6112 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6113
6114         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6115         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6116         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6117         For ISA 2.01 and later replace mftb with mfspr 268.
6118
6119 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6120
6121         [BZ #5768]
6122         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6123         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6124
6125 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6126
6127         [BZ #5768]
6128         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6129         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6130         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6131         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6132
6133 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6134
6135         * stdlib/tst-makecontext.c (othervar): New variable.
6136         (cf): Test sign extending the argument to long.
6137
6138 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6139
6140         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6141         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6142         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6143         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6144         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6145         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6146         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6147
6148 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6149
6150         * elf/Makefile (tests): Substitute tests-vis-yes here.
6151         (tests-vis-yes): Delete.
6152         (modules-name, modules-vis-yes): Similarly.
6153
6154 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6155
6156         [BZ #4407]
6157         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6158         Preserve sign in signgamp when x is zero.
6159
6160 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6161
6162         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6163         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6164         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6165         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6166         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6167         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6168
6169 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6170
6171         [BZ #4314]
6172         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6173         buffers.
6174
6175         [BZ #5209]
6176         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6177         a reserved error value.
6178
6179         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6180         value to check for correct sign extension.
6181
6182         [BZ #5436]
6183         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6184         Copy 64-bit parameter values even though this is not required in
6185         the standard.
6186
6187         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6188         PC save.
6189
6190 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6191
6192         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6193         PC save.
6194
6195 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6196
6197         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6198
6199 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6200
6201         [BZ #5998]
6202         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6203         in line-buffered stream failed.
6204         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6205
6206 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6207
6208         [BZ #6024]
6209         * scripts/abi-versions.awk: If the version specified by
6210         --enable-oldest-abi is older than the first version for this
6211         architecture, use the default version.
6212
6213         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6214         as well when ignoring the whole category.
6215
6216 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6217
6218         [BZ #6042]
6219         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6220         ETHERTYPE_* definitions.
6221         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6222
6223 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6224
6225         * stdlib/mbtowc.c (__no_r_state): Remove.
6226         (mbtowc): New static state variable.  Use it instead of
6227         __no_r_state.
6228         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6229         (__wctomb_state): New hidden variable.
6230         (wctomb): Use __wctomb_state instead of __no_r_state.
6231         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6232         (__wctomb_state): New extern decl.
6233         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6234
6235 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6236
6237         [BZ #5475]
6238         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6239
6240 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6241
6242         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6243
6244 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6245
6246         * po/nl.po: Update from translation team.
6247
6248 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6249
6250         [BZ #6007]
6251         * string/strfry.c: Handle empty strings again.
6252
6253 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6254
6255         [BZ #5443]
6256         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6257         before looking for translation.
6258         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6259         * locale/freelocale.c: Likewise.
6260         * locale/newlocale.c: Likewise.
6261         * locale/setlocale.c: Likewise.
6262         Based partially on a patch by ryo@np.css.fujitsu.com.
6263
6264 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6265
6266         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6267         acquiring wrlock.  Do conv_tab allocation while holding lock.
6268         * intl/Makefile: Add rules to build and run tst-gettext6.
6269         * intl/tst-gettext6.c: New test.
6270         * intl/tst-gettext6.sh: New file.
6271
6272 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6273
6274         * po/nl.po: Update from translation team.
6275
6276         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6277         provided through st_blksize, try the default size before giving up.
6278
6279 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6280
6281         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6282
6283         [BZ #5939]
6284         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6285
6286         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6287         error message.  POSIX today does not require the messages to be in
6288         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6289
6290         [BZ #5979]
6291         * sunrpc/auth_unix.c: Unify printed strings.
6292         * sunrpc/clnt_tcp.c: Likewise.
6293         * sunrpc/clnt_udp.c: Likewise.
6294         * sunrpc/clnt_unix.c: Likewise.
6295         * sunrpc/svc_tcp.c: Likewise.
6296         * sunrpc/svc_udp.c: Likewise.
6297         * sunrpc/svc_unix.c: Likewise.
6298         * sunrpc/xdr.c: Likewise.
6299         * sunrpc/xdr_array.c: Likewise.
6300         * sunrpc/xdr_rec.c: Likewise.
6301         * sunrpc/xdr_ref.c: Likewise.
6302         * locale/programs/ld-time.c (time_finish): Unify messages.
6303         * locale/programs/locfile.c (handle_copy): Fix typo.
6304         * nscd/nscd.c (options): Fix typo.
6305
6306         [BZ #5995]
6307         * stdlib/strtod_l.c: Use correct sign for result in one more
6308         underflow case.
6309         Patch by Eric Blake <ebb9@byu.net>.
6310
6311 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6312
6313         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6314         and creat system calls.
6315         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6316         call.
6317         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6318         system calls.
6319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6320         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6321         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6322
6323 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6324
6325         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6326         <linux/limits.h> has defined it.
6327         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6328         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6329         headers.
6330         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6331         it instead of ARG_MAX.
6332
6333 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6334
6335         * posix/gai.conf: Fix comment for scope nullbits.
6336         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6337         default to 128 bits for v4 mapped addresses.
6338
6339 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6340
6341         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6342         ptrace call to get the ieee_instruction_pointer from the kernel.
6343         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6344         ptrace call to set the ieee_instructtion_pointer.
6345         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6346         Add comment that ieee_instruction_pointer is always 0.
6347
6348 2008-03-09  Andreas Jaeger  <aj@suse.de>
6349
6350         [BZ #5857]
6351         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6352         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6353         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6354
6355         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6356         (rint_test): Likewise.
6357
6358 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6359
6360         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6361         call.
6362         (__nisfind_server): Similar for open readColdStartFile call.
6363         Patch partially by Jim Meyering.
6364         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6365         around internal_setent call.
6366
6367         * po/vi.po: New Vietnamese translation.
6368
6369         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6370         ADJ_OFFSET_SS_READ.
6371
6372         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6373         remove CLONE_STOPPED.
6374
6375 2008-02-10  Jim Meyering  <meyering@redhat.com>
6376
6377         Remove useless "if" before "free":
6378         * elf/ldconfig.c (parse_conf_include): Likewise.
6379         * gmon/gmon.c (weak_alias): Likewise.
6380         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6381         * inet/rcmd.c (__validuser2_sa): Likewise.
6382         * intl/bindtextdom.c (set_binding_values): Likewise.
6383         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6384         * libio/genops.c (save_for_backup): Likewise.
6385         * libio/wgenops.c (save_for_wbackup): Likewise.
6386         * locale/programs/ld-collate.c (collate_read): Likewise.
6387         * locale/programs/linereader.c (get_string): Likewise.
6388         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6389         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6390         * resolv/res_debug.c (do_section): Likewise.
6391         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6392         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6393         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6394         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6395         * time/tzset.c (tzset_internal): Likewise.
6396
6397 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6398
6399         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6400         of ASSEMBLER.
6401
6402 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6403
6404         [BZ #5903]
6405         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6406         not stream for output file.  Open output file here.
6407         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6408         and output file name.
6409         (process_fd): Likewise.
6410         (process_file): Likewise.
6411         (main): Adjust callers of changed functions.
6412         * iconv/iconv_prog.h: Adjust prototype.
6413
6414 2008-03-09  Andreas Jaeger  <aj@suse.de>
6415
6416         [BZ #5753]
6417         * sysdeps/ia64/ieee754.h: Use protected namespace
6418         __BIG_ENDIAN/__LITTLE_ENDIAN.
6419         * sysdeps/ieee754/ieee754.h: Likewise.
6420         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6421
6422 2008-03-08  Roland McGrath  <roland@frob.com>
6423
6424         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6425         ignore a signal that came from a machine exception, treat it as a
6426         fatal core-dump signal instead.
6427         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6428
6429         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6430         Clear DF bit in thread state's eflags.
6431         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6432
6433 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6434
6435         [BZ #5774]
6436         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6437         of NAN(...) sequence.
6438         * stdlib/Makefile (tests): Add tst-strtod6.
6439         * stdlib/tst-strtod6.c: New file.
6440
6441         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6442
6443         [BZ #5762]
6444         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6445         putting offending option character in quotes.  Clean up error
6446         messages.
6447         * po/be.po: Adjust msgstr in translation file.
6448         * po/bg.po: Likewise.
6449         * po/ca.po: Likewise.
6450         * po/cs.po: Likewise.
6451         * po/da.po: Likewise.
6452         * po/de.po: Likewise.
6453         * po/es.po: Likewise.
6454         * po/fr.po: Likewise.
6455         * po/hr.po: Likewise.
6456         * po/ko.po: Likewise.
6457         * po/nl.po: Likewise.
6458         * po/rw.po: Likewise.
6459         * po/sk.po: Likewise.
6460         * po/sv.po: Likewise.
6461         * po/tr.po: Likewise.
6462         * po/zh_CN.po: Likewise.
6463         * po/zh_TW.po: Likewise.
6464
6465         [BZ #5760]
6466         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6467         Patch by Roland Bless <roland@bless.de>.
6468
6469         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6470         .o file.
6471         * elf/Makefile (routines): Add dl-sysdep.
6472         (elide-routines.os): Likewise.
6473
6474 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6475
6476         [BZ #5786]
6477         * elf/dl-sysdep.c: Undefine ROUND after use.
6478         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6479         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6480         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6481         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6482         to ...
6483         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6484         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6485         if necessary.
6486         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6487
6488         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6489         _dl_tls_get_addr_soft element.
6490         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6491         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6492         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6493         GLRO.
6494         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6495         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6496         of internal_function.
6497
6498         * stdlib/Makefile (aux): Add tens_in_limb.
6499         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6500         * stdlib/tens_in_limb.c: ...here.  New file.
6501
6502         [BZ #5778]
6503         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6504         __statfs_chown_restricted.
6505         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6506         for _PC_CHOWN_RESTRICTED.
6507         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6508         Implement __statfs_chown_restricted.
6509         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6510         _POSIX_CHOWN_RESTRICTED value to zero.
6511         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6512         defined to zero.
6513
6514         * sysdeps/x86_64/rtld-memset.c: New file.
6515
6516 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6517
6518         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6519
6520         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6521         Barcelona machine.  Make default fall through branch of
6522         __x86_64_preferred_memory_instruction check as the integer code path.
6523
6524 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6525
6526         * sysdeps/x86_64/cacheinfo.c
6527         (__x86_64_preferred_memory_instruction): New variable.
6528         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6529
6530         * sysdeps/x86_64/memset.S: Rewrite.
6531
6532 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6533
6534         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6535         __obstack_printf_chk): New prototypes.
6536         (__vasprintf_chk, __vdprintf_chk,
6537         __obstack_vprintf_chk): Likewise.
6538         Add libc_hidden_proto.
6539         * libio/obprintf.c
6540         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6541         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6542         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6543         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6544         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6545         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6546         __obstack_vprintf_chk): New prototypes.
6547         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6548         obstack_vprintf): New inlines.
6549         * debug/dprintf_chk.c: New file.
6550         * debug/vdprintf_chk.c: New file.
6551         * debug/asprintf_chk.c: New file.
6552         * debug/vasprintf_chk.c: New file.
6553         * debug/obprintf_chk.c: New file.
6554         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6555         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6556         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6557         @@GLIBC_2.8.
6558         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6559         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6560         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6561         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6562         libc_hidden_proto.
6563         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6564         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6565         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6566         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6567         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6568         @@GLIBC_2.8.
6569         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6570         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6571         obstack_vprintf_chk.
6572         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6573         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6574         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6575         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6576         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6577         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6578
6579 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6580
6581         [BZ #5779]
6582         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6583         Patch by Roy Marples <roy@marples.name>.
6584
6585         [BZ #5736]
6586         * malloc/malloc.c: Fix typo in comment.
6587
6588         [BZ #5627]
6589         * locale/iso-639.def: Add Shuswap.
6590
6591 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6592
6593         [BZ #5790]
6594         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6595         overwrite *h_errnop/*errnop values from getanswer_r in case of
6596         failure.
6597
6598 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6599
6600         [BZ #5818]
6601         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6602         (verify_persistent_db): Remove one unnecessary test and add a new one
6603         for bad configuration.
6604         (nscd_init): Improve error reported when persistent database cannot
6605         be reused.
6606         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6607         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6608         .suggested_module and .max_db_size and case config file says the
6609         values are zero.
6610         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6611
6612         [BZ #5854]
6613         * nis/ypclnt.c (yp_order): Fix handling of return value of
6614         do_ypcall_tr call.
6615         Patch by Jeff Moyer <jmoyer@redhat.com>.
6616
6617         * po/fr.po: Update from translation team.
6618
6619 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6620             Carlos O'Donell <carlos@systemhalted.org>
6621
6622         [BZ #5012]
6623         * FAQ.in: Describe why glibc needs to be compiled with
6624         optimization.
6625
6626 2008-02-19  Roland McGrath  <roland@redhat.com>
6627
6628         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6629
6630 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6631
6632         [BZ #5737]
6633         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6634         __USE_MISC is defined.
6635
6636 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6637
6638         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6639         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6640         sys/timerfd.h.
6641         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6642         timerfd_gettime, timerfd_settime.
6643         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6644         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6645
6646 2008-02-08  Roland McGrath  <roland@redhat.com>
6647
6648         * elf/elf.h (NT_PPC_SPE): New macro.
6649
6650 2008-02-06  Roland McGrath  <roland@redhat.com>
6651
6652         * Makerules ($(common-objpfx)sysd-rules):
6653         Depend on $(sysdep-makeconfigs).
6654
6655 2008-01-31  Roland McGrath  <roland@redhat.com>
6656
6657         [BZ #5442]
6658         * configure.in: Use -print-file-name if it yields a directory,
6659         for each of include and include-fixed.
6660         * configure: Regenerated.
6661
6662         * Makeconfig (sysd-rules-targets): New variable.
6663         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6664         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6665
6666 2008-01-30  Roland McGrath  <roland@redhat.com>
6667
6668         * manual/libc.texinfo: Update back-cover text.
6669
6670         * elf/elf.h (NT_386_TLS): New macro.
6671
6672 2008-01-29  Roland McGrath  <roland@redhat.com>
6673
6674         * Makeconfig (sysd-rules-patterns): New variable.
6675         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6676         (check-inhibit-asm): New canned sequence, replaces ...
6677         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6678         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6679         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6680         (CFLAGS-rtld): Variable removed.
6681
6682 2008-01-24  Roland McGrath  <roland@redhat.com>
6683
6684         * configure.in: Let configure fragments set base_os.
6685         * configure: Regenerated.
6686
6687 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6688
6689         * po/ko.po: Update from translation team.
6690
6691 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6692
6693         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6694
6695 2008-01-12  Andreas Jaeger  <aj@suse.de>
6696
6697         [BZ #5040]
6698         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6699         Add EPOLLRDHUP.
6700
6701 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6702
6703         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6704         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6705         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6706
6707 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6708
6709         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6710         * elf/dl-close.c (_dl_close): Check for it.
6711         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6712         (_dl_allocate_static_tls): Likewise.
6713         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6714         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6715         to it.
6716         * elf/tst-tls16.c: New file.
6717         * elf/tst-tlsmod16a.c: New file.
6718         * elf/tst-tlsmod16b.c: New file.
6719         * elf/Makefile: Add rules to build and run tst-tls16.
6720
6721 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6722
6723         [BZ #5628]
6724         * bits/shm.h: Fix comment describing shmid_ds.
6725         * sysdeps/gnu/bits/shm.h: Likewise.
6726         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6727         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6728         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6729         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6730         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6731         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6732         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6733         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6734         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6735
6736         [BZ #5607]
6737         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6738         prototypes.
6739         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6740         additional suffixes.
6741         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6742         Add optional functions mq_timedreceive and mq_timedsend.
6743         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6744         * conform/data/pthread.h-data: Fix prototype of
6745         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6746         * conform/data/semaphore.h-data: Allow time.h definitions.
6747         * conform/data/signal.h-data: Likewise.
6748         * conform/data/stdio.h-data: getw and putw are not required in v6.
6749         * conform/data/stdlib.h-data: Change setstate prototype.
6750         * conform/data/string.h-data: Fix strerror_r prototype.
6751         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6752         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6753         Fix readlink prototype.
6754         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6755         in6addr_loopback.
6756         * inet/netinet/in.h: Cleanup namespace.
6757         * posix/regex.h: Likewise.
6758         * resolv/netdb.h: Likewise.
6759         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6760         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6761         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6762         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6763         of names of in in6_addr.
6764         (default_precedence): Likewise.
6765         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6766         NULL definition.
6767
6768 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6769
6770         * conform/data/fmtmsg.h-data: Add missing allows.
6771         * conform/data/ftw.h-data: Likewise.
6772         * conform/data/inttypes.h-data: Likewise.
6773         * conform/data/math.h-data: Likewise.
6774         * conform/data/signal.h-data: Likewise.
6775         * conform/data/net/if.h-data: Likewise.
6776         * conform/data/netinet/in.h-data: Likewise.
6777         * conform/data/sys/socket.h-data: Likewise.
6778
6779         [BZ #5614]
6780         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6781         (__strtok_r): Simplify.
6782         * string/tester.c (test_strtok_r): Add test case for futile search
6783         with single-character seach string.
6784
6785 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6786
6787         * po/ko.po: Update from translation team.
6788
6789 2008-01-11  Andreas Jaeger  <aj@suse.de>
6790
6791         [BZ #5600]
6792         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6793         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6794         kernel header.
6795
6796 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6797
6798         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6799         native interface lookup in all the relevant places.
6800
6801 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6802             Ulrich Drepper  <drepper@redhat.com>
6803
6804         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6805         field.  Use sockaddr_in6 for source_addr.
6806         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6807         (match_prefix): Likewise.
6808         (get_label): Likewise.
6809         (get_precedence): Likewise.
6810         (rfc3484_sort): Change to use indirect access to results array.
6811         Adjust to use of sockaddr_in6.  Replace service_order test with
6812         simple index comparison.
6813         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6814         service_order field.  Adjust qsort_t calls.  Access sorted result
6815         array indirectly through order array.
6816         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6817         * posix/tst-rfc3484-2.c: Likewise.
6818         * posix/tst-rfc3484-3.c: Likewise.
6819
6820 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6821
6822         [BZ #5541]
6823         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6824         pollfd structures.
6825         Patch by André Cruz.
6826
6827         [BZ #5545]
6828         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6829         (clnt_spcreateerror): Likewise.
6830
6831         [BZ #5553]
6832         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6833         (public_mEMALIGn): Likewise.
6834         Patch mostly by Daniel Jacobowitz.
6835
6836 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6837
6838         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6839         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6840         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6841         * stdlib/tst-makecontext2.c: New test.
6842
6843 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6844
6845         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6846         defined.
6847         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6848         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6849         transliteration hooks and REINIT_PARAMS afterwards.
6850         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6851         status.
6852         (REINIT_PARAMS): Define.
6853         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6854         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6855         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6856         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6857         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6858         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6859         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6860         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6861         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6862         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6863         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6864         * iconvdata/tst-iconv7.c: New test.
6865
6866 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6867
6868         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6869
6870 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6871
6872         [BZ #5112]
6873         * nscd/connections.c (restart): Fix condition.
6874
6875 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6876
6877         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6878         __ctype_toupper_loc): Add __THROW.
6879
6880 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6881
6882         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6883         recognition of interface family.
6884
6885         * posix/getconf.c: Update copyright year.
6886         * nss/getent.c: Likewise.
6887         * iconv/iconvconfig.c: Likewise.
6888         * iconv/iconv_prog.c: Likewise.
6889         * elf/ldconfig.c: Likewise.
6890         * catgets/gencat.c: Likewise.
6891         * csu/version.c: Likewise.
6892         * elf/ldd.bash.in: Likewise.
6893         * elf/sprof.c (print_version): Likewise.
6894         * locale/programs/locale.c: Likewise.
6895         * locale/programs/localedef.c: Likewise.
6896         * nscd/nscd.c (print_version): Likewise.
6897         * debug/xtrace.sh: Likewise.
6898         * malloc/memusage.sh: Likewise.
6899         * malloc/mtrace.pl: Likewise.
6900         * debug/catchsegv.sh: Likewise.
6901
6902 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6903
6904         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6905         second lookup.
6906
6907 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6908
6909         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6910         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6911
6912 2007-12-17  Roland McGrath  <roland@redhat.com>
6913
6914         * inet/ether_line.c (ether_line): Remove unused variable.
6915
6916 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6917
6918         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6919         and winp.
6920         * login/openpty.c (openpty): Likewise.
6921         * login/pty.h (openpty, forkpty): Likewise.
6922         * manual/terminal.texi (openpty, forkpty): Likewise.
6923
6924 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6925
6926         * malloc/malloc.c (public_cALLOc): For arenas other than
6927         main_arena, count all bytes inside the mprotect_size range of the
6928         heap as uninitialized.
6929
6930 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6931
6932         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6933         executable stacks.
6934
6935         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6936         mTRIm for all of them.
6937         (mTRIm): Additionally iterate over all free blocks and use madvise
6938         to free memory for all those blocks which contain at least one
6939         memory page.
6940         * malloc/tst-trim1.c: New file.
6941         * malloc/Makefile (tests): Add tst-trim1.
6942
6943         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6944
6945 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6946
6947         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6948         First cast argument to long
6949         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6950         Return long.
6951         (__vdso_clock_gettime): Likewise.
6952         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6953         return long.
6954
6955 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6956
6957         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6958         * locale/nl_langinfo_l.c: Real implementation, copied from
6959         nl_langinfo.c.
6960         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6961
6962 2007-12-01  Jim Meyering  <meyering@redhat.com>
6963
6964         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6965         that would inhibit utf8-optimization of a regexp containing line-
6966         or buffer-anchors, e.g., `^', `$'.
6967
6968 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6969
6970         * time/bug-getdate1.c (do_test): Don't use century values which
6971         aren't valid on 32-bit systems.
6972
6973 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6974
6975         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6976         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6977         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6978         __strcat_g, __strncat_g): Add __asm__.
6979
6980 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6981
6982         [BZ #5477]
6983         * io/fchmodat.c: Fix typo in stub_warning use.
6984         Patch by Petr Salinger.
6985
6986 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6987
6988         * iconvdata/hp-thai8.c: New file.
6989         * iconvdata/Makefile: Add rules for hp-thai8.c.
6990         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6991         * iconvdata/gconv-modules: Likewise.
6992
6993         [BZ #5464]
6994         * iconvdata/hp-greek8.c: New file.
6995         * iconvdata/Makefile: Add rules for hp-greek8.c.
6996         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6997         * iconvdata/gconv-modules: Likewise.
6998
6999         [BZ #5463]
7000         * iconvdata/hp-turkish8.c: New file.
7001         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7002         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7003         * iconvdata/gconv-modules: Likewise.
7004
7005         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7006         (shrink_heap): ... this new function.
7007         (heap_trim): Call shrink_heap instead of grow_heap.
7008
7009         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7010         case don't call alloc_perturb.
7011
7012 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7013
7014         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7015         possible.
7016         * sysdeps/unix/sysv/linux/kernel-features.h
7017         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7018         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7019
7020 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7021
7022         [BZ #5424]
7023         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7024         * stdio-common/Makefile (tests): Add bug22.
7025         * stdio-common/bug22.c: New file.
7026
7027         [BZ #5451]
7028         * time/getdate.c: Fix filling in default values.
7029         * time/bug-getdate1.c: New file.
7030         * time/Makefile: Add rules to build and run bug-getdate1.
7031
7032         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7033         * iconvdata/ebcdic-es.c: Likewise.
7034         * iconvdata/ebcdic-es-a.c: Likewise.
7035         * iconvdata/ebcdic-uk.c: Likewise.
7036         * iconvdata/iso8859-16.c: Likewise.
7037         * iconvdata/viscii.c: Likewise.
7038         * iconvdata/iso8859-9e.c: Likewise.
7039         * iconvdata/Makefile: Adjust appropriately.
7040
7041         [BZ #5428]
7042         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7043         __need_wint_t.
7044
7045 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7046
7047         [BZ #5427]
7048         * iconvdata/hp-roman9.c: New file.
7049         * iconvdata/Makefile: Add rules for hp-roman9.c.
7050         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7051         * iconvdata/gconv-modules: Likewise.
7052
7053         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7054         * iconvdata/Makefile: Adjust appropriately.
7055
7056         [BZ #5441]
7057         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7058         structure, it's allocated with alloca.
7059         * stdio-common/Makefile (tests): Add bug21.
7060         * stdio-common/bug21.c: New file.
7061
7062 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7063
7064         [BZ #5452]
7065         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7066         keyword for gcc's braced-groups.
7067
7068 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7069
7070         [BZ #5454]
7071         * inet/ether_line.c: Strip hostname of whitespaces.
7072         * inet/Makefile (tests): Add tst-ether_line.
7073         * inet/tst-ether_line.c: New file.
7074
7075 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7076
7077         [BZ #5439]
7078         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7079
7080         [BZ #5435]
7081         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7082
7083         * stdlib/tst-setcontext.c: Catch the case where the links gets
7084         messed up and we do not reach main again.
7085
7086         * po/ca.po: Update from translation team.
7087
7088 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7089
7090         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7091         * posix/regex.h (REG_ENOSYS): Likewise.
7092         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7093
7094 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7095
7096         * nscd/nscd.h (MAX_STACK_USE): Define.
7097         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7098         (gc): Initialize stack_used based on allocation in prune_cache.
7099         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7100         Clear array before use.
7101
7102         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7103         memory allocation failed.
7104         * nscd/hstcache.c (cache_addhst): Likewise.
7105         * nscd/grpcache.c (cache_addgr): Likewise.
7106         * nscd/servicescache.c (cache_addserv): Likewise.
7107         * nscd/pwdcache.c (cache_addpw): Likewise.
7108         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7109
7110 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7111
7112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7113         and creat system calls.
7114
7115         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7116
7117 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7118
7119         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7120         Add netiucv/iucv.h.
7121         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7122         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7123         protocol.
7124         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7125         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7126         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7127
7128 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7129
7130         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7131         strncat): Define as macros to avoid compile errors.
7132
7133         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7134         creat entries.
7135
7136 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7137
7138         [BZ #5382]
7139         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7140         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7141         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7142         overflow it.
7143         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7144
7145         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7146         Return zero in case the thread library is not NPTL.
7147
7148         [BZ #5375]
7149         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7150         initializing interface list.
7151
7152         [BZ #5378]
7153         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7154         use result of nss_getgrgid_r if nothing was found.  For other
7155         error return with a failure.
7156         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7157
7158         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7159         macro name.
7160
7161 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7162
7163         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7164         (get_scope): For IPv4 scope, use scopes table.
7165         (fini): Free scopes table if necessary.
7166         (free_scopelist): New function.
7167         (scopecmp): New function.
7168         (gaiconf_init): Also handle scopev4 entries.
7169         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7170         * posix/tst-rfc3484-2.c (do_test): Likewise.
7171         * posix/gai.conf: Document scopev4 defaults.
7172         * posix/Makefile (tests): Add tst-rfc3484-3.
7173         * posix/tst-rfc3484-3.c: New file.
7174
7175         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7176         Teredo tunnels.
7177         * posix/gai.conf: Update for current default tables.
7178
7179 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7180
7181         * po/tr.po: Update from translation team.
7182
7183 2007-11-18  Roland McGrath  <roland@frob.com>
7184
7185         * manual/arith.texi (Remainder Functions): Spelling fix.
7186         From Shaun Silk <genix@mysoul.com.au>.
7187
7188         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7189
7190 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7191
7192         * po/zh_CN.po: Update from translation team.
7193
7194         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7195         Add sys/signalfd.h and sys/eventfd.h.
7196
7197 2007-11-15  Bruno Haible  <bruno@clisp.org>
7198
7199         [BZ #5346]
7200         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7201         union.
7202         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7203         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7204         it needs only fixed stack space. Delay the initialization of
7205         msgid_len until it is needed.
7206
7207 2007-11-15  Andreas Jaeger  <aj@suse.de>
7208
7209         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7210         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7211
7212 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7213
7214         * po/ko.po: Update from translation team.
7215
7216 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7217
7218         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7219         significantly.  The device type is also part of the ifinfomsg data.
7220
7221         * po/sv.po: Update from translation team.
7222         * po/nl.po: Likewise.
7223
7224         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7225         to wake up in 24 hours.
7226
7227         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7228
7229 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7230
7231         * po/cs.po: Update from translation team.
7232         * po/pl.po: Likewise.
7233
7234         * include/ifaddrs.h: Remove in6ai_temporary.
7235         (struct in6addrinfo): Add index element.
7236         Declare __check_native.
7237         * inet/Makefile (aux): Add check_native.
7238         * sysdeps/unix/sysv/linux/check_native.c: New file.
7239         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7240         IFA_F_TEMPORARY.  Pass back ifa_index.
7241         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7242         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7243         call __check_native if necessary.
7244         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7245         to sort addresses.  Pass information about the results.
7246         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7247         of rfc3484_sort interface.
7248         * posix/tst-rfc3484-2.c: Likewise.
7249
7250         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7251         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7252         for _quicksort.
7253         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7254         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7255         on as third parameter to compare function and _quicksort.
7256         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7257         to the compare function.
7258         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7259         * Versions.def: Add GLIBC_2.8 for libc.
7260
7261         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7262         * posix/tst-rfc3484-2.c: Likewise.
7263
7264         * include/kernel-features.h: Moved to...
7265         * sysdeps/mach/hurd/kernel-features.h: ...here.
7266
7267 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7268
7269         * sysdeps/i386/i586/memcpy_chk.S: New file.
7270         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7271         * sysdeps/i386/i586/memset_chk.S: Likewise.
7272
7273 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7274
7275         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7276         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7277         list of interfaces.  Also store prefix length.
7278         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7279         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7280         prefix if source and destination address are in the same subnet.
7281         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7282         Always look for matching record in in6ai list.
7283         Correct source_addr_len value for IPv6->IPv4 converted records.
7284
7285 2007-11-11  Roland McGrath  <roland@frob.com>
7286
7287         * include/kernel-features.h: New file.
7288
7289 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7290
7291         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7292         complications for 64-bit platforms.
7293
7294         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7295         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7296         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7297         open64_2.
7298         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7299         entries.
7300         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7301         * sysdeps/wordsize-64/alphasort.c: New file.
7302         * sysdeps/wordsize-64/alphasort64.c: New file.
7303         * sysdeps/wordsize-64/fseeko.c: New file.
7304         * sysdeps/wordsize-64/fseeko64.c: New file.
7305         * sysdeps/wordsize-64/ftello.c: New file.
7306         * sysdeps/wordsize-64/ftello64.c: New file.
7307         * sysdeps/wordsize-64/ftw.c: New file.
7308         * sysdeps/wordsize-64/ftw64.c: New file.
7309         * sysdeps/wordsize-64/iofgetpos.c: New file.
7310         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7311         * sysdeps/wordsize-64/iofopen.c: New file.
7312         * sysdeps/wordsize-64/iofopen64.c: New file.
7313         * sysdeps/wordsize-64/iofsetpos.c: New file.
7314         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7315         * sysdeps/wordsize-64/lockf.c: New file.
7316         * sysdeps/wordsize-64/lockf64.c: New file.
7317         * sysdeps/wordsize-64/mkostemp.c: New file.
7318         * sysdeps/wordsize-64/mkostemp64.c: New file.
7319         * sysdeps/wordsize-64/mkstemp.c: New file.
7320         * sysdeps/wordsize-64/mkstemp64.c: New file.
7321         * sysdeps/wordsize-64/scandir.c: New file.
7322         * sysdeps/wordsize-64/scandir64.c: New file.
7323         * sysdeps/wordsize-64/tmpfile.c: New file.
7324         * sysdeps/wordsize-64/tmpfile64.c: New file.
7325         * sysdeps/wordsize-64/versionsort.c: New file.
7326         * sysdeps/wordsize-64/versionsort64.c: New file.
7327         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7328         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7329         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7330         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7331         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7332         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7333         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7334         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7335         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7336         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7337         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7338         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7339
7340         * crypt/sha256-crypt.c: Fix a comment.
7341         * crypt/sha512-crypt.c: Likewise.
7342
7343 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7344
7345         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7346
7347 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7348
7349         [BZ #5277]
7350         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7351         because output buffer is too small break, don't loop.
7352         * iconvdata/Makefile (tests): Add bug-iconv6.
7353         * iconvdata/bug-iconv6.c: New file.
7354
7355 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7356
7357         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7358         with size_t type.
7359         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7360         size_t.  Add casts where needed.
7361
7362         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7363         old headers, don't call avc_has_perm if we don't have the
7364         permission information.
7365
7366 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7367
7368         * elf/rtld.c (dl_main): Use the page size to find the map start.
7369
7370 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7371
7372         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7373         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7374
7375         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7376         when the lookup call failed.
7377
7378         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7379         Add prune_cond and wakeup_time.
7380         (CACHE_PRUNE_INTERNAL): Define.
7381         Update declarations of prune_cache and setup_thread.
7382         * nscd/connections.c (dbs): Update initializers.
7383         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7384         (nscd_init): Default number of threads is now 4.
7385         (invalidate_cache): Take lock before calling prune_cache.
7386         (handle_request): If SELinux forbids the request, say so.
7387         (readylist_cond): Use static initializer.
7388         (nscd_run_prune): New function.  Used only by pruning threads.
7389         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7390         here.
7391         (fd_ready): Update nscd_run reference.
7392         (start_threads): No need to initialize readylist_cond.
7393         Start pruning threads separately.
7394         * nscd/nscd_setup_thread.c: Change return value type to int and always
7395         return 0.
7396         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7397         to int and return nonzero value if we can use the TID address hack.
7398         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7399         the database is later than the new entry's timeout, update the
7400         wakeup time and wake the cleanup thread.
7401         (prune_cache): Return seconds the next entry in the database is still
7402         valid.  Remove locking for pruning here.
7403         * nscd/nscd.conf: Document default number of threads.
7404
7405 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7406
7407         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7408         stack is properly aligned for the target function.
7409         Correct unwind info.
7410
7411         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7412         when using auditing libraries.
7413
7414 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7415
7416         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7417         _nss_dns_getnetbyaddr2_r.
7418         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7419         extra parameter to getanswer_r.
7420         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7421         _nss_dns_getnetbyaddr2_r.
7422
7423         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7424         gethstbynm3_r.
7425         * nscd/gethstbynm2_r.c: Remove.
7426         * nscd/gethstbynm3_r.c: New file.
7427         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7428         __gethostbyaddr_r.
7429         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7430         __gethostbyaddr_r compatibility wrapper.
7431         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7432         determining timeout of entry.
7433         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7434         __gethostbyaddr2_r.
7435         (addhstbyX): Pass reference to variable for TTL to lookup and
7436         cache_addhst.
7437         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7438         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7439         and __nss_next2.  Remove __nss_services_lookup.
7440         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7441         Add compat wrapper.
7442         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7443         __nss_next2.
7444         * nss/getXXent_r.c: Likewise.
7445         * nss/getnssent_r.c: Likewise.
7446         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7447         does not exist in module, try the optional second name.
7448         (__nss_next2): New function.
7449         (__nss_next): Now wrapper around __nss_next2.
7450         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7451         Declare __nss_next2.
7452         Adjust definition of db_lookup_function type.
7453         * nss/service-lookup.c: Define NO_COMPAT.
7454         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7455         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7456         * inet/ether_ntoh.c: Likewise.
7457         * sunrpc/netname.c: Likewise.
7458         * sunrpc/publickey.c: Likewise.
7459         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7460         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7461         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7462         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7463         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7464
7465         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7466
7467         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7468
7469 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7470
7471         [BZ #5204]
7472         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7473         * crypt/sha512c-test.c: Likewise.
7474
7475         [BZ #5225]
7476         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7477         to keep track of end of %[ format string element.
7478         * stdio-common/Makefile (tests): Add bug20.
7479         * stdio-common/bug20.c: New file.
7480
7481         [BZ #5222]
7482         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7483         path elements in counting mode.
7484
7485 2007-10-27  Andreas Jaeger  <aj@suse.de>
7486
7487         [BZ #5040]
7488         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7489
7490         [BZ #3112]
7491         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7492         (__cleanup): Free shared library when exiting.
7493         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7494         (__cleanup): Free shared library when exiting.
7495
7496 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7497
7498         [BZ #2549]
7499         * math/libm-test.inc (check_float_internal): Support
7500         denormalized return.
7501
7502 2007-10-23  Andreas Jaeger  <aj@suse.de>
7503
7504         [BZ #5208]
7505         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7506         __LONG_LONG_PAIR to handle little endian byte order.
7507         Suggested by abhishekrai@google.com
7508
7509 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7510
7511         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7512
7513 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7514
7515         * nscd/cache.c (prune_cache): Move test for modified file outside
7516         of locking.
7517
7518 2007-10-21  Andreas Jaeger  <aj@suse.de>
7519
7520         * manual/texinfo.tex: Update to latest version.
7521
7522         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7523
7524         * manual/arith.texi (Status bit operations): Fix formatting.
7525
7526         * manual/errno.texi (Error Messages): Fix formatting.
7527
7528         * manual/sysinfo.texi (System Parameters): Fix formatting.
7529
7530         * manual/libc.texinfo: Update VERSION and UPDATED.
7531
7532 2007-10-19  Roland McGrath  <roland@redhat.com>
7533
7534         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7535
7536 2007-10-06  David S. Miller  <davem@davemloft.net>
7537
7538         * configure.in: Add sparcv9v2 and sparc64v2.
7539         * scripts/config.sub: Likewise.
7540         * configure: Regenerate.
7541         * elf/elf.h (HWCAP_SPARC_N2): New.
7542         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7543         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7544         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7545         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7546         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7547         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7548         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7549
7550 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7551
7552         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7553         even if the poll result indicates there is data to read.
7554         Patch by Jeff Moyer <jmoyer@redhat.com>.
7555
7556 2007-10-18  Roland McGrath  <roland@redhat.com>
7557
7558         * elf/elf.h (NT_PPC_VMX): New macro.
7559
7560 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7561
7562         * version.h (VERSION): Set to 2.7.90.
7563
7564 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7565
7566         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7567         weak_alias.
7568
7569 2007-10-17  Roland McGrath  <roland@frob.com>
7570
7571         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7572         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7573
7574 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7575
7576         * version.h (VERSION): Bump to 2.7.
7577         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7578
7579         [BZ #5186]
7580         * time/tzset.c (__tz_convert): Don't force testing for a change of
7581         TZ if not called from localtime.  But then also see whether the
7582         file changed, in case __use_tzfile is set.
7583
7584         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7585         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7586         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7587         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7588         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7589         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7590         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7591         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7592
7593 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7594
7595         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7596         and admin selects to be able to replace the gai.conf file, lock
7597         data structures around the qsort call.
7598
7599 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7600
7601         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7602         new memset.
7603         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7604         too high for the improvements.  Implement bzero unconditionally for
7605         use in libc.
7606
7607 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7608             Jakub Jelinek  <jakub@redhat.com>
7609
7610         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7611         even when time_t is 32-bit.
7612         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7613         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7614         always set after the search.
7615
7616 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7617
7618         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7619         unreachable code on 32-bit machines.
7620
7621 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7622
7623         [BZ #5184]
7624         * time/strftime_l.c: Include stdbool.h.
7625         (my_strftime): New wrapper, old function renamed to...
7626         (__strftime_internal): ... new function.  Add tzset_called
7627         argument, pass it down to recursive calls, don't call tzset ()
7628         if already true, set to true after call to tzset ().
7629
7630 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7631
7632         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7633         into account when copying TZ string.
7634
7635 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7636
7637         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7638         num_transition rather than num_transitions - 1.
7639
7640 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7641
7642         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7643         PIC indirect jump.
7644
7645         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7646         a local label rather than HIDDEN_JUMPTARGET.
7647
7648 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7651         (init_cacheinfo): Initialize it.
7652         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7653         Always define bzero.
7654         Remove non-glibc code.
7655         * sysdeps/x86_64/bzero.S: Make an empty file.
7656
7657 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7658
7659         * sysdeps/x86_64/cacheinfo.c
7660         (__x86_64_preferred_memory_instruction): New.
7661         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7662
7663         * sysdeps/x86_64/memset.S: Rewrite.
7664
7665 2007-10-15  Roland McGrath  <roland@redhat.com>
7666
7667         * po/libc.pot: Regenerated.
7668
7669 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7670
7671         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7672         pointers.
7673
7674         [BZ #3425]
7675         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7676         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7677         address record to T_A/T_AAAA requests.
7678
7679 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7680
7681         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7682
7683         * posix/glob.c: Add some branch prediction throughout.
7684
7685         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7686         read from nscd.
7687
7688         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7689         service_order.
7690         (rfc3484_sort): Make sure that even if qsort doesn't support
7691         stable sorting out sorting here is stable by comparing service_order.
7692         (getaddrinfo): Initialize service_order.
7693         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7694         service_order field to sorting structure.
7695         * posix/tst-rfc3484-2.c (do_test): Likewise.
7696
7697         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7698         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7699         __tzset_parse_tz and updating of daylight, timezone, tzname into
7700         update_vars.
7701         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7702         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7703         happens in __tz_compute.
7704         * time/tzfile.c (__tzfile_read): Also read TZ string.
7705         (find_transition): Fold into __tzfile_compute.
7706         (__tzfile_compute): For times beyond the last transition try to
7707         use the TZ string.
7708         * timezone/tst-timezone.c: Information in daylight and tzname does
7709         change for Asia/Tokyo timezone with more concrete information.
7710         Remove the test.
7711
7712         * include/stdio.h: Add libc_hidden_proto for ftello.
7713         * libio/ftello.c: Add libc_hidden_def.
7714
7715         [BZ #1140]
7716         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7717         on the specified time and not the last entries in the file.  Move
7718         code to determine tzname[] to...
7719         (find_transition): ...here.  Add ugly guess for times before the
7720         first transition.
7721
7722 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7723
7724         [BZ #3195]
7725         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7726         no entry.
7727         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7728         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7729         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7730         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7731
7732         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7733         read mechanism when there are no group members and avoid no-op
7734         read syscall in this case.
7735
7736         [BZ #3242]
7737         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7738         (__readall): If reading failed due to EAGAIN error wait a bit
7739         and possibly try again.
7740         (__readvall): Likewise.
7741
7742 2007-10-13  Bruno Haible  <bruno@clisp.org>
7743
7744         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7745         when we cannot recode the message.
7746
7747 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7748
7749         [BZ #4359]
7750         * libio/__freading.c (__freading): Don't return true for
7751         write-only streams.  For read/write streams, check whether we
7752         performed a read operation already.
7753         * libio/Makefile (tests): Add tst-ext2.
7754         * libio/tst-ext2.c: New file.
7755
7756 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7757
7758         * locale/programs/repertoire.c (repertoire_read): Always free
7759         memory for repertoire file name [Coverity CID 270].
7760
7761         * elf/cache.c (save_aux_cache): Free memory allocated for
7762         temporary file name [Coverity CID 267].
7763
7764 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7765
7766         * misc/Makefile (headers): Add bits/error.h.
7767
7768 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7769
7770         * posix/fnmatch_loop.c: Take rule index returned as part of
7771         findidx return value into account when accessing weights.
7772         * posix/regcomp.c: Likewise.
7773         * posix/regexec.c: Likewise.
7774
7775         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7776         (skip_to): Fix problems with parameter of elifdef/elifndef.
7777
7778 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7779
7780         * iconv/gconv_simple.c: Add some branch prediction.
7781
7782 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7783
7784         * locale/programs/ld-collate.c (collate_read): If ignore_content
7785         and nowtok is tok_define, eat any tok_eol tokens.
7786
7787 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7788
7789         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7790         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7791
7792         * inet/netinet/in.h: Don't include bits/socket.h.
7793         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7794         macro.
7795         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7796
7797 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7798
7799         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7800         and tok_elifndef.
7801         * locale/programs/locfile-kw.gperf: Likewise.
7802         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7803
7804 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7805
7806         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7807         (__find_specwc): Change into __extern_always_inline function.
7808         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7809         (__parse_one_specmb): Remove ps argument.
7810         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7811         Adjust __find_specmb and __parse_one_specmb callers.
7812         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7813         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7814         Removed.
7815         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7816         caller.
7817
7818 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7819
7820         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7821         with some Pentium Ds.
7822
7823 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7824
7825         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7826         __read not read.
7827         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7828         __write not write.
7829
7830 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7831
7832         [BZ #181]
7833         * locale/C-time.c: Set week_1stday data to 19971201.
7834         * locale/programs/ld-time.c (time_finish): Default for
7835         first_workday is Monday.
7836
7837         [BZ #2633]
7838         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7839
7840         [BZ #5103]
7841         * posix/glob.c (glob): Recognize patterns starting \/.
7842         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7843         (main): Add test for pattern starting \/.
7844
7845         * misc/error.h: Use __const instead of const.
7846         * misc/bits/error.h: Likewise.
7847
7848 2007-10-07  Andreas Jaeger  <aj@suse.de>
7849
7850         * include/bits/error.h: New file.
7851
7852         * misc/bits/error.h (error_at_line): Fix prototype.
7853
7854 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7855
7856         [BZ #3924]
7857         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7858         more little bugs in creating the stack frame when pltexit has to
7859         be called.
7860
7861         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7862         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7863
7864         [BZ #4407]
7865         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7866         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7867         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7868         * math/libm-test.inc: Add test for this case.
7869
7870         [BZ #5010]
7871         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7872         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7873         map service succeeded.
7874         (svc_is_mapped): New function.
7875         (svc_unregister): Use it before trying to unmap service.
7876
7877 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7878
7879         * timezone/zic.c: Update from tzcode2007h.
7880
7881         [BZ #5063]
7882         * timezone/africa: Update from tzdata2007h.
7883         * timezone/antarctica: Likewise.
7884         * timezone/asia: Likewise.
7885         * timezone/australasia: Likewise.
7886         * timezone/europe: Likewise.
7887         * timezone/leapseconds: Likewise.
7888         * timezone/northamerica: Likewise.
7889         * timezone/southamerica: Likewise.
7890         * timzeone/zone.tab: Likewise.
7891
7892         [BZ #5104]
7893         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7894
7895         [BZ #5113]
7896         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7897         avoid warning with -Wconversion.
7898         (__strndup): Likewise.
7899         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7900
7901         [BZ #5112]
7902         * nscd/connections.c (restart): Don't resync if database is
7903         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7904
7905         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7906         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7907
7908         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7909         evetnfd_read, eventfd_write.
7910         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7911         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7912         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7913         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7914         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7915         eventfd_write for GLIBC_2.7.
7916
7917         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7918         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7919         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7920         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7921
7922 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7923
7924         * stdlib/msort.c: Include stdint.h.
7925         (struct msort_param): New type.
7926         (msort_with_tmp): Use struct msort_param pointer for unchanging
7927         parameters.  Add optimized handling for several common sizes
7928         and indirect sorting mode.
7929         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7930         sorting.
7931         Suggested by Belazougui Djamel .
7932
7933         * stdlib/Makefile (tests): Add tst-qsort2.
7934         * stdlib/tst-qsort2.c: New test.
7935
7936 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7937
7938         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7939         for dup2 in case another thread races with the current one.  Retry
7940         in this case.
7941
7942         * misc/error.h: Remove support for use outside of libc.  We have to
7943         include <features.h> now.  Include <bits/error.h> if possible.
7944         * misc/bits/error.h: New file.
7945
7946 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7947
7948         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7949         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7950         __extern_always_inline functions unconditionally, drop macros.
7951
7952         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7953         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7954         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7955
7956         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7957         add __artificial__ attribute.
7958
7959 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7960
7961         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7962         backward to forward direction.
7963
7964         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7965
7966         [BZ #645]
7967         * locale/programs/ld-collate.c (collate_finish): Compare against last
7968         used section which is known to have rules defined.
7969         (collate_read): After order_start, correctly record order of sections
7970         and queue sections up.
7971
7972 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7973
7974         [BZ #5071]
7975         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7976         the same number of pages.
7977         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7978
7979         * locale/programs/ld-collate.c (collate_read): After initial copy
7980         statement, continue in state 0.
7981
7982         * include/stdio_ext.h (__fsetlocking): Define as macro.
7983
7984 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7985
7986         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7987         of section order.
7988
7989         * po/pt_BR.po: Fix typo.
7990
7991 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7992
7993         * iconvdata/Makefile (modules): Add ISO8859-9E.
7994         (distribute): Add iso8859-9e.c.
7995         (gen-8bit-gap-modules): Add iso8859-9e.
7996         * iconvdata/iso8859-9e.c: New file.
7997         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7998         * iconvdata/TESTS: Likewise.
7999         * iconvdata/tst-tables.sh: Likewise.
8000
8001         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8002
8003         * locale/iso-639.def: Add several new entries.
8004
8005 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8006
8007         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8008         void * pointers instead of struct link_map **.
8009         (_dl_scope_free): Change argument type to void *.
8010         * include/link.h (struct link_map): Change type of l_reldeps
8011         to struct link_map_reldeps, move l_reldepsact into that
8012         struct too.
8013         * elf/dl-deps.c: Include atomic.h.
8014         (_dl_map_object_deps): Only change l->l_initfini when it is
8015         fully populated, use _dl_scope_free for freeing it.  Optimize
8016         removal of libs from reldeps by using l_reserved flag, when
8017         some removal is needed, allocate a new list instead of
8018         reallocating and free the old with _dl_scope_free.  Adjust
8019         for l_reldeps and l_reldepsact changes.
8020         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8021         searching in l_initfini and l_reldeps without holding dl_load_lock.
8022         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8023         l_reldepsact changes.
8024         * elf/dl-close.c (_dl_close_worker): Likewise.
8025         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8026
8027 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8028
8029         * iconvdata/Makefile (modules): Add KOI8-RU.
8030         (distribute): Add koi8-ru.c.
8031         (gen-8bit-gap-modules): Add koi8-ru.
8032         * iconvdata/koi8-ru.c: New file.
8033         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8034         * iconvdata/TESTS: Likewise.
8035         * iconvdata/tst-tables.sh: Likewise.
8036
8037         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8038
8039 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8042         with __warning__/__error__ attributes.
8043         (__warnattr): Define.
8044         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8045         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8046         __warnattr.
8047         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8048         of __*_chk if compile time detectable overflow is found.
8049         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8050         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8051         with __warnattr.
8052         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8053         instead of __*_chk if compile time detectable overflow is found.
8054         (__gets_alias): Rename to...
8055         (__gets_warn): ... this.  Add __warnattr.
8056         (gets): Call __gets_warn instead of __gets_alias.
8057         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8058         aliases with __warnattr.
8059         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8060         time detectable overflow is found.
8061         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8062         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8063         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8064         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8065         __getdomainname_chk_warn): New aliases with __warnattr.
8066         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8067         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8068         __*_chk_warn instead of __*_chk if compile time detectable overflow
8069         is found.
8070         (__getgroups_chk): Rename argument to __listlen from listlen.
8071         (__getwd_alias): Rename to...
8072         (__getwd_warn): ... this.  Add __warnattr.
8073         (getwd): Call __getwd_warn instead of __getwd_alias.
8074         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8075         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8076         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8077         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8078         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8079         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8080         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8081         compile time detectable overflow is found.
8082         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8083         to use __*_chk or not.
8084         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8085         in comparisons which function should be called and in __*_chk*
8086         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8087         detectable overflow is found.
8088         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8089         __*_chk argument.
8090         * debug/tst-chk1.c (do_test): Add a few more tests.
8091
8092 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8093
8094         [BZ #5058]
8095         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8096         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8097         (_nl_unload_domain): Finalize conversions_lock.
8098         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8099         handling table of known conversions.
8100
8101 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8102
8103         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8104         close_not_cancel_no_status instead of close.
8105
8106 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8107
8108         [BZ #5028]
8109         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8110         nrules != 0 for multibyte chars.
8111
8112 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8113
8114         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8115         Provide better error message in case the type is unknown.
8116
8117         [BZ #4963]
8118         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8119         * string/stratcliff.c: Make usable to test wide char functions.
8120         * wcsmbs/wcsatcliff.c: New file.
8121         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8122
8123         [BZ #4972]
8124         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8125         (distribute): Add mac-centraleurope.c.
8126         (gen-8bit-gap-modules): Add mac-centraleurope.
8127         * iconvdata/mac-centraleurope.c: New file.
8128         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8129         * iconvdata/TESTS: Likewise.
8130         * iconvdata/tst-tables.sh: Likewise.
8131
8132         [BZ #5043]
8133         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8134
8135 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8136
8137         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8138         from __x86_64_core_cache_size_half.
8139         (init_cacheinfo): Compute shared cache size for AMD processors with
8140         shared L3 correctly.
8141         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8142         name change.
8143         Patch in large parts by Evandro Menezes.
8144
8145 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8146
8147         * elf/dl-lookup.c (add_dependency): Handle failing memory
8148         allocation for dependency list.  Remove unnecessary check.
8149
8150         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8151         open/close when determining source addresses.
8152
8153         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8154         sha512-crypt, and sha512.
8155         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8156         (distribute): Add sha256.h and sha512.h.
8157         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8158         and call the appropriate code.
8159         * crypt/sha256-crypt.c: New file.
8160         * crypt/sha256.c: New file.
8161         * crypt/sha256.h: New file.
8162         * crypt/sha256c-test.c: New file.
8163         * crypt/sha256test.c: New file.
8164         * crypt/sha512-crypt.c: New file.
8165         * crypt/sha512.c: New file.
8166         * crypt/sha512.h: New file.
8167         * crypt/sha512c-test.c: New file.
8168         * crypt/sha512test.c: New file.
8169
8170 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8171
8172         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8173         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8174         __syslog_chk.
8175
8176 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8177
8178         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8179         %as in fscanf format strings.
8180
8181         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8182         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8183         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8184         Likewise.
8185         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8186         Likewise.
8187
8188         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8189         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8190         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8191         * elf/dl-sym.c (do_sym): Likewise.
8192         * include/link.h (struct link_map): Add l_serial field.
8193         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8194         * elf/dl-lookup.c (add_dependency): Add flags argument.
8195         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8196         flags, use THREAD_GSCOPE_RESET_FLAG before and
8197         THREAD_GSCOPE_SET_FLAG after
8198         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8199         Don't dereference map until it has been found on some list.
8200         If map->l_serial changed, return -1.
8201
8202 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8203
8204         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8205         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8206         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8207         libc_hidden_proto.
8208         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8209         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8210         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8211         add libc_hidden_proto.
8212         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8213         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8214         conformance requested.
8215         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8216         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8217         conformance requested.
8218         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8219         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8220         conformance requested.
8221         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8222         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8223         ISO C99 or POSIX conformance requested.
8224         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8225         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8226         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8227         and __isoc99_vsscanf@@GLIBC_2.7.
8228         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8229         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8230         (tests): Add scanf14.
8231         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8232         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8233         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8234         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8235         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8236         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8237         from using internal headers.
8238         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8239         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8240         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8241         and __isoc99_vswscanf@@GLIBC_2.7.
8242         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8243         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8244         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8245         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8246         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8247         * stdio-common/isoc99_scanf.c: New file.
8248         * stdio-common/isoc99_vsscanf.c: New file.
8249         * stdio-common/isoc99_vscanf.c: New file.
8250         * stdio-common/isoc99_vfscanf.c: New file.
8251         * stdio-common/isoc99_fscanf.c: New file.
8252         * stdio-common/isoc99_sscanf.c: New file.
8253         * wcsmbs/isoc99_fwscanf.c: New file.
8254         * wcsmbs/isoc99_vswscanf.c: New file.
8255         * wcsmbs/isoc99_swscanf.c: New file.
8256         * wcsmbs/isoc99_wscanf.c: New file.
8257         * wcsmbs/isoc99_vwscanf.c: New file.
8258         * wcsmbs/isoc99_vfwscanf.c: New file.
8259         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8260         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8261         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8262         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8263         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8264         * stdio-common/scanf14.c: New test.
8265         * stdio-common/scanf15.c: New test.
8266         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8267         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8268         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8269         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8270         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8271         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8272         __nldbl___isoc99_scanf@@GLIBC_2.7,
8273         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8274         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8275         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8276         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8277         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8278         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8279         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8280         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8281         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8282         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8283         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8284         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8285         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8286         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8287         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8288         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8289         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8290         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8291         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8292         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8293         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8294         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8295         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8296         functions.
8297         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8298         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8299         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8300         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8301         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8302         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8303         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8304         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8305         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8306         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8307         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8308         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8309
8310         * stdio-common/Makefile (tests): Add scanf13.
8311         (scanf13-ENV): New.
8312         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8313         m modifier followed by l.
8314         (STRING_ARG): Add width argument.
8315         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8316         <case L_('C')>: Handle %mlc and %mC.
8317         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8318         arguments.
8319         * stdio-common/scanf13.c: New test.
8320
8321         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8322         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8323
8324 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8325
8326         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8327         type and __THROW marker of splice, vmsplice, and tee.
8328         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8329         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8330         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8331         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8332         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8333         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8334         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8335         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8336         as cancellation points.
8337
8338 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8339
8340         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8341         parse more than three parts of the version number.
8342
8343 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8344
8345         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8346         modifier.  Patch by Jakub Jelinek.
8347
8348 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8349
8350         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8351         call_fallocate in misc subdir.
8352         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8353         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8354         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8355         instead of __fallocate64.
8356         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8357
8358 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8359
8360         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8361         * rt/Makefile (headers): Add bits/mqueue2.h.
8362         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8363         optimizing with GCC and __va_arg_pack_len is defined.
8364         * rt/bits/mqueue2.h: New file.
8365         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8366         (mq_open): New strong_alias.
8367         (__mq_open_2): New function.
8368         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8369         (mq_open): New strong_alias.
8370         (__mq_open_2): New function.
8371         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8372         * Versions.def (librt): Add GLIBC_2.7 version.
8373         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8374         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8375
8376         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8377         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8378         is defined rather than when not C++.
8379         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8380         __openat64_alias): New redirects.
8381         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8382         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8383         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8384         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8385         functions instead of function-like macros.
8386
8387 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8388
8389         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8390         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8391         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8392
8393 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8394
8395         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8396         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8397
8398 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8399
8400         * inet/tst-network.c: Increment ERRORS for failing tests.
8401
8402 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8403
8404         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8405         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8406         implement as __extern_always_inline function.
8407         (vsyslog): Define as __extern_always_inline function unconditionally.
8408         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8409         When __va_arg_pack is defined, implement as __extern_always_inline
8410         functions.
8411         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8412         __extern_always_inline functions unconditionally.
8413         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8414         bits/stdio2.h will be included.
8415         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8416         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8417         implement as __extern_always_inline functions.
8418         (vswprintf, vwprintf, vfwprintf): Define as
8419         __extern_always_inline functions unconditionally.
8420         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8421
8422 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8423
8424         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8425         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8426         attribute.
8427         * include/features.h (__USE_EXTERN_INLINES): Define only when
8428         __extern_inline is defined.
8429         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8430         is defined instead of when not __cplusplus.
8431         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8432         is defined instead of when not __cplusplus.
8433         * socket/sys/socket.h: Include bits/socket2.h when
8434         __extern_always_inline is defined instead of when not __cplusplus.
8435         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8436         is defined instead of when not __cplusplus.
8437         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8438         is defined instead of when not __cplusplus.
8439         * string/string.h: Include bits/string3.h when __extern_always_inline
8440         is defined instead of when not __cplusplus.
8441         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8442         is defined instead of when not __cplusplus.
8443         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8444         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8445         is not defined.
8446         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8447         defined __extern_always_inline instead of !defined __cplusplus.
8448         * libio/bits/stdio-ldbl.h: Likewise.
8449         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8450         * misc/bits/syslog.h (syslog): Don't define for C++.
8451         (vsyslog): Use __extern_always_inline function for C++ instead of
8452         a macro.
8453         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8454         whenever that macro is defined.
8455         (vprintf): Don't provide the inline for C++.
8456         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8457         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8458         define the macros for C++.
8459         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8460         __extern_always_inline functions for C++.
8461         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8462         stat64, lstat64, fstat64, fstatat64): Don't define if not
8463         __USE_EXTERN_INLINES.
8464         * wcsmbs/bits/wchar2.h: Fix #error message.
8465         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8466         (vswprintf, vwprintf, vfwprintf): Define using
8467         __extern_always_inline functions for C++.
8468         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8469         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8470         strncpy, strcat, strncat): Define as __extern_always_inline
8471         functions instead of macros for C++.
8472         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8473         defined __extern_inline.
8474         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8475         to __extern_inline whenever that macro is defined.
8476         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8477         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8478         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8479         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8480         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8481         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8482         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8483         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8484         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8485         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8486         prototypes.  Only provide __extern_inline routines if
8487         __USE_EXTERN_INLINES.
8488         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8489         tests.
8490         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8491         For now avoid some *printf tests in C++.  Skip all testing
8492         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8493         is not.
8494         * debug/tst-chk4.cc: New file.
8495         * debug/tst-chk5.cc: New file.
8496         * debug/tst-chk6.cc: New file.
8497         * debug/tst-lfschk4.cc: New file.
8498         * debug/tst-lfschk5.cc: New file.
8499         * debug/tst-lfschk6.cc: New file.
8500         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8501         prototypes in C++.
8502         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8503         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8504         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8505
8506 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * po/cs.po: Update from translation team.
8509
8510 2007-09-11  Roland McGrath  <roland@redhat.com>
8511
8512         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8513         compiling.
8514
8515 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8516
8517         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8518
8519 2007-09-05  Roland McGrath  <roland@redhat.com>
8520
8521         * manual/signal.texi (Signaling Another Process): Typo fix.
8522         From Karl Berry <karl@freefriends.org>.
8523
8524 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8525
8526         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8527         zero if not defined.
8528         (make_request): Recognize optimistic addresses and treat them like
8529         deprecated addresses.
8530         Reported by Neil Horman <nhorman@redhat.com>.
8531
8532 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8533
8534         * nscd/connections.c (send_ro_fd): Also transfer file size.
8535         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8536         file size don't call fstat.
8537
8538         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8539         ahead and map the file.  This should always be correct and we can
8540         catch problems later.
8541
8542 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8543
8544         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8545         prototypes.
8546         (__fread_alias, __fread_unlocked_alias): New aliases.
8547         (fread): New extern inline.
8548         (fread_unlocked): Likewise.  Undef macro before definition of
8549         the inline function.
8550         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8551         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8552         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8553         and __fread_unlocked_chk@@GLIBC_2.7.
8554         * debug/fread_chk.c: New file.
8555         * debug/fread_u_chk.c: New file.
8556         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8557
8558 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8559
8560         * sysdeps/unix/sysv/linux/syscalls.list
8561         (personality): Change caller to EXTRA.
8562
8563 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8564
8565         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8566         to keep gcc quiet.
8567         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8568
8569         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8570         NDEBUG is defined.
8571
8572         * Makerules: Use -p option with mkdir.
8573
8574         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8575         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8576         (_xdr_directory_obj): Likewise.
8577         (xdr_entry_obj): Likewise.
8578         (xdr_group_obj): Likewise.
8579         (xdr_link_obj): Likewise.
8580         (xdr_table_obj): Likewise.
8581         (_xdr_nis_result): Likewise.
8582         (_xdr_ns_request): Likewise.
8583         (_xdr_ib_request): Likewise.
8584         (_xdr_nis_taglist): Likewise.
8585         (xdr_cback_data): Likewise.
8586         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8587         (xdr_ypresp_maplist): Likewise.
8588
8589         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8590
8591         * posix/regex_internal.h: Prevent some declarations and definitions
8592         to be seen when used in tests.
8593
8594         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8595         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8596
8597         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8598
8599         * config.make.in (datarootdir): Add to shut up configure.
8600
8601         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8602         associativity for fully-associative caches.
8603
8604         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8605         requests.  Fill on more associativity values for L2.
8606         Patch mostly by Evandro Menezes.
8607
8608 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8609
8610         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8611         (_libc_vdso_platform_setup): Avoid using exported variable by using
8612         alias.
8613
8614         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8615
8616         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8617         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8618         defined.
8619
8620 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8621
8622         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8623         align stack for call if pltexit is to be used.
8624
8625         [BZ #3924]
8626         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8627         align for function call in case pltexit has to be called later.
8628
8629         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8630         implicit atomic operation when storing function pointer.
8631         (_dl_runtime_profile): Likewise.
8632
8633 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8634
8635         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8636         NIS_NOTFOUND.
8637
8638 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8639
8640         [BZ #4566]
8641         * string/strtok.c: Fix typo in comment.
8642
8643         [BZ #4582]
8644         * debug/segfault.c: Fix typos in comments.
8645
8646         [BZ #4588]
8647         * stdio-common/tempnam.c: Fix comment, it is not checked that
8648         TMPDIR points to a writable directory.
8649
8650         [BZ #4726]
8651         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8652         memory allocated for the name server address.
8653
8654         [BZ #4946]
8655         * nscd/connections.c (handle_request): Using sendfile always
8656         requires that mmap is used for the database.
8657         Patch by Petr Baudis <pasky@suse.cz>.
8658
8659         [BZ #4905]
8660         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8661         suddenly has two or more addresses, ignore it and remove the old
8662         entry.
8663
8664         [BZ #4814]
8665         * resolv/res_hconf.c: Prepare for compiling outside libc.
8666         * nscd/res_hconf.c: New file.
8667         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8668         the new file.
8669         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8670         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8671
8672         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8673
8674         [BZ #4925]
8675         * debug/pcprofiledump.c: Turn on internationalization by calling
8676         setlocale.  Patch mostly by Benno Schulenberg.
8677
8678         [BZ #4936]
8679         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8680         the state.
8681         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8682         * iconvdata/bug-iconv5.c: New file.
8683
8684 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8685
8686         [BZ #4896]
8687         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8688         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8689         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8690         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8691         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8692         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8693         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8694         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8695
8696 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8697
8698         [BZ #4937]
8699         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8700         lookup loop.  Suggested by John Reiser.
8701
8702 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8703
8704         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8705
8706 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8707
8708         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8709         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8710         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8711         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8712         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8713         to...
8714         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8715
8716 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8717
8718         * po/nl.po: Update from translation team.
8719
8720 2007-08-16  Andreas Jaeger  <aj@suse.de>
8721
8722         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8723         Reported by Peter Festner <peter.festner@ewetel.net>.
8724
8725 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8726
8727         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8728
8729 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8730
8731         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8732         to check for undefined symbols.
8733
8734         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8735         If the syscall fails, set errno to the actual returned error number
8736         rather than EINVAL.
8737         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8738         arguments are incorrect, set errno to EINVAL, if the syscall
8739         fails, set errno to the actual returned error number.
8740
8741         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8742         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8743
8744         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8745         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8746         file.
8747         (ASI_PNF, ASI_BLK_P): Don't define.
8748         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8749         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8750         file.
8751         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8752         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8753         file.
8754
8755 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8756
8757         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8758         FE_UNDERFLOW on Niagara CPUs.
8759
8760         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8761         exceptions.
8762
8763 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8764
8765         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8766         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8767         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8768         flush should be used or not inside of the function.
8769         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8770
8771         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8772         __thread_start): Use HIDDEN_JUMPTARGET.
8773         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8774         __thread_start): Likewise.
8775         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8776
8777         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8778         Add libc_hidden_proto.
8779         (STRTOF): Add libc_hidden_proto.
8780         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8781         (strtold_l, wcstold_l): Use them as second argument for
8782         long_double_symbol.
8783
8784 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8785
8786         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8787
8788 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8789
8790         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8791
8792 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8793
8794         * po/bg.po: New file.  From the translation team.
8795
8796 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8797
8798         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8799         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8800         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8801         when each feature was introduced.
8802
8803         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8804         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8805         (CHECK_HASH): New macro.
8806         (PREPARE_VERSION): Use it.
8807
8808         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8809         prototype if not __ASSUME_PSELECT.
8810         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8811         prototype if not __ASSUME_PPOLL.
8812
8813         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8814
8815         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8816         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8817         is defined.
8818
8819 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8820
8821         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8822         (_libc_vdso_platform_setup): If vDSO is not available point
8823         __vdso_gettimeofday to the vsyscall.
8824         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8825         __vdso_gettimeofday instead of vsyscall.
8826
8827 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8828
8829         * nscd/servicescache.c: Include kernel-features.h.
8830         * nscd/gai.c: Likewise.
8831         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8832         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8833         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8834         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8835         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8836         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8837         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8838         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8839         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8840
8841 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8842
8843         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8844         and _dl_get_origin defines anymore.
8845
8846         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8847         Build fix for systems which might lack POSIX timer support.
8848
8849         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8850         (_libc_vdso_platform_setup): Mangle function pointers before storing
8851         them.
8852         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8853         Demangle vdso pointer before use.
8854         (INTERNAL_VSYSCALL): Likewise.
8855
8856         * elf/cache.c (primes): Mark as const.
8857         Noted by Roland McGrath.
8858
8859 2007-08-01  Andreas Jaeger  <aj@suse.de>
8860             Jakub Jelinek  <jakub@redhat.com>
8861
8862         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8863         (options): Add option.
8864         (parse_opt): Handle option.
8865         (manual_link): Adjust process_file caller.  Call implicit_soname.
8866         (search_dir): Formatting.  Use and populate auxiliary cache.
8867         (main): Load and save auxiliary cache.
8868         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8869         stat64 from fstat64 to caller.
8870         (implicit_soname): New function.
8871         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8872         leave *soname as NULL.
8873         * elf/cache.c: Include libgen.h.
8874         (print_entry, print_cache, compare, save_cache, add_to_cache):
8875         Formatting and cleanups.
8876         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8877         aux_cache_file): New structures.
8878         (AUX_CACHEMAGIC): Define.
8879         (primes): New array.
8880         (aux_hash_size, aux_hash): New variables.
8881         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8882         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8883         load_aux_cache, save_aux_cache): New functions.
8884         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8885         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8886         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8887         (process_file): Adjust prototype.
8888
8889 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8890
8891         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8892         with __need_size_t.
8893
8894 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8895
8896         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8897         r_found_version structure as second parameter.
8898         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8899         (_dl_vdso_vsym): Change type of second parameter accordingly.
8900         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8901         (_libc_vdso_platform_setup): Adjust.
8902         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8903         (_libc_vdso_platform_setup): Likewise.
8904
8905         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8906         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8907         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8908         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8909         * csu/libc-start.c: Pretty printing.
8910         Use VDSO_SETUP if defined.
8911         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8912         and let generic code call into _libc_vdso_platform_setup.
8913         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8914         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8915         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8916         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8917         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8918         for GLIBC_PRIVATE.
8919         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8920         (sysdep_rountines): Add dl-vdso.
8921
8922         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8923         of routines.
8924
8925         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8926         attribute_hidden to __vdso_gettimeofday prototype.
8927
8928 2007-08-12  Roland McGrath  <roland@redhat.com>
8929
8930         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8931         From: Karl Berry <karl@freefriends.org>.
8932
8933 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8934
8935         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8936         an atime update for the files we read.
8937
8938 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8939
8940         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8941
8942         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8943         instead of mkstemp.
8944
8945         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8946         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8947         * misc/mkostemp.c: New file.
8948         * misc/mkostemp64.c: New file.
8949         * stdlib/stdlib.h: Declare the new functions.
8950         * sysdeps/posix/tempname.c: Add new parameter which is added to
8951         the flags for open.  Remove __GT_BIGFILE handling.
8952         * stdio-common/tempname.c: Likewise.
8953         * include/stdio.h: Adjust __gen_tempname prototype.
8954         Renumber __GT_* constants.
8955         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8956         * misc/mkdtemp.c: Likewise.
8957         * misc/mkstemp.c: Likewise.
8958         * misc/mkstemp64.c: Likewise.
8959         * misc/mktemp.c: Likewise.
8960         * stdio-common/tempnam.c: Likewise.
8961         * stdio-common/tmpfile.c: Likewise.
8962         * stdio-common/tmpfile64.c: Likewise.
8963         * stdio-common/tmpnam.c: Likewise.
8964         * stdio-common/tmpnam_r.c: Likewise.
8965
8966 2007-08-10  Roland McGrath  <roland@frob.com>
8967
8968         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8969         New macros.
8970         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8971         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8972
8973 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8974
8975         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8976         possible.
8977         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8978         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8979         * nss/nss_files/files-have_o_cloexec.c: New file.
8980
8981         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8982         available.
8983
8984 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8985
8986         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8987         ___new_wcstold_l): New weak aliases.
8988         (strtold_l, wcstold_l): Use them as second argument for
8989         long_double_symbol.
8990
8991 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8992
8993         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8994         register in test for error.
8995
8996         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8997         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8998
8999         * po/sv.po: Update from translation team.
9000
9001 2007-08-06  Roland McGrath  <roland@redhat.com>
9002
9003         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9004         Remove __strto*_l inlines.
9005         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9006         * stdlib/strtod.c: Add libc_hidden_def.
9007         * stdlib/strtod_l.c: Likewise.
9008         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9009         for __new_strtold and __new_wcstold.
9010         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9011         __STRTOF, STRTOF.
9012         * stdlib/strtol.c: Add libc_hidden_def.
9013         * stdlib/strtol_l.c: Likewise.
9014         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9015         strtoq.
9016
9017         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9018
9019         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9020         * scripts/data/localplt-generic.data: ... here.
9021         * elf/Makefile (check-data): Get generic file if no other.
9022         ($(objpfx)check-localplt.out): Make target unconditional.
9023
9024         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9025         Use ElfW(Nhdr).
9026
9027 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9028
9029         * po/zh_CN.po: Updated translation from translation team.
9030
9031 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9032
9033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9034         Don't use CGOTSETUP and CGOTRESTORE macros.
9035
9036 2007-08-04  Roland McGrath  <roland@redhat.com>
9037
9038         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9039
9040 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9041
9042         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9043         __extension__ around the whole statement expression.
9044
9045 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9046
9047         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9048         elements during initialization.
9049
9050         * po/pl.po: Updated translation from translation team.
9051         * po/tr.po: Likewise.
9052         * po/nl.po: Likewise.
9053
9054 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9055
9056         * rt/aio.h: Add __nonnull attributes.
9057
9058 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9059
9060         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9061         * stdlib/Makefile (tests): Add tst-strtod5.
9062         (tst-strtod5-ENV): New.
9063         * stdlib/tst-strtod5.c: New file.
9064
9065         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9066         failed.
9067         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9068         on failure.
9069
9070         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9071         allocated.
9072
9073 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9074
9075         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9076         numbers.
9077
9078 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9079
9080         * io/Makefile (aux): Add have_o_cloexec.
9081         * include/fcntl.h: Declare __have_o_cloexec.
9082         * io/have_o_cloexec.c: New file.
9083         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9084         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9085         fcntl call if not necessary.
9086         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9087         of local variable.
9088
9089         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9090         Avoid memset, add explicit initialization.
9091         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9092         to the end and change into zero-sized array.
9093         Move lock member to fill a hole on 64-bit platforms.
9094
9095         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9096         inline functions.
9097         * include/stdlib.h: Add __strto*_internal prototypes here.
9098         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9099         inline functions.
9100         * include/wchar.h: Add __wcsto*_internal prototypes.
9101         * sysdeps/generic/inttypes.h: No need to protect the declaration
9102         of the __strto*_internal and __wcsto*_internal members here.
9103
9104         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9105
9106 2007-08-02  Roland McGrath  <roland@redhat.com>
9107
9108         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9109         $(inst_bindir)/getconf if possible.
9110
9111         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9112         (generated): Add it.
9113         ($(inst_libexecdir)/getconf): Use it.
9114
9115 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9116
9117         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9118         /proc is faster and sufficient.  /sys is still needed for
9119         __get_nprocs_conf.
9120
9121 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9122
9123         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9124         syscall as __fallocate64.
9125         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9126         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9127
9128 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9129
9130         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9131         value.
9132
9133         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9134         if off_t is different rank from size_t.
9135
9136         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9137         uw_frame_state_for): Avoid type punning warnings.
9138         * sysdeps/generic/unwind-dw2-fde-glibc.c
9139         (_Unwind_IteratePhdrCallback): Likewise.
9140         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9141         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9142         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9143         pointers.
9144
9145 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9146
9147         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9148         total processors using sysfs.
9149         (__get_nprocs): Use sysfs to determine which processors are online.
9150
9151 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9152
9153         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9154         syscall arguments count.
9155
9156         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9157
9158 2007-07-30  Roland McGrath  <roland@redhat.com>
9159
9160         * manual/libc.texinfo: Update copyrights, formatting magic, and
9161         @dircategory.  From Karl Berry <karl@freefriends.org>.
9162
9163 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9164
9165         [BZ #4860]
9166         * io/Makefile (headers): Add bits/fcntl2.h.
9167
9168         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9169         using gcc builtin.
9170         (__CPU_EQUAL_S): Likewise.
9171
9172         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9173         (tests): Add tst-cpuset.
9174         * posix/sched_cpualloc.c: New file.
9175         * posix/sched_cpufree.c: New file.
9176         * posix/tst-cpuset.c: New file.
9177         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9178         GLIBC_2.7.
9179         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9180         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9181         macros.  Define CPU_*_S macros.
9182
9183 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9184
9185         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9186         entry.
9187
9188         [BZ #4858]
9189         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9190         #.0g and value rounded to 1.0.
9191         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9192
9193 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9194
9195         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9196         for int_frac_digits and frac_digits.
9197
9198         * login/logout.c (logout): Avoid aliasing violation.
9199         * login/logwtmp.c (logwtmp): Likewise.
9200
9201         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9202
9203         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9204         to avoid warning.
9205         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9206         warning.
9207         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9208         warning.
9209         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9210         to avoid warnings.
9211
9212         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9213         void **.
9214         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9215
9216         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9217         char * to avoid warning.
9218         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9219
9220         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9221
9222         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9223         allocate_arrays): Cast second argument to charmap_find_symbol
9224         to char * to avoid warnings.
9225
9226         * locale/programs/repertoire.c (repertoire_new_char): Change
9227         from_nr, to_nr and cnt to unsigned long, adjust printf format
9228         string.
9229
9230         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9231         Cast second argument to new_element to char * to avoid warnings.
9232
9233         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9234
9235         * intl/gettextP.h (struct loaded_domain): Change plural to const
9236         struct expression *.
9237         * intl/plural-eval.c (plural_eval): Change first argument to
9238         const struct expression *.
9239         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9240         argument to const struct expression **.
9241         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9242         prototypes.
9243         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9244         in call to __gettext_free_exp.
9245
9246         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9247         unitialized wstring/wpattern var warnings.
9248
9249         * posix/runtests.c (struct a_test): Make data field const char *.
9250
9251         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9252         vars if not LDBL_MANT_DIG >= 106.
9253
9254         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9255
9256         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9257         __find_specmb to avoid warning.
9258
9259         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9260
9261         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9262         to avoid warnings.
9263
9264         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9265         initializer.
9266
9267         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9268         tv var when it will be actually used.
9269
9270         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9271         to avoid warnings.
9272
9273         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9274         char array resp. pointer.
9275         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9276         char array.
9277         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9278         to const unsigned char **.
9279         (ucs4_to_cns11643): Change second argument to unsigned char *.
9280         * iconvdata/euc-tw.c (BODY): Change endp type to
9281         const unsigned char *.
9282         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9283         to unsigned char *.
9284         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9285         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9286         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9287         types to unsigned char pointers/arrays instead of char.
9288         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9289         to unsigned char *.
9290         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9291         * iconvdata/jis0212.h: Include assert.h.
9292         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9293         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9294         of trying to handle that.
9295         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9296         shut up a warning.
9297         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9298         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9299         two dimensional const unsigned char arrays.
9300         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9301         Initialize endp to inptr to shut up a warning.
9302
9303 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9304
9305         [BZ #4772]
9306         * time/strptime_l.c (__strptime_internal): Silently ignore
9307         strftime modifiers and field width in recursive calls.
9308
9309         * include/time.h (enum ptime_locale_status): Remove.
9310         (__strptime_internal): Remove decided and era_cnt arguments,
9311         add statep argument.
9312         * time/strptime_l.c (__strptime_internal): Remove decided
9313         and era_cnt arguments, add statep argument.  Don't recompute
9314         any fields in recursive calls, only update caller's tm
9315         and state, if recursive call fails, don't change tm nor
9316         any state.
9317         (get_alt_number): Adjust.
9318         (recursive): Adjust caller.
9319         (strptime): Likewise.
9320         * time/strptime.c (strptime): Likewise.
9321
9322 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9323
9324         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9325         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9326         if from and to charsets are the same.
9327         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9328         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9329         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9330
9331 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9332
9333         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9334         Don't define wint_t when __need_mbstate_t unless it
9335         is necessary.
9336         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9337         in the typedef if possible.
9338         * wctype/wctype.h (wint_t): Define by including
9339         wchar.h with __need_wint_t instead of including stddef.h
9340         with __need_wint_t and as fallback definining it ourselves.
9341         * iconv/gconv.h (__need_wint_t): Define before including
9342         wchar.h.
9343         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9344         or _GLIBCPP_USE_WCHAR_T.
9345         (__need_wchar_t): Don't define
9346         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9347         (__need_wint_t): Don't define before including stddef.h,
9348         define before including wchar.h only if _LIBC or
9349         _GLIBCPP_USE_WCHAR_T.
9350         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9351         * sysdeps/mach/hurd/_G_config.h: Likewise.
9352         * sysdeps/generic/_G_config.h: Likewise.
9353         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9354         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9355         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9356         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9357
9358 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9359
9360         * sysdeps/posix/posix_fallocate64.c: Undefine
9361         __posix_fallocate64_l64 before alias handling.
9362         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9363         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9364         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9365         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9366
9367         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9368
9369 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9370
9371         * locale/programs/ld-collate.c (atwc): New variable.
9372         (add_to_tablewc): New toplevel function, moved from collate_output.
9373         (collate_output): Remove add_to_tablewc nested function.
9374
9375         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9376         (name_insert): New function.
9377         (write_output): Remove hash_table and hash_size vars and name_insert
9378         nested function.
9379
9380 2007-07-24  Roland McGrath  <roland@redhat.com>
9381
9382         * Makerules (install-others-programs-nosubdir): New target.
9383         (install-no-libc.a-nosubdir): Depend on it.
9384
9385         * iconv/Makefile (install-others-programs): Set this instead of
9386         install-others.
9387         * login/Makefile (install-others-programs): Likewise.
9388         * posix/Makefile (install-others-programs): Likewise.
9389
9390         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9391         dependencies.
9392
9393 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9394
9395         * io/Makefile (tests): Add tst-posix_fallocate.
9396         * io/tst-posix_fallocate.c: New file.
9397
9398         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9399         __ASSUME_FALLOCATE.
9400
9401 2007-07-22  Roland McGrath  <roland@frob.com>
9402
9403         * hurd/getdport.c: Add missing copyright year update.
9404
9405         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9406         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9407
9408 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9409
9410         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9411
9412         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9413         O_CLOEXEC is needed.
9414         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9415         Avoid additional fcntl to set O_CLOEXEC if not needed.
9416         * nis/nss_compat/compat-initgroups.c: Likewise.
9417         * nis/nss_compat/compat-pwd.c: Likewise.
9418         * nis/nss_compat/compat-spwd.c: Likewise.
9419
9420 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9421
9422         [BZ #3665]
9423         * manual/errno.texi: Change ECANCELED value to 119.
9424
9425         [BZ #4610]
9426         * mach/lock-intern.h: Include <sys/cdefs.h>.
9427
9428         [BZ #4178]
9429         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9430         reading A.
9431
9432         [BZ #4126]
9433         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9434         to __sigsuspend.
9435
9436         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9437
9438 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9439
9440         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9441         `__ASSEMBLER__'.
9442         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9443
9444 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9445
9446         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9447         descriptor received from nscd.
9448
9449         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9450
9451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9452         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9453         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9454         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9455         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9456         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9457
9458 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9459
9460         [BZ #4816]
9461         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9462
9463         [BZ #4813]
9464         * login/forkpty.c (forkpty): Close master and slave fds on
9465         fork failure.  Patch by
9466         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9467
9468 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9469
9470         * include/features.h (__USE_ISOC95): New define.
9471         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9472         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9473         for -std=iso9899:199409.
9474         * CONFORMANCE: Remove comments about unsupported AMD1.
9475
9476 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9477
9478         * sysdeps/ia64/sched_cpucount.c: New file.
9479         * sysdeps/powerpc/sched_cpucount.c: New file.
9480
9481         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9482         __BEGIN_DECLS/__END_DECLS around the prototype.
9483         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9484         pointer to const cpu_set_t.
9485
9486         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9487         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9488         __need_size_t and include stddef.h.
9489         * sysvipc/sys/msg.h: Likewise.
9490         * posix/sched.h: Likewise.
9491         * hurd/hurd/signal.h (__need_size_t): Define.
9492
9493         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9494         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9495         no longer defines wint_t or wchar_t.
9496
9497         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9498         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9499         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9500         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9501         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9502         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9503         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9504         * debug/printf_chk.c (__printf_chk): Likewise.
9505         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9506         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9507
9508         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9509         Define.
9510
9511         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9512         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9513
9514 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9515
9516         [BZ #4792]
9517         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9518         * malloc/malloc.h (realloc): Likewise.
9519
9520         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9521         if one of proc_file_chain streams has that fileno.
9522         * stdio-common/Makefile (tests): Add tst-popen2.
9523         * stdio-common/tst-popen2.c: New test.
9524
9525 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9526
9527         * elf/ldconfig.c: Allow GPLv2 or any later version.
9528         * elf/readlib.c: Likewise.
9529         * elf/chroot_canon.c: Likewise.
9530         * elf/cache.c: Likewise.
9531         * nscd/mem.c: Likewise.
9532         * nscd/getpwuid_r.c: Likewise.
9533         * nscd/grpcache.c: Likewise.
9534         * nscd/aicache.c: Likewise.
9535         * nscd/getsrvbynm_r.c: Likewise.
9536         * nscd/nscd.c: Likewise.
9537         * nscd/servicescache.c: Likewise.
9538         * nscd/getsrvbypt_r.c: Likewise.
9539         * nscd/initgrcache.c: Likewise.
9540         * nscd/gethstbyad_r.c: Likewise.
9541         * nscd/gethstbynm2_r.c: Likewise.
9542         * nscd/getgrnam_r.c: Likewise.
9543         * nscd/nscd_setup_thread.c: Likewise.
9544         * nscd/getpwnam_r.c: Likewise.
9545         * nscd/gai.c: Likewise.
9546         * nscd/connections.c: Likewise.
9547         * nscd/dbg_log.c: Likewise.
9548         * nscd/cache.c: Likewise.
9549         * nscd/hstcache.c: Likewise.
9550         * nscd/nscd_conf.c: Likewise.
9551         * nscd/getgrgid_r.c: Likewise.
9552         * nscd/pwdcache.c: Likewise.
9553         * catgets/gencat.c: Likewise.
9554         * locale/programs/linereader.h: Likewise.
9555         * locale/programs/locarchive.c: Likewise.
9556         * locale/programs/ld-paper.c: Likewise.
9557         * locale/programs/locfile-kw.h: Likewise.
9558         * locale/programs/ld-address.c: Likewise.
9559         * locale/programs/xmalloc.c: Likewise.
9560         * locale/programs/ld-time.c: Likewise.
9561         * locale/programs/localedef.c: Likewise.
9562         * locale/programs/simple-hash.c: Likewise.
9563         * locale/programs/xstrdup.c: Likewise.
9564         * locale/programs/ld-numeric.c: Likewise.
9565         * locale/programs/locfile-kw.gperf: Likewise.
9566         * locale/programs/ld-collate.c: Likewise.
9567         * locale/programs/charmap-kw.gperf: Likewise.
9568         * locale/programs/charmap.h: Likewise.
9569         * locale/programs/charmap-kw.h: Likewise.
9570         * locale/programs/config.h: Likewise.
9571         * locale/programs/locfile.c: Likewise.
9572         * locale/programs/ld-ctype.c: Likewise.
9573         * locale/programs/charmap.c: Likewise.
9574         * locale/programs/ld-messages.c: Likewise.
9575         * locale/programs/repertoire.h: Likewise.
9576         * locale/programs/locale.c: Likewise.
9577         * locale/programs/ld-name.c: Likewise.
9578         * locale/programs/linereader.c: Likewise.
9579         * locale/programs/locfile.h: Likewise.
9580         * locale/programs/3level.h: Likewise.
9581         * locale/programs/ld-monetary.c: Likewise.
9582         * locale/programs/ld-measurement.c: Likewise.
9583         * locale/programs/charmap-dir.c: Likewise.
9584         * locale/programs/ld-identification.c: Likewise.
9585         * locale/programs/localedef.h: Likewise.
9586         * locale/programs/charmap-dir.h: Likewise.
9587         * locale/programs/repertoire.c: Likewise.
9588         * locale/programs/simple-hash.h: Likewise.
9589         * locale/programs/ld-telephone.c: Likewise.
9590         * locale/programs/locale-spec.c: Likewise.
9591         * locale/programs/locfile-token.h: Likewise.
9592         * posix/getconf.c: Likewise.
9593         * iconv/dummy-repertoire.c: Likewise.
9594         * iconv/iconv_charmap.c: Likewise.
9595         * iconv/iconvconfig.c: Likewise.
9596         * iconv/iconv_prog.c: Likewise.
9597         * malloc/memusagestat.c: Likewise.
9598         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9599
9600 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9601
9602         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9603         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9604         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9605         check for the first argument.
9606
9607 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9608
9609         [BZ #4775]
9610         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9611         (__tgmath_real_type): Fix if expr is const int or other const
9612         qualified integral type.
9613         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9614         expressions and handle const qualified arguments.
9615         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9616         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9617         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9618         statement expressions.
9619         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9620         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9621         (__TGMATH_UNARY_IMAG): Define.
9622         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9623         * math/Makefile (tests): Add test-tgmath2.
9624         (CFLAGS-test-tgmath2.c): Add.
9625         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9626         count_cfloat, count_cldouble): New variables.
9627         (NCCALLS): Define.
9628         (main): Check number of complex calls as well.
9629         (F(compile_test)): Add complex tests and tests with const qualified
9630         arguments.
9631         (y, z, ccount): Define.
9632         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9633         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9634         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9635         F(cproj)): New functions.
9636         * math/test-tgmath2.c: New test.
9637
9638 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9639
9640         [BZ #4776]
9641         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9642         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9643         instead output ".".
9644         * dlfcn/Makefile (distribute): Add glreflib3.c.
9645         (module-names): Add glreflib3.
9646         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9647         glreflib1.so.
9648         (LDFLAGS_glreflib3.so): New.
9649         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9650         glreflib1.so.
9651         * dlfcn/glreflib3.c: New file.
9652
9653         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9654         returned -1, return NULL.
9655         * intl/explodename.c (_nl_explode_name): Return -1 if
9656         _nl_normalize_codeset failed.
9657
9658 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9659
9660         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9661         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9662         and avoid branch misspredicts for > 31 bytes memset case.
9663         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9664         Remove toc ref to __cache_line_size.
9665
9666         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9667         to get ISA-V2.0 branch hints.
9668         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9669         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9670         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9671         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9672         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9673         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9674         Remove toc ref to __cache_line_size.
9675
9676         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9677         Include math_ldbl_opt.h.
9678
9679 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9680
9681         [BZ #4773]
9682         * time/strptime_l.c (__strptime_internal): Implement greedy
9683         matching of weekday and month names.
9684
9685 2007-07-09  Roland McGrath  <roland@redhat.com>
9686
9687         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9688         (ELF_NOTE_ABI): Use it.
9689         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9690
9691 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9692
9693         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9694         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9695
9696 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9697
9698         [BZ #4745]
9699         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9700         in loop to look for conversion specifier to avoid testing of
9701         wrong errno value.
9702         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9703         * stdio-common/bug18.c: New file.
9704         * stdio-common/bug18a.c: New file.
9705         * stdio-common/bug19.c: New file.
9706         * stdio-common/bug19a.c: New file.
9707
9708 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9709
9710         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9711         running awk script.
9712
9713 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9714
9715         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9716         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9717         Return NULL if mmap failed instead of asserting it does not.
9718         (calloc): Check for integer overflow.
9719
9720         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9721         than LONG_MAX / 10.
9722
9723 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9724
9725         [BZ #4702]
9726         * nis/nss-default.c: Include errno.h.
9727         (init): Preserve errno.
9728
9729 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9730
9731         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9732
9733 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9734
9735         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9736
9737 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9738
9739         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9740
9741 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9742
9743         * sysdeps/s390/dl-procinfo.c: New file.
9744         * sysdeps/s390/dl-procinfo.h: New file.
9745         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9746
9747 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9748
9749         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9750         in PT_NOTE segments with multiple notes.
9751         * elf/readelflib.c (process_elf_file): Likewise.
9752
9753 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9754
9755         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9756         ISO C compliant.
9757
9758 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9759
9760         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9761
9762 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9763
9764         * include/link.h: Don't include rtld-lowlevel.h.
9765         (struct link_map): Remove l_scope_lock.
9766         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9767         (_dl_scope_free_list): New field (variable) in _rtld_global.
9768         (DL_LOOKUP_SCOPE_LOCK): Remove.
9769         (_dl_scope_free): New prototype.
9770         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9771         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9772         (_dl_profile_fixup): Likewise.
9773         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9774         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9775         THREAD_GSCOPE_RESET_FLAG around it.
9776         * elf/dl-close.c (_dl_close_worker): Don't use
9777         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9778         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9779         scopes were queued or if l_scope_mem has been abandoned.
9780         * elf/dl-open.c (_dl_scope_free): New function.
9781         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9782         * elf/dl-support.c (_dl_scope_free_list): New variable.
9783         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9784         Remove DL_LOOKUP_SCOPE_LOCK handling.
9785         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9786         handling.
9787         * elf/dl-object.c (_dl_new_object): Don't use
9788         __rtld_mrlock_initialize.
9789
9790 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9791
9792         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9793         to fill in holes
9794         (rtld_global_ro): Likewise.
9795
9796 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9797
9798         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9799         Move PT_LOAD checking to...
9800         (_dl_addr_inside_object): ... here, new function.
9801         * elf/dl-sym.c (do_sym): If not l_contiguous,
9802         call _dl_addr_inside_object.
9803         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9804         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9805         * elf/dl-open.c (dl_open_worker): Likewise.
9806         (_dl_addr_inside_object): New function if IS_IN_rtld.
9807         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9808         holes are present or are PROT_NONE protected.
9809         * include/link.h (struct link_map): Add l_contiguous field.
9810         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9811
9812 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9813             Tomas Janousek  <tjanouse@redhat.com>
9814             Ulrich Drepper  <drepper@redhat.com>
9815
9816         [BZ #4647]
9817         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9818         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9819         socket.
9820         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9821         unused member a bitmap.
9822         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9823         servers are configured.
9824
9825 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9826
9827         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9828
9829 2007-06-17  Andreas Schwab  <schwab@suse.de>
9830
9831         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9832
9833 2007-06-16  Andreas Jaeger  <aj@suse.de>
9834
9835         [BZ #4125]
9836         * sysdeps/unix/sysv/linux/sys/ptrace.h
9837         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9838         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9839         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9840         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9841         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9842         Define.
9843         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9844         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9845         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9846         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9847
9848 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9849
9850         [BZ #4599]
9851         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9852         determining whether there are IPv4/IPv6 addresses, ignore loopback
9853         addresses.
9854
9855 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9856
9857         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9858         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9859         as the return type.  Change type of "r" variable to CMPtype.
9860         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9861         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9862         * soft-fp/gedf2.c (__gedf2): Likewise.
9863         * soft-fp/gesf2.c (__gesf2): Likewise.
9864         * soft-fp/getf2.c (__getf2): Likewise.
9865         * soft-fp/ledf2.c (__ledf2): Likewise.
9866         * soft-fp/lesf2.c (__lesf2): Likewise.
9867         * soft-fp/letf2.c (__letf2): Likewise.
9868         * soft-fp/unorddf2 (__unorddf2): Likewise.
9869         * soft-fp/unordsf2 (__unordsf2): Likewise.
9870         * soft-fp/unordtf2 (__unordtf2): Likewise.
9871
9872 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9873
9874         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9875         make sure gcc doesn't mess around with this.
9876
9877 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9878
9879         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9880
9881 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9882
9883         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9884         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9885         at most once per _dl_close_worker.
9886
9887 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9888
9889         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9890         __sched_cpucount as const.
9891         * posix/sched_cpucount.c: Adjust.
9892
9893         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9894         instruction for counting bits.
9895         * sysdeps/x86_64/sched_cpucount.c: New file.
9896
9897 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9898
9899         * configure.in: Avoid variable named BASH.
9900         * config.make.in: Likewise.
9901         Patch in part by Mike Frysinger.
9902
9903 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9904
9905         [BZ #4586]
9906         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9907         pseudo-zeros as zero.
9908         * sysdeps/x86_64/ldbl2mpn.c: New file.
9909         * sysdeps/ia64/ldbl2mpn.c: New file.
9910
9911 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9912
9913         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9914         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9915         Remove unreachable code at the end.
9916
9917 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9918
9919         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9920         ldbl-128ibm in comment.
9921         (fpclassifyl): Correct classification of denormals.
9922         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9923         return value for MIN denormal. Rewrite using long double math too
9924         correctly handle denormals and canonicalize the results.
9925
9926 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9927
9928         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9929         (__mpn_construct_long_double): Fix conversion where result ought
9930         to be smaller than __LDBL_MIN__, or the low double should be
9931         denormal.  Fix decision where to negate low double - honor round
9932         to even rules.
9933         * stdio-common/tst-sprintf2.c: Include string.h.
9934         (COMPARE_LDBL): Define.
9935         (TEST): Also test whether a string hexadecimal float representation
9936         can be parsed back to the number.
9937         (main): Add a couple of further tests.
9938
9939 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9940
9941         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9942         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9943         is non-zero, but smaller than 2 * __DBL_MIN__.
9944         * stdio-common/tst-sprintf2.c: New test.
9945         * stdio-common/Makefile (tests): Add tst-sprintf2.
9946
9947         * math/test-misc.c (main): Don't run last batch of tests with
9948         IBM long double format.
9949
9950 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9951
9952         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9953         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9954         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9955         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9956         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9957         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9958         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9959         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9960         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9961         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9964         New file.
9965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9966         New file.
9967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9968         New file.
9969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9970         New file.
9971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9972         New file.
9973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9975         New file.
9976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9977         New file.
9978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9979         New file.
9980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9981         New file.
9982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9983         New file.
9984
9985 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9986
9987         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9988         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9989         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9990         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9991         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9992         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9993         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9994         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9995
9996 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9997
9998         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9999         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10000         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10001         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10002         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10003         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10004         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10005         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10006
10007 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10008
10009         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10010         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10011         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10012         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10013
10014 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10015
10016         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10017         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10018
10019 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10020
10021         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10022         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10023         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10024         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10025
10026 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10027
10028         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10029         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10030
10031 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10032
10033         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10034         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10035
10036         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10037         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10038         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10039         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10040
10041 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10042
10043         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10044         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10045         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10046         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10047
10048 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10049
10050         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10051         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10052         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10053         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10054         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10055         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10056
10057 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10058
10059         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10060         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10061         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10062         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10063
10064 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10065
10066         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10067         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10068         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10069         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10070         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10071         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10072         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10073         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10074         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10075         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10076         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10077         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10078         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10079         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10080         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10081         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10082
10083 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10084
10085         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10086         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10087
10088 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10089
10090         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10091         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10092
10093 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10094
10095         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10096         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10097         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10098         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10099         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10100         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10101         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10102         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10103         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10104         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10105
10106 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10107
10108         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10109
10110 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10111
10112         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10113         branch miss-predicts. Ensure that cache line crossing does not impact
10114         dispatch grouping.
10115
10116 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10117
10118         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10119         "../../powerpc32/power4/memcopy.h".
10120         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10121         "../../powerpc32/power4/wordcopy.c".
10122
10123 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10124
10125         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10126         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10127         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10128         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10129         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10130         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10131
10132 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10133
10134         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10135
10136 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10137
10138         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10139         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10140         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10141         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10142         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10143         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10144         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10145         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10146
10147 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10148
10149         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10150
10151 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10152
10153         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10154         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10155         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10156         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10157         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10158         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10159         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10160
10161 2007-05-29  Roland McGrath  <roland@redhat.com>
10162
10163         * po/Makefile (po-sed-cmd): New variable.
10164         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10165
10166 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10167
10168         * crypt/md5-crypt.c: Fix comment.
10169
10170         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10171         of crashing.  When this is the case or if the reply is malformed,
10172         don't try to close the new file descriptor since it does not
10173         exist.
10174         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10175
10176 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10177
10178         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10179         if __NR_utimensat is not defined.
10180
10181 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10182
10183         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10184
10185 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10186
10187         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10188         (open): Fix comment typos.  Don't call __open_2 if flags
10189         is a compile time constant without O_CREAT.
10190         (__open64_2): Add nonnull attribute.
10191         (open64): Fix comment typos.  Don't call __open64_2 if flags
10192         is a compile time constant without O_CREAT.
10193         (__openat_2): Add nonnull attribute, fix nonnull attribute
10194         on redirect.
10195         (openat): Fix comment typos.  Don't call __openat_2 if flags
10196         is a compile time constant without O_CREAT.
10197         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10198         on redirect.
10199         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10200         is a compile time constant without O_CREAT.
10201
10202 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10203
10204         * Makerules (sysd-rules): Define PTW for ptw-* files.
10205         * Versions: Define GLIBC_2.7 for libc.
10206         * include/stdio.h: Declare __fortify_fail.
10207         * debug/fortify_fail.c: New file.
10208         * debug/Makefile (routines): Add fortify_fail.
10209         * debug/chk_fail.c: Use __fortify_fail.
10210         * debug/stack_chk_fail.c: Likewise.
10211         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10212         __openat64_2 for GLIBC_2.7.
10213         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10214         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10215         and fails if necessary.
10216         * io/open64.c: Likewise.
10217         * io/openat.c: Likewise.
10218         * io/openat64.c: Likewise.
10219         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10220         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10221         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10222         * io/bits/fcntl2.h: New file.
10223         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10224         __openat64_2.
10225         * include/bits/fcntl2.h: New file.
10226         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10227         Add open_2.
10228         * sysdeps/unix/sysv/linux/open_2.c: New file.
10229
10230 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10231
10232         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10233         as second parameter to handle_intel.
10234
10235         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10236         the entry.
10237
10238         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10239         handling to ...
10240         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10241         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10242         cacheinfo.
10243         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10244         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10245         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10246
10247         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10248
10249 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10250
10251         [BZ #4525]
10252         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10253         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10254         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10255
10256         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10257
10258         [BZ #4514]
10259         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10260         reinitialize workend at the start of each do_positional format spec
10261         loop, free workstart before do_positional loops.
10262         (printf_unknown): Fix size of work_buffer.
10263         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10264
10265         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10266         (public_sET_STATe): If ms->version < 3, put all chunks into
10267         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10268         chunks.
10269
10270         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10271         * malloc/hooks.c: Likewise.
10272         * malloc/arena.c: Likewise.
10273         * malloc/malloc.c (do_check_malloc_state): Don't assert
10274         n_mmaps is not greater than n_mmaps_max.  This removes the need
10275         for the previous change.
10276
10277         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10278         2007-05-07 commit.
10279
10280 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10281
10282         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10283         Define for kernel >= 2.6.22.
10284
10285 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10286
10287         * elf/dl-close.c (_dl_close_worker): When removing object from
10288         global scope, wait for all lookups to finish afterwards.
10289         * elf/dl-open.c (add_to_global): When global scope array must
10290         grow, allocate a new one and free old array only after all
10291         lookups finish.
10292         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10293         (_dl_lookup_symbol_x): Likewise.
10294         * elf/dl-support.c: Define _dl_wait_lookup_done.
10295         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10296         _dl_wait_lookup_done.
10297
10298         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10299         not overlapping with arena.
10300
10301         * malloc/mcheck.c (reallochook): If size==0, free the block.
10302
10303         * rt/tst-shm.c: Use fstat64 instead of fstat.
10304
10305         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10306         __NR_sync_file_range is not defined.
10307
10308 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10309
10310         Dummy files to prevent stub versions from being used.
10311         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10312         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10313         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10314         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10315
10316         * version.h (VERSION): Set to 2.6.90.
10317
10318 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10319
10320         * version.h (VERSION): Define to 2.6.
10321         * include/features.h (__GLIBC_MINOR__): Define to 6.
10322
10323         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10324
10325         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10326         sizes.
10327
10328 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10329
10330         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10331         number of mmaps.  n_mmaps_max is the target.
10332         * malloc/hooks.c: Likewise.
10333         * malloc/arena.c: Likewise.
10334
10335 2007-05-12  Andreas Jaeger  <aj@suse.de>
10336
10337         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10338         getpid.
10339
10340 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10341
10342         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10343         adding new variables.
10344
10345         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10346         optimize.  Completely extend global scope array before making the
10347         new entries visible.
10348
10349 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10350
10351         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10352         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10353         tst-getcpu.
10354
10355         * include/link.h: Move l_version and l_nversion members around to
10356         fill gaps.
10357
10358         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10359
10360         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10361         (__sched_setaffinity_new): If syscall was successful and
10362         RESET_VGETCPU_CACHE is defined, use it before returning.
10363         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10364
10365         * io/sys/stat.h: Make sure struct timespec is defined for
10366         __USE_ATFILE.
10367
10368         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10369         UTIME_OMIT.
10370         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10371         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10372         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10373         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10374         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10375         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10376         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10377         * io/sys/stat.h: Declare utimensat, futimens.
10378         * io/utimensat.c: New file.
10379         * io/futimens.c: New file.
10380         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10381         * sysdeps/unix/sysv/linux/futimens.c: New file.
10382         * io/Makefile (routines): Add utimensat, futimens.
10383         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10384         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10385         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10386         available.
10387
10388         * include/sys/cdefs.h: Redefine __nonnull so that test for
10389         incorrect parameters in the libc code itself are not omitted.
10390
10391 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10392
10393         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10394         exception in addition to inexact when asked to raise only FE_INEXACT.
10395
10396         [BZ #3427]
10397         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10398         in *envp.
10399
10400 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10401
10402         [BZ #4403]
10403         * string/strfry.c (strfry): Make result more random.
10404
10405 2007-05-07  Richard Henderson  <rth@redhat.com>
10406
10407         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10408         if __NO_LONG_DOUBLE_MATH.
10409         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10410         available in the compiler, add .arch directive to the assembly.
10411
10412 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10413
10414         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10415         compat_symbol to GLIBC_2_1.
10416         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10417         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10418         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10419         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10420         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10421         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10422         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10423         libc, not libm.
10424         (__isnanl): New compat_symbol.
10425
10426 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10427             Jakub Jelinek  <jakub@redhat.com>
10428
10429         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10430         (new_heap): Initialize mprotect_size.
10431         (grow_heap): When growing, only mprotect from mprotect_size till
10432         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10433         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10434
10435 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10436             Peter Bergner  <bergner@us.ibm.com>
10437
10438         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10439         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10440         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10441         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10442         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10443         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10444         Call __fe_mask_env() if all FP exceptions disabled.
10445         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10446         from old FPSCR to new fenv to propagate DFP rounding modes.
10447         Call __fe_mask_env() if FP exceptions previously enabled.
10448         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10449         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10450         transitioning from all exceptions disabled to any exception enabled
10451         or visa versa.
10452         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10453         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10454         when transitioning from all exceptions disabled to any exception
10455         enabled or visa versa.
10456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10462
10463 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10464
10465         [BZ #4465]
10466         * posix/unistd.h: Remove __THROW from fdatasync.
10467
10468 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10469
10470         [BZ #4465]
10471         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10472
10473 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10474
10475         * stdio-common/vfprintf.c (process_string_arg): Optimize
10476         ridiculous precision in wide char code printing multi-byte string.
10477         Reported by Jim Meyering <jim@meyering.net>.
10478
10479         [BZ #4131]
10480         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10481         boundaries to work around systems with overlapping binary loading.
10482         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10483
10484 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10485
10486         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10487         __mbsnrtowcs after last change.
10488
10489         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10490         (get_ident): Likewise.
10491
10492 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10493
10494         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10495         with setting the sticky bit.
10496         * math/test-misc.c (main): Add more truncation tests.
10497
10498 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10499
10500         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10501         double in the function declaration.
10502         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10503         double in the function declaration.
10504         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10505         float in the function declaration.
10506         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10507         float in the function declaration.
10508
10509         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10510         denormal operands.  Do not generate FP_EX_DENORM exception.
10511         (FP_UNPACK_RAW_EP): Ditto.
10512         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10513         undefined _FP_UNPACK_RAW_E.
10514         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10515         undefined _FP_UNPACK_RAW_EP.
10516         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10517         undefined _FP_PACK_RAW_E.
10518         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10519         undefined _FP_PACK_RAW_EP.
10520
10521         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10522         _FP_FRAC_COPY_2.
10523         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10524         _FP_FRAC_COPY_4.
10525
10526 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10527             Jakub Jelinek  <jakub@redhat.com>
10528
10529         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10530         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10531         this case.
10532         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10533
10534 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10535
10536         * math/test-misc.c (main): Add tests for rounding long double
10537         values close to smallest double denormalized value to double.
10538
10539 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10540
10541         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10542         condition for truncating to 0.  Set sticky bit for such
10543         truncation.
10544
10545 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10546
10547         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10548         fixed length array for ignore.
10549
10550 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10551
10552         [BZ #4438]
10553         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10554         stack for large precisions.
10555         * stdio-common/test-vfprintf.c (main): Add test for large
10556         precision.
10557
10558 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10559
10560         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10561         for exponent 0.
10562         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10563
10564         [BZ #4439]
10565         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10566         account in the size check.
10567         * resolv/tst-inet_ntop.c: New test.
10568         * resolv/Makefile (tests): Add tst-inet_ntop.
10569
10570 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10571             Jakub Jelinek  <jakub@redhat.com>
10572
10573         [BZ #4349]
10574         * malloc/malloc.c: Keep separate list for first blocks on the bin
10575         lists with a given size.  This helps skipping over list elements
10576         we know won't fit in two places.
10577         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10578
10579 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10580
10581         [BZ #4102]
10582         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10583         label to Teredo tunnel addresses 2001://32.
10584
10585 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10586
10587         * locale/programs/ld-collate.c (collate_read): Allow order_start
10588         after copy.
10589
10590         * locale/programs/ld-collate.c (collate_read): Fix printing of
10591         error message.
10592
10593         [BZ #3213]
10594         * locale/C-translit.h.in: Add entry for U2044.
10595
10596         [BZ #4342]
10597         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10598         hexa-decimal floats without exponent.
10599         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10600
10601 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10602
10603         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10604         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10605         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10606         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10607         GLIBC_2.6.
10608         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10609         Add sched_getcpu.
10610
10611 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10612
10613         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10614         of 0 after the out_fail label.
10615
10616 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10617
10618         [BZ #4406]
10619         * iconv/gconv_charset.h (strip): Allow ':'.
10620         * iconv/iconv_open.c (iconv_open): Adjust comment.
10621
10622 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10623
10624         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10625         version.
10626
10627 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10628
10629         [BZ #4381]
10630         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10631         alignment of buffer and tmp_buffer.
10632         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10633         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10634         alignment of buffer.
10635         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10636         bigger than INT_MAX.
10637         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10638         h_errnop arguments.  Fail if buflen is too small.
10639         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10640
10641 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10642
10643         [BZ #4405]
10644         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10645         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10646
10647 2007-04-22  Roland McGrath  <roland@redhat.com>
10648
10649         * elf/elf.h (NT_PRXFPREG): New macro.
10650
10651 2007-04-19  Andreas Jaeger  <aj@suse.de>
10652
10653         [BZ #3905]
10654         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10655         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10656         Added.
10657
10658 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10659
10660         * include/sys/mman.h: Mark madvise hidden.
10661         * misc/madvise.c: Add libc_hidden_def.
10662
10663 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10664
10665         * nis/nis_domain_of.c (__nis_domain_of): New function.
10666         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10667         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10668         * nis/nis_call.c (rec_dirsearch): Likewise.
10669         (first_shoot): Likewise.  Remove search_parent_first argument.
10670         (struct nis_server_cache): Rename search_parent_first field
10671         to search_parent.
10672         (nis_server_cache_search, nis_server_cache_add): Rename
10673         search_parent_first argument to search_parent.
10674         (__nisfind_server): Likewise.  If search_parent, call
10675         __nis_domain_of.
10676
10677 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10678
10679         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10680
10681 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10682
10683         [BZ #4368]
10684         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10685
10686 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10687
10688         [BZ #4364]
10689         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10690
10691 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10692
10693         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10694         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10695         current number of locales in SUPPORTED.
10696         (create_archive): Initialize serial.
10697         (enlarge_archive): Preserve aliases rather than duplicating
10698         their locrecs.
10699
10700 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10701
10702         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10703         after _IO_un_link, not before it.
10704
10705         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10706         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10707         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10708
10709 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10710
10711         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10712         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10713         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10714         Remove __THROW.
10715         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10716         _IO_file_xsgetn_maybe_mmap): Likewise.
10717         * libio/oldfileops.c (old_do_write): Likewise.
10718         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10719         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10720         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10721         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10722         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10723         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10724         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10725         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10726         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10727         _IO_file_underflow, _IO_file_underflow_mmap,
10728         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10729         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10730         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10731         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10732         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10733         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10734         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10735         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10736         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10737         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10738         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10739         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10740         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10741         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10742         _IO_adjust_column_internal, _IO_default_uflow_internal,
10743         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10744         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10745         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10746         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10747         _IO_file_close_it_internal, _IO_file_underflow_internal,
10748         _IO_file_overflow_internal, _IO_file_attach_internal,
10749         _IO_file_fopen_internal, _IO_file_sync_internal,
10750         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10751         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10752         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10753         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10754         _IO_seekpos_unlocked): Likewise.
10755         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10756         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10757
10758 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10759
10760         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10761         argument in xmalloc size computation.
10762
10763 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10764
10765         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10766         math_opt_barrier and math_force_eval macros.
10767
10768 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10769
10770         [BZ #3306]
10771         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10772         * sysdeps/i386/fpu/math_private.h: New file.
10773         * sysdeps/x86_64/fpu/math_private.h: New file.
10774         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10775         math_force_eval macros.  Use "+m" constraint on asm rather than
10776         "=m" and "m".
10777         * math/s_nextafter.c (__nextafter): Likewise.
10778         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10779         Likewise.
10780         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10781         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10782         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10783         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10784         math_opt_barrier and math_force_eval macros.
10785         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10786         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10787         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10788         (__nexttoward): Use math_opt_barrier and
10789         math_force_eval macros.  Use "+m" constraint on asm rather than
10790         "=m" and "m".  Only use asm to force double result if
10791         FLT_EVAL_METHOD is 2.
10792         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10793         (__nexttowardf): Use math_opt_barrier and
10794         math_force_eval macros.  Use "+m" constraint on asm rather than
10795         "=m" and "m".  Only use asm to force double result if
10796         FLT_EVAL_METHOD is not 0.
10797         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10798         (__nexttowardf): Use math_opt_barrier and
10799         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10800         x to float using asm.
10801         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10802         (__nldbl_nexttowardf): Use math_opt_barrier and
10803         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10804         x to float using asm.
10805         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10806         (__nexttowardf): Use math_opt_barrier and math_force_eval
10807         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10808         * math/bug-nextafter.c (zero, inf): New variables.
10809         (main): Add new tests.
10810         * math/bug-nexttoward.c (zero, inf): New variables.
10811         (main): Add new tests.
10812
10813 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10814
10815         [BZ #3427]
10816         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10817         exceptions both in SW and MXCSR.
10818         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10819         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10820         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10821         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10822         in MXCSR if SSE is available.
10823         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10824         and ldsodefs.h.
10825         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10826         Fix comment typo.
10827         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10828         Return 0 rather than 1.
10829         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10830         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10831         * math/test-fenv.c (feholdexcept_tests): New function.
10832         (main): Call it.
10833
10834 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10835
10836         [BZ #3427]
10837         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10838         in SW.
10839
10840 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10841
10842         [BZ #4344]
10843         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10844         Reported by David Anderson <davea42@earthlink.net>.
10845
10846 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10847
10848         * posix/sys/wait.h: Remove unnecessary forward declaration.
10849
10850 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10851
10852         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10853         with obj->do_servers after first_shoot.
10854
10855 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10856
10857         * posix/Makefile (routines): Add sched_cpucount.
10858         (tests): Add tst-cpucount.
10859         * posix/sched_cpucount.c: New file.
10860         * posix/tst-cpucount.c: New file.
10861         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10862         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10863         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10864         * posix/sched.h: Define CPU_COUNT.
10865
10866 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10867
10868         * posix/fnmatch.c (STRUCT): Define.
10869         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10870         * posix/fnmatch_loop.c (struct STRUCT): New type.
10871         (FCT): Add ends argument.  If ends != NULL and normal * is
10872         seen in the pattern, store current pattern and string pointers
10873         and return.  Adjust recursive calls.
10874         (EXT): Adjust FCT callers.
10875         (STRUCT): Undef at the end of the file.
10876         * posix/Makefile (tests): Add tst-fnmatch2.
10877         * posix/tst-fnmatch2.c: New test.
10878
10879 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10880
10881         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10882         and 1 on failure.
10883
10884         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10885         Change last argument to unsigned int.
10886
10887 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10888
10889         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10890
10891 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10892
10893         * config.h.in (HAVE_LIBCAP): Add.
10894         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10895         sys/capabilities.h.
10896         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10897         free_caps.  Cast away const from 4th cap_set_flag argument.
10898
10899 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10900
10901         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10902         GLIBC_2.6.
10903         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10904         Add sync_file_range.
10905         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10906
10907 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10908
10909         * sysdeps/powerpc/bits/atomic.h
10910         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10911         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10912         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10913         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10914         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10915         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10916         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10917         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10918         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10919         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10920         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10921         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10922         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10923         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10924         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10925         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10926         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10927         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10928         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10929         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10930
10931 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10932
10933         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10934         (__cache_line_size): Define the variable here.  Add
10935         attribute_hidden, remove weak_extern.
10936         (__libc_start_main): Set __cache_line_size
10937         unconditionally.
10938         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10939         (__cache_line_size): Define the variable here.  Add
10940         attribute_hidden, remove weak_extern.
10941         (DL_PLATFORM_AUXV): Set __cache_line_size
10942         unconditionally.
10943         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10944         weak_extern, add attribute_hidden.
10945         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10946         defined in ld.so.
10947         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10948         definition.
10949         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10950
10951 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10952
10953         [BZ #4276]
10954         * timezone/africa: Update from tzdata2007d.
10955         * timezone/asia: Likewise.
10956         * timezone/australasia: Likewise.
10957         * timezone/backward: Likewise.
10958         * timezone/europe: Likewise.
10959         * timezone/iso3166.tab: Likewise.
10960         * timezone/leapseconds: Likewise.
10961         * timezone/northamerica: Likewise.
10962         * timezone/southamerica: Likewise.
10963         * timezone/zone.tab: Likewise.
10964
10965         * timezone/private.h: Update from tzcode2007d.
10966         * timezone/zdump.c: Likewise.
10967         * timezone/zic.c: Likewise.
10968
10969 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10970
10971         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10972         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10973         variables.
10974         (nis_server_cache_search, nis_server_cache_add): New functions.
10975         (__nisfind_server): Use them.  Add dbp and flags argument, if
10976         call __nisbind_create.
10977         (__nisbind_create): Add server_used and current_ep arguments,
10978         only call __nis_findfastest if server_used is ~0.
10979         (__do_niscall2, __prepare_niscall): Adjust callers.
10980         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10981         ckey_cache_euid, ckey_cache_lock): New variables.
10982         (get_ckey): New function.
10983         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10984         __pmap_getnisport.  Save __pmap_getnisport result in
10985         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10986         key.
10987         * nis/nis_lookup.c (nis_lookup): Likewise.
10988         * nis/nis_table.c (nis_list): Likewise.
10989         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10990         prototypes.
10991
10992         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10993         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10994         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10995         _nss_nisplus_getservbyport_r): Likewise.
10996         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10997         _nss_nisplus_getnetbyaddr_r): Likewise.
10998         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10999         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11000         _nss_nisplus_getntohost_r): Likewise.
11001         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11002         _nss_nisplus_getrpcbynumber_r): Likewise.
11003
11004 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11005
11006         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11007         * configure: Rebuilt.
11008
11009         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11010         bit-fields.
11011         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11012
11013 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11014
11015         [BZ #2831]
11016         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11017         bit-fields.
11018
11019 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11020
11021         * nscd/gai.c: Include alloca.h.
11022         (__libc_use_alloca): Define.
11023
11024 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11025
11026         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11027         smaller scopes.
11028         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11029         (DL_DST_REQUIRED): Adjust user.
11030
11031         * include/dlfcn.h (struct link_map): New forward decl.
11032
11033         * inet/getnameinfo.c: Include stddef.h.
11034         (getnameinfo): Use offsetof.
11035
11036         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11037
11038         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11039
11040         * string/strerror_l.c: Include stdlib.h.
11041
11042         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11043         * config.make.in (gnu89-inline-CFLAGS): New variable.
11044         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11045         -std=gnu99.
11046         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11047         * argp/argp.h: Use it.
11048         * bits/mathinline.h: Likewise.
11049         * bits/sigset.h: Likewise.
11050         * bits/string.h: Likewise.
11051         * ctype/ctype.h: Likewise.
11052         * hurd/hurd.h: Likewise.
11053         * hurd/hurd/fd.h: Likewise.
11054         * hurd/hurd/port.h: Likewise.
11055         * hurd/hurd/signal.h: Likewise.
11056         * hurd/hurd/threadvar.h: Likewise.
11057         * hurd/hurd/userlink.h: Likewise.
11058         * io/sys/stat.h: Likewise.
11059         * libio/bits/stdio.h: Likewise.
11060         * libio/bits/stdio2.h: Likewise.
11061         * mach/lock-intern.h: Likewise.
11062         * mach/mach/mig_support.h: Likewise.
11063         * math/bits/cmathcalls.h: Likewise.
11064         * posix/bits/unistd.h: Likewise.
11065         * socket/bits/socket2.h: Likewise.
11066         * stdlib/bits/stdlib.h: Likewise.
11067         * stdlib/stdlib.h: Likewise.
11068         * string/argz.h: Likewise.
11069         * string/bits/string2.h: Likewise.
11070         * string/bits/string3.h: Likewise.
11071         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11072         * sysdeps/generic/inttypes.h: Likewise.
11073         * sysdeps/generic/machine-lock.h: Likewise.
11074         * sysdeps/generic/machine-sp.h: Likewise.
11075         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11076         * sysdeps/i386/i486/bits/string.h: Likewise.
11077         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11078         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11079         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11080         * sysdeps/mach/i386/machine-lock.h: Likewise.
11081         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11082         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11083         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11084         * sysdeps/s390/bits/string.h: Likewise.
11085         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11086         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11087         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11088         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11089         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11090         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11091         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11092         * wcsmbs/bits/wchar2.h: Likewise.
11093         * wcsmbs/wchar.h: Likewise.
11094         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11095         __extern_inline definition.
11096
11097 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11098
11099         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11100         NULL.
11101
11102         [BZ #3919]
11103         * math/libm-test.inc (log_test): Test -Inf and NaN.
11104         (log10_test, log1p_test, log2_test): Test -Inf.
11105         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11106         FE_INVALID when argument is qNaN.
11107         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11108         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11109         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11110         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11111         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11112         testb $4, %ah and jump if non-zero.
11113         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11114         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11115
11116         [BZ #4101]
11117         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11118         ancestors with the same depths.
11119         Patch by Niels Moeller <nisse@lysator.liu.se>.
11120         (filter_doc): Don't crash if argp is NULL.
11121         * argp/Makefile (tests): Add tst-argp2.
11122         * argp/tst-argp2.c: New test.
11123
11124         [BZ #4130]
11125         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11126         open_not_cancel_2.
11127         (updwtmp_file): Likewise.
11128
11129         [BZ #4181]
11130         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11131         (inet6_opt_append): Don't check extlen is big enough if extbuf
11132         is NULL.
11133         (inet6_opt_finish): Likewise.
11134         * inet/Makefile (tests): Add test-inet6_opt.
11135         * inet/test-inet6_opt.c: New test.
11136
11137         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11138         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11139         NLMSG_ERR.  Instead use a page sized buffer.
11140         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11141         buffer.
11142
11143 2007-03-14  Richard Henderson  <rth@redhat.com>
11144
11145         * sysdeps/alpha/fpu/s_llround.c: New file.
11146         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11147         * sysdeps/alpha/fpu/s_lround.c: New file.
11148         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11149         * sysdeps/alpha/fpu/s_round.c: New file.
11150         * sysdeps/alpha/fpu/s_roundf.c: New file.
11151         * sysdeps/alpha/fpu/s_trunc.c: New file.
11152         * sysdeps/alpha/fpu/s_truncf.c: New file.
11153
11154         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11155         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11156         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11157         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11158         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11159         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11160
11161         * sysdeps/alpha/fpu/s_fmax.S: New file.
11162         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11163         * sysdeps/alpha/fpu/s_fmin.S: New file.
11164         * sysdeps/alpha/fpu/s_fminf.S: New file.
11165         * sysdeps/alpha/fpu/s_isnan.c: New file.
11166         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11167         * sysdeps/alpha/fpu/s_llrint.c: New file.
11168         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11169         * sysdeps/alpha/fpu/s_lrint.c: New file.
11170         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11171         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11172         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11173
11174         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11175         (__fdimf, fdimf, __fdim, fdim): Remove.
11176         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11177         (__isnanf, __isnan, __isnanl): New.
11178
11179 2007-03-13  Richard Henderson  <rth@redhat.com>
11180
11181         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11182
11183 2007-03-13  Richard Henderson  <rth@redhat.com>
11184
11185         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11186         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11187         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11188         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11189         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11190         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11191
11192 2007-03-13  Richard Henderson  <rth@redhat.com>
11193
11194         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11195         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11196         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11197         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11198         Move to dl-auxv.h; initialize instead of extern weak.
11199         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11200         weak symbol.
11201         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11202         Extern instead of initialized.
11203
11204 2007-03-13  Richard Henderson  <rth@redhat.com>
11205
11206         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11207         __sigsuspend_nocancel.
11208
11209 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11210
11211         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11212         172.16/12 address range.
11213
11214 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11215
11216         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11217         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11218         message.
11219
11220 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11221
11222         [BZ #4069]
11223         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11224         earlier.
11225         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11226
11227         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11228         for x qNaN and y either +-inf or non-integer value.
11229         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11230         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11231         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11232
11233 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11234
11235         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11236         from sysdep_headers.
11237
11238 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11239
11240         * time/tzfile.c (find_transition): Instead of a linear search try to
11241         guess the transition index, use a linear search if the result is at
11242         most 10 transitions away from the guess or binary search otherwise.
11243
11244 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11245
11246         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11247         memory reallocation.
11248
11249 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11250
11251         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11252         and fix some typos.
11253         Optimize use of TOLOWER.
11254
11255         [BZ #3325]
11256         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11257         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11258         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11259
11260         [BZ #3458]
11261         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11262         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11263
11264         [BZ #4076]
11265         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11266         (open_dir_stream): Likewise.
11267         * io/Makefile (tests): Add bug-ftw5.
11268         * io/bug-ftw5.c: New file.
11269
11270         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11271         * nscd/servicescache.c (cache_addserv): Likewise.
11272
11273         * nscd/grpcache.c (cache_addgr): In case a record changed on
11274         refresh, adjust key_copy.
11275
11276         [BZ #4074]
11277         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11278         refresh, adjust key_copy.
11279
11280         [BZ #4070]
11281         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11282         special cases.
11283         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11284
11285 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11286
11287         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11288         optimization.
11289
11290         * stdio-common/vfscanf.c: Small cleanups throughout.
11291
11292 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11293
11294         [BZ #3325]
11295         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11296         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11297         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11298         Patch by Jared Casper <jaredcasper@gmail.com>.
11299
11300         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11301         * sysdeps/unix/opendir.c: Likewise.
11302         * sysdeps/unix/readdir.c: Likewise.
11303
11304         [BZ #2211]
11305         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11306         point numbers.
11307         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11308
11309         * stdio-common/vfscanf.c: Fix problems in width accounting.
11310         * stdio-common/tst-sscanf.c (double_tests): New tests.
11311         (main): Hook them up.
11312
11313         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11314         More simplifications of floating-point reader.
11315
11316         * stdio-common/Makefile (tests): Add tst-swscanf.
11317         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11318         testing.
11319         * stdio-common/tst-swscanf.c: New file.
11320
11321 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11322
11323         [BZ #2633]
11324         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11325         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11326         Remove using for __jmp_buf_tag.
11327         * locale/locale.h (struct lconv): Also define in std namespace.
11328         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11329
11330         [BZ #3842]
11331         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11332         using __libc_enable_secure.
11333
11334         [BZ #3818]
11335         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11336
11337         [BZ #3745]
11338         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11339         of names for ellipsises.
11340
11341         [BZ #3348]
11342         * malloc/memusage.sh: Cleanups.
11343         * debug/xtrace.sh: Quoting and trap changes.
11344
11345 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11346
11347         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11348
11349         * locale/iso-3166.def: Update entry for Serbia.
11350         * locale/iso-4217.def: Define RSD, remove CSD.
11351
11352         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11353         and 64-bit operations.
11354
11355         [BZ #4040]
11356         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11357         16-bit operations.
11358
11359         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11360         of writev.
11361
11362 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11363
11364         [BZ #3991]
11365         * assert/assert.h (assert): Simplify.
11366         (assert_perror): Likewise.
11367         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11368
11369         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11370         reqdata.
11371
11372         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11373         change: don't pass NULL in place of an integer.
11374
11375 2007-02-02  Bruno Haible  <bruno@clisp.org>
11376
11377         [BZ #3954]
11378         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11379         Add mapping for U+327E.
11380         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11381         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11382         mapping of 0xD9 0xE8.
11383         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11384         mapping of U+327E.
11385         Reported by Jungshik Shin <jungshik@google.com>.
11386
11387         [BZ #3955]
11388         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11389         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11390         Reported by Jungshik Shin <jungshik@google.com>.
11391
11392 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11393
11394         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11395         byte variants.
11396
11397         [BZ #4040]
11398         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11399         byte variants.  Patch mostly be tom@tommay.net.
11400
11401 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11402
11403         [BZ #3996]
11404         * posix/glob.c (attribute_hidden): Define if not defined.
11405         (glob): Unescape dirname, filename or username when needed and not
11406         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11407         is NULL.  Handle unescaped [ in pattern without closing ].
11408         Don't pass GLOB_CHECK down to recursive glob for directories.
11409         (__glob_pattern_type): New function.
11410         (__glob_pattern_p): Implement using __glob_pattern_type.
11411         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11412         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11413         Remove unreachable code.
11414         * posix/globtest.sh: Add a couple of new tests.
11415
11416 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11417
11418         * po/ru.po: Update from translation team.
11419
11420 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11421
11422         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11423         to the list of i486+ CPUs.
11424         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11425
11426 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11427
11428         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11429         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11430         references.
11431
11432 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11433
11434         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11435
11436         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11437         * resolv/res_mkquery.c: Define __res_nopt.
11438         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11439         try adding EDNS0 record.
11440         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11441         EDNS0 record was send make sure we don't try it again.
11442         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11443         * include/resolv.h: Declare __res_nopt.
11444
11445 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11446
11447         [BZ #3944]
11448         * time/strptime_l.c (__strptime_internal): Set have_mon for
11449         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11450         have been computed from tm_yday and tm_year.  Don't crash
11451         in day_of_the_week or day_of_the_year if not have_mon
11452         and tm_mon contains bogus value.
11453         * time/Makefile (tests): Add tst-strptime3.
11454         * time/tst-strptime3.c: New test.
11455
11456 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11457
11458         [BZ #3957]
11459         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11460         bit for RE_HAT_LISTS_NOT_NEWLINE.
11461         (build_charclass_op): Remove bogus comment.
11462         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11463         * posix/bug-regex27.c: New test.
11464         * posix/bug-regex28.c: New test.
11465
11466 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11467
11468         * po/sv.po: Update from translation team.
11469
11470 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11471
11472         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11473
11474 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11475
11476         * include/locale.h (__uselocale): Add libc_hidden_proto.
11477         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11478
11479         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11480         gettimeofday.
11481
11482 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11483
11484         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11485         returning.
11486         (PTR_DEMANGLE): Real definition now that it's not the same as
11487         PRT_MANGLE anymore.
11488         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11489
11490         * string/strerror_l.c: New file.
11491         * string/Makefile (routines): Add strerror_l.
11492         * string/string.h: Declare strerror_l.
11493         * string/Versions: Export strerror_l for GLIBC_2.6.
11494
11495 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11496
11497         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11498         as parameter.  Construct request record.  Try sending request
11499         before the first poll use, it usually succeeds.  Adjust all
11500         callers.
11501         * nscd/nscd-client.h: Define MAXKEYLEN.
11502         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11503
11504 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11505
11506         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11507         from return value.
11508         * nscd/nscd_helper.c: Include string.h.
11509         (__nscd_cache_search): Remove const qualifier from return value.
11510         On strict alignment architectures check hash entry and data head
11511         alignment.
11512         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11513         mmapped data during GC cycle contains garbage.  If
11514         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11515         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11516         dropped to 0.
11517         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11518         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11519         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11520         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11521         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11522
11523 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11524
11525         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11526
11527 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11528
11529         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11530         names not numbers in cfi_*.
11531
11532 2007-01-26  Andreas Jaeger  <aj@suse.de>
11533
11534         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11535         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11536         Correct values of PER_HPUX and PER_OSF4.
11537
11538 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11539
11540         * elf/dl-minimal.c: Undefine _itoa first.
11541         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11542         * malloc/mtrace.c: Revert last change.
11543         * posix/wordexp.c: Likewise.
11544
11545 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11546
11547         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11548         and __geode__ to the list of i486+ CPUs.
11549         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11550
11551 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11552
11553         * stdio-common/_itoa.c: Include <limits.h>.
11554         * stdio-common/_itowa.c: Likewise.
11555
11556 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11557
11558         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11559         platforms.
11560         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11561         64-bit platforms.
11562         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11563         possible.
11564         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11565         if possible.
11566
11567         [BZ #3902]
11568         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11569         * stdio-common/Makefile (tests): Add bug17.
11570         * stdio-common/bug17.c: New file.
11571
11572 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11573
11574         * iconvdata/brf.c: New file.
11575         * iconvdata/testdata/BRF: New file.
11576         * iconvdata/testdata/BRF..UTF8: New file.
11577         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11578         * iconvdata/Makefile: Add rules to build BRF.
11579         * iconvdata/TESTS: Add BRF entry.
11580         * iconvdata/gconv-modules: Likewise.
11581         * iconvdata/tst-tables.sh: Likewise.
11582
11583 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11584
11585         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11586         type `long long int', not `long int'.
11587         (wcstoq): Likewise.
11588
11589 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11590
11591         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11592         of values on 64-bit platforms which are too large.
11593
11594 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11595             Joe Kerian  <jkerian@us.us.ibm.com>
11596
11597         [BZ #2749]
11598         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11599         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11600         (__copysignl): Use signbit() for comparison.
11601         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11602         SET_LDOUBLE_WORDS64.
11603
11604         [BZ #2423, #2749]
11605         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11606         (__ceill): Remove calls to fegetround(), fesetround().
11607         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11610
11611 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11612
11613         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11614
11615         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11616
11617 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11618
11619         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11620         demangle pointer.
11621         * csu/libc-start.c: Likewise.
11622
11623 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11624
11625         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11626         really work anyway.
11627
11628 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11629
11630         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11631         users.
11632         (handle_request): Remove unnecessary tests.
11633
11634         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11635
11636 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11637
11638         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11639         workbits in semi-raw fraction.
11640
11641         * math/test-misc.c: Add new tests.
11642
11643 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11644
11645         * math/basic-test.c: Include test-skeleton.c.
11646         (TEST_TRUNC): Define.
11647         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11648         (main): Rename to ...
11649         (do_test): ...this.  Run new tests.
11650         (TEST_FUNCTION): Define.
11651
11652 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11653             Joe Kerian  <jkerian@us.us.ibm.com>
11654
11655         [BZ #2749]
11656         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11657         handling for high words.
11658         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11659         and overflow for infinity.
11660
11661 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11662
11663         * nscd/connections.c (handle_request): Add a __builtin_expect.
11664
11665         * nscd/connections.c (serv2db): Change type into structure which
11666         also says whether this is a request for data.  Renamed to
11667         servinfo.  All users changed.
11668         (handle_request): Much simpler test whether we should search the cache.
11669
11670         * nscd/connections.c (handle_request): Fix thinko in selinux test
11671         invocation.
11672
11673         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11674         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11675         it before getting dl_load_lock and then relock.
11676         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11677         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11678         case we unlocked the scope.
11679         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11680         _dl_lookup_symbol_x in case we locked the scope.
11681         (_dl_profile_fixup): Likewise.
11682         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11683         set DL_LOOKUP_SCOPE_LOCK.
11684
11685 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11686
11687         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11688         CFLAGS-getsrvbynpt_r.c.
11689         * nscd/getsrvbynm_r.c: New file.
11690         * nscd/getsrvbypt_r.c: New file.
11691         * nscd/nscd_getserv_r.c: New file.
11692         * nscd/servicescache.c: New file.
11693         * nscd/Makefile (routines): Add nscd_getserv_r.
11694         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11695         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11696         CFLAGS-getsrvbypt_r.c.
11697         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11698         table.  Add entries for services database.
11699         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11700         services database.
11701         (dbs): Add .reset_res and servdb initialization.
11702         (serv2db): Add entries for services database.
11703         (verify_persistent_db): Accept dbnr == servdb.
11704         (invalidate_cache): Rewrite database name recognition to use a table.
11705         Call res_init() if .reset_res is set for database.
11706         (handle_request): Add code to handle services database.
11707         * nscd/gai.c: Don't define __getservbyname_r.
11708         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11709         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11710         (serv_response_header): Define.
11711         (struct datahead): Add serv_response_header member.
11712         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11713         using table.
11714         * nscd/nscd.conf: Add entries for services database.
11715         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11716         Declare serv_iov_disabled.
11717         Declare addservbyname, readdservbyname, addservbyport, and
11718         readdservbyport.
11719         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11720         (find_db): Fix error message.
11721         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11722         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11723         * nscd/selinux.c (perms): Add entries for services database.
11724         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11725         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11726
11727         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11728         * nscd/hstcache.c: Likewise.
11729         * nscd/pwdcache.c: Likewise.
11730
11731         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11732         computation of keylen.
11733
11734         * include/string.h: Only redefine strndupa if this is really for
11735         libc code.
11736
11737 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11738
11739         * nscd/nscd_gethst_r.c: Minor cleanups.
11740
11741         * nscd/connections.c (handle_request): Check selinux permissions
11742         for all non-admin commands.
11743
11744         * sysdeps/i386/i486/bits/atomic.h: Define
11745         atomic_compare_and_exchange_val_acq,
11746         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11747         using __sync_* built-ins for gcc >= 4.1.
11748         * sysdeps/x86_64/bits/atomic.h: Likewise.
11749
11750         [BZ #3840]
11751         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11752         and .oS.d files.
11753
11754 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11755
11756         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11757         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11758         (do_test): Check errno and exit(0) if ENOSYS.
11759
11760 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11761
11762         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11763         thousands separators.
11764         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11765         * stdlib/tst-strtod4.c: New test.
11766
11767         [BZ #3855]
11768         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11769         hexadecimal digit should accept just the initial 0.
11770         * stdlib/tst-strtod2.c (tests): New variable.
11771         (do_test): Run several tests rather than just one.
11772
11773 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11774
11775         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11776         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11777
11778 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11779
11780         * io/fts.c: Make sure fts_cur is always valid after return from
11781         fts_read.
11782         Patch by Miloslav Trmac <mitr@redhat.com>.
11783
11784 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11785
11786         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11787         (R_MIPS_NUM): Bump by 1.
11788
11789 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11790
11791         * posix/execvp.c: Include alloca.h.
11792         (allocate_scripts_argv): Renamed to...
11793         (scripts_argv): ... this.  Don't allocate buffer here nor count
11794         arguments.
11795         (execvp): Use alloca if possible.
11796         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11797         * posix/tst-vfork3.c: New test.
11798
11799 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11800
11801         * string/Makefile (tst-strxfrm2-ENV): Define.
11802         * stdlib/Makefile (tst-strtod3-ENV): Define.
11803
11804 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11805
11806         * posix/getconf.c: Update copyright year.
11807         * nss/getent.c: Likewise.
11808         * iconv/iconvconfig.c: Likewise.
11809         * iconv/iconv_prog.c: Likewise.
11810         * elf/ldconfig.c: Likewise.
11811         * catgets/gencat.c: Likewise.
11812         * csu/version.c: Likewise.
11813         * elf/ldd.bash.in: Likewise.
11814         * elf/sprof.c (print_version): Likewise.
11815         * locale/programs/locale.c: Likewise.
11816         * locale/programs/localedef.c: Likewise.
11817         * nscd/nscd.c (print_version): Likewise.
11818         * debug/xtrace.sh: Likewise.
11819         * malloc/memusage.sh: Likewise.
11820         * malloc/mtrace.pl: Likewise.
11821         * debug/catchsegv.sh: Likewise.
11822
11823 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11824
11825         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11826         attempts.
11827
11828 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11829
11830         * posix/wordexp.c: Remove some unnecessary tests.
11831
11832 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11833
11834         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11835         blacklist the group till after we look it up.
11836
11837 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11838
11839         * include/atomic.h (atomic_forced_read): New macro.
11840
11841 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11842
11843         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11844
11845 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11846
11847         * nss/getXXbyYY_r.c: Include atomic.h.
11848         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11849         add atomic_write_barrier () in between.
11850
11851         * stdlib/Makefile (tests): Add tst-makecontext.
11852         * stdlib/tst-makecontext.c: New test.
11853
11854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11855         (__makecontext): Don't realign uc_mcontext.uc_regs.
11856
11857 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11858
11859         * elf/dl-support.c: Include dl-procinfo.h.
11860         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11861         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11862         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11863         Define.
11864         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11865         hardcoded constants.
11866         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11867         PPC_PLATFORM_* macros for array designators.
11868
11869 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11870
11871         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11872         names to the beginning.
11873         (_dl_powerpc_platforms): Add "power6x".
11874         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11875         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11876         (_DL_PLATFORMS_COUNT): Increase.
11877         (_dl_string_platform): Handle power6x case.
11878         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11879         PPC_FEATURE_POWER6_EXT): Define.
11880         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11881
11882 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11883
11884         [BZ #3747]
11885         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11886         [-2^31 .. 2^31) range.
11887         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11888         targets.
11889         * stdlib/tst-rand48-2.c: New test.
11890         * stdlib/Makefile (tests): Add tst-rand48-2.
11891
11892 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11893
11894         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11895
11896 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11897
11898         * misc/tst-pselect.c (do_test): Make sure the helper process is
11899         terminating when the test is aborted.
11900
11901 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11902
11903         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11904         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11905         Handle relatime mount option.
11906
11907         [BZ #2337]
11908         * libio/Makefile (tests): Add tst-setvbuf1.
11909         * libio/tst-setvbuf1.c: New file.
11910
11911 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11912
11913         [BZ #2337]
11914         * libio/genops.c (__uflow): Fix a typo.
11915         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11916         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11917         the narrow buffer size.
11918
11919 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11920
11921         [BZ #2337]
11922         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11923         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11924         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11925         in _flags.
11926         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11927         _IO_wstr_finish): Likewise.
11928         * libio/wmemstream.c (open_wmemstream): Likewise.
11929         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11930         even for wide streams.
11931
11932 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11933
11934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11935         kernel-features.h.
11936
11937 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11938
11939         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11940         separators also if no non-zero digits found.
11941         * stdlib/Makefile (tests): Add tst-strtod3.
11942
11943 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11944
11945         [BZ #3632]
11946         * include/features.h: Fix comment about default value for
11947         _POSIX_C_SOURCE.
11948
11949         [BZ #3664]
11950         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11951         empty parsed strings.
11952         * stdlib/Makefile (tests): Add tst-strtod2.
11953         * stdlib/tst-strtod2.c: New file.
11954
11955         [BZ #3673]
11956         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11957         computation.
11958         * stdlib/Makefile (tests): Add tst-atof2.
11959         * stdlib/tst-atof2.c: New file.
11960
11961         [BZ #3674]
11962         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11963         correctly if removing trailing zero of hex-float.
11964         * stdlib/Makefile (tests): Add tst-atof1.
11965         * stdlib/tst-atof1.c: New file.
11966
11967 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11968
11969         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11970         Start searching for next comma at p rather than rest.
11971         * misc/Makefile (tests): Add tst-mntent2.
11972         * misc/tst-mntent2.c: New test.
11973
11974         * misc/getusershell.c (initshells): Check for integer overflows.
11975         Make strings buffer one bigger as fgets always succeeds when second
11976         argument is 1.  Don't use calloc for shells array.  Disallow
11977         / as shell.
11978
11979 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11980
11981         * malloc/memusage.c: Handle realloc with new size of zero and
11982         non-NULL pointer correctly.
11983         (me): Really write first record twice.
11984         (struct entry): Make format bi-arch safe.
11985         (dest): Write out more realloc statistics.
11986         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11987
11988 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11989
11990         * nis/nis_subr.c (nis_getnames): Revert last change.
11991
11992 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11993
11994         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11995         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11996         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11997         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11998         ENOTTY.
11999         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12000         * io/tst-ttyname_r.c: New test.
12001
12002 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12003
12004         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12005
12006 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12007
12008         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12009         jump table entries.
12010
12011 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12012
12013         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12014         `clone' function to ensure proper unwinding stop of gdb.
12015         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12016
12017 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12018
12019         * nscd/nscd.init: Remove obsolete and commented-out -S option
12020         handling.
12021
12022 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12023
12024         [BZ #3514]
12025         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12026
12027         [BZ #3515]
12028         * manual/string.texi (strtok): Remove duplicate paragraph.
12029
12030 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12031
12032         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12033         libgcc not supporting `rflags' unwinding (register # >= 17).
12034
12035 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12036
12037         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12038         succeeded.
12039
12040 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12041             Jakub Jelinek  <jakub@redhat.com>
12042             Jan Kratochvil  <jan.kratochvil@redhat.com>
12043
12044         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12045         unwind information.
12046         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12047         'restore_rt' even in the 'signal' directory.
12048         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12049
12050 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12051
12052         [BZ #3559]
12053         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12054         malloc crashed.  Don't allocate memory unnecessarily in each
12055         loop.
12056
12057 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12058
12059         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12060
12061 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12062
12063         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12064
12065 2006-11-18  Bruno Haible  <bruno@clisp.org>
12066
12067         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12068         __sysconf only after having tried to call getgroups32.
12069
12070 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12071
12072         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12073         addresses for IPv4 queries if they can be mapped.
12074
12075 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12076
12077         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12078         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12079         (signmask): Add .size directive.
12080         (othermask): Add .type directive.
12081
12082 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12083
12084         * po/nl.po: Update from translation team.
12085
12086         * timezone/zdump.c: Redo fix for BZ #3137.
12087
12088 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12089
12090         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12091         to first_unused after parsing :include: file.
12092
12093 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12094
12095         * timezone/africa: Update from tzdata2006o.
12096         * timezone/antarctica: Likewise.
12097         * timezone/asia: Likewise.
12098         * timezone/australasia: Likewise.
12099         * timezone/backward: Likewise.
12100         * timezone/europe: Likewise.
12101         * timezone/iso3166.tab: Likewise.
12102         * timezone/northamerica: Likewise.
12103         * timezone/southamerica: Likewise.
12104         * timezone/zone.tab: Likewise.
12105
12106         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12107         on machines with 64-bit time_t.
12108
12109         * timezone/checktab.awk: Update from tzcode2006o.
12110         * timezone/ialloc.c: Likewise.
12111         * timezone/private.h: Likewise.
12112         * timezone/scheck.c: Likewise.
12113         * timezone/tzfile.h: Likewise.
12114         * timezone/tzselect.ksh: Likewise.
12115         * timezone/zdump.c: Likewise.
12116         * timezone/zic.c: Likewise.
12117
12118         [BZ #3483]
12119         * elf/ldconfig.c (main): Call setlocale and textdomain.
12120         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12121
12122         [BZ #3480]
12123         * manual/argp.texi: Fix typos.
12124         * manual/charset.texi: Likewise.
12125         * manual/errno.texi: Likewise.
12126         * manual/filesys.texi: Likewise.
12127         * manual/lang.texi: Likewise.
12128         * manual/maint.texi: Likewise.
12129         * manual/memory.texi: Likewise.
12130         * manual/message.texi: Likewise.
12131         * manual/resource.texi: Likewise.
12132         * manual/search.texi: Likewise.
12133         * manual/signal.texi: Likewise.
12134         * manual/startup.texi: Likewise.
12135         * manual/stdio.texi: Likewise.
12136         * manual/sysinfo.texi: Likewise.
12137         * manual/syslog.texi: Likewise.
12138         * manual/time.texi: Likewise.
12139         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12140
12141         [BZ #3465]
12142         * sunrpc/clnt_raw.c: Minimal message improvements.
12143         * sunrpc/pm_getmaps.c: Likewise.
12144         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12145         * nis/nis_print_group_entry.c: Likewise.
12146         * locale/programs/repertoire.c: Likewise.
12147         * locale/programs/charmap.c: Likewise.
12148         * malloc/memusage.sh: Likewise.
12149         * elf/dl-deps.c: Likewise.
12150         * locale/programs/ld-collate.c: Likewise.
12151         * libio/vswprintf.c: Likewise.
12152         * malloc/memusagestat.c: Likewise.
12153         * sunrpc/auth_unix.c: Likewise.
12154         * sunrpc/rpc_main.c: Likewise.
12155         * nscd/cache.c: Likewise.
12156         * locale/programs/repertoire.c: Unify output messages.
12157         * locale/programs/charmap.c: Likewise.
12158         * locale/programs/ld-ctype.c: Likewise.
12159         * locale/programs/ld-monetary.c: Likewise.
12160         * locale/programs/ld-numeric.c: Likewise.
12161         * locale/programs/ld-time.c: Likewise.
12162         * elf/ldconfig.c: Likewise.
12163         * nscd/selinux.c: Likewise.
12164         * elf/cache.c: Likewise.
12165         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12166
12167         [BZ #3451]
12168         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12169         change atomic.
12170         (ceil): Likewise.
12171
12172 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12173
12174         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12175         if N is one bigger than return value.
12176         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12177         and l1 last arguments, if buf is defined, verify the return value
12178         equals to strlen (buf) and verify no byte beyond passed length
12179         is modified.
12180
12181 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12182
12183         * po/sv.po: Update from translation team.
12184
12185 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12186
12187         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12188         noinline attribute.
12189
12190 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12191
12192         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12193         noinline attribute.
12194
12195         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12196         Use __new_sys_siglist instead of _sys_siglist_internal as
12197         second macro argument.
12198         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12199         strong_alias.
12200
12201 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12202
12203         [BZ #3493]
12204         * posix/unistd.h (sysconf): Remove const attribute.
12205
12206         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12207         temporary or deprecated addresses.
12208         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12209
12210         * string/Makefile (tests): Add tst-strxfrm2.
12211         * string/tst-strxfrm2.c: New file.
12212
12213 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12214
12215         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12216         rather than r->r_brk.
12217
12218 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12219
12220         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12221         optimization even if needed > n.
12222
12223         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12224         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12225         return false, otherwise return true.
12226         (cache_rpath): Return decompose_rpath return value.
12227
12228 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12229
12230         * include/libc-symbols.h (declare_symbol): Rename to...
12231         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12232         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12233         .size directive.
12234         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12235         changes.
12236         * sysdeps/gnu/siglist.c: Likewise.
12237
12238 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12239
12240         * sysdeps/powerpc/fpu/bits/mathinline.h
12241         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12242         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12243
12244 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12245
12246         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12247         Update handling of cache descriptor 0x49 for new models.
12248         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12249         Likewise.
12250
12251 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12252
12253         * malloc/memusage.c (dest): Reset not_me back to false after
12254         printing statistics.
12255
12256 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12257
12258         * configure.in: Work around ld --help change and avoid -z relro
12259         test completely if the architecture doesn't care about security.
12260
12261 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12262
12263         * po/sv.po: Update from translation team.
12264
12265 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12266
12267         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12268         generate compatibility version.
12269
12270 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12271
12272         * configure.in: Relax -z relro requirement a bit.
12273
12274         * po/sv.po: Update from translation team.
12275
12276 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12277
12278         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12279         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12280         * elf/dl-close.c (_dl_close_worker): Likewise.
12281         * elf/dl-open.c (_dl_open_worker): Likewise.
12282         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12283
12284 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12285
12286         * configure.in: Require assembler support for visibility, compiler
12287         support for visibility and aliases, linker support for various -z
12288         options.
12289         * Makeconfig: Remove conditional code which now is unnecessary.
12290         * config.h.in: Likewise.
12291         * config.make.in: Likewise.
12292         * dlfcn/Makefile: Likewise.
12293         * elf/Makefile: Likewise.
12294         * elf/dl-load.c: Likewise.
12295         * elf/rtld.c: Likewise.
12296         * include/libc-symbols.h: Likewise.
12297         * include/stdio.h: Likewise.
12298         * io/Makefile: Likewise.
12299         * io/fstat.c: Likewise.
12300         * io/fstat64.c: Likewise.
12301         * io/fstatat.c: Likewise.
12302         * io/fstatat64.c: Likewise.
12303         * io/lstat.c: Likewise.
12304         * io/lstat64.c: Likewise.
12305         * io/mknod.c: Likewise.
12306         * io/mknodat.c: Likewise.
12307         * io/stat.c: Likewise.
12308         * io/stat64.c: Likewise.
12309         * libio/stdio.c: Likewise.
12310         * nscd/Makefile: Likewise.
12311         * stdlib/Makefile: Likewise.
12312         * stdlib/atexit.c: Likewise.
12313         * sysdeps/generic/ldsodefs.h: Likewise.
12314         * sysdeps/i386/dl-machine.h: Likewise.
12315         * sysdeps/i386/sysdep.h: Likewise.
12316         * sysdeps/i386/i686/memcmp.S: Likewise.
12317         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12318         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12319         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12320
12321         * Makerules: USE_TLS support is now default.
12322         * tls.make.c: Likewise.
12323         * csu/Versions: Likewise.
12324         * csu/libc-start.c: Likewise.
12325         * csu/libc-tls.c: Likewise.
12326         * csu/version.c: Likewise.
12327         * dlfcn/dlinfo.c: Likewise.
12328         * elf/dl-addr.c: Likewise.
12329         * elf/dl-cache.c: Likewise.
12330         * elf/dl-close.c: Likewise.
12331         * elf/dl-iteratephdr.c: Likewise.
12332         * elf/dl-load.c: Likewise.
12333         * elf/dl-lookup.c: Likewise.
12334         * elf/dl-object.c: Likewise.
12335         * elf/dl-open.c: Likewise.
12336         * elf/dl-reloc.c: Likewise.
12337         * elf/dl-support.c: Likewise.
12338         * elf/dl-sym.c: Likewise.
12339         * elf/dl-sysdep.c: Likewise.
12340         * elf/dl-tls.c: Likewise.
12341         * elf/ldconfig.c: Likewise.
12342         * elf/rtld.c: Likewise.
12343         * elf/tst-tls-dlinfo.c: Likewise.
12344         * elf/tst-tls1.c: Likewise.
12345         * elf/tst-tls10.h: Likewise.
12346         * elf/tst-tls14.c: Likewise.
12347         * elf/tst-tls2.c: Likewise.
12348         * elf/tst-tls3.c: Likewise.
12349         * elf/tst-tls4.c: Likewise.
12350         * elf/tst-tls5.c: Likewise.
12351         * elf/tst-tls6.c: Likewise.
12352         * elf/tst-tls7.c: Likewise.
12353         * elf/tst-tls8.c: Likewise.
12354         * elf/tst-tls9.c: Likewise.
12355         * elf/tst-tlsmod1.c: Likewise.
12356         * elf/tst-tlsmod13.c: Likewise.
12357         * elf/tst-tlsmod13a.c: Likewise.
12358         * elf/tst-tlsmod14a.c: Likewise.
12359         * elf/tst-tlsmod2.c: Likewise.
12360         * elf/tst-tlsmod3.c: Likewise.
12361         * elf/tst-tlsmod4.c: Likewise.
12362         * elf/tst-tlsmod5.c: Likewise.
12363         * elf/tst-tlsmod6.c: Likewise.
12364         * include/errno.h: Likewise.
12365         * include/link.h: Likewise.
12366         * include/tls.h: Likewise.
12367         * locale/global-locale.c: Likewise.
12368         * locale/localeinfo.h: Likewise.
12369         * malloc/arena.c: Likewise.
12370         * malloc/hooks.c: Likewise.
12371         * malloc/malloc.c: Likewise.
12372         * resolv/Versions: Likewise.
12373         * sysdeps/alpha/dl-machine.h: Likewise.
12374         * sysdeps/alpha/libc-tls.c: Likewise.
12375         * sysdeps/generic/ldsodefs.h: Likewise.
12376         * sysdeps/generic/tls.h: Likewise.
12377         * sysdeps/i386/dl-machine.h: Likewise.
12378         * sysdeps/ia64/dl-machine.h: Likewise.
12379         * sysdeps/ia64/libc-tls.c: Likewise.
12380         * sysdeps/mach/hurd/fork.c: Likewise.
12381         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12382         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12383         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12384         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12385         * sysdeps/s390/libc-tls.c: Likewise.
12386         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12387         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12388         * sysdeps/sh/dl-machine.h: Likewise.
12389         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12390         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12391         * sysdeps/x86_64/dl-machine.h: Likewise.
12392
12393         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12394         split out locking and parameter checking.
12395         (_dl_close): Call _dl_close_worker after locking and checking.
12396         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12397         _dl_close.
12398         * elf/Makefile: Add rules to build and run tst-thrlock.
12399         * elf/tst-thrlock.c:  New file.
12400
12401         [BZ #3426]
12402         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12403         reality.
12404
12405         [BZ #3429]
12406         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12407         we are sure we do not need it anymore for _dl_close.  Also move
12408         the asserts inside the lock region.
12409         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12410
12411 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12412
12413         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12414         argument.
12415         (_dl_lookup_symbol_x): Adjust caller.
12416
12417         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12418         _ns_global_scope.
12419         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12420
12421         * elf/dl-libc.c: Revert l_scope name changes.
12422         * elf/dl-load.c: Likewise.
12423         * elf/dl-object.c: Likewise.
12424         * elf/rtld.c: Likewise.
12425         * elf/dl-close.c (_dl_close): Likewise.
12426         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12427         always use __rtld_mrlock_{change,done}.  Always free old scope list
12428         here if not l_scope_mem.
12429         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12430         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12431         the lookup and __rtld_mrlock_unlock it after the lookup.
12432         * elf/dl-sym.c: Likewise.
12433         * include/link.h (struct r_scoperec): Remove.
12434         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12435         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12436
12437 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12438
12439         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12440
12441 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12442
12443         * configure.in: Disable building profile libraries by default.
12444
12445 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12446
12447         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12448         as signed longs, check for x_base + pos overflow.
12449         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12450         * sunrpc/tst-xdrmem2.c: New test.
12451
12452 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12453
12454         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12455         _dl_lookup_symbol_x code.
12456
12457 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12458
12459         * elf/dl-runtime.c: Include sysdep-cancel.h.
12460         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12461         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12462         instead of catomic_* macros.
12463         * elf/dl-sym.c: Include sysdep-cancel.h.
12464         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12465         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12466         * elf/dl-close.c: Include sysdep-cancel.h.
12467         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12468         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12469         * elf/dl-open.c: Include sysdep-cancel.h.
12470         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12471         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12472
12473 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12474
12475         [BZ #3313]
12476         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12477         fastbin rather than end of fastbin array.
12478
12479 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12480
12481         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12482         body macro.
12483         * sysdeps/x86_64/bits/atomic.h
12484         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12485         (catomic_decrement): Use correct body macro.
12486
12487 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12488
12489         * include/atomic.h: Add a unique prefix to all local variables
12490         in macros.
12491         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12492
12493 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12494
12495         [BZ #3369]
12496         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12497         and 7.
12498
12499 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12500
12501         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12502
12503 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12504
12505         [BZ #3313]
12506         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12507         determine highest fast bin to consolidate, always look into all of
12508         them.
12509         (do_check_malloc_state): Only require for empty bins for large
12510         sizes in main arena.
12511
12512         * libio/stdio.h: Add more __wur attributes.
12513
12514         * elf/dl-minimal.c (realloc): Optimize last patch.
12515
12516 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12517
12518         [BZ #3352]
12519         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12520         and use memcpy() if it does.
12521
12522 2006-11-12  Andreas Jaeger  <aj@suse.de>
12523
12524         [BZ #2510]
12525         * manual/search.texi (Hash Search Function): Clarify.
12526         (Array Search Function): Clarify.
12527
12528 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12529
12530         [BZ #2830]
12531         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12532         shifting.
12533         * math/atest-exp2.c (read_mpn_hex): Likewise.
12534         * math/atest-sincos.c (main): Likewise.
12535
12536 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12537
12538         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12539         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12540         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12541         version GLIBC_2.6.
12542         * Versions.def: Add GLIBC_2.6 for libc.
12543
12544         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12545
12546         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12547
12548 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12549
12550         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12551
12552         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12553
12554         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12555         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12556
12557 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12558
12559         * include/atomic.c: Define catomic_* operations.
12560         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12561         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12562         * malloc/memusage.c: Likewise.
12563         * gmon/mcount.c: Likewise.
12564         * elf/dl-close.c: Likewise.
12565         * elf/dl-open.c: Likewise.
12566         * elf/dl-profile.c: Likewise.
12567         * elf/dl-sym.c: Likewise.
12568         * elf/dl-runtime.c: Likewise.
12569         * elf/dl-fptr.c: Likewise.
12570         * resolv/res_libc.c: Likewise.
12571
12572 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12573
12574         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12575         components which lack them.
12576
12577         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12578         at least one entry consisting of the parameter concatenated with
12579         the domain.
12580
12581 2006-10-10  Roland McGrath  <roland@frob.com>
12582
12583         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12584         * sysdeps/mach/hurd/futimes.c: Likewise.
12585         * sysdeps/mach/hurd/lutimes.c: Likewise.
12586
12587 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12588             Jakub Jelinek  <jakub@redhat.com>
12589
12590         Implement reference counting of scope records.
12591         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12592         from the list in objects which remain.  Always allocate new scope
12593         record.
12594         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12595         don't resize, allocate a new one.
12596         * elf/dl-runtime.c: Update reference counters before using a scope
12597         array.
12598         * elf/dl-sym.c: Likewise.
12599         * elf/dl-libc.c: Adjust for l_scope name change.
12600         * elf/dl-load.c: Likewise.
12601         * elf/dl-object.c: Likewise.
12602         * elf/rtld.c: Likewise.
12603         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12604         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12605         Add l_scoperec_lock.
12606         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12607         * sysdeps/generic/rtld-lowlevel.h: New file.
12608
12609         * include/atomic.h: Rename atomic_and to atomic_and_val and
12610         atomic_or to atomic_or_val.  Define new macros atomic_and and
12611         atomic_or which do not return values.
12612         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12613         Various cleanups.
12614         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12615
12616         * po/sv.po: Update from translation team.
12617
12618 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12619
12620         * Versions.def: Add GLIBC_2.6 to libpthread.
12621
12622         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12623         (versioned_symbol): Likewise.
12624         (compat_symbol): Likewise.
12625
12626         * po/tr.po: Update from translation team.
12627
12628 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12629
12630         * nis/Banner: Removed.  It's been integral part forever and the
12631         author info is incomplete anyway.
12632         * libio/Banner: Likewise.
12633
12634         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12635         code, make sure the nis_freeresult call doesn't crash and that the
12636         result is reported correctly.
12637
12638 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12639
12640         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12641         when callback is NULL.
12642
12643         * nis/Versions (libnss_nisplus): Add
12644         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12645         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12646         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12647         _nss_create_tablename): Rename to...
12648         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12649         ... these.  No longer static.
12650         (internal_setgrent): Adjust users.
12651         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12652         Don't use locking around _nss_grp_create_tablename call.
12653         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12654
12655 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12656
12657         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12658
12659 2006-10-06  Andreas Jaeger  <aj@suse.de>
12660
12661         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12662
12663 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12664
12665         * po/pl.po: Update from translation team.
12666
12667         * nscd/nscd.c (main): Fix typo in message.
12668         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12669
12670 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12671
12672         [BZ #3291]
12673         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12674         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12675         (__sigprocmask): Define.
12676
12677 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12678
12679         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12680         used.
12681
12682 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12683
12684         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12685         in oldtotal and newtotal calculation.
12686         * nscd/nscd-client.h (struct mapped_database): Add datasize
12687         field.
12688         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12689         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12690         increased.
12691         (__nscd_cache_search): Add checks to make sure we never reference
12692         data beyond the current mapping.
12693
12694 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12695
12696         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12697         variables const to avoid compiler warnings.
12698
12699         * io/fts.c (fts_close): Remove redundant checks.
12700         (fts_build): Likewise.
12701         (fts_palloc): Likewise.
12702
12703         * manual/message.texi (Advanced gettext functions,
12704         Using gettextized software): Fix typos.
12705
12706 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12707
12708         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12709         explain why there are no leaks.
12710
12711 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12712
12713         * libio/wmemstream.c: Include <wchar.h>.
12714         * libio/bug-wmemstream1.c: Likewise.
12715         * libio/tst-wmemstream1.c: Likewise.
12716         * libio/tst-wmemstream2.c: Likewise.
12717
12718         * version.h (RELEASE): Bump to 2.5.
12719         * README: Regenerated.
12720
12721         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12722
12723         [BZ #3273]
12724         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12725         found no group members.
12726         Patch by Petr Baudis.
12727
12728 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12729
12730         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12731         assert bootstrap_map.l_tls_modid is zero.
12732         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12733         if USE___THREAD.
12734
12735 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12736
12737         * libio/stdio.h: Move open_wmemstream prototype to ...
12738         * wcsmbs/wchar.h: ... here.
12739
12740 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12741
12742         [BZ #3252]
12743         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12744         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12745         __{,l}chown to handle the rest.
12746         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12747         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12748         __{,l}chown to handle the rest.
12749         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12750         i386/fchownat.c.
12751         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12752         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12753
12754         [BZ #3253]
12755         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12756         time, rather allocate increasingly bigger arrays of pointers, if
12757         possible with alloca, if too large with malloc.
12758
12759 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12760
12761         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12762
12763         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12764
12765 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12766
12767         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12768         home addresses.
12769         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12770         IFA_F_HOMEADDRESS flag for interfaces.
12771         * include/ifaddrs.h (struct in6addrinfo): Define
12772         in6ai_homeaddress.
12773
12774 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12775
12776         [BZ #3225]
12777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12778         PTR_DEMANGLE3): Define.
12779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12780         PTR_DEMANGLE3): Likewise.
12781         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12782         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12783         Likewise.
12784         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12785
12786 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12787
12788         * po/libc.pot: Regenerated.
12789         * po/be.po: Updated.
12790         * po/ca.po: Likewise.
12791         * po/cs.po: Likewise.
12792         * po/da.po: Likewise.
12793         * po/de.po: Likewise.
12794         * po/el.po: Likewise.
12795         * po/en_GB.po: Likewise.
12796         * po/es.po: Likewise.
12797         * po/fi.po: Likewise.
12798         * po/fr.po: Likewise.
12799         * po/gl.po: Likewise.
12800         * po/hr.po: Likewise.
12801         * po/hu.po: Likewise.
12802         * po/ja.po: Likewise.
12803         * po/ko.po: Likewise.
12804         * po/nb.po: Likewise.
12805         * po/nl.po: Likewise.
12806         * po/pl.po: Likewise.
12807         * po/pt_BR.po: Likewise.
12808         * po/ru.po: Likewise.
12809         * po/rw.po: Likewise.
12810         * po/sk.po: Likewise.
12811         * po/sv.po: Likewise.
12812         * po/tr.po: Likewise.
12813         * po/zh_CN.po: Likewise.
12814         * po/zh_TW.po: Likewise.
12815
12816         [BZ #3137]
12817         * iconv/iconv_prog.c (main): Fix spelling in error message.
12818         * iconv/iconvconfig.c (main): Likewise.
12819         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12820         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12821         * locale/programs/localedef.c (main): Likewise.
12822         * locale/programs/repertoire.c (repertoire_read): Likewise.
12823         * timezone/zdump.c (main): Likewise.
12824         * nscd/connections.c (handle_request): Fix spelling in log message.
12825         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12826
12827 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12828
12829         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12830         interfaces.
12831
12832 2006-09-20  Andreas Jaeger  <aj@suse.de>
12833
12834         * math/libm-test.inc (lrint_test_upward): Fix typo.
12835
12836 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12837
12838         [BZ #2592]
12839         * math/libm-test.inc (lrint_test_tonearest): New function.
12840         (lrint_test_towardzero): New function.
12841         (lrint_test_downward): New function.
12842         (lrint_test_upward): New function.
12843         (main): Run these new tests.
12844         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12845         of values near to 0.
12846         (two52): Use double not long double.
12847         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12848         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12849         (two23): Use float not double.
12850         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12851         (two23): Use float not double.
12852         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12853         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12854         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12855         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12856
12857 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12858
12859         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12860         Cast sp to unsigned long to avoid compiler warning.
12861         Use __makecontext_ret function instead of a trampoline on the stack.
12862         (__makecontext_ret): New function.
12863         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12864
12865 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12866
12867         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12868         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12869         bits.
12870
12871 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12872
12873         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12874         sure no reference to the unloaded map's search list remains in the
12875         dependency's scope.
12876
12877 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12878
12879         * elf/Makefile: Add rules to build and run unload7 test.
12880         * elf/unload7.c: New test.
12881         * elf/unload7mod1.c: New file.
12882         * elf/unload7mod2.c: New file.
12883
12884 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12885
12886         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12887         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12888         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12889         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12890         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12891         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12892         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12893         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12894         PTRACE_GETEVENTMSG): Likewise.
12895         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12896         values.
12897
12898 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12899
12900         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12901         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12902         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12903         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12904
12905 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12906
12907         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12908         write '\0' to the fd.
12909         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12910         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12911         Change regs to unsigned long pointer from unsigned int, fix fscr
12912         offset.
12913
12914 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12915
12916         * io/Makefile (CFLAGS-fstatat.c): Set.
12917         (CFLAGS-fstatat64.c): Likewise.
12918         (CFLAGS-mknodat.c): Likewise.
12919
12920         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12921         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12923         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12924
12925 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12926             Steven Munroe  <sjmunroe@us.ibm.com>
12927
12928         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12929         names to the beginning.  Rename "cell" to "cellbe".
12930         (_dl_powerpc_platforms): New.
12931         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12932         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12933         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12934         (_DL_HWCAP_PLATFORM): Define to new mask.
12935         (_dl_platform_string, _dl_string_platform): New functions.
12936         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12937         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12938
12939 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12940
12941         [BZ #2526]
12942         * README.libm: Fix a thinko in sqrt algorithm description.
12943
12944         [BZ #3143]
12945         * manual/string.texi (argz_delete): Fix prototype.
12946         Patch by <alpt@freaknet.org>.
12947
12948 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12949
12950         [BZ #3138]
12951         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12952         * io/tst-fcntl.c (do_prepare): Likewise.
12953         * posix/tst-exec.c (do_prepare): Likewise.
12954         * posix/tst-preadwrite.c (do_prepare): Likewise.
12955         * posix/tst-spawn.c (do_prepare): Likewise.
12956         * posix/tst-truncate.c (do_prepare): Likewise.
12957         * rt/tst-aio.c (do_prepare): Likewise.
12958         * rt/tst-aio64.c (do_prepare): Likewise.
12959         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12960         size_t.
12961
12962 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12963
12964         [BZ #2821]
12965         * time/mktime.c (guess_time_tm): Fix overflow detection.
12966         * time/Makefile (tests): Add bug-mktime1.
12967         * time/bug-mktime1.c: New file.
12968
12969         [BZ #3189, #3188]
12970         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12971         (mremap): Likewise.
12972
12973 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12974
12975         [BZ #1006]
12976         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12977         Ensure relocation doesn't clobber any bits outside of the
12978         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12979         R_SPARC_HI22 and R_SPARC_H44.
12980
12981         [BZ #2775]
12982         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12983         (long) (MINSIZE + nb - old_size) is positive.
12984
12985         * malloc/arena.c (grow_heap): When growing bail even if new_size
12986         is negative.
12987
12988         [BZ #3155]
12989         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12990         stack below r1.
12991
12992 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12993
12994         * posix/regex_internal.c (re_string_reconstruct): Handle
12995         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12996         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12997         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12998         re_string_context_at.
12999         * posix/Makefile: Add rules to build and run bug-regex26 test.
13000         * posix/bug-regex26.c: New test.
13001
13002         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13003         rather than col_sym_free.  Move seqp declaration earlier.
13004
13005         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13006
13007 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13008
13009         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13010         decl before first goto out.
13011
13012 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13013
13014         * Makerules (shlib.lds): If have-hash-style, put .hash section
13015         at the end of the RO segment.
13016
13017 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13018
13019         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13020         style hash table format is used.
13021
13022 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13023
13024         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13025         randomization rather than before.
13026         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13027
13028 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13029
13030         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13031
13032         * malloc/malloc.c (_int_malloc): Use full list insert and not
13033         shortcut which assumes the list is empty for large requests
13034         too.
13035
13036         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13037
13038 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13039
13040         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13041         and offout arguments to the prototype.
13042         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13043         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13044         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13045         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13046         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13047         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13048         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13049         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13050
13051 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13052
13053         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13054
13055         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13056         dlopen parameters.
13057
13058 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13059
13060         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13061         only if herrno is NETDB_INTERNAL.  Handle errors other than
13062         ERANGE outside of the loops, handle TRY_AGAIN.
13063
13064         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13065         if other's ctype category was missing.
13066         * locale/programs/ld-collate.c (collate_read): Return if
13067         copy_locale's collate category is missing.
13068
13069 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13070
13071         [BZ #2684]
13072         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13073         arenas if allocation failed.
13074         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13075
13076 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13077
13078         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13079         waste bins[0..1].
13080         (malloc_state): Reduce bins size by 2.
13081         (_int_malloc): Fix test for large enough buffer for early termination.
13082         When no unsorted block matches perfectly and an exiting block has
13083         to be split, use full list insert and not shortcut which assumes
13084         the list is empty.
13085
13086         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13087         failure.
13088
13089 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13090
13091         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13092         do anything.
13093
13094         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13095         symbol require exact match (these are PLTs).
13096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13097         (_dl_ppc64_addr_sym_match): Likewise.
13098
13099         [BZ #2683]
13100         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13101         If symbol has a value use it.
13102         * elf/tst-dladdr1.c: New file.
13103         * elf/Makefile: Add rules to build and run tst-addr1.
13104
13105 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13106
13107         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13108         keeps failing and heap growth or new heap creation isn't
13109         successful either.
13110         * malloc/tst-malloc.c (main): Add new tests.
13111
13112 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13113
13114         [BZ #2734]
13115         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13116         as in the x86-64 code to use bswap.
13117
13118 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13119
13120         [BZ #2680]
13121         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13122         __USE_UNIX98.
13123         * posix/bits/unistd.h: Likewise.
13124
13125 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13126
13127         [BZ #2751]
13128         * string/strchr.c: Add cast to avoid warning.
13129
13130 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13131
13132         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13133         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13134         limit is needed to avoid the exploding of the address space
13135         requirement for secondary heaps.
13136         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13137         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13138
13139 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13140
13141         [BZ #3018]
13142         * Makerules (depfiles): Handle extra-test-objs the same as
13143         extra-objs.
13144         (common-mostlyclean): Likewise.
13145         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13146         instead.
13147         * elf/Makefile (extra-objs): Likewise.
13148         * stdlib/Makefile (extra-objs): Likewise.
13149
13150 2006-08-14  Eric Blake  <ebb9@byu.net>
13151
13152         [BZ #3044]
13153         * misc/error.h: Assume C89 or better.
13154         * misc/error.c: Likewise.
13155
13156 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13157
13158         [BZ #3040]
13159         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13160         __ASSUME_ATFCTS is defined.
13161
13162 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13163
13164         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13165         to sort in each call.
13166
13167         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13168         is empty simply return and use next service.
13169         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13170
13171         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13172         tells us when not finding a charmap file is an error.
13173         * locale/programs/charmap.h: Adjust charmap_read prototype.
13174         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13175         cannot find a charmap.
13176         * locale/programs/localedef.c (main): Adjust charmap_read call.
13177
13178 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13179
13180         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13181         sysdeps/posix/pause.c implementation instead.
13182
13183 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13184
13185         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13186         to EPERM.
13187
13188 2006-08-13  Andreas Schwab  <schwab@suse.de>
13189
13190         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13191         Don't clobber caller's LRSAVE.
13192         (_dl_prof_resolve): Likewise.
13193
13194 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13195
13196         [BZ #1996]
13197         * libio/memstream.c (open_memstream): Allocate initial buffer with
13198         calloc.
13199         * libio/wmemstream.c (open_wmemstream): Likewise.
13200         * libio/strops.c: Pretty printing.
13201         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13202         (enlarge_userbuf): New function.
13203         (_IO_str_seekoff): Call it if seek position is larger than current
13204         buffer.
13205         * libio/wstrops.c: Likewise.
13206         * libio/vasprintf.c: Add comment as to why we do not have to use
13207         calloc instead of malloc to allocate initial buffer.
13208         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13209         * libio/bug-memstream1.c: New file.
13210         * libio/bug-wmemstream1.c: New file.
13211
13212 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13213
13214         * libio/wstrops.c: Remove dead macro definitions and comments.
13215         * libio/strops.c: Likewise.
13216
13217         [BZ #2764]
13218         * login/utmpname.c (__utmpname): Remove unnecessary test.
13219
13220 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13221
13222         [BZ #2832]
13223         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13224         0s from integers.
13225
13226 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13227
13228         [BZ #2987]
13229         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13230         for CPU clocks.
13231         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13232         setting of CPU clocks.
13233
13234 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13235
13236         [BZ #2841]
13237         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13238         since C99 requires the result to promote to 'int' when uint_least8_t
13239         and uint_least16_t promote to 'int'.
13240
13241 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13242
13243         [BZ #3013]
13244         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13245         lenght of one output field, correct bitmask creation.
13246         * locale/programs/ld-time.c: Add alignment.
13247
13248         [BZ #2997]
13249         * misc/error.c: Add space between program name and message if file
13250         name is missing.
13251
13252 2006-08-03  Eric Blake  <ebb9@byu.net>
13253
13254         [BZ #2998]
13255         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13256
13257 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13258
13259         * malloc/memusagestat.c: Silence warnings.
13260
13261         * malloc/malloc.c: Dynamically size mmap treshold if the program
13262         frees mmaped blocks.
13263         Patch by Valerie Henson and Arjan van de Ven.
13264
13265 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13266
13267         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13268         __USE_GNU.
13269
13270         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13271         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13272         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13273         Only provide var definitions in strtol_l (or for *ull*
13274         in strtoll_l).
13275
13276         * stdio-common/bug16.c (tests): New array.
13277         (do_tests): Allow the first hexadecimal digit
13278         to be 1, 2, 4 or 8.  Do 3 additional tests.
13279
13280         * sysdeps/s390/fpu/libm-test-ulps: Update.
13281
13282         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13283         fchownat syscall if available.
13284         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13285         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13286         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13287
13288 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13289
13290         * nis/nis_xdr.c: Avoid some function calls.
13291
13292 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13293             Ulrich Drepper  <drepper@redhat.com>
13294
13295         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13296         short cut if only one name component is stripped away.
13297
13298 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13299
13300         * nis/nis_call.c: Minor cleanups throughout.
13301         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13302         (first_shoot): Add search_parent_first parameter.  Only if it is set
13303         search parent server first.
13304         If directory for table found through cold start cache is not the same
13305         as referenced in the cache, don't use it.
13306         (__nisfind_server): Take additional parameter.  Pass it on to
13307         first_shoot.
13308         (__prepare_niscall): Adjust __nisfind_server call.
13309         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13310         * nis/nis_table.c: Adjust __nisfind_server call.
13311         * nis/nis_lookup.c: Likewise.
13312         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13313
13314 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13315
13316         [BZ #2182]
13317         * math/s_cacosh.c: Return values from positive branch.
13318         * math/s_cacoshf.c: Likewise.
13319         * math/s_cacoshl.c: Likewise.
13320
13321         [BZ #2883]
13322         * sysvipc/sys/msg.h: Change return value to ssize_t.
13323         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13324         * sysvipc/msgrcv.c: Likewise.
13325         * include/sys/msg.h: Likewise.
13326
13327         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13328         test introduced in patch for bz #661.
13329         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13330         element for NEWGROUPS.
13331
13332         [BZ #2908]
13333         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13334         'f', use '1' as leading digit not '\1'.
13335         * stdio-common/Makefile (tests): Add bug16.
13336         * stdio-common/bug16.c: New file.
13337
13338         [BZ #2914]
13339         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13340         and don't try to open it.  The patch introducing the macro
13341         contained a bug and used the same file name as the new file
13342         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13343         this out completely.
13344
13345         [BZ #2926]
13346         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13347         Patch by Jerry James <Jerry.James@usu.edu>.
13348
13349         * rt/Makefile (tests): Add tst-clock2.
13350         * rt/tst-clock2.c: New file.
13351
13352         [BZ #2978]
13353         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13354         function and its parameters and pass it to new thread.
13355         (__gai_notify): Add support for alternative waiting for completion.
13356         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13357         waiting for completion.
13358         * resolv/getaddrinfo_a.c: Likewise.
13359         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13360         waiting for completion is used.
13361         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13362         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13363         * resolv/gai_error.c: Likewise.
13364         * resolv/gai_sigqueue.c: Likewise.
13365
13366 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13367
13368         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13369         errno to EBADF and return MACH_PORT_NULL.
13370
13371 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13372
13373         [BZ #2980]
13374         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13375
13376 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13377
13378         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13379         walk them instead of the symbol table.
13380
13381 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13382
13383         [BZ #2098]
13384         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13385         status of NSS calls, not the number of returned entries.
13386
13387         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13388         request_key, keyctl.
13389
13390 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13391
13392         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13393
13394 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13395
13396         * elf/tst-auditmod1.c: Fix typo in #error.
13397
13398 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13399
13400         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13401
13402         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13403
13404 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13405
13406         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13407         that the directory is empty even on non-POSIX filesystems.
13408
13409 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13410
13411         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13412
13413         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13414         the backend NSS module.  If backend setgrent call failed, don't have
13415         internal_setgrent fail.  Just remember this until it is needed.
13416         * nis/nss_compat/compat-pwd.c: Likewise.
13417         * nis/nss_compat/compat-spwd.c: Likewise.
13418
13419 2006-07-30  Roland McGrath  <roland@redhat.com>
13420
13421         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13422         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13423         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13424         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13425
13426         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13427         (nanosleep_not_cancel): New macro.
13428         (sigsuspend_not_cancel): new macro.
13429         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13430         (do_sigsuspend): Define as inline.
13431         (__sigsuspend): Always use do_sigsuspend.
13432         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13433         * include/signal.h: Declare __sigsuspend_nocancel.
13434         * sysdeps/posix/pause.c
13435         [! NO_CANCELLATION] (__pause_nocancel): New function.
13436
13437         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13438         * include/time.h (__nanosleep_nocancel): Likewise.
13439
13440 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13441
13442         * locale/programs/localedef.c (add_to_readlist): Rename local
13443         variables to avoid confusion.
13444
13445         * locale/programs/charmap.c (charmap_read): Emit error message if
13446         charmap couldn't be found or read.
13447
13448 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13449
13450         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13451         __ASSUME_FUTEX_LOCK_PI.
13452         * include/time.h: Declare __nanosleep_nocancel.
13453         * include/unistd.h: Declare __pause_nocancel.
13454
13455         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13456         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13457         get the __stack_chk_fail_local definition when it's needed.
13458
13459 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13460
13461         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13462         * dlfcn/bug-atexit3.c: New file.
13463         * dlfcn/bug-atexit3-lib.cc: New file.
13464
13465         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13466         used when the namespace is not the base namespace.
13467
13468 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13469
13470         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13471         (__new_exitfn): Bump it in every successful call.
13472         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13473         more exit handlers, call them right away.
13474         * stdlib/exit.h: Declare __new_exitfn_called.
13475
13476 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13477
13478         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13479         calling registered handler.
13480
13481         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13482         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13483         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13484         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13485         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13486         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13487         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13488         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13489
13490 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13491
13492         * elf/dl-lookup.c (dl_new_hash): New functions.
13493         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13494         value here.  Compute new-style hash value.  Pass new hash value
13495         and reference to variable with the old value to do_lookup_x.
13496         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13497         old-style hash table.
13498         (_dl_debug_bindings): Pass new hash value and reference to variable
13499         with the old value to do_lookup_x.
13500         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13501         new-style hash value and change old-style hash value parameter to
13502         be a reference.  Reoganize functions to determine whether
13503         new-style hash table is available.  Only fall back on old-style
13504         table.  If old-style hash value is needed, compute it here.
13505         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13506         entry.
13507         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13508         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13509         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13510         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13511         * Makeconfig: If linker supports --hash-style option add it to all
13512         linker command lines to build DSOs.
13513         * config.make.in: Define have-hash-style.
13514         * configure.in: Test whether linker supports --hash-style option.
13515
13516         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13517         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13518
13519 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13520
13521         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13522         auditing.
13523
13524         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13525         RPATH of main map twice.
13526
13527 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13528
13529         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13530         look further, return original strings.
13531         (_nl_find_msg): Do not return found translation if the conversion
13532         failed.  Either signal the string is unusable or that something went
13533         wrong and the original should be used.
13534
13535 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13536
13537         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13538
13539 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13540
13541         [BZ #2766]
13542         * misc/insremque.c (insque): Handle prev == NULL.
13543         * misc/Makefile (tests): Add tst-insremque.
13544         * misc/tst-insremque.c: New test.
13545
13546 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13547
13548         [BZ #2792]
13549         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13550         conflict with DL_DST_REQUIRED.
13551
13552 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13553
13554         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13555         match what Solaris does.
13556
13557 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13558
13559         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13560         local_setegid instead of seteuid and setegid.
13561         * sysdeps/generic/local-setxid.h: New file.
13562         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13563
13564         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13565
13566         * string/Makefile (tests): Add bug-envz1.
13567         * string/bug-envz1.c: New file.
13568
13569 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13570
13571         * posix/regex_internal.c (re_string_skip_chars): If no character has
13572         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13573         to the byte which couldn't be converted.
13574         (re_string_reconstruct): Don't clear valid_raw_len before calling
13575         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13576         tip_context using re_string_context_at.
13577         * posix/Makefile: Add rules to build and run bug-regex25 test.
13578         * posix/bug-regex25.c: New test.
13579
13580 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13581
13582         [BZ #2703]
13583         * string/envz.c (envz_strip): Correct erroneously reversed src
13584         and dest parameters to memmove() invocation.
13585
13586 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13587
13588         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13589         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13590         to make sure the database has been already invalidated.
13591         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13592         after the cache has been invalidated.  Use pthread_mutex_lock rather
13593         than pthread_mutex_trylock if fd != -1.
13594         * nscd/connections.c (invalidate_cache): Add fd argument, write
13595         response to fd if not calling prune_cache, pass fd to prune_cache.
13596         (handle_request): Adjust invalidate_cache caller.
13597         (nscd_run): Pass -1 as fd to prune_cache.
13598
13599 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13600
13601         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13602         the correct place.
13603
13604 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13605
13606         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13607         * nscd/cache.c (prune_cache): Take prunelock before starting the
13608         work.  Just return in case it is already taken.
13609         * nscd/connections.c (dbs): Initialize .prunelock.
13610
13611 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13612
13613         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13614         copying.  No need to allocate new array for group members.  Just
13615         move the pointers and update the size.
13616
13617         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13618         Avoid memory leak in case realloc fails.  Simplification for
13619         better code generation.
13620
13621         Avoid deprecation warning because of libc_hidden_proto for
13622         inet6_option_alloc.
13623         * inet/inet6_option.c (option_alloc): Renamed from
13624         inet6_option_alloc.  Made static.
13625         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13626         (inet6_option_append): Call option_alloc.
13627         * include/netinet/in.h: Remove libc_hidden_proto for
13628         inet6_option_alloc.
13629
13630         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13631         for cleanup when cb!=NULL [Coverity CID 233].
13632
13633 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13634
13635         [BZ #2693]
13636         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13637         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13638         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13639         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13640         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13641         and inet6_rth_getaddr.
13642         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13643         array.
13644         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13645         Mark inet6_option_* interfaces as deprecated.
13646         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13647         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13648         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13649         inet6_rth_segments, and inet6_rth_getaddr.
13650         * inet/inet6_opt.c: New file.
13651         * inet/inet6_rth.c: New file.
13652
13653         * inet/netinet/icmp6.h: Pretty printing.
13654
13655         [BZ #2683]
13656         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13657
13658 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13659
13660         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13661         doing it all here.  When server does not know the answer do not
13662         fail immediate, try parent first.
13663
13664         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13665         overflow test.
13666
13667 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13668
13669         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13670         from __do_niscall.
13671         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13672         and exported.
13673         (__follow_path): New function.  Split out from nis_list.
13674         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13675         _xdr_nis_result.
13676         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13677         _xdr_nis_result.
13678         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13679         and __follow_path.
13680         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13681         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13682         from libnsl for version GLIBC_PRIVATE.
13683         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13684         Remove entry parameter from _nss_nisplus_parse_pwent and
13685         _nss_nisplus_parse_grent.
13686         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13687         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13688         again.  Rewrite getpwent handling to not use nis_first_entry and
13689         nis_next_entry.  Roll out own niscall handling.
13690         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13691
13692         * sunrpc/xdr_rec.c: Fix typo in comment.
13693
13694 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13695
13696         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13697         handling.
13698
13699         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13700         to allocate memory for my_pollfd.  Better initialization of
13701         cb_is_running.  Use TEMP_FAILURE_RETRY.
13702
13703         * malloc/memusage.sh (memusageso): Add quotes.
13704         (memusagestat): Likewise.
13705         * debug/xtrace.sh (pcprofileso): Likewise.
13706         (pcprofiledump): Likewise.
13707         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13708         replacement.
13709         * malloc/Makefile ($(objpfx)memusage): Likewise.
13710
13711         * nis/nis_callback.c (__nis_create_callback): Calls to
13712         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13713         asprintf call fails.
13714
13715         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13716         no uninitialized memory is passed to sendto.
13717
13718 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13719
13720         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13721         of snprintf+strdup.  Handle OOM.
13722         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13723         cb->serv together.  Remove now obsolete free calls.
13724         (__nis_destroy_callback): Remove now obsolete free call.
13725
13726 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13727
13728         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13729         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13730         and ULA respectively). Set precedence for IPv4 address to 10 as
13731         defined in RFC3484 for preferring IPv6.
13732         * posix/gai.conf: Update to match the new default tables.
13733
13734 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13735
13736         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13737         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13738         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13739         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13740
13741         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13742         Removed.
13743         (init_nss_interface): Remove initialization of these variables.
13744
13745 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13746
13747         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13748         nis_free_directory forward to avoid duplication.
13749
13750 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13751
13752         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13753         rec_dirsearch returning NULL.
13754         (first_shoot): Handle __nis_finddirectory returning NULL.
13755         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13756
13757         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13758         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13759
13760 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13761
13762         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13763         pid changed.
13764
13765 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13766
13767         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13768
13769         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13770         * nscd/nscd_getgr_r.c: Likewise.
13771
13772         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13773
13774         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13775         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13776
13777         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13778
13779         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13780
13781         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13782
13783         * include/rpc/auth.h: Mark xdr_des_block_internal and
13784         xdr_opaque_auth_internal as hidden.
13785
13786         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13787         hidden.
13788
13789         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13790
13791         * misc/getusershell.c (okshells): Don't use static initializers,
13792         do it dynamically.
13793
13794         * stdlib/fmtmsg.c (keywords): Change type of len element to
13795         uint32_t to not waste space on 64bit machines.
13796
13797         * locale/setlocale.c: Change _nl_category_names into a string.
13798         Add new _nl_category_name_idxs.  Change all users.
13799         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13800         Declare _nl_category_name_idxs.
13801         * locale/findlocale.c: Adjust for _nl_category_names change.
13802         * locale/loadlocale.c: Likewise.
13803         * locale/newlocale.c: Likewise.
13804         * intl/dcigettext.c: Likewise.
13805
13806         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13807         (add_alias2): ...here.  New function.
13808         (__gconv_read_conf): Simplify builtin alias handling.
13809         (builtin_aliases): Convert to string to avoid relocations.
13810         * iconv/gconv_builtin.h: Add comment about correct formatting.
13811
13812 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13813
13814         * resolv/res_debug.c (loc_ntoa): Make error const.
13815
13816 2006-05-14  Andreas Schwab  <schwab@suse.de>
13817
13818         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13819
13820 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13821
13822         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13823         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13824         sizeof (cpu_set_t).
13825
13826 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13827
13828         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13829
13830         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13831
13832         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13833         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13834
13835         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13836         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13837
13838         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13839         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13840         xdr_cback_data.
13841
13842         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13843         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13844         xdr_ypupdate_args.
13845
13846         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13847         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13848
13849         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13850         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13851
13852         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13853         * include/rpcsvc/nis_callback.h: New file.
13854
13855         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13856         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13857
13858         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13859         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13860
13861         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13862         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13863
13864         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13865         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13866
13867         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13868         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13869         xdr_ypdelete_args.
13870
13871         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13872         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13873
13874         * nis/nis_error.c: Remove table of strings.  Use position
13875         independent mechanism.
13876         * nis/nis_error.h: New file.
13877
13878 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13879
13880         * locale/programs/ld-time.c (time_finish): If wide era name or
13881         format aren't provided, set both wname and wformat to L"".
13882
13883 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13884
13885         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13886         results if the call was succesful.
13887
13888         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13889
13890         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13891         as hidden.
13892
13893 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13894
13895         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13896
13897 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13898
13899         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13900         caller makes sure this is not the case.
13901         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13902
13903 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13904
13905         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13906         calls.
13907
13908         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13909         [Coverity CID 229, 230]
13910
13911         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13912         DGETTEXT calls.
13913         (hol_help): Likewise.  [Coverity CID 226, 227]
13914
13915         * string/argz-replace.c (__argz_replace): Unconditionally call
13916         free on SRC.  [Coverity CID 225]
13917
13918         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13919         the return value of __nis_default_owner and __nis_default_group,
13920         it has been especially allocated.  [Coverity CID 224]
13921
13922         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13923         searchgroup and searchowner.  Significantly simplified.
13924         (__nis_default_owner): Remove duplication.  Do not locally copy the
13925         string before duplicating it.
13926         (__nis_default_group): Likewise.
13927
13928         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13929         we must clear the variable before calling __nisfind_server.
13930
13931         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13932         nis_getnames.  [Coverity CID 223]
13933
13934         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13935         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13936
13937         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13938         allocate memory for the input to add_bytes.  [Coverity CID 221]
13939
13940         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13941         was allocated here.  [Coverity CID 219, 220]
13942
13943         * posix/getconf.c (print_all): Free confstr data after printing.
13944         [Coverity CID 218]
13945
13946         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13947         list allocation fails.  [Coverity CID 215]
13948
13949         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13950         [Coverity CID 213]
13951
13952         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13953         string is NULL.  [Coverity CID 212]
13954         * argp/Makefile: Add rules to build and run bug-argp1.
13955         * argp/bug-argp1.c: New file.
13956
13957         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13958         end of string.
13959         * stdlib/canonicalize.c (__realpath): Likewise.
13960
13961         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13962         pointer.  [Coverity CID 206]
13963
13964         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13965         in statically linked code.
13966         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13967         statically built code, be prepared to have no link map.
13968         [Coverity CID 205]
13969
13970         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13971         dgettext calls. [Coverity CID 204]
13972
13973         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13974         the one user.
13975         (uparam_names): Reduce size.  Avoid relative relocations.
13976         Moved to read-only segment.
13977         (fill_in_uparams): Update for new layout.
13978
13979         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13980         assumed to always be != NULL. [Coverity CID 202]
13981
13982         * argp/argp-help.c (hol_entry_help): Remove some dead code
13983         [Coverity CID 200].
13984
13985         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13986         away a few more unconditional yperr2nss calls.
13987         (_nss_nis_getservbyname_r): Likewise.
13988
13989 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13990
13991         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13992         architectures.
13993
13994         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13995         that unused memory passed to sendto is nevertheless initialized.
13996
13997         [BZ #2499]
13998         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13999         possibly unaligned memory accesses.
14000
14001         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14002         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14003         and __putlong respectively.  Correct buffer overflow check for
14004         NS_NOTIFY_OP.
14005
14006         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14007
14008         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14009         (send_dg): Rewrite error handling to be more compact and avoid
14010         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14011
14012         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14013
14014         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14015         instead of ns_get16.
14016         (res_queriesmatch): Likewise.  Minor optimization.
14017
14018         [BZ #2499]
14019         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14020         __libc_res_nsend might reallocate the buffer for the answer.  In
14021         this case we have to reload the HP pointer.
14022
14023 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14024
14025         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14026         some branch prediction hints.
14027
14028         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14029         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14030         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14031         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14032         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14033         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14034         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14035         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14036
14037 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14038
14039         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14040         by a GOT relocation to make Scrt1.o position independent.
14041         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14042
14043         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14044         six system call parameters.
14045         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14046
14047 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14048
14049         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14050         malloc&bzero.
14051
14052         * sunrpc/svc_udp.c (BZERO): Remove definition.
14053         (CALLOC): Define.
14054         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14055
14056         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14057         (des_SPtrans): Use uint32_t type.
14058         (des_skb): Likewise.
14059
14060         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14061
14062 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14063
14064         [BZ #2509]
14065         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14066         on 32-bit arches.
14067
14068 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14069
14070         * locale/programs/ld-address.c (address_finish): Fix one more
14071         place where the iso639 array might be accessed beyond the limits.
14072
14073 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14074
14075         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14076         filling it for the first time.
14077
14078         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14079         Adjust all callers.
14080         Free res object content before returning.
14081
14082         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14083
14084         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14085         client->cl_auth.
14086
14087         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14088         cleanup for initial thread, just the free call on TVP.
14089
14090         * nscd/gai.c (__getline): Define.
14091
14092
14093 See ChangeLog.16 for earlier changes.