More test suite fixes.
[glibc.git] / ChangeLog
blob61c64db6c87d066160a8683bddf4095ae5c28946
1 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
3         * conform/data/complex.h-data: Test for POSIX2008.
5         * conform/data/ctype.h-data: Fix POSIX testing.
7         * conform/data/dirent.h-data: ino_t only needed for XSI.
9         * grp/grp.h: Declare getgrent and endgrent for XPG7.
11         * conform/data/inttypes.h-data: Use same types as the headers.
13         * resolv/netdb.h: Don't define old resolver macros for XPG7.
15         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
17         * conform/conformtest.pl: Implement tag for allow-header.
18         Fix newline handling in allow-header implementation.
20         * conform/data/time.h-data: Use allow-header instead of duplicating
21         information.
23         * conform/data/time.h-data: Allow sigevent tag.
25         * posix/sched.h: Define time_t and pid_t for XPG7.
27 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
29         * sysdeps/i386/i686/bcopy.S: New file.
31         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
33         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
34         and END_CHK.
35         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
36         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
37         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
39         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
41         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
43         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
44         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
45         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
46         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
47         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
48         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
49         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
50         * sysdeps/i386/i686/multiarch/bzero.S: New file.
51         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
52         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
53         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
54         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
55         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
56         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
57         * sysdeps/i386/i686/multiarch/memmove.S: New file.
58         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
59         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
60         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
61         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
62         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
63         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
64         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
65         * sysdeps/i386/i686/multiarch/memset.S: New file.
66         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
68         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
69         (END_CHK): Likewise.
71         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
72         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
73         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
75         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
76         for 0x0e and 0x80.
77         (__x86_64_data_cache_size): New.
78         (init_cacheinfo): Set __x86_64_data_cache_size.
80         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
81         on bit_Fast_Rep_String for Intel Core i7.
83         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
84         (index_Fast_Rep_String): Likewise.
85         (FEATURE_INDEX_1): Likewise.
86         (FEATURE_INDEX_MAX): Likewise.
87         (cpu_features): Add feature.
89 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
91         * conform/data/sys/select.h-data: Fix up for XPG7.
93 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
95         * posix/sys/wait.h: Don't define W* macros etc. if
96         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
98 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
100         * io/sys/stat.h: Declare fchmod for XPG7.
101         * conform/data/sys/stat.h-data: Fix up for XPG7.
103         * termios/termios.h: Define pid_t for XPG7.
105         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
106         * conform/data/tgmath.h-data: Likewise.
108         * conform/data/time.h-data: Fix POSIX tests.
110         * conform/data/wchar.h-data: Fix up XPG7 tests.
112         * include/features.h: Fix __USE_ISOC95 handling.
114         * conform/data/wordexp.h-data: Fix typo in last change.
116         * conform/data/unistd.h-data: Fix up older POSIX tests.
118         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
119         * posix/unistd.h: Likewise.
121         * posix/unistd.h: Include environments.h also for XPG6 and up.
122         Define intptr_t for XPG6 and up.
123         Fix up for XPG7.
124         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
126         * conform/data/sys/types.h-data: Fix up for XPG7.
128         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
129         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
130         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
131         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
132         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
133         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
134         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
135         * sysdeps/unix/sysv/bits/stat.h: Likewise.
136         * sysdeps/mach/hurd/bits/stat.h: Likewise.
138         * bits/confname.h: Fix typo in last change.
140         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
142 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
144         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
145         and SA_RESETHAND now available in Base.
146         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
147         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
148         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
149         * conform/data/signal.h-data: Update for XPG7.
151         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
153         * string/strings.h: Don't declare obsolete functions for XPG7.
154         Declare ffs only for XSI.
155         * conform/data/strings.h-data: Update for XPG7.
157 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
159         [BZ #11125]
160         * libio/stdio.h: Define va_list, off_t, and ssize_t.
162         * posix/glob.h: Define size_t.
164         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
166         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
168 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
170         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
171         be self-contained.
173         * conform/data/stdio.h-data: Expect off_t and ssize_t.
175 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
177         * libio/stdio.h: Define va_list also for XPG7.
179         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
180         * conform/data/ctype.h-data: Likewise.
181         * conform/data/dirent.h-data: Likewise.
182         * conform/data/errno.h-data: Likewise.
183         * conform/data/fcntl.h-data: Likewise.
184         * conform/data/fmtmsg.h-data: Likewise.
185         * conform/data/fnmatch.h-data: Likewise.
186         * conform/data/ftw.h-data: Likewise.
187         * conform/data/glob.h-data: Likewise.
188         * conform/data/grp.h-data: Likewise.
189         * conform/data/iconv.h-data: Likewise.
190         * conform/data/langinfo.h-data: Likewise.
191         * conform/data/libgen.h-data: Likewise.
192         * conform/data/limits.h-data: Likewise.
193         * conform/data/locale.h-data: Likewise.
194         * conform/data/math.h-data: Likewise.
195         * conform/data/monetary.h-data: Likewise.
196         * conform/data/mqueue.h-data: Likewise.
197         * conform/data/ndbm.h-data: Likewise.
198         * conform/data/netdb.h-data: Likewise.
199         * conform/data/pthread.h-data: Likewise.
200         * conform/data/pwd.h-data: Likewise.
201         * conform/data/regex.h-data: Likewise.
202         * conform/data/sched.h-data: Likewise.
203         * conform/data/search.h-data: Likewise.
204         * conform/data/semaphore.h-data: Likewise.
205         * conform/data/setjmp.h-data: Likewise.
206         * conform/data/signal.h-data: Likewise.
207         * conform/data/spawn.h-data: Likewise.
208         * conform/data/stdio.h-data: Likewise.
209         * conform/data/stdlib.h-data: Likewise.
210         * conform/data/string.h-data: Likewise.
211         * conform/data/strings.h-data: Likewise.
212         * conform/data/sys/ipc.h-data: Likewise.
213         * conform/data/sys/msg.h-data: Likewise.
214         * conform/data/sys/resource.h-data: Likewise.
215         * conform/data/sys/sem.h-data: Likewise.
216         * conform/data/sys/shm.h-data: Likewise.
217         * conform/data/sys/socket.h-data: Likewise.
218         * conform/data/sys/stat.h-data: Likewise.
219         * conform/data/sys/time.h-data: Likewise.
220         * conform/data/sys/types.h-data: Likewise.
221         * conform/data/sys/uio.h-data: Likewise.
222         * conform/data/sys/wait.h-data: Likewise.
223         * conform/data/syslog.h-data: Likewise.
224         * conform/data/tar.h-data: Likewise.
225         * conform/data/termios.h-data: Likewise.
226         * conform/data/time.h-data: Likewise.
227         * conform/data/ulimit.h-data: Likewise.
228         * conform/data/unistd.h-data: Likewise.
229         * conform/data/utmpx.h-data: Likewise.
230         * conform/data/wchar.h-data: Likewise.
231         * conform/data/wctype.h-data: Likewise.
232         * conform/data/wordexp.h-data: Likewise.
234         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
235         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
236         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
237         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
238         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
239         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
240         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
241         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
242         * sysdeps/unix/sysv/bits/stat.h: Likewise.
243         * sysdeps/mach/hurd/bits/stat.h: Likewise.
245         * stdlib/stdlib.h: Define wait-related bits for XPG7.
246         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
247         Declare mkstemp and getsubopt for XPG7.
248         Declare posix_openpt for XPG6 XSI.
250         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
251         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
253         * string/string.h: Declare strdup for XPG7.
255 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
257         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
258         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
260         * dirent/dirent.h: Really fix feature selection.
262         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
263         Fix all users.
264         * locale/C-address.c: Fix all users.
265         * locale/C-collate.c: Likewise.
266         * locale/C-ctype.c: Likewise.
267         * locale/C-identification.c: Likewise.
268         * locale/C-measurement.c: Likewise.
269         * locale/C-messages.c: Likewise.
270         * locale/C-monetary.c: Likewise.
271         * locale/C-name.c: Likewise.
272         * locale/C-numeric.c: Likewise.
273         * locale/C-paper.c: Likewise.
274         * locale/C-telephone.c: Likewise.
275         * locale/C-time.c: Likewise.
276         * locale/findlocale.c: Likewise.
277         * locale/global-locale.c: Likewise.
278         * locale/loadarchive.c: Likewise.
279         * locale/loadlocale.c: Likewise.
280         * locale/nl_langinfo_l.c: Likewise.
281         * locale/setlocale.c: Likewise.
282         * locale/xlocale.c: Likewise.
283         * locale/xlocale.h: Likewise.
284         * stdio-common/vfscanf.c: Likewise.
285         * stdlib/strfmon_l.c: Likewise.
286         * stdlib/strtod_l.c: Likewise.
287         * stdlib/strtol_l.c: Likewise.
288         * string/strcoll_l.c: Likewise.
289         * string/strxfrm_l.c: Likewise.
290         * time/alt_digit.c: Likewise.
291         * time/asctime.c: Likewise.
292         * time/era.c: Likewise.
293         * time/lc-time-cleanup.c: Likewise.
294         * time/strftime_l.c: Likewise.
295         * time/strptime_l.c: Likewise.
296         * wcsmbs/wcsmbsload.c: Likewise.
297         * wcsmbs/wcsmbsload.h: Likewise.
299         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
300         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
301         for XPG7.
302         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
303         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
304         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
305         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
306         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
307         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
309 2010-01-07  Roland McGrath  <roland@redhat.com>
311         * elf/elf.h (PN_XNUM): New macro.
313         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
314         literal 2.
316 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
318         * dirent/dirent.h: Fix typo in feature selection macro use.
320 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
322         [BZ #11115]
323         * stdlib/tst-makecontext3.c: New file.
324         * stdlib/Makefile (tests): Add new test.
326         * stdlib/tst-setcontext.c (check_called): Fix a typo.
328 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
330         * configure.in: Enable multi-arch by default if the assembler
331         supports gnu_indirect_function symbol type and the architecture
332         supports it.
334 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
336         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
337         is defined.
339 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
341         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
342         MACH_PORT_NULL when id != cttyid.
344 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
346         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
347         __mach_port_deallocate on rootdevid.
349 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
351         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
352         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
353         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
354         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
356 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
358         [BZ #10992]
359         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
360         Patch by Eric Blake <ebb9@byu.net>.
362 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
364         [BZ #11093]
365         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
366         POLLWRBAND also for POSIX 2008.
367         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
368         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
370         * include/link.h (struct link_map): Move l_used into its own word.
371         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
372         still zero.
373         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
374         never really used.
376 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
378         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
379         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
380         check processor feature.
381         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
382         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
383         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
384         (index_SSE2): Likewise.
386 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
388         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
389         if __ASSEMBLER__ is defined.
390         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
391         (bit_SSE4_2): Likewise.
392         (index_SSSE3): Likewise.
393         (index_SSE4_2): Likewise.
394         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
395         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
396         check processor feature.
397         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
398         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
399         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
400         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
401         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
402         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
403         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
405 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
407         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
409 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
411         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
413 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
415         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
416         O_DSYNC to match 2.6.33+ kernels.
417         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
418         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
419         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
420         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
421         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
422         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
424 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
426         [BZ #11000]
427         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
428         *herrnop before returning.
429         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
430         Likewise.
431         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
432         TRYAGAIN errors separately.
433         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
434         *name4_r after functions.
436 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
438         [BZ #11046]
439         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
440         version check.
442 2009-11-05  Bruno Haible  <bruno@clisp.org>
444         [BZ #11056]
445         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
446         argv argument as non-NULL.
447         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
449 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
451         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
452         recvmmsg.
453         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
454         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
456 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
458         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
459         registers.
460         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
461         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
462         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
464 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
466         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
467         SCHED_RESET_ON_FORK.
469 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
471         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
472         only used on truly ancient kernel if configuration requires a more
473         recent kernel.
475 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
477         [BZ #3662]
478         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
479         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
481         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
482         pass it on to __ptsname_internal.
483         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
484         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
485         All the code from __ptsname_r but take additional parameter.  Use that
486         instead of pointer to local stat64 variable.
487         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
488         variable.
489         * include/stdlib.h: Declare __ptsname_internal.
491         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
492         before the exec.
493         * sysdeps/unix/sysv/linux/grantpt.c: New file.
494         * login/programs/pt_chown.c (main): Don't print message on errors
495         when doing real work.
497         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
498         once.
500         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
501         irel relocations split out from...
502         (__libc_csu_init): ...here.
503         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
505 2009-11-23  Andreas Schwab  <schwab@redhat.com>
507         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
508         for timestamps also if __USE_XOPEN2K8.
509         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
510         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
511         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
512         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
514 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
516         * nscd/connections.c (restart): Try harder to re-exec.
518         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
520         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
521         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
522         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
523         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
524         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
525         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
527         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
528         Define.
529         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
531 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
533         [BZ #10162]
534         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
535         than software pipeline.  Properly recover from shorter read.
537 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
539         [BZ #10958]
540         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
541         initialized before using it.
542         (_IO_putwc_unlocked): Likewise.
544         [BZ #10918]
545         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
546         in cast to not throw away const-ness of parameters.
547         (__CPU_EQUAL_S): Likewise.
548         (__CPU_OP_S): Likewise.
550         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
551         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
552         this gratuitous change and we have to keep compatibility.
553         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
554         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
555         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
556         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
557         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
558         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
560 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
562         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
563         of parameters of sync_file_range.
564         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
565         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
566         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
567         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
568         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
569         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
571 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
573         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
574         Implement using sync_file_range2 syscall if __NR_sync_file_range2
575         is defined.
576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
577         file.
579 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
581         * posix/bug-regex30.c: New file.
582         * posix/Makefile: Add rules to build and run bug-regex30.
583         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
584         character lead bytes when there is a range in a COMPLEX_BRACKET.
585         Reported by Oleg Bylatov.
587 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
589         [BZ #10969]
590         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
591         * locale/tst-duplocale.c: New file.
592         * locale/Makefile (tests): Add tst-duplocale.
594         [BZ #10968]
595         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
596         Patch by Bruno Haible <bruno@clisp.org>.
597         * locale/tst-locname.c: New file.
598         * locale/Makefile (tests): Add tst-locname.
600         [BZ #10972]
601         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
602         constants from recent kernels.
603         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
604         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
605         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
606         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
607         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
608         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
610 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
612         [BZ #10162]
613         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
614         software pipeline.
616 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
618         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
619         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
620         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
622 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
624         * posix/bug-regex29.c: Include stdio.h.
626 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
628         [BZ #10939]
629         * Versions.def: Define GLIBC_2.12 for libc.
630         * manual/errno.texi: Add ERFKILL entry.
631         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
632         for 2.12.
633         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
634         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
636         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
637         F_GETOWN_EX definitions according to corrected kernel definitions.
638         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
639         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
640         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
641         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
642         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
643         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
645 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
647         * version.h: Bump for 2.12 development.
649 2009-11-10  Andreas Schwab  <schwab@redhat.com>
651         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
652         out of buffer space.
653         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
654         map_v4v6_hostent running out of space.
656 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
658         * string/bits/string3.h (memset): If the second parameter is constant
659         and zero there is likely no transposition.
660         Patch by Caolan McNamara <caolanm@redhat.com.
662 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
664         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
665         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
667 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
669         * malloc/memusagestat.c (main): Fix spelling in an error message.
671 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
673         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
674         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
676 2009-11-03  Andreas Schwab  <schwab@redhat.com>
678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
679         readahead.
681 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
683         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
684         relocate opd entry when resolving prelink conflicts.
686 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
688         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
689         when -D_FILE_OFFSET_BITS=64.
691         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
692         of last two arguments when -D_FILE_OFFSET_BITS=64.
693         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
694         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
695         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
696         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
697         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
698         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
700 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
702         [BZ #4457]
703         * sysdeps/generic/libgcc_s.h: New file.
704         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
706 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
708         * malloc/hooks.c (free_check): Restore locking and call _int_free
709         appropriately.
711 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
713         * version.h (VERSION): Bump for 2.11 release.
714         * include/features.h (__GLIBC_MINOR__): Bump to 11.
716         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
718         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
720         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
721         to avoid warning.
722         * stdlib/tst-strtoll.c (tests): Likewise.
724         [BZ #9986]
725         * time/strftime_l.c (__strftime_internal): Allow %OC.
727         * misc/mkostemps.c: New file.
728         * misc/mkostemps64.c: New file.
730 2009-10-30  Andreas Schwab  <schwab@redhat.com>
732         * locale/programs/locale-spec.c: Include <error.h> and
733         <libintl.h>.
735         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
737 2009-10-28  Roland McGrath  <roland@redhat.com>
739         * Makefile (dist-prepare): New target.
740         (tag-for-dist): Target removed.
741         (glibc-%.tar): Pattern rule removed.
742         (%.tar): New pattern rule, does simple use of git archive.
743         (dist-version): Remove variable definition.
744         (dist): Just depend on that.  Add .tar.xz dependency.
745         If dist-version variable not set on command line, depend on
746         dist-prepare, re-invoke with dist-version set via git describe.
748         * Makerules (%.xz): New pattern rule.
750 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
752         * elf/ifuncdep2.c: Include ifunc-sel.h.
753         (global): Delete.
754         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
755         * elf/ifuncmain1.c (global): Delete.
756         * elf/ifuncmain1vis.c: Likewise.
757         * elf/ifuncmain2.c: Likewise.
758         * elf/ifuncmain5.c: Likewise.
759         * elf/ifuncmod3.c: Likewise.
760         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
761         (foo_ifunc): Use ifunc_one.
762         * elf/ifuncmain7.c: Likewise.
763         * elf/ifuncmod1.c: Include ifunc-sel.h.
764         (global): Define protected var.
765         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
766         * elf/ifuncmod5.c: Likewise.
767         * sysdeps/generic/elf/ifunc-sel.h: New file.
768         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
770 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
772         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
773         (R_PPC_REL16*): Correct comments.
774         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
775         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
776          R_PPC64_REL16_HA): Define.
777         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
778         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
779         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
780         Delete unused "reloc" param.
781         (__process_machine_rela): Handle R_PPC_IRELATIVE.
782         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
783         Delete "reloc" param.
784         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
785         R_PPC_IRELATIVE.
786         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
787         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
788         relocations.
790 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
792         [BZ #10315]
793         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
794         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
795         UDP_ENCAP_L2TPINUDP.
797         [BZ #10349]
798         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
799         parameter, specifying length of prefix.
800         * stdio-common/tempname.c: Likewise.
801         * include/stdio.h: Adjust prototypes.
802         * libio/oldtmpfile.c: Adjust caller.
803         * misc/mkdtemp.c: Likewise.
804         * misc/mkostemp.c: Likewise.
805         * misc/mkostemp64.c: Likewise.
806         * misc/mkstemp.c:  Likewise.
807         * misc/mkstemp64.c: Likewise.
808         * misc/mktemp.c: Likewise.
809         * stdio-common/tempnam.c: Likewise.
810         * stdio-common/tmpfile.c: Likewise.
811         * stdio-common/tmpnam.c: Likewise.
812         * stdio-common/tmpnam_r.c: Likewise.
813         * misc/mkstemps.c: New file.
814         * misc/mkstemps64.c: New file.
815         * stdlib/stdlib.h: Add prototypes.
816         * misc/Makefile (routines): Add mkstemps and mkstemps64.
817         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
819 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
821         * locale/iso-639.def: Add sml entry.
823         [BZ #10391]
824         * resolv/res_send.c (send_dg): Initialize resplen.
826         [BZ #10446]
827         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
828         definition to the kernel's.
829         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
831 2009-08-18  Anders Johansson  <ajohansson@novell.com>
833         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
834         offsets and record sizes in assert()s and response sending.
835         * nscd/grpcache.c: Likewise.
836         * nscd/hstcache.c: Likewise.
837         * nscd/initgrcache.c: Likewise.
838         * nscd/pwdcache.c: Likewise.
840 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
842         [BZ #10540]
843         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
844         /etc/hosts does not exist set errnop and herrnop appropriately.
845         Patch by Steve Langasek <vorlon@debian.org>.
847         [BZ #10553]
848         * malloc/malloc.c (malloc_info): Fix typos in format strings.
849         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
851         [BZ #10564]
852         * login/utmp_file.c (TIMEOUT): Increase to 10.
854         [BZ #10609]
855         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
856         for file names in case the syscall is not available.
857         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
858         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
859         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
860         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
861         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
862         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
863         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
864         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
865         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
866         * sysdeps/unix/sysv/linux/openat.c: Likewise.
867         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
868         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
869         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
870         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
871         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
872         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
873         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
875         [BZ #10643]
876         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
877         creation filed, remove the request from the 'requests' list and signal
878         the caller that the request is finished.
880         [BZ #10692]
881         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
882         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
884         [BZ #10713]
885         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
886         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
888         [BZ #10780]
889         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
890         overflows the int return type.
892         [BZ #10717]
893         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
894         have to compute maxsize_total, we have to update the variables, and
895         the also_total handling must happen after the repair.
897         [BZ #10742]
898         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
899         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
901 2009-10-27  Andreas Schwab  <schwab@redhat.com>
903         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
904         errno is always set when returning unsuccessfully.
906 2009-10-29  Andreas Schwab  <schwab@redhat.com>
908         * malloc/memusage.c (update_data): Fix index wraparound handling
909         so that buffer_cnt is actually reset.
911 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
913         [BZ #10784]
914         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
915         of the directory we look at into the static buffer if there is one
916         at the start of the loop.
918         [BZ #10789]
919         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
920         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
922         [BZ #10840]
923         * sysdeps/unix/sysv/linux/kernel-features.h: Define
924         __ASSUME_F_GETOWN_EX.
925         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
926         if possible.
927         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
929         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
930         and f_owner_ex.
931         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
932         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
933         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
934         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
935         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
936         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
938         [BZ #10847]
939         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
940         getutmpx symbol.
942         [BZ #10823]
943         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
944         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
946 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
948         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
950 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
952         [BZ #10817]
953         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
954         Reported by Ray Chason.
956 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
958         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
959         strend-sse4.
960         * sysdeps/x86_64/multiarch/strchr.S: New file.
961         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
962         * sysdeps/x86_64/multiarch/strrchr.S: New file.
964 2009-10-21  Andreas Schwab  <schwab@redhat.com>
966         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
968 2009-10-19  Andreas Schwab  <schwab@redhat.com>
970         * include/math.h: Add hidden protos for __exp/__expf/__expl.
971         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
972         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
973         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
974         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
975         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
976         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
977         __ieee751_expl to handle overflow.
979 2009-10-14  David S. Miller  <davem@davemloft.net>
981         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
982         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
984 2009-10-13  Andreas Schwab  <schwab@redhat.com>
986         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
987         !USE_MULTIARCH.
989 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
991         [BZ #10730]
992         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
993         Patch in part by Steve Ward <planet36@gmail.com>.
995         [BZ #10731]
996         * stdlib/rand_r.c: Fix typo.
998         * po/cs.po: Update from translation team.
1000 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1002         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1003         returning if RTLD_NOLOAD.
1005 2009-10-06  Roland McGrath  <roland@redhat.com>
1007         * sysdeps/x86_64/multiarch/strstr-c.c
1008         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1010         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1011         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1013         * sysdeps/x86_64/multiarch/init-arch.h
1014         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1015         (HAS_CPU_FEATURE): New macro.
1016         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1017         * sysdeps/x86_64/multiarch/init-arch.c
1018         (__get_cpu_features): #undef it before definition.
1020 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1022         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1023         first_weekday to 1 and first_workday to 2.
1025 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1027         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1028         F_GETOWN_EX.
1029         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1030         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1031         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1032         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1033         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1034         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1036 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1038         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1039         * stdio-common/vfprintf.c: Likewise.
1041 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1043         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1044         (mkdirat): Call __directory_name_split_at instead of
1045         __directory_name_split.
1047 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1049         * locale/programs/locale-spec.c (locale_special): If nothing matches
1050         fail with an appropriate message.
1052 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1054         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1055         and XX.
1057 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1059         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1060         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1062 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1064         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1066 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1068         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1069         character size elements in step data.
1071 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1073         * po/hu.po: Update from translation team.
1074         * po/vi.po: Likewise.
1076 2009-09-19  Roland McGrath  <roland@redhat.com>
1078         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1080 2009-09-15  Roland McGrath  <roland@redhat.com>
1082         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1083         * nptl/sysdeps/pthread/configure: Regenerated.
1084         * nptl/sysdeps/x86_64/configure: Regenerated.
1085         * sysdeps/unix/sysv/linux/configure: Regenerated.
1086         * sysdeps/x86_64/elf/configure: Regenerated.
1088         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1090         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1091         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1092         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1093         * configure: Regenerated.
1095 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1097         * posix/getconf.c (main): Handle -- on command line.
1099 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1101         * configure.in: Support binutils 2.100 and 3.0.
1103 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1105         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1106         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1107         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1108         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1110 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1112         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1113         unnamed_section_defined field.
1114         (collate_read): Test and set unnamed_section_defined.
1116         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1117         _POSIX2_LINE_MAX.
1119 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1121         * configure.in: Support binutils 2.20.
1123 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1125         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1126         __strstr_ia32): Add attribute_hidden.
1128 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1130         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1131         parsing of group entry.
1133 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1135         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1136         external buffer.  Always discard readahead in internal buffer.
1137         * libio/Makefile (tests): Add bug-wsetpos.
1138         * libio/bug-wsetpos.c: New file.
1140 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1142         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1143         Add attribute_hidden.
1144         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1145         __strcasestr_sse2): Likewise.
1146         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1147         (__fma_fma): Make static.
1148         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1149         (__fmaf_fma): Make static.
1151 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1153         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1154         reformulate in-buffer optimisation check to match code in
1155         _IO_new_file_seekoff.
1157 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1159         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1160         to srwi in 32-bit memcpy for power6.
1162 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1164         * include/stdio.h: Declare hidden proto for fflush.
1165         * libio/iofflush.c: Add hidden weak alias for fflush.
1167 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1169         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1170         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1172 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1174         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1176 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1178         [BZ #10560]
1179         * malloc/malloc.c: Add local assert definition to avoid problems with
1180         memory allocation in the real one.
1182 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1184         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1185         Removed.
1186         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1187         turn off SSSE3 on Atom.
1189 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1191         * stdlib/tst-strtol.c (tests): More tests.
1192         * stdlib/tst-strtoll.c (tests): Likewise.
1194 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1196         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1198         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1200 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1202         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1203         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1205         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1207         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1209         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1211 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1213         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1215 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1217         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1218         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1220         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1222         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1223         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1225         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1226         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1228         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1229         leftover YMM_SIZE definition.
1231 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1233         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1234         union.
1235         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1236         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1237         Redefine.
1238         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1240         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1241         and SET_FLOAT_WORD definitions.
1243 2009-08-24  Roland McGrath  <roland@redhat.com>
1245         * sysdeps/unix/syscall-template.S: New file.
1246         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1247         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1248         (compile-syscall): Pass mkdep and -g options as normal.
1249         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1250         (common-generated): Don't add them here.
1252 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1254         * math/s_fdim.c: In case of overflows set errno.
1255         * math/s_fdimf.c: Likewise.
1256         * math/s_fdiml.c: Likewise.
1258         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1259         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1260         are using the inline optimizations.
1262         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1263         (__signbitf): Likewise.
1265 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1267         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1268         terminated.
1269         * posix/Makefile (tests): Add bug-regex29.
1270         * posix/bug-regex29.c: New file.
1272         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1273         older POSIX versions are selected.
1275         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1276         as well.
1277         * stdio-common/printf_fphex.c: Likewise.
1278         * stdio-common/tstdiomisc.c: Add more tests.
1280         * locale/locale.h: Include xlocale.h and the thread-local locale
1281         declarations for XPG7, not XPG6.
1283 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1285         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1286         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1289         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1290         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1292 2009-08-20  Roland McGrath  <roland@redhat.com>
1294         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1295         Use l_addr instead of l_map_start (dli_fbase).
1296         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1297         address when there is no proximate symbol.
1298         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1299         Likewise.
1301 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1303         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1305 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1307         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1308         Also handle SIGINT.  In that case only do the cleanup and then
1309         re-raise the signal.
1310         (main): Install handler for SIGINT.
1312 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1314         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1315         clobber list.
1317 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1319         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1320         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1321         tst-auditmod7b.c.
1322         (tests): Add tst-audit6 tst-audit7.
1323         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1324         tst-auditmod7a tst-auditmod7b.
1325         ($(objpfx)tst-audit6): New.
1326         ($(objpfx)tst-audit6.out): Likewise.
1327         ($(objpfx)tst-audit7): Likewise.
1328         ($(objpfx)tst-audit7.out): Likewise.
1329         (tst-audit6-ENV): Likewise.
1330         (tst-audit7-ENV): Likewise.
1331         (CFLAGS-tst-auditmod6b.c): Likewise.
1332         (CFLAGS-tst-auditmod6c.c): Likewise.
1333         (CFLAGS-tst-auditmod7b.c): Likewise.
1334         * elf/tst-audit6.c: New file.
1335         * elf/tst-audit7.c: New file.
1336         * elf/tst-auditmod6a.c: New file.
1337         * elf/tst-auditmod6b.c: New file.
1338         * elf/tst-auditmod6c.c: New file.
1339         * elf/tst-auditmod7a.c: New file.
1340         * elf/tst-auditmod7b.c: New file.
1341         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1342         saving and restoring SSE/AVX registers to ...
1343         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1345 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1347         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1348         only if SHARED is defined.
1349         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1351 2009-08-03  Jim Meyering  <meyering@redhat.com>
1353         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1355 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1357         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1358         section as the other functions for this architecture.
1359         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1361 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1363         * sysdeps/x86_64/strcmp.S: Add support to compile with
1364         USE_SSSE3.  In this case palignr is used.
1365         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1366         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1367         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1368         Add strcmp-ssse3 and strncmp-ssse3.
1369         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1370         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1372         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1373         warning through fake initialization.
1375 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1377         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1379 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1381         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1382         unique symbols.
1384 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1386         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1387         EBX from EAX = 1.  Handle EAX = 11.
1389 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1391         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1392         inside ''.
1394 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1396         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1397         hidden IFUNC functions.
1398         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1400         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1402         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1403         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1404         strcasestr-c.
1405         (CFLAGS-strcspn-c.c): Define.
1406         (CFLAGS-strpbrk-c.c): Define.
1407         (CFLAGS-strspn-c.c): Define.
1408         (CFLAGS-strstr.c): Define.
1409         (CFLAGS-strcasestr.c): Define.
1410         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1411         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1412         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1413         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1414         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1415         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1416         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1417         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1418         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1419         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1420         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1421         -16L instead of 0xfffffffffffffff0L.
1422         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1424 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1426         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1428 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1430         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1431         another rewrite.  Much smaller and faster.
1432         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1434         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1435         ss_flags from the correct location.
1437 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1439         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1440         * sysdeps/i386/i686/cacheinfo.c: New file.
1441         * sysdeps/i386/i686/multiarch/Makefile: New file.
1442         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1443         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1444         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1445         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1446         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1447         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1448         (__cpuid_count): New. Provide the default.
1449         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1450         (__x86_64_preferred_memory_instruction): Define only if
1451         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1452         (intel_check_word): Use __cpuid.
1453         (handle_intel): Likewise.
1454         (handle_amd): Likewise.
1455         (__cache_sysconf): Likewise.
1456         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1457         (__cache_sysconf): Likewise.
1458         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1459         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1460         (get_common_indeces): Use __cpuid.
1461         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1462         if ENABLE_SSSE3_ON_ATOM is not defined.
1463         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1464         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1465         popcnt instead of popcntq.
1467 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1469         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1471 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1473         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1474         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1475         which always causes a compile error.
1477         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1479         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1480         comes from...
1481         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1482         which always causes a compile error.
1484         * debug/Makefile (tests): Add tst-longjmp_chk2.
1485         * debug/tst-longjmp_chk2.c: New file.
1487         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1488         Remove incorrect use of BP_SYM.
1489         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1490         here now since it is more complex than just a simple check.
1492         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1493         we make no more progress.
1495 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1497         * math/s_fma.c: Don't define alias if __fma is a macro.
1498         * math/s_fmaf.c: Likewise.
1499         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1500         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1501         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1503         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1504         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1505         New macro HAS_FMA.
1506         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1507         function.
1508         * include/libc-symbols.h (libm_ifunc): Define.
1509         * sysdeps/x86_64/multiarch/Versions: New file.
1511         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1513 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1515         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1517 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1519         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1520         call that registers used in calling conventions need to be preserved.
1521         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1522         to preserve register content if necessary.
1523         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1524         (_dl_x86_64_restore_sse): New function.
1525         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1526         is allowed to modify xmm/ymm registers.
1528         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1529         application's perspective.
1530         * stdio-common/scanf17.c: Likewise.
1532 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1534         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1535         size to memsz.
1536         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1537         here.
1538         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1539         two steps to catch bugs.
1541 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1543         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1544         determines which files are used in runtime lookups and only checks
1545         those for SSE use.
1546         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1547         testing.
1548         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1549         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1550         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1551         take a while.
1553         * elf/dl-open.c: Move _dl_scope_free to...
1554         * elf/dl-scope.c: ...here.  New file.
1555         * elf/Makefile (dl-routines): Add scope.
1557         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1558         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1559         RES_USE_DNSSEC.
1560         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1561         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1562         all the places we handled RES_USE_EDNS0 only before.
1563         Patch by Adam Tkac <atkac@redhat.com>.
1565 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1567         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1568         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1569         Update size when reallocating.
1571 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1573         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1574         functions used in ld.so modify xmm/ymm registers.
1575         * sysdeps/x86_64/Makefile:  Hook new test up.
1576         * sysdeps/x86_64/rtld-memchr.c: New file.
1577         * sysdeps/x86_64/rtld-memcmp.c: New file.
1578         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1579         * sysdeps/x86_64/rtld-strchr.S: New file.
1580         * sysdeps/x86_64/rtld-strlen.S: New file.
1581         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1582         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1584 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1586         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1587         strncmp-c.
1588         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1589         (exit): Likewise.
1590         (Byte1): Likewise.
1591         (Byte2): Likewise.
1592         (Byte3): Likewise.
1593         (Byte4): Likewise.
1594         (Byte5): Likewise.
1595         (Byte6): Likewise.
1596         (next_8_bytes): Likewise.
1597         (Byte0): Remove commented out codes.
1598         (unaligned_table): Align jump table at 8 bytes.
1599         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1600         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1601         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1602         * sysdeps/x86_64/strncmp.S: New file.
1604 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1606         [BZ #10422]
1607         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1608         kernels, dropped when eventfd2 support was added.
1609         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1610         kernels, dropped when signalfd4 support was added.
1611         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1612         added, name them.
1614         [BZ #10452]
1615         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1616         replies up.
1618         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1620 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1622         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1623         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1625         [BZ #10448]
1626         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1627         callback we must touch the status to avoid using stale value.
1629         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1630         compiled in.
1632 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1634         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1635         /lib/modules/* headers anymore.  We have sane headers in the standard
1636         place now.
1638 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1640         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1641         "etf3enh" and "highgprs" added.
1642         (_dl_s390_platforms): "z10" added.
1643         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1644         Increased for the new entries.
1645         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1646         HWCAP_S390_HIGH_GPRS added.
1648         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1649         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1650         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1651         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1652         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1654 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1656         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1657         avoid additional cpuid instructions.  Most of the information is
1658         stored somewhere.
1660         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1661         cache descriptors.
1662         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1664         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1665         SSSE3 bit for Atoms.
1666         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1667         here anymore.
1669         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1670         structure before copying it to avoid warning.
1671         * posix/tst-rfc3484-2.c (do_test): Likewise.
1672         * posix/tst-rfc3484-3.c (do_test): Likewise.
1674         [BZ #10416]
1675         * include/unistd.h: Make header file suitable for C++ test cases.
1676         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1678         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1679         stack alignment in the exit code.
1681         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1682         potentially be zero.
1684         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1685         unique symbol definition.
1686         Patch by Jakub Jelinek.
1687         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1688         make sure the object with the definition cannot be unloaded.  Adjust
1689         a few types.
1690         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1691         the unique symbol hash table should not be const.
1693 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1695         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1696         unnecesary variables.  Comment fixes.
1698 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1700         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1701         Use NONASCII_CASE information provided by the locale to determine
1702         whether optimized string load function can be used.  Minor cleanups.
1704 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1706         * string/strcasestr.c (STRCASESTR): New macro.
1707         (__strcasestr): Renamed to ..
1708         (STRCASESTR): ...this.
1709         * string/strstr.c (STRSTR): New macro.
1710         (strstr): Renamed to ..
1711         (STRSTR): ...this.
1712         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1713         strstr-c strcasestr-c
1714         (CFLAGS-strstr.c): New.
1715         (CFLAGS-strcasestr.c): Likewise.
1716         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1717         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1718         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1719         * sysdeps/x86_64/multiarch/strstr.c: New file.
1721 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1723         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1724         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1725         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1726         _NL_CTYPE_NONASCII_CASE.
1727         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1728         field.
1729         (ctype_finish): Check whether there are any 8-bit characters outside
1730         the range ASCII has or whether the mapping isn't the same as for
1731         ASCII (±0x20).  Set nonascii_case appropriately.
1732         (ctype_output): Add output handler for nonascii_case.
1734 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1736         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1737         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1739 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1741         [BZ #10360]
1742         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1743         0xffff in the EDNS0 record.
1745 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1747         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1748         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1749         is written before the list head update.
1750         Patch by Andreas Schwab <aschwab@redhat.com>.
1752 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1753             Jakub Jelinek  <jakub@redhat.com>
1755         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1756         corruption thread-safe.
1758 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1760         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1761         overrides atomic_compare_and_exchange_val_rel, define to
1762         atomic_compare_and_exchange_val_rel by default, otherwise default
1763         to catomic_compare_and_exchange_val_acq.
1764         (catomic_compare_and_exchange_bool_rel): If arch overrides
1765         atomic_compare_and_exchange_bool_rel, define to
1766         atomic_compare_and_exchange_bool_rel by default.
1767         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1768         Use catomic_compare_and_exchange_val_rel instead of
1769         catomic_compare_and_exchange_val_acq.
1771 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1773         * sysdeps/generic/ldsodefs.h: Add prototype for
1774         _dl_higher_prime_number.
1775         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1777         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1778         restoring of ymm registers a bit.
1780 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1782         * sysdeps/x86_64/memcmp.S: New file.
1784 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1786         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1787         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1788         pointers in writable memory.
1790 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1792         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1793         * config.make.in: Add config-cflags-avx entry.
1794         * configure.in: Substitute libc_cv_cc_avx.
1795         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1796         * elf/tst-audit4.c: New file.
1797         * elf/tst-audit5.c: New file.
1798         * elf/tst-auditmod4a.c: New file.
1799         * elf/tst-auditmod4b.c: New file.
1800         * elf/tst-auditmod5a.c: New file.
1801         * elf/tst-auditmod5b.c: New file.
1802         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1803         link-defines.sym.
1804         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1805         (La_x86_64_vector): Likewise.
1806         (La_x86_64_regs): Append lr_vector.
1807         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1808         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1809         saving and restoring SSE registers to ...
1810         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1811         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1812         <link-defines.h>.
1813         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1814         La_x86_64_regs.  Allocate extra space and jump to memory at
1815         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1816         (save_and_restore_vector_sse): New.
1817         (save_and_restore_vector_avx): Likewise.
1818         (check_avx): Likewise.
1819         (save_and_restore_vector): Likewise.
1820         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1821         HAVE_AVX_SUPPORT.
1822         * sysdeps/x86_64/link-defines.sym: New file.
1824 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1826         * elf/do-lookup.h: Removed after folding content into...
1827         * elf/dl-lookup.c: ...here.
1829         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1831 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1833         * configure.in: Check for gnu_unique_symbol symbol type.
1834         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1835         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1836         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1837         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1838         change.
1839         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1840         unique symbol table.
1841         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1842         for first namespace.
1843         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1844         unique symbol hash table.
1845         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1846         * elf/tst-unique1.c: New file.
1847         * elf/tst-unique1mod1.c: New file.
1848         * elf/tst-unique1mod2.c: New file.
1849         * elf/tst-unique2.c: New file.
1850         * elf/tst-unique2mod1.c: New file.
1851         * elf/tst-unique2mod2.c: New file.
1853 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1855         * elf/elf.h (STB_GNU_UNIQUE): Define.
1857         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1858         from...
1859         * include/inline-hashtab.h: ...here.
1860         (htab_expand): Adjust for renamed function.  Correct memory handling.
1862 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1864         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1866 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1868         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1869         (PPC_FEATURE_HAS_VSX): Likewise.
1871 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1873         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1874         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1876         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1877         aligned to 16 byte boundaries.
1878         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1879         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1880         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1882 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1884         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1885         * config.make.in (config-cflags-sse4): New variable.
1886         * configure.in: Substitute libc_cv_cc_sse4.
1887         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1888         HAVE_SSE4_SUPPORT.
1889         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1890         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1891         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1892         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1893         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1894         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1895         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1896         * sysdeps/x86_64/multiarch/strspn.S: New file.
1898 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1900         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1901         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1902         (tests): Add tst-audit3 for x86_64.
1903         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1904         ($(objpfx)tst-audit3): Define.
1905         ($(objpfx)tst-audit3.out): Define.
1906         (tst-audit3-ENV): Define.
1907         * elf/tst-audit3.c: New file.
1908         * elf/tst-auditmod3a.c: New file.
1909         * elf/tst-auditmod3b.c: New file.
1910         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1911         and restore xmm6.
1913         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1914         (__stpncpy): Renamed to ...
1915         (STPNCPY): This.
1916         (stpncpy): Create alias only if STPNCPY is not defined.
1917         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1918         defined.
1919         (strncpy): Renamed to ...
1920         (STRNCPY): This.
1921         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1922          stpncpy-c strncpy-c for string.
1923         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1924         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1925         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1926         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1927         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1928         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1930 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1932         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1933         adding to fast bin list.
1935 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1937         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1938         inet_makeaddr.  This worked only with class-based networks.
1939         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1940         Likewise.
1942         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1943         recognize all types.
1944         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1945         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1946         be in host byte order.
1948 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1950         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1951         (MODEL_OFFSET): Define.
1952         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1953         family and model.
1954         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1955         out common code into new function get_common_indeces. Determine
1956         extended family and model for Intel processors.
1958 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1960         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1961         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1962         option.
1963         * resolv/res_send.c (reopen): New function.  Broken out of...
1964         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1965         fallback mechanism.  If single-request fails switch to
1966         single-request-reopen mode which opens a new socket for the second
1967         request.
1969 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1971         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1972         (CHECK_SP): Use it.
1974 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1976         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1977         for saved registers.
1978         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1979         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1980         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1982 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1984         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1986 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1988         * po/id.po: Update from translation team.
1990         * po/bg.po: Update from translation team.
1992 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1994         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1995         defined.
1996         (strncmp): Renamed to STRNCMP.
1997         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1998         strncmp-c for string.
1999         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2000         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2001         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2002         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2004 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2006         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2007         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2008         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2009         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2010         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2011         ifuncmain7static.c.
2012         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2013         ifuncmain7static, and ifuncmain7picstatic.
2014         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2015         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2016         $(objpfx)ifuncmain7pie.out.
2017         (modules-names): Add ifuncmod5 ifuncmod6
2018         (ifuncmod5.so-no-z-defs): Define.
2019         (ifuncmod6.so-no-z-defs): Define.
2020         (CFLAGS-ifuncmain5pic.c): Define.
2021         (CFLAGS-ifuncmain5picstatic.c): Define.
2022         (CFLAGS-ifuncmain5staticpic.c): Define.
2023         (CFLAGS-ifuncdep5pic.c): Define.
2024         (CFLAGS-ifuncmain7pic.c): Define.
2025         (CFLAGS-ifuncmain7picstatic.c): Define.
2026         (CFLAGS-ifuncmain1staticpie.c): Define.
2027         (CFLAGS-ifuncmain5pie.c): Define.
2028         (CFLAGS-ifuncmain6pie.c): Define.
2029         (CFLAGS-ifuncmain7pie.c): Define.
2030         ($(objpfx)ifuncmain1staticpie.out): Define.
2031         ($(objpfx)ifuncmain1staticpie): Define.
2032         ($(objpfx)ifuncmain5pie.out): Define.
2033         ($(objpfx)ifuncmain5pie): Define.
2034         ($(objpfx)ifuncmain6pie.out): Define.
2035         ($(objpfx)ifuncmain6pie): Define.
2036         ($(objpfx)ifuncmain5): Define.
2037         ($(objpfx)ifuncmain5pic): Define.
2038         ($(objpfx)ifuncmain5static): Define.
2039         ($(objpfx)ifuncmain5staticpic): Define.
2040         ($(objpfx)ifuncmain5picstatic): Define.
2041         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2042         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2043         ifuncmain6pie.out.
2044         * elf/b/elf/ifuncmain1staticpie.c: New file.
2045         * elf/ifuncdep5.c: New file.
2046         * elf/ifuncdep5pic.c: New file.
2047         * elf/ifuncmain5.c: New file.
2048         * elf/ifuncmain5pic.c: New file.
2049         * elf/ifuncmain5picstatic.c: New file.
2050         * elf/ifuncmain5pie.c: New file.
2051         * elf/ifuncmain5static.c: New file.
2052         * elf/ifuncmain5staticpic.c: New file.
2053         * elf/ifuncmain6pie.c: New file.
2054         * elf/ifuncmain7.c: New file.
2055         * elf/ifuncmain7pic.c: New file.
2056         * elf/ifuncmain7picstatic.c: New file.
2057         * elf/ifuncmain7pie.c: New file.
2058         * elf/ifuncmain7static.c: New file.
2059         * elf/ifuncmod5.c: New file.
2060         * elf/ifuncmod6.c: New file.
2062 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2064         [BZ #10085]
2065         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2066         (nss_endgrent): New variable.
2067         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2068         fields. Change type of files to bool and adjust all users.
2069         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2070         (internal_endgrent): Call nss_endgrent if necessary.
2071         (add_group): New function.  Broken out of...
2072         (check_and_add_group): ...here.
2073         (getgrent_next_nss): Remove test that any callback is available.
2074         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2075         callback.  If there is no blacklist we can trust the results returned
2076         by the initgroups_dyn callback.  In case there is a callback and we
2077         find a group entry for the group ID but it doesn't contain the
2078         correct member, switch to the slow mode and use getgrent_r.
2079         (internal_getgrent_r): When we see a +: entry, determine whether
2080         there is any callback and which we can use the initgroups_dyn
2081         callback.
2083 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2085         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2086         (_int_free): Likewise.
2088         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2089         AF_IEEE802154.
2090         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2091         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2092         and ARPHRD_IEEE802154_PHY.
2094         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2095         relative to generic Linux version.
2097 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2099         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2100         ($(objpfx)ifuncmain1vispie): Likewise.
2102 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2104         * login/Makefile: Build pt_chown as PIE.
2106 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2108         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2109         a format string.
2110         * elf/sln.c (usage): Likewise.
2111         * malloc/memusage.sh (do_help): Likewise.
2112         * nss/getent.c (more_help): Likewise.
2113         * posix/getconf.c (main): Likewise.
2114         * sunrpc/rpcinfo.c (usage): Likewise.
2115         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2117 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2119         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2120         those needed.
2121         * login/Makefile: If necessary link pt_chown with -lcap.
2122         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2123         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2125 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2127         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2128         comparisons.
2129         * string/test-memchr.c (do_random_tests): Test very large lengths
2130         as well.
2132 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2134         * Makeconfig (+link-pie): Define.
2135         (+prectorS): Define.
2136         (+postctorS): Define.
2137         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2138         * nscd/Makefile ($(objpfx)nscd): Likewise.
2140 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2142         [BZ #10107]
2143         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2144         with cmplwi.
2145         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2147 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2149         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2150         into ...
2151         * sysdeps/unix/grantpt.c: ...here.
2153 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2155         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2156         chmod if it is necessary.
2158         [BZ #10166]
2159         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2160         when the slave device is in devpts or devfs.
2162         [BZ #10183]
2163         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2165         [BZ #10195]
2166         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2167         of nd_opt_home_agent_info_preference to uint16_t.
2168         Patch by Arnaud Ebalard <arno@natisbad.org>.
2170         [BZ #10207]
2171         * nss/getent.c: Add support for printing gshadow data.
2173         [BZ #10203]
2174         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2175         not just the currently used one and those which follow.
2176         Patch by Joe Landers <jlanders@vmware.com>.
2178         [BZ #10196]
2179         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2180         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2181         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2183         [BZ #10217]
2184         * stdlib/abort.c: Define variable __abort_msg.
2185         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2186         * include/stdlib.h: Declare __abort_msg.
2187         * assert/assert-perr.c: Don't free buffer for message immediately.
2188         Store atomically in __abort_msg and free old buffer if necessary.
2189         * assert/assert.c: Likewise.
2190         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2191         store pointer in __abort_msg, and possibly free old string.
2192         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2194         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2196         [BZ #10211]
2197         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2198         handle leap seconds if they are available.
2199         Patch by Akinori Hattori <hattya@gentoo.org>.
2201         * timezone/tzselect.ksh: Update from tzcode2009i.
2202         * timezone/zdump.c: Likewise.
2203         * timezone/zic.c: Likewise.
2205         * timezone/africa: Update from tzdata2009i.
2206         * timezone/antarctica: Likewise.
2207         * timezone/asia: Likewise.
2208         * timezone/australasia: Likewise.
2209         * timezone/backward: Likewise.
2210         * timezone/etcetera: Likewise.
2211         * timezone/europe: Likewise.
2212         * timezone/factory: Likewise.
2213         * timezone/iso3166.tab: Likewise.
2214         * timezone/leapseconds: Likewise.
2215         * timezone/northamerica: Likewise.
2216         * timezone/pacificnew: Likewise.
2217         * timezone/solar87: Likewise.
2218         * timezone/solar88: Likewise.
2219         * timezone/solar89: Likewise.
2220         * timezone/southamerica: Likewise.
2221         * timezone/systemv: Likewise.
2222         * timezone/yearistype: Likewise.
2223         * timezone/zone.tab: Likewise.
2225 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2227         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2228         STT_GNU_IFUNC symbol or in 8 into type_class.
2230         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2231         instead of Elf64_Addr.
2233 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2235         * po/sv.po: Update from translation team.
2237         [BZ #10229]
2238         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2239         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2240         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2241         the C version.
2243 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2245         * Versions.def: Add GLIBC_2.11 for libpthread.
2247 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2249         * resolv/res_send.c (send_dg): Remember we switched to
2250         single-request mode.
2252 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2254         * dlfcn/dlfcn.h: Remove comma at end of enum.
2255         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2257         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2258         parsing mode string.
2260 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2262         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2264         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2266         * sysdeps/x86_64/multiarch/strlen.S: New file.
2267         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2268         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2269         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2270         content.
2272         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2273         is defined.
2275 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2277         * sysdeps/x86_64/strlen.S: Minor optimizations.
2279 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2281         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2282         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2283         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2284         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2285         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2286         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2287         ifuncmain3.c, ifuncmod3.c,.
2288         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2289         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2290         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2291         ifuncmain4picstatic.
2292         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2293         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2294         ifuncmain3, ifuncmain4.
2295         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2296         $(objpfx)ifuncmain1vispie.out.
2297         (modules-names): Add ifuncmod1 ifuncmod3.
2298         (generated): Add ifuncmain1pie ifuncmain1pie.out
2299         ifuncmain1vispie ifuncmain1vispie.out.
2300         Define rules to build and run the tests.
2301         * elf/ifuncdep1.c: New file.
2302         * elf/ifuncdep1pic.c: New file.
2303         * elf/ifuncdep2.c: New file.
2304         * elf/ifuncdep2pic.c: New file.
2305         * elf/ifuncmain1.c: New file.
2306         * elf/ifuncmain1pic.c: New file.
2307         * elf/ifuncmain1picstatic.c: New file.
2308         * elf/ifuncmain1pie.c: New file.
2309         * elf/ifuncmain1static.c: New file.
2310         * elf/ifuncmain1staticpic.c: New file.
2311         * elf/ifuncmain1vis.c: New file..
2312         * elf/ifuncmain1vispic.c: New file..
2313         * elf/ifuncmain1vispie.c: New file.
2314         * elf/ifuncmain2.c: New file.
2315         * elf/ifuncmain2pic.c: New file.
2316         * elf/ifuncmain2picstatic.c: New file.
2317         * elf/ifuncmain2static.c: New file.
2318         * elf/ifuncmain3.c: New file.
2319         * elf/ifuncmain4.c: New file.
2320         * elf/ifuncmain4picstatic.c: New file.
2321         * elf/ifuncmain4static.c: New file.
2322         * elf/ifuncmod1.c: New file.
2323         * elf/ifuncmod3.c: New file.
2325 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2327         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2329 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2331         [BZ #10221]
2332         * posix/Makefile (routines): Add execvpe.
2333         * posix/Versions: Export execvpe for GLIBC_2.11.
2334         * posix/execvp.c: Now only a wrapper.  Move code to...
2335         * posix/execvpe.c: ...here.  New file.
2336         * posix/unistd.h: Declare execvpe.
2338 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2340         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2341         for STT_GNU_IFUNC handling for efficiency.
2342         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2344         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2345         _exit.
2346         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2348 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2350         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2351         for !SHARED.
2353 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2355         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2356         is not defined.
2357         (__rela_iplt_start): New declaration.
2358         (__rela_iplt_end): Likewise.
2359         (__rel_iplt_start): Likewise.
2360         (__rel_iplt_end): Likewise.
2361         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2362         * elf/elf.h (R_386_IRELATIVE): New macro.
2363         (R_X86_64_IRELATIVE): New macro.
2364         (R_386_NUM): Updated.
2365         (R_X86_64_NUM): Likewise.
2366         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2367         (libc_ifunc_hidden_def): New macro.
2368         * sysdeps/generic/dl-irel.h: New file.
2369         * sysdeps/i386/dl-irel.h: New file.
2370         * sysdeps/x86_64/dl-irel.h: New file.
2371         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2372         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2373         Handle R_386_IRELATIVE.
2374         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2375         (elf_machine_lazy_rela): Likewise.
2376         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2377         R_X86_64_IRELATIVE.
2378         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2380 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2382         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2383         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2384         are no differences.  If an architecture has bits in CPUID index 1
2385         meaning different things the values for the COMMON_CPUID_INDEX_1
2386         index must not be set.
2387         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2388         (HAS_POPCOUNT): ...this.  New macro.
2389         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2390         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2391         to set the value for Intel and AMD architectures.
2392         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2393         INTEL_CPUID_INDEX_1.
2394         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2395         change.
2397 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2399         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2400         and $build.
2402 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2404         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2405         (__expm1l): Set errno to ERANGE on overflow.
2406         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2407         (__tanl): Set errno to EDOM for Â±Inf.
2408         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2409         (__cosl): Set errno to EDOM for Â±Inf.
2410         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2411         (__sinl): Set errno to EDOM for Â±Inf.
2413         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2414         defined, use it.
2415         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2416         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2417         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2419 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2421         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2422         code accessing it.
2423         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2425 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2427         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2428         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2429         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2430         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2432         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2433         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2434         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2435         defined.
2436         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2437         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2439 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2441         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2442         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2443         is, either do nothing at all if __ASSUME_ACCEPT4, or
2444         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2445         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2446         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2447         define.
2448         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2449         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2450         internal_accept4 in socket directory.
2452 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2454         * sysdeps/ia64/configure.in: New file.
2456 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2458         [BZ #10162]
2459         * sysdeps/ia64/memchr.S: Use speculative load.
2461         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2462         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2463         use it.
2465         * sysdeps/i386/__longjmp.S: Add .text.
2466         * sysdeps/x86_64/__longjmp.S: Likewise.
2468 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2470         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2471         __ASSUME_ACCEPT4 for IA-64.
2473 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2475         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2477         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2478         (SOCKOP_accept4): Define.
2480 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2482         Sun approved the change of the license.
2483         * sunrpc/auth_des.c: Replace license text.
2484         * sunrpc/auth_none.c: Likewise.
2485         * sunrpc/auth_unix.c: Likewise.
2486         * sunrpc/authdes_prot.c: Likewise.
2487         * sunrpc/authuxprot.c: Likewise.
2488         * sunrpc/bindrsvprt.c: Likewise.
2489         * sunrpc/clnt_gen.c: Likewise.
2490         * sunrpc/clnt_perr.c: Likewise.
2491         * sunrpc/clnt_raw.c: Likewise.
2492         * sunrpc/clnt_simp.c: Likewise.
2493         * sunrpc/clnt_tcp.c: Likewise.
2494         * sunrpc/clnt_udp.c: Likewise.
2495         * sunrpc/clnt_unix.c: Likewise.
2496         * sunrpc/des_crypt.c: Likewise.
2497         * sunrpc/des_soft.c: Likewise.
2498         * sunrpc/get_myaddr.c: Likewise.
2499         * sunrpc/getrpcport.c: Likewise.
2500         * sunrpc/key_call.c: Likewise.
2501         * sunrpc/key_prot.c: Likewise.
2502         * sunrpc/openchild.c: Likewise.
2503         * sunrpc/pm_getmaps.c: Likewise.
2504         * sunrpc/pm_getport.c: Likewise.
2505         * sunrpc/pmap_clnt.c: Likewise.
2506         * sunrpc/pmap_prot.c: Likewise.
2507         * sunrpc/pmap_prot2.c: Likewise.
2508         * sunrpc/pmap_rmt.c: Likewise.
2509         * sunrpc/rpc/auth.h: Likewise.
2510         * sunrpc/rpc/auth_unix.h: Likewise.
2511         * sunrpc/rpc/clnt.h: Likewise.
2512         * sunrpc/rpc/des_crypt.h: Likewise.
2513         * sunrpc/rpc/key_prot.h: Likewise.
2514         * sunrpc/rpc/netdb.h: Likewise.
2515         * sunrpc/rpc/pmap_clnt.h: Likewise.
2516         * sunrpc/rpc/pmap_prot.h: Likewise.
2517         * sunrpc/rpc/pmap_rmt.h: Likewise.
2518         * sunrpc/rpc/rpc.h: Likewise.
2519         * sunrpc/rpc/rpc_des.h: Likewise.
2520         * sunrpc/rpc/rpc_msg.h: Likewise.
2521         * sunrpc/rpc/svc.h: Likewise.
2522         * sunrpc/rpc/svc_auth.h: Likewise.
2523         * sunrpc/rpc/types.h: Likewise.
2524         * sunrpc/rpc/xdr.h: Likewise.
2525         * sunrpc/rpc_clntout.c: Likewise.
2526         * sunrpc/rpc_cmsg.c: Likewise.
2527         * sunrpc/rpc_common.c: Likewise.
2528         * sunrpc/rpc_cout.c: Likewise.
2529         * sunrpc/rpc_dtable.c: Likewise.
2530         * sunrpc/rpc_hout.c: Likewise.
2531         * sunrpc/rpc_main.c: Likewise.
2532         * sunrpc/rpc_parse.c: Likewise.
2533         * sunrpc/rpc_parse.h: Likewise.
2534         * sunrpc/rpc_prot.c: Likewise.
2535         * sunrpc/rpc_sample.c: Likewise.
2536         * sunrpc/rpc_scan.c: Likewise.
2537         * sunrpc/rpc_scan.h: Likewise.
2538         * sunrpc/rpc_svcout.c: Likewise.
2539         * sunrpc/rpc_tblout.c: Likewise.
2540         * sunrpc/rpc_util.c: Likewise.
2541         * sunrpc/rpc_util.h: Likewise.
2542         * sunrpc/rpcinfo.c: Likewise.
2543         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2544         * sunrpc/rpcsvc/key_prot.x: Likewise.
2545         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2546         * sunrpc/rpcsvc/mount.x: Likewise.
2547         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2548         * sunrpc/rpcsvc/rex.x: Likewise.
2549         * sunrpc/rpcsvc/rstat.x: Likewise.
2550         * sunrpc/rpcsvc/rusers.x: Likewise.
2551         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2552         * sunrpc/rpcsvc/spray.x: Likewise.
2553         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2554         * sunrpc/rtime.c: Likewise.
2555         * sunrpc/svc.c: Likewise.
2556         * sunrpc/svc_auth.c: Likewise.
2557         * sunrpc/svc_authux.c: Likewise.
2558         * sunrpc/svc_raw.c: Likewise.
2559         * sunrpc/svc_run.c: Likewise.
2560         * sunrpc/svc_simple.c: Likewise.
2561         * sunrpc/svc_tcp.c: Likewise.
2562         * sunrpc/svc_udp.c: Likewise.
2563         * sunrpc/svc_unix.c: Likewise.
2564         * sunrpc/svcauth_des.c: Likewise.
2565         * sunrpc/xcrypt.c: Likewise.
2566         * sunrpc/xdr.c: Likewise.
2567         * sunrpc/xdr_array.c: Likewise.
2568         * sunrpc/xdr_float.c: Likewise.
2569         * sunrpc/xdr_mem.c: Likewise.
2570         * sunrpc/xdr_rec.c: Likewise.
2571         * sunrpc/xdr_ref.c: Likewise.
2572         * sunrpc/xdr_sizeof.c: Likewise.
2573         * sunrpc/xdr_stdio.c: Likewise.
2575         * po/da.po: Update from translation team.
2577 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2579         * sysdeps/sh/____longjmp_chk.S: New file.
2580         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2581         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2583 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2584             Ulrich Drepper  <drepper@redhat.com>
2586         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2587         (__nscd_cache_search): Assume each entry in the
2588         hash chain needs one hashentry and half of datahead.  Use
2589         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2591 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2593         * posix/sys/wait.h: Fix typos.  Pretty printing.
2594         * stdlib/stdlib.h: Likewise.  Correct comments.
2596         [BZ #10159]
2597         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2599         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2600         patch.
2602 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2604         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2605         Use it if we absolutely cannot reach any more correct list elements
2606         because that many do not fit into the currently mapped database.
2608 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2610         * nscd/nscd_helper.c: Include stddef.h.
2611         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2612         in a couple of places.  Return NULL if trail is not less than
2613         datasize, don't consider dataheads with length smaller than
2614         offsetof (struct datahead, data) + datalen.
2615         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2616         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2617         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2618         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2619         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2620         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2621         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2623         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2624         Rename ...
2625         (fallocate64): ... to this.
2626         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2627         Rename ...
2628         (fallocate64): ... to this.
2629         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2630         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2631         fallocate64@@GLIBC_2.10.
2632         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2633         fallocate64@@GLIBC_2.11.
2634         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2636         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2637         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2639         * nscd/selinux.c (nscd_avc_destroy): Removed.
2640         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2641         * nscd/nscd.c (termination_handler): Don't call
2642         nscd_avc_destroy.
2644 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2646         * include/atomic.h: Formatting.
2647         (catomic_compare_and_exchange_val_acq): Don't define if already
2648         defined by bits/atomic.h.
2650 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2652         * math/libm-test.inc (expm1_test): Add test for range error.
2654         * Versions.def: Add GLIBC_2.11 for libc.
2655         * debug/Makefile (routines): Add longjmp_chk.
2656         Add rules to build and run tst-longjmp_chk.
2657         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2658         * debug/longjmp_chk.c: New file.
2659         * debug/tst-longjmp_chk.c: New file.
2660         * include/bits/setjmp2.: New file.
2661         * include/stdio.h: Mark __fortify_fail as internal_function.
2662         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2663         * setjmp/bits/setjmp2.h: New file.
2664         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2665         of the aliases.
2666         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2667         defined.
2668         * sysdeps/i386/____longjmp_chk.S: New file.
2669         * sysdeps/x86_64/____longjmp_chk.S: New file.
2670         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2671         * sysdeps/x86_64/__longjmp.S: Likewise.
2673         * version.h: Bump for 2.11 development.
2675         * elf/check-execstack.c: New file.
2676         * elf/Makefile: Add rules to build and run check-execstack.
2678 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2680         * version.h (VERSION): Bump to 2.10.1.
2682         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2683         compatibility functions.
2684         * nss/getXXent_r.c: Likewise.
2685         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2686         * gshadow/getsgnam_r.c: Likewise.
2687         * gshadow/Version: Remove duplicate entries.
2689         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2690         for recent processor.
2691         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2692         Likewise.
2694 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2696         * version.h (VERSION): Bump for 2.10 release.
2697         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2699         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2700         same place we add ASFLAGS-config.
2702 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2704         [BZ #10128]
2705         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2706         or FORMERR and the other NOERROR, don't raise an error.
2708 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2710         [BZ #10118]
2711         * Makeconfig (+asflags): New variable based upon ASFLAG or
2712         asflags-cpu.
2713         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2714         * config.make.in (asflags-cpu): Add variable based upon
2715         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2716         the assembler.
2717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2718         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2719         recognizes power6 instruction set due to passing -mcpu=power6 from
2720         --with-cpu=power6 when compiling .S files.
2721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2722         Likewise.
2723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2724         Likewise.
2725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2726         Likewise.
2728 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2730         * string/stratcliff.c (do_test): Test for zero length
2731         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2732         at the end of the page.
2734 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2736         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2738         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2739         count is zero.
2741         * po/da.po: Update from translation team.
2743 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2745         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2746         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2748 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2750         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2751         and READ_IMPLIES_EXEC.
2753 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2755         * po/da.po: Update from translation team.
2757 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2759         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2760         comment change.
2762 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2764         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2765         to MAP_ANON in PROT_NONE mmap64 call.
2766         (open_archive): Likewise.
2767         (file_data_available_p): Use mmap64 instead of mremap.
2768         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2769         Attempt to reserve address space after mmap64 region.
2771 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2773         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2774         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2775         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2777         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2778         atanh should set ERANGE.
2780         [BZ #10087]
2781         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2782         result of lookup to make call to implement STT_GNU_IFUNC.
2783         (_dl_profile_fixup): Likewise.
2784         Patch by H.J. Lu <hjl.tools@gmail.com>.
2786         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2787         warning.
2789         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2790         from definition.
2792         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2793         label if it is not used.
2795         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2796         of gmon_hist_hdr and gmon_hdr structures and use them.
2797         * elf/sprof.c: Likewise.
2799         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2800         warning.
2802         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2804         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2805         to avoid cast.
2807         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2808         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2809         to avoid warnings.
2810         (iruserok_af): Use ss_family instead of casts.
2812         * gmon/gmon.c (write_hist): Define real-type variant of
2813         gmon_hist_hdr structure and use it.
2814         (write_gmon): Likewise for gmon_hdr.
2816         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2817         function if we are not going to define it.
2818         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2820         * inet/inet6_option.c (option_alloc): Add temporary variable to
2821         avoid warning.
2823         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2824         name of VTable element.
2825         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2826         * libio/iovsscanf.c: Likewise.
2827         * libio/vasprintf.c: Likewise.
2828         * libio/vsnprintf.c: Likewise.
2829         * stdio-common/isoc99_vsscanf.c: Likewise.
2830         * stdlib/strfmon_l.c: Likewise.
2831         * debug/vasprintf_chk.c: Likewise.
2832         * debug/vsnprintf_chk.c: Likewise.
2833         * debug/vsprintf_chk.c: Likewise.
2835         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2836         function pointers.
2838 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2840         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2842 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2844         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2846         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2847         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2848         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2849         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2850         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2851         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2852         * math/libm-test.inc: Add tests for errno after tan calls with
2853         Â±Inf.
2855         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2856         errno value vor pow(+-0,neg).
2857         * math/libm-test.inc (pow_test): Add tests for errno value for
2858         pole errors.
2860         * math/w_fmod.c: Also handle x=±Inf as error.
2861         * math/w_fmodf.c: Likewise.
2862         * math/w_fmodl.c: Likewise.
2863         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2864         x=±Inf or y=0.
2866         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2867         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2868         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2869         * sysdeps/i386/fpu/s_sin.S: Likewise.
2870         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2871         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2872         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2873         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2874         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2875         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2876         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2877         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2878         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2879         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2880         Â±Inf.
2882         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2883         ERANGE for underflows.
2884         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2886         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2887         the 2001 revision.
2889         * libio/tst-widetext.input: Remove surrogates.
2891         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2893         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2894         for lgamma should set errno to ERANGE, not EDOM.
2895         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2897 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2899         [BZ #10093]
2900         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2901         UTF-16 surrogates.
2903         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2904         space when temporarily mapping the whole content of the old file.
2906         [BZ #10100]
2907         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2908         not zero.
2910 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2912         * iconvdata/sjis.c (BODY): Don't advance inptr before
2913         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2914         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2915         two byte chars.
2917 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2919         * locale/locarchive.h (struct locarhandle): Rename len field to
2920         mmaped and add new reserved field.
2921         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2922         (create_archive): Reserve address space and then map file into it.
2923         (open_archive): Likewise.
2924         (file_data_available_p): New function.
2925         (compare_from_file): New function.
2926         (close_archive): Adjust to member name changes.
2927         (add_locale): Before comparing locale data, check it is mapped.
2928         Otherwise fall back to reading from the file.
2930 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2932         * stdio-common/psiginfo.c: Include <errno.h>.
2934 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2936         [BZ #9920]
2937         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2938         to get consistency between 32 and 64 bit architectures.
2940         [BZ #10052]
2941         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2942         directory for dummy syscall rules.
2943         Patch by Chris Steinbroner <hesh@pobox.com>.
2945 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2947         [BZ #10092]
2948         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2949         MNT_EXPIRE.
2951 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2953         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2954         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2956 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2958         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2959         data from vector to temporary buffer and call PWRITEV after it
2960         instead of vice versa.
2961         * sysdeps/posix/preadv.c: Fix up comment.
2962         * misc/preadv.c: Likewise.
2963         * misc/preadv64.c: Likewise.
2964         * misc/pwritev.c: Likewise.
2965         * misc/pwritev64.c: Likewise.
2966         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2968 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2970         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2972         * shadow/Makefile (tests): Add tst-shadow.
2973         * shadow/tst-shadow.c: New file.
2975         [BZ #9955]
2976         * gshadow/Makefile: New file.
2977         * gshadow/Versions: New file.
2978         * gshadow/fgetsgent.c: New file.
2979         * gshadow/fgetsgent_r.c: New file.
2980         * gshadow/getsgent.c: New file.
2981         * gshadow/getsgent_r.c: New file.
2982         * gshadow/getsgnam.c: New file.
2983         * gshadow/getsgnam_r.c: New file.
2984         * gshadow/gshadow.h: New file.
2985         * gshadow/putsgent.c: New file.
2986         * gshadow/sgetsgent.c: New file.
2987         * gshadow/sgetsgent_r.c: New file.
2988         * gshadow/tst-gshadow.c: New file.
2989         * include/gshadow.h: New file.
2990         * Makeconfig (all-subdirs): Add gshadow.
2991         * Makefile (installed-headers): Add gshadow/gshadow.h.
2992         * nss/Makefile (databases): Add sgrp.
2993         * nss/Versions: Add gshadow functions as private exports.
2994         * nss/nsswitch.conf: Add gshadow entry.
2995         * nss/sgrp-lookup.c: New file.
2996         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2997         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2998         * nss/nss_files/files-sgrp.c: New file.
2999         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3000         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3002 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3004         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3005         * stdio-common/reg-modifier.c: Likewise.
3007 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3009         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3010         is no FPU.
3012 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3014         [BZ #10086]
3015         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3016         headers up to 2.6.30.
3018         * po/ca.po: Update from translation team.
3020 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3022         [BZ #10069]
3023         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3024         an object that uses static TLS if the TLS modid is higher than the
3025         reserve we always allocate.  At least for multi-threaded code.
3027 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3029         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3030         Numerically stable check for valid width.
3032         * locale/programs/locarchive.c (open_archive): Map the entire file
3033         and not just the administrative data.
3034         (add_locale): When we find a hash sum match compare the content
3035         to be sure.
3037         * malloc/malloc.c (malloc_info): Output address space information.
3039 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3041         * malloc/malloc.c (malloc_info): Also output system memory information.
3043         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3044         architectures have preadv/pwritev in 2.6.30.
3046         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3047         * sysdeps/posix/readv.c: Likewise.
3048         Reported by Markus Armbruster <armbru@redhat.com>.
3050         * malloc/hooks.c (top_check): Force hook value into register.
3052 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3054         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3055         calls to _dl_relocate_object.
3057 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3059         [BZ #9957]
3060         * malloc/malloc.c (force_reg): Define.
3061         (sYSMALLOc): Load hook variable into variable
3062         before test and force into register.
3063         (sYSTRIm): Likewise.
3064         (public_mALLOc): Force hook value into register.
3065         (public_fREe): Likewise.
3066         (public_rEALLOc): Likewise.
3067         (public_mEMALIGn): Likewise.
3068         (public_vALLOc): Likewise.
3069         (public_pVALLOc): Likewise.
3070         (public_cALLOc): Likewise.
3071         (__posix_memalign): Likewise.
3072         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3073         before test and force into register.
3074         * malloc/hooks.c (top_check): Likewise.
3075         (public_sET_STATe): Pretty printing.
3077         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3078         in case we only receive one reply in single-request mode.
3080 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3082         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3083         are dlopened in statically linked program even for __LM_ID_CALLER.
3085 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3087         * resolv/res_send.c (send_dg): Don't switch into single-request
3088         mode if we already are in it.
3090 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3092         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3093         are always at least 4 bytes in the returned line.
3095 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3097         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3098         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3099         instead of 8K.  Stop searching in /proc/stat after hitting first
3100         line not starting with cpu.
3101         (next_line): Truncate too long
3102         lines at buffer size * 3/4 instead of pretending there were line
3103         breaks inside of large lines.
3105 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3107         * sysdeps/x86_64/mp_clz_tab.c: New file.
3109 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3110             Ulrich Drepper  <drepper@redhat.com>
3112         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3113         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3114         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3116 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3118         * sysdeps/sh/libc-tls.c: New file.
3120         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3122 2009-04-14  Roland McGrath  <roland@redhat.com>
3124         * elf/elf.h: Add various missing ARM constants, to match binutils.
3126 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3128         Optimizations from GMP.
3129         * sysdeps/x86_64/add_n.S: New file.
3130         * sysdeps/x86_64/addmul_1.S: New file.
3131         * sysdeps/x86_64/lshift.S: New file.
3132         * sysdeps/x86_64/mul_1.S: New file.
3133         * sysdeps/x86_64/rshift.S: New file.
3134         * sysdeps/x86_64/sub_n.S: New file.
3135         * sysdeps/x86_64/submul_1.S: New file.
3137 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3139         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3140         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3141         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3142         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3144 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3146         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3147         preadv/pwritev.
3149 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3151         * sysdeps/x86-64/strrchr.S: New file.
3153 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3155         * stdio-common/printf.h (struct printf_info): Add user element.
3156         New types printf_arginfo_size_function, printf_va_arg_function.
3157         Declare register_printf_specifier, register_printf_modifier,
3158         register_printf_type.
3159         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3160         (union printf_arg): Add pa_user element.
3161         Adjust __printf_arginfo_table type.
3162         Add __printf_va_arg_table, __printf_modifier_table,
3163         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3164         declarations.
3165         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3166         If registered arginfo call failed try normal specifier.
3167         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3168         function.
3169         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3170         * stdio-common/Versions: Export register_printf_modifier,
3171         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3172         * stdio-common/reg-modifier.c: New file.
3173         * stdio-common/reg-type.c: New file.
3174         * stdio-common/reg-printf.c (__register_printf_specifier): New
3175         function.  Mostly the old __register_printf_function function but
3176         uses locking and type of third parameter changed.
3177         (__register_printf_function): Implement using
3178         __register_printf_specifier.
3179         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3180         calls to arginfo functions.  Allocate enough memory for user-defined
3181         types.  Call new va_arg functions to get user-defined types.
3182         Try installed handlers even for existing format specifiers first.
3184 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3186         * sysdeps/x86_64/rawmemchr.S: New file.
3188         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3189         Simplified code and possible copy problem fixed.
3191         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3192         function if it is not defined.  Add some necessary casts.
3193         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3195         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3196         have preadv/pwritev in 2.6.30.
3198 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3200         * malloc/malloc.c (malloc_info): New function.
3201         * malloc/malloc.h: Declare it.
3202         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3204         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3205         to avoid PLT slot.
3207         * malloc/malloc.c (_int_realloc): Add parameter with old block
3208         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3209         Adjust all callers.
3210         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3212 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3214         * sysdeps/x86_64/strchrnul.S: New file.
3216         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3217         depending libcrypt on -lfreebl3.
3219         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3220         preadv/pwritev in 2.6.30.
3222         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3223         instead of __strcasecmp.
3225         * string/stratcliff.c (do_test): Add memchr tests..
3226         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3227         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3228         first read quad word.
3230 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3232         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3233         * string/tst-svc.input: Add new test case.
3234         * string/tst-svc.expect: Adjust.
3235         * string/Makefile: Don't ignore tst-svc error.
3237         * sysdeps/x86_64/memchr.S: New file.
3239         * resolv/resolv.h (RES_SNGLKUP): Define.
3240         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3241         * resolv/res_send.c (send_dg): If we sent two requests at once and
3242         only get one reply before timeout switch to mode where we send the
3243         second request only after the first answer has been received.
3245 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3247         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3248         * sysdeps/x86_64/strchr.S: Likewise.
3250 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3252         * configure.in: We need to test for the compiler earlier.
3254         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3255         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3256         GLIBC_2.10.
3257         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3258         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3259         and pwritev.
3260         * misc/preadv.c: New file.
3261         * misc/preadv64.c: New file.
3262         * misc/pwritev.c: New file.
3263         * misc/pwritev64.c: New file.
3264         * sysdeps/posx/preadv.c: New file.
3265         * sysdeps/posx/preadv64.c: New file.
3266         * sysdeps/posx/pwritev.c: New file.
3267         * sysdeps/posx/pwritev64.c: New file.
3268         * sysdeps/unix/sysv/linux/preadv.c: New file.
3269         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3270         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3271         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3272         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3273         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3275         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3276         compatibility code.
3277         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3279         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3280         __ASSUME_COMPLETE_READV_WRITEV.
3281         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3282         with modern kernels.
3283         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3285         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3286         to free a possible malloced buffer in case of cancellation.
3287         * sysdeps/posix/writev.c: Likewise for write.
3289 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3291         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3293         * configure.in: Recognize --enable-nss-crypt.
3294         * config.make.in: Add nss-crypt entry.
3295         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3296         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3297         and include path for NSS directory to compiler for md5-crypt,
3298         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3299         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3300         function implementation, use NSS.  Introduce wrappers around the
3301         hash function calls.  Little code size optimization.
3302         * crypt/sha256-crypt.c: Likewise.
3303         * crypt/sha512-crypt.c: Likewise.
3304         * scripts/check-local-headers.sh: Ignore nss3 directory.
3306         * configure.in: Rename pic_default to libc_cv_pic_default.
3307         * config.make.in: Likewise.
3309 2009-04-01  Roland McGrath  <roland@redhat.com>
3311         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3312         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3313         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3314         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3315         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3316         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3317         (R_SPARC_NUM): Update.
3318         From Dave Miller <davem@davemloft.net>.
3320 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3322         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3324 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3326         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3327         those which are used.
3328         * elf/dl-addr.c: Likewise.
3329         * elf/dl-caller.c: Likewise.
3330         * elf/dl-fini.c: Likewise.
3331         * elf/dl-iteratephdr.c: Likewise.
3332         * elf/dl-libc.c: Likewise.
3333         * elf/dl-load.c: Likewise.
3334         * elf/dl-support.c: Likewise.
3335         * elf/dl-sym.c: Likewise.
3336         * elf/rtld.c: Likewise.
3337         * sysdeps/generic/ldsodefs.h: Likewise.
3339         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3340         * elf/dl-minimal.c: Likewise.
3341         * elf/dl-misc.c: Likewise.
3342         * elf/rtld.c: Likewise.
3343         * sysdeps/generic/ldsodefs.h: Likewise.
3345 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3347         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3348         Avoid reuse of complex expression.
3350         * po/fr.po: Update from translation team.
3352 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3354         * include/dirent.h: Yet more changes to match sort function type
3355         change.
3356         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3357         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3358         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3360 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3362         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3364 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3366         * nscd/connections.c (restart): Try to preserve the process name
3367         by reading the /proc/self/exe symlink and using the return name.
3368         Patch by Jeff Bastian <jbastian@redhat.com>.
3370 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3372         [BZ #9733]
3373         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3374         if we are not loading a new audit library.
3375         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3376         Only use profiling trampoline for auditing if we are not relocating
3377         an audit library.
3378         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3379         * elf/rtld.c: Likewise.
3380         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3382         * elf/rtld.c (dl_main): Extend help message for --audit option.
3384         [BZ #9759]
3385         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3386         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3387         * dirent/alphasort.c: Adjust implementation to type change.
3388         * dirent/alphasort64.c: Likewise.
3389         * dirent/scandir.c: Likewise.
3390         * dirent/versionsort.c: Likewise.
3391         * dirent/versionsort64.c: Likewise.
3392         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3393         declaration.
3394         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3395         declaration.
3397         [BZ #9880]
3398         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3399         correctly.  Set segleft member in output as required.
3400         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3401         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3403         [BZ #9881]
3404         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3405         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3406         * inet/Makefile (tests): Add tst-inet6_rth.
3407         * inet/tst-inet6_rth.c: New file.
3409         [BZ #5807]
3410         * string/strlen.c (strlen): Fix omission in the expression to test
3411         for NUL bytes.
3413 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3415         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3417         * elf/dl-runtime.c (reloc_offset): Define.
3418         (reloc_index): Define.
3419         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3420         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3421         computing index from reloc_offset.
3422         (_dl_call_pltexit): Likewise.
3423         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3424         the relocation index to _dl_fixup.
3425         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3426         _dl_call_pltexit.
3427         * sysdeps/x86_64/dl-runtime.c: New file.
3429         [BZ #9893]
3430         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3431         alignment of La_x86_64_regs.  Store xmm parameters.
3432         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3434         [BZ #9913]
3435         * string/strverscmp.c (__strverscmp): Fix case of different digits
3436         in fractional part of string.
3437         Patch by Jingyu Liu <jyliu@fortinet.com>.
3438         * string/Makefile (tests): Add tst-svc2.
3439         * string/tst-svc2.c: New file.
3441         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3443         * locale/iso-639.def: Add Min Nan.
3445 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3447         [BZ #9948]
3448         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3450 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3452         * elf/dl-sysdep.c (auxvars): Compress data structure.
3454         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3455         STT_GNU_IFUNC handling.
3456         (elf_machine_rela): Likewise.
3458 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3460         * config.h.in (USE_MULTIARCH): Define.
3461         * configure.in: Handle --enable-multi-arch.
3462         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3463         (_dl_fixup_profile): Likewise.
3464         * elf/do-lookup.c (dl_lookup_x): Likewise.
3465         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3466         * elf/elf.h (STT_GNU_IFUNC): Define.
3467         * include/libc-symbols.h (libc_ifunc): Define.
3468         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3469         framework in init-arch.h to get CPUID values.
3470         * sysdeps/x86_64/multiarch/Makefile: New file.
3471         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3472         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3473         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3475         * config.make.in (experimental-malloc): Define.
3476         * configure.in: Handle --enable-experimental-malloc.
3477         * malloc/Makefile: Handle experimental-malloc flag.
3478         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3479         * malloc/arena.c: Likewise.
3480         * malloc/hooks.c: Likewise.
3481         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3483 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3485         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3486         prediction.  A few size optimizations.
3488 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3490         * time/tzset.c: Optimize a bit for size.
3492 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3494         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3495         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3497         * elf/sprof.c: Avoid warning about multi-line comment.
3499 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3501         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3502         DST name.
3503         * time/tst-posixtz.c: Add tests for quoted timezone names.
3505 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3507         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3508         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3509         200809L instead of 200112L.
3510         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3511         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3513         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3514         instead of __quick_exit_funcs to __run_exit_handlers.
3515         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3516         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3517         (__cxa_at_quick_exit): Remove attribute_hidden.
3518         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3519         to __run_exit_handlers.
3520         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3521         attribute_hidden.
3523 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3525         * po/id.po: Update from translation team.
3527 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3530         .machine push; .machine "power6" and .machine pop around mtfsf
3531         insns outside of _ARCH_PWR6 define.
3532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3534         Likewise.
3535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3536         Likewise.
3537         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3538         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3539         relax_fenv_state): Likewise.
3541 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3543         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3544         cxa_at_quick_exit.
3545         (static-only-routines): Add at_quick_exit.
3546         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3547         GLIBC_2.10.
3548         * stdlib/quick_exit.c: New file.
3549         * stdlib/at_quick_exit.c: New file.
3550         * stdlib/cxa_at_quick_exit.c: New file.
3551         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3552         it appropriately.
3553         (__internal_atexit): New function.
3554         (__new_exitfn): Now takes parameter to point to the list to use.
3555         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3556         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3557         (exit): ...here.  Just call __run_exit_handlers appropriately.
3558         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3559         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3560         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3561         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3563         * po/id.po: Update from translation team.
3565 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3567         * po/ru.po: Update from translation team.
3569 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3571         * po/nl.po: Update from translation team.
3573 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3575         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3576         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3577         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3578         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3579         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3580         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3581         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3583         * po/pl.po: Update from translation team.
3585 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3587         [BZ #7083]
3588         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3589         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3590         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3591         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3592         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3593         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3594         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3595         for GLIBC_2.10.
3596         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3597         Add fallocate and fallocate64.
3599         * io/fcntl.h: Pretty printing.
3601 2009-03-02  Richard Guenther  <rguenther@suse.de>
3603         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3604         attribute also for non-C99 inline semantics variant.
3606 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3608         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3609         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3610         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3611         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3613         Likewise.
3614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3615         Likewise.
3617 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3619         * po/cs.po: Update from translation team.
3621 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3623         * po/bg.po: Update from translation team.
3624         * po/sv.po: Likewise.
3625         * po/fi.po: Likewise.
3626         * po/vi.po: Likewise.
3628 2009-02-27  Roland McGrath  <roland@redhat.com>
3630         * Makeconfig (%.v.i): Depend on Makeconfig.
3631         Exclude % lines from initial #-comment removal.
3633 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3635         * po/ko.po: Update from translation team.
3637 2009-02-26  Roland McGrath  <roland@redhat.com>
3639         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3640         avoids unused warning.
3642 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3643             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3645         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3646         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3647         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3648         and asm/user.h.  Include asm/ptrace.h.
3649         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3650         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3651         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3652         Undefine.
3653         (start_thread): Don't undefine.
3654         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3655         Define.
3657 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3659         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3660         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3661         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3662         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3663         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3664         200112L to 200809L.
3665         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3666         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3667         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3668         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3669         _SC_THREAD_ROBUST_PRIO_PROTECT.
3670         * posix/unistd.h: fexecve is in POSIX 2008.
3671         * time/time.h: strftime_l is in POSIX 2008.
3672         * io/sys/stat.h: futimens is in POSIX 2008.
3673         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3674         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3675         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3676         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3677         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3678         open_memstream, and vdprintf are in POSIX 2008.
3680 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3682         * include/features.h: Define macros for XPG7/POSIX 2008.
3683         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3684         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3685         POSIX 2008.
3686         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3687         * locale/xlocale.h: Define locale_t type.
3688         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3689         in POSIX 2008.  Don't define locale_t here.
3690         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3691         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3692         UTIME_OMIT only with __USE_ATFILE.
3693         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3694         * stdio-common/psiginfo.c: New file.
3695         * stdio-common/psiginfo-data.h: New file.
3696         * stdio-common/psiginfo-define.h: New file.
3697         * stdio-common/Makefile (routines): Add psiginfo.
3698         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3699         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3700         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3701         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3702         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3703         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3704         * io/sys/stat.h: Move mknodat definition into same conditional as
3705         mknod.
3706         * time/sys/time.h: futimesat is not among the functions accepted
3707         into the POSIX standard.
3709         * include/features.h: If no feature selection given and we select
3710         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3711         * posix/Versions: Export __posix_getopt.
3712         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3713         Use it to alternatively initialize __posixly_correct.
3714         (_getopt_internal_r): Take addition parameter.  Pass on to
3715         _getopt_initialize.
3716         (_getopt_internal): Take addition parameter.  Pass on to
3717         _getopt_internal_r.
3718         (getopt): Pass additional zero to _getopt_internal.
3719         (__posix_getopt): New function.
3720         * posix/getopt.h: Add redirection for getopt.
3721         * posix/getopt1.c (getopt_long): Pass additional zero to
3722         _getopt_internal.
3723         (getopt_long_only): Likewise.
3724         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3725         (_getopt_long_only_r): Likewise.
3726         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3727         _getopt_internal_r.
3729 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3731         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3732         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3733         * sysdeps/posix/sysconf.c (__sysconf): Handle
3734         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3735         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3737 2009-02-24  Roland McGrath  <roland@redhat.com>
3739         [BZ #9895]
3740         * README.template: Reworded not to use substituted version number.
3741         Renamed to ...
3742         * README: ... here (no longer generated).
3743         * Makefile (README): Target removed.
3745 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3747         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3748         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3749         instead.
3751         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3753         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3755 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3757         * po/bg.po: Update from translation team.
3759 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3761         * stdlib/monetary.h: Uglify function parameter names.
3762         * sunrpc/rpc/pmap_clnt.h: Likewise.
3763         * sunrpc/rpc/svc.h: Likewise.
3764         * sunrpc/rpc/xdr.h: Likewise.
3765         * sunrpc/rpc/clnt.h: Likewise.
3766         * resolv/netdb.h: Likewise.
3767         * resolv/arpa/nameser.h: Likewise.
3768         * resolv/resolv.h: Likewise.
3769         * argp/argp.h: Likewise.
3770         * locale/langinfo.h: Likewise.
3771         * io/sys/stat.h: Likewise.
3772         * posix/spawn.h: Likewise.
3773         * nis/rpcsvc/nislib.h: Likewise.
3774         * malloc/obstack.h: Likewise.
3775         * sysdeps/ia64/bits/link.h: Likewise.
3776         * sysdeps/i386/bits/link.h: Likewise.
3777         * sysdeps/s390/bits/link.h: Likewise.
3778         * sysdeps/powerpc/bits/link.h: Likewise.
3779         * sysdeps/x86_64/bits/link.h: Likewise.
3780         * sysdeps/sparc/bits/link.h: Likewise.
3781         * sysdeps/sh/bits/link.h: Likewise.
3782         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3783         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3784         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3785         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3787 2008-12-01  Fredrik Unger  <fred@tree.se>
3789         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3790         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3791         _FP_UNPACK_RAW_2, fix up first argument.
3793 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3795         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3796         (GET_NPROCS_PARSER): Change parameters and use next_line.
3797         (__get_nprocs): Rewrite to not use stdio routines.
3798         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3799         Change parameters and use next_line.
3801 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3803         [BZ #5381]
3804         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3805         Change mempool_alloc prototype.
3806         * nscd/mem.c (gc): Don't handle mem_in_flight.
3807         (mempool_alloc): Third parameter now only indicates whether this is the
3808         first call (to allocate data) or not.  If it is, get db rdlock.
3809         Release it on error.  Don't handle mem_in_flight.
3810         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3811         Adjust third parameter of mempool_alloc calls.
3812         Nothing to do here in case mempool_alloc fails.
3813         Avoid local variable shadowing parameter.  No need to get db rdlock
3814         before calling cache_add.
3815         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3816         no mem_in_flight array anymore.
3817         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3818         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3819         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3820         in case mempool_alloc fails. No need to get db rdlock before calling
3821         cache_add.
3822         * nscd/hstcache.c (cache_addhst): Likewise.
3823         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3824         * nscd/servicescache.c (cache_addserv): Likewise.
3825         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3827 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3829         * po/lt.po: Update from translation team.
3831 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3833         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3834         defined, allow additional data to be added using the optional
3835         MORE_ELF_HEADER_DATA macro.
3836         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3837         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3839 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3841         * include/atomic.h: Define catomic_and if not already defined.
3842         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3843         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3845 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3847         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3848         Change all callers.
3849         (_int_realloc): Likewise.  Third argument is now padded size
3850         All _int_* functions are now static.
3852         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3853         * malloc/arena.c: Likewise.
3854         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3855         functions.
3857         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3858         easily.
3860         * malloc/malloc.c: Add branch prediction for use of the hooks.
3862         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3864 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3866         [BZ #7095]
3867         * bits/confname.h: Add SUSv7 macros for getconf environments.
3868         * bits/environments.h: Likewise.
3869         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3870         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3871         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3872         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3873         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3874         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3875         * posix/getconf.c: Likewise.
3876         * posix/sysconf.c: Likewise.
3877         * sysdeps/posix/sysconf.c: Likewise.
3878         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3879         environments.
3881 2009-01-16  Petr Baudis  <pasky@suse.cz>
3883         [BZ #9753]
3884         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3885         even if we currently have zero nscount.
3887 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3889         [BZ #9781]
3890         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3891         the input line is too long.
3893         * po/Makefile (libc.pot): Add f_print as function taking c-format
3894         parameter.
3896         * debug/xtrace.sh: Unify translatable messages.
3897         * elf/ldd.bash.in: Likewise.
3898         * elf/sprof.c: Likewise.
3899         * locale/programs/locale.c: Likewise.
3900         * malloc/memusage.sh: Likewise.
3901         * nss/getent.c: Likewise.
3903 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3905         * debug/pcprofiledump.c (print_version,
3906         argp_program_version_hook): New function.
3907         * elf/ldconfig.c (more_help): New function.
3908         (argp): Use it.
3909         * elf/sln.c (usage): New function.
3910         (main): Support --help and --version.
3911         * malloc/memusagestat.c (print_version): New function.
3912         (argp_program_version_hook): New variable.
3913         * nscd/nscd.c (more_help): New function.
3914         (argp): Use it.
3915         * posix/getconf.c (main): Send --version output to stdout.
3916         Support --help.
3917         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3918         arguments.  All callers changed.
3919         (print_version): New function.
3920         (parseargs): Support --help and --version.
3921         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3922         changed.
3923         (print_version): New function.
3924         (main): Use getopt_long.  Support --help and --version.
3925         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3926         --version.
3928 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3930         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3931         (update_data): Fix handling of wrapping back
3932         to the beginning of the buffer.
3934         [BZ #9823]
3935         * stdio-common/psignal.c (psignal): Fix test for empty string.
3937 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3939         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3940         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3941         move _null_auth to .rodata.
3943         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3944         value of 24.
3946         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3948         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3949         today than when the original code was written.  Use larger
3950         buffers.  This also makes it unnecessary to have stat information,
3951         if this causes extra efforts.
3952         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3953         __alloc_dir.
3955 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3957         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3958         is set.
3959         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3960         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3961         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3962         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3963         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3964         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3966 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3968         * po/ru.po: Update from translation team.
3970 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3972         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3973         Add _tid slot to maintain consistency with kernel.
3975 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3977         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3978         incomplete characters at end of input buffer.
3979         * libio/Makefile (tests): Add tst-fgetwc.
3980         * libio/tst-fgetwc.c: New file.
3981         * libio/tst-fgetwc.input: New file.
3983 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3985         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3987 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3989         [BZ #9793]
3990         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3991         *OUTBUFSTART unless the whole output fit into the buffer.
3992         * iconv/Makefile (tests): Add tst-iconv4.
3993         * iconv/tst-iconv4.c: New file.
3995 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3997         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3998         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4000 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4002         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4003         newer linker scripts.
4005 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4007         [BZ #7040]
4008         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4009         inotify_rm_watch should have type int.
4011 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4013         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4014         Make aligned_restore_vmx a local symbol.
4015         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4016         Likewise.
4018 2009-01-30  Andreas Jaeger  <aj@suse.de>
4020         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4021         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4022         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4023         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4024         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4025         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4026         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4028 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4030         [BZ #9726]
4031         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4032         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4034 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4036         [BZ #9726]
4037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4038         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4040         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4042 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4044         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4045         memcpy instead of memcmp.
4046         (_dl_setup_pointer_guard): Likewise.
4048 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4050         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4051         manipulated brk, use malloc_printerr.
4052         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4053         requests.
4055 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4057         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4058         rindex): For C++ add inlines so that they can be recognized as
4059         builtins.
4060         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4062 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4063             Jakub Jelinek  <jakub@redhat.com>
4065         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4066         * wcsmbs/wchar.h: Likewise.
4068 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4070         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4071         (stackinfo_sub_sp): Define.
4073 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4075         [BZ #9750]
4076         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4077         * include/alloca.h (alloca_account): Define.
4078         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4079         (stackinfo_sub_sp): Define.
4081         * nscd/connections.c (nscd_init): If database file access fails
4082         check whether this is due to permission problems and bail in that
4083         case.
4085         [BZ #9741]
4086         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4087         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4089 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4091         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4092         Add "t" to clobber list.
4093         (INTERNAL_SYSCALL_NCS): Likewise.
4095 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4097         * nss/getent.c (print_networks): Don't print comma between aliases.
4099 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4101         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4103         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4104         the hash table.
4105         * misc/Makefile (tests): Add bug-hsearch1.
4106         * misc/bug-hsearch1.c: New file.
4108 2009-01-22  Roland McGrath  <roland@redhat.com>
4110         * Makeconfig (%.v.i): Strip trailing # comments,
4111         not only whole-line comments.
4113 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4115         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4116         one parameter.  If non-NULL use it to initialize return value.
4117         (_dl_setup_pointer_guard): New function.
4118         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4119         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4120         * elf/rtld.c (security_init): Pass _dl_random to
4121         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4122         pointer_chk_guard.
4123         * elf/dl-sysdep.c (_dl_random): New variable.
4124         (_dl_sysdep_start): Handle AT_RANDOM.
4125         (_dl_show_auxv): Likewise.
4126         * elf/dl-support.c (_dl_random): New variable.
4127         (_dl_aux_init): Handle AT_RANDOM.
4128         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4129         to _dl_setup_stack_chk_guard.
4131         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4133 2009-01-10  Roland McGrath  <roland@redhat.com>
4135         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4137 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4139         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4141         [BZ #9706]
4142         * nss/nss_files/files-parse.c (strtou32): New function.
4143         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4144         across 32-bit and 64-bit platforms.
4145         (INT_FIELD_MAYBE_NULL): Likewise.
4147 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4149         [BZ #9720]
4150         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4151         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4152         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4153         Likewise.
4155 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4157         [BZ #697]
4158         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4159         being NULL also if there are no backreferences.
4160         * posix/rxspencer/tests: Add testcases.
4162 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4164         [BZ #9697]
4165         * posix/bug-regex17.c: Add testcases.
4166         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4167         handling.
4169 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4171         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4172         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4173         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4174         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4175         for elf subdir.
4176         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4177         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4178         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4179         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4180         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4181         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4183 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4185         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4186         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4187         re_string_skip_chars, re_string_reconstruct): Likewise.
4188         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4190 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4192         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4193         adjust the buffer alignment.
4195 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4197         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4198         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4199         net/route.h.
4201         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4202         flavor to description only when flavor is not NULL.
4204         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4205         mutex after SIGIO/SIGURG lookup loop.
4207 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4209         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4211 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4213         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4214         handling.
4216 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4218         * sysdeps/unix/sysv/linux/kernel-features.h
4219         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4221         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4222         if no output is written.
4224         * version.h: Bump to 2.10 development.
4226         * posix/getconf.c: Update copyright year.
4227         * nss/getent.c: Likewise.
4228         * iconv/iconvconfig.c: Likewise.
4229         * iconv/iconv_prog.c: Likewise.
4230         * elf/ldconfig.c: Likewise.
4231         * catgets/gencat.c: Likewise.
4232         * csu/version.c: Likewise.
4233         * elf/ldd.bash.in: Likewise.
4234         * elf/sprof.c (print_version): Likewise.
4235         * locale/programs/locale.c: Likewise.
4236         * locale/programs/localedef.c: Likewise.
4237         * nscd/nscd.c (print_version): Likewise.
4238         * debug/xtrace.sh: Likewise.
4239         * malloc/memusage.sh: Likewise.
4240         * malloc/mtrace.pl: Likewise.
4241         * debug/catchsegv.sh: Likewise.
4243 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4245         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4246         script.
4248 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4250         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4251         gethostbyname4_r function call succeeded, just leave the loop.
4253         [BZ #9694]
4254         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4255         very end.
4256         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4257         * wctype/Makefile (tests): Add bug-wctypeh.
4258         * wctype/bug-wctypeh.c: New file.
4260         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4261         LOCALDOMAIN is defined.
4262         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4264         * sysdeps/x86_64/bits/select.h: New file.
4266         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4268 2008-12-21  Bruno Haible  <bruno@clisp.org>
4270         [BZ #9677]
4271         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4272         if no output is written.
4274 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4276         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4277         libc internal symbol __dup2 to avoid access through the PLT.
4279 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4281         [BZ #6545]
4282         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4283         available only for __USE_GNU.
4285         * inet/Makefile (tests): Add tst-getni2.
4286         * inet/tst-getni2.c: New file.
4288         [BZ #7080]
4289         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4290         NULL when NI_NAMEREQD is set.
4291         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4292         * inet/Makefile (tests): Add tst-getni1.
4293         * inet/tst-getni1.c: New file.
4295 2008-12-03  Petr Baudis  <pasky@suse.cz>
4297         [BZ #7067]
4298         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4299         instead of prune_lock.
4300         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4301         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4303 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4305         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4306         use.
4308         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4309         handling.
4311         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4312         after reading name server list.
4314         [BZ #7058]
4315         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4316         handling for host name aliases.
4318 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4320         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4321         instead of doing things manually.
4323 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4325         * posix/regex_internal.h (build_wcs_upper_buffer):
4326         Return type is reg_error_t.
4328 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4330         * posix/globtest.sh: Use mktemp to create temporary file and
4331         directory.
4333         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4334         sets correctly.
4335         (__CPU_CLR_S): Likewise.
4336         (__CPU_ISSET_S): Likewise.
4338 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4339             Ulrich Drepper  <drepper@redhat.com>
4341         * scripts/firstversion.awk: Use custom comparison function to compare
4342         version numbers.
4343         * scripts/versions.awk: Use sort invocation which can handle
4344         multi-digit sub-version numbers.
4346 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4348         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4349         * locale/iso-639.def: Add Chhattisgarhi entry.
4351 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4353         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4354         ESRCH return value.
4355         (_nss_dns_gethostbyname4_r): Likewise.
4356         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4357         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4358         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4359         the no_data variable.
4361         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4362         information at the correct index.
4364         * socket/sys/socket.h: Declare accept4.
4365         * socket/accept4.c: New file.
4366         * sysdeps/unix/sysv/linux/accept4.c: New file.
4367         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4368         * socket/Makefile (routines): Add accept4.
4369         * socket/Versions: Export accept4 with version GLIBC_2.10.
4370         * socket/paccept.c: Removed.
4371         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4372         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4373         * Versions.def: Define GLIBC_2.10 for libc.
4374         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4376         * nscd/connections.c: Use accept4.
4378         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4380 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4382         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4383         flag already set.
4385         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4386         not exist.
4387         * stdlib/Makefile (tests): Add tst-unsetenv1.
4388         * stdlib/tst-unsetenv1.c: New file.
4390 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4392         * login/utmp_file.c (file_writable): New variable.
4393         (setutent_file): Don't try to open file for writing.
4394         (pututline_file): Before writing, make descriptor writable if
4395         necessary.
4397 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4399         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4400         to IPv4 or IPv6 if an interface has been found.
4402 2008-11-26  Roland McGrath  <roland@redhat.com>
4404         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4405         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4407         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4408         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4409         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4411         * elf/elf.h (NT_386_IOPERM): New macro.
4412         (NT_PPC_VSX): New macro.
4414 2008-11-25  Roland McGrath  <roland@redhat.com>
4416         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4417         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4418         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4419         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4420         Subdirectories moved to ports repository.
4421         * configure.in (base_machine): Remove alpha case.
4423 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4425         * sysdeps/mach/strerror_l.c: New file.
4427 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4429         [BZ #6411]
4430         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4431         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4432         magic numbers.
4433         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4434         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4435         (relax_fenv_state): Same as above.
4436         (FPSCR_29): Reserve bit in ISA 2.05.
4437         (FPSCR_NI): Provide define for compat.
4438         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4439         magic numbers.
4440         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4441         magic numbers.
4442         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4443         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4444         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4445         access to hwcap to account for hwcap size increase to uint64_t.
4446         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4447         Likewise.
4448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4449         (*setcontext): Likewise.
4450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4451         New file.
4452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4453         New file.
4454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4455         (*setcontext): dynamically select mtfsf insn based on
4456         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4457         increase to uint64_t.
4458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4459         (*swapcontext): dynamically select mtfsf insn based on
4460         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4461         increase to uint64_t.
4462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4463         New file.
4464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4465         New file.
4466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4467         (*setcontext): dynamically select mtfsf insn based on
4468         PPC_FEATURE_HAS_DFP.
4469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4470         (*swapcontext): dynamically select mtfsf insn based on
4471         PPC_FEATURE_HAS_DFP.
4473 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4475         * version.h: Bump for 2.9 release.
4476         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4478         [BZ #7029]
4479         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4480         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4481         all the rounding.
4483 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4485         [BZ #7009]
4486         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4487         unknown request types for now.
4489 2008-11-11  Roland McGrath  <roland@redhat.com>
4491         * sysdeps/x86_64/configure: New file.
4493         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4494         * configure: Regenerated.
4496 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4498         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4499         correct instruction to remove the stack frame.
4501 2008-11-03  Michael Matz  <matz@suse.de>
4503         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4504         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4506 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4508         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4509         Remove.
4511         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4512         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4513         of the thread variable instead of void *.
4514         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4515         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4516         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4517         __libc_tsd_define arguments.
4518         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4519         __libc_tsd_address arguments.  Remove union hack.
4520         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4521         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4522         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4523         Adjust __libc_tsd_{set,get} arguments.
4524         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4525         __libc_tsd_define arguments.
4526         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4527         arguments.
4528         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4529         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4530         (LOCALE): Adjust __libc_tsd_define arguments.
4531         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4532         arguments.
4533         (LOCALE): Adjust __libc_tsd_define arguments.
4534         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4535         arguments.
4536         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4537         arguments.
4539 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4541         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4542         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4544 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4546         [BZ #6966]
4547         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4549 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4550             Ulrich Drepper  <drepper@redhat.com>
4552         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4553         definition for GCC 3.1 and later.
4555 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4557         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4558         refetch dtv, as it might have changed.
4559         * elf/Makefile: Add rules to build and run tst-tls18.
4560         * elf/tst-tls18.c: New test.
4561         * elf/tst-tlsmod18a.c: New file.
4563 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4565         [BZ #6875]
4566         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4568 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4570         [BZ #6867]
4571         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4573         [BZ #6919]
4574         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4575         Fix length of copy operation.
4577 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4579         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4580         and fix its calling convention.
4582 2008-10-07  Andreas Schwab  <schwab@suse.de>
4584         [BZ #6942]
4585         * resolv/res_send.c (send_vc): Fix last change.
4586         (send_dg): Align here as well.
4588 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4590         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4591         return value in case rlimit is RLIM_INFINITY.
4593         [BZ #6947]
4594         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4595         for UL_SETFSIZE.
4596         * resource/Makefile (tests): Add bug-ulimit1.
4597         * resource/bug-ulimit1.c: New file.
4599         [BZ #6974]
4600         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4601         without dot.  Properly terminate the string with a null byte.
4602         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4604         [BZ #6980]
4605         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4606         negative sizees.
4607         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4608         negative __size.
4610         [BZ #6995]
4611         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4613 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4615         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4616         abort if there is no initgroups_dyn function.
4618         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4619         result if any of the queries really provided an answer.
4621 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4623         * po/lt.po: Update from translation team.
4625 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4627         * po/id.po: Update from translation team.
4629 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4631         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4632         Fix tests for existence of second reply.
4634 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4636         * po/id.po: New file.
4637         Contributed by the Indonesian translation team.
4639 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4641         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4642         initialization.
4644 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4646         * elf/Makefile: Add rules to build and run tst-tls17.
4647         * elf/tst-tls17.c: New test.
4648         * elf/tst-tlsmod17a.c: New file.
4649         * elf/tst-tlsmod17b.c: Likewise.
4651 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4653         * stdlib/divmod_1.c: Use correct type for dummy variable.
4654         * stdlib/mod_1.c: Likewise.
4656 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4658         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4660 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4662         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4663         __nonnull order for C++.
4664         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4665         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4667 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4669         * stdlib/longlong.h: Update from GCC.
4671 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4672             David S. Miller  <davem@davemloft.net>
4674         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4675         make sure any registers used with 64-bit 'branch-on-register'
4676         instructions have their top 32-bits clear.
4677         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4678         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4680 2008-09-18  Andreas Schwab  <schwab@suse.de>
4682         [BZ #6942]
4683         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4684         Properly handle partial reads.
4686 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4688         * elf/elf.h (STO_MIPS_PLT): New.
4689         (R_MIPS_COPY): New.
4690         (R_MIPS_JUMP_SLOT): New.
4691         (R_MIPS_NUM): Redefine to 128.
4692         (DT_MIPS_PLTGOT): New.
4693         (DT_MIPS_RWPLT): New.
4694         (DT_MIPS_NUM): Redefine to 0x35.
4696 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4698         * timezone/africa: Update from tzdata2008f.
4699         * timezone/asia: Likewise.
4700         * timezone/australasia: Likewise.
4701         * timezone/europe: Likewise.
4702         * timezone/leapseconds: Likewise.
4703         * timezone/northamerica: Likewise.
4704         * timezone/southamerica: Likewise.
4705         * timezone/zone.tab: Likewise.
4707 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4709         * nscd/connections.c: Disable use of paccept for now.
4711 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4713         * socket/Versions: Remove paccept export for GLIBC_2.9.
4714         * socket/Makefile (routines): Remove paccept.
4715         * socket/sys/socket.h: Remove paccept declaration.
4717         * po/sv.po: Update from translation team.
4719 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4721         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4722         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4724 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4726         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4727         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4729 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4731         * sunrpc/rpc/svc.h: Declare svcfd_create.
4732         Patch by Michael Solberg <msolberg@redhat.com>.
4734 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4735             Ulrich Drepper  <drepper@redhat.com>
4737         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4738         _int_valloc fails.
4739         (public_pVALLOc): Likewise.
4741 2008-09-02  Andreas Jaeger  <aj@suse.de>
4743         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4744         commit.
4746 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4748         [BZ #6860]
4749         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4751 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4753         * Makefile (check-data): Check data directory in add-ons.
4754         * elf/Makefile (check-data): Likewise.
4756 2008-08-18  Roland McGrath  <roland@redhat.com>
4758         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4759         * configure: Regenerated.
4760         * config.make.in (cflags-cpu): New substituted variable.
4761         (with-cpu): Variable removed.
4762         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4764 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4766         [BZ #6845]
4767         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4768         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4769         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4770         redundant.  Functions which call floating point assembler operations
4771         should go into a sysdeps powerpc/fpu directory.
4773 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4775         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4776         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4778 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4780         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4782         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4783         change related to AT_EXECFN.  We cannot use that string.
4784         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4785         _dl_execfn member.
4786         * elf/dl-support.c: Remove _dl_execfn variable.
4787         (_dl_aux_init): Remove handling of AT_EXECFN.
4788         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4789         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4791 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4793         [BZ #6544]
4794         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4795         byte gets added to writes and seeks from the end use the length of
4796         the buffer and not the currently terminating NUL byte.
4798         [BZ #6634]
4799         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4800         Set to true if locking failed.
4801         (getutid_r_file): Adjust caller.
4802         (pututline_file): Likewise.  Return NULL in this case.
4803         Patch mostly by halesh.s@gmail.com.
4805 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4807         [BZ #6589]
4808         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4809         Define.
4810         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4812 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4814         [BZ #6839]
4815         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4816         macro since it is now available in elf/dynamic-link.h.
4818 2008-08-12  Roland McGrath  <roland@frob.com>
4820         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4821         in case used outside of libc.
4822         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4824 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4826         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4827         directly instead of going through dn_comp.
4829 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4831         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4832         Fix asm constraints.
4834 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4836         [BZ #6790]
4837         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4838         (IPV6_PMTUDISC_PROBE): Likewise.
4840 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4842         [BZ #6791]
4843         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4845 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4846             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4848         [BZ #6817]
4849         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4850         Added the members 'vsx' and 'arch_2_06'.
4851         (_dl_powerpc_platforms): Add the member 'power7'.
4852         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4853         to reflect the changes required by VSX and ISA 2.06.
4854         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4855         'power7'.
4856         Defined PPC_PLATFORM_POWER7.
4857         (_dl_string_platform): Add support for POWER7.
4858         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4859         capability and ISA 2.06.
4861 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4863         [BZ #6824]
4864         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4865         macro to detect use of 128 bit long double.
4866         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4868 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4870         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4872         [BZ #5794]
4873         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4874         parameters.
4875         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4876         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4878 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4880         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4881         guaranteed to be large enough to read inotify event.  Ignore
4882         EAGAIN error.  Better error message.  Add branch predicition.
4883         (main_loop_epoll): Likewise.
4885 2008-08-02  Roland McGrath  <roland@frob.com>
4887         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4888         Add memory clobbers.
4890 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4892         * manual/arith.texi: Avoid @strong{Note:}.
4893         * manual/creature.texi: Likewise.
4894         * manual/filesys.texi: Likewise.
4895         * manual/math.texi: Likewise.
4896         * manual/memory.texi: Likewise.
4897         * manual/resource.texi: Likewise.
4898         * manual/syslog.texi: Likewise.
4899         * manual/time.texi: Likewise.
4901         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4902         to prevent warning.
4904 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4906         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4907         new epoll_create1 interface.
4908         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4909         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4910         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4912         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4913         (NS_GET32): Likewise.
4915         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4916         syscalls, too.
4918         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4919         use the AT_EXECFN value if it is no absolute path.
4920         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4921         __ASSUME_AT_EXECFN.
4923         * Versions.def: Add GLIBC_2.9 to libresolv.
4924         * include/resolv.h: Remove hidden proto declarations for __ns_*
4925         functions.  Add them for __dn_count_labels and __p_secstodate.
4926         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4927         Define ns_msg_getflags macro here.
4928         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4929         and __p_secstodate.
4930         * resolv/Versions: Export functions from <arpa/nameser.h> from
4931         libresolv in version GLIBC_2.9.
4932         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4933         hidden definitions.
4934         * resolv/ns_netint.c: Likewise.
4935         * resolv/ns_parse.c: Likewise.
4936         * resolv/ns_print.c: Likewise.
4937         * resolv/ns_samedomain.c: Likewise.
4938         * resolv/ns_ttl.c: Likewise.
4939         * resolv/arpa/nameser_compat.h: Likewise.
4940         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4941         function calls.
4942         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4943         instead of ns_get16.
4944         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4945         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4946         (gaih_getanswer_slice): Likewise.
4947         * resolv/Makefile (libresolv-routines): Add ns_date.
4948         * resolv/ns_date.c: New file.
4950         * elf/Makefile (check-localplt.out): Also check libresolv and
4951         libcrypt.
4953 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4955         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4956         __ASSUME_O_CLOEXEC.
4958 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4960         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4961         buffer passed to NSS functions.
4963         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4965         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4966         Define.
4968         * misc/syslog.c (openlog_internal): Fix compile problem.
4970 2008-07-28  Roland McGrath  <roland@redhat.com>
4972         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4974 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4976         * io/ftw.c (add_object): Remove inline to avoid warning.
4978         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4980         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4981         Use it instead of locally defined resplen2 variable.
4982         (res_nsend): Adjust for __libc_res_nsend interface change.
4983         (send_vc): Initialize *resplen2 if necessary.  Read length of
4984         package into an appropriately aligned variable.  Store converted length
4985         in new variable and use it appropriately.
4986         Add branch prediction help.
4987         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4988         and pass it on to __libc_res_nsend.  Adjust all callers.
4989         (__libc_res_nsearch): Likewise.
4990         (__libc_res_nqeurydomain): Likewise.
4991         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4992         change.
4993         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4994         Define resplen2 variable and pass it to __libc_res_nsearch and then
4995         to gaih_getanswer.
4996         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4997         Add branch prediction.
4998         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4999         (gaih_getanswer): Don't decode second slice if first one failed due
5000         to a too small buffer.  Don't let not found status of second
5001         decoder shadow results of the first.
5002         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5003         and __libc_res_nquery interface changes
5004         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5005         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5006         __libc_res_nsearch, and __libc_res_nsend.
5007         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5008         change.
5009         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5010         __libc_res_nsearch interface changes.
5012 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5014         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5016         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5017         file descriptors with close-on-exec set.
5018         (exec_comm_child): Fix the case where the write end of the pipe is
5019         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5021         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5022         * io/pipe2.c: Likewise.
5023         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5024         instead of __ASSUME_PACCEPT.
5025         * include/unistd.h: Declare __have_pipe2.
5026         * libio/iopopen.c: Implement "e" flag.
5027         * libio/Makefile (tests): Add tst-popen1.
5028         * libio/tst-popen1.c: New file.
5030         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5031         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5033 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5035         [BZ #6771]
5036         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5037         success call of _IO_SEEKOFF or calls which failed because the
5038         descriptor is for a pipe.
5040         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5041         magic number.
5043         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5045         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5046         F_SETFD use if we know fopen set the flag.
5048         * login/utmp_file.c (setutent_file): Minor optimization in case
5049         O_CLOEXEC is available.
5051 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5053         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5054         * elf/Makefile: Use pie-ccflag variable.
5055         * nscd/Makefile: Likewise.
5056         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5058 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5060         [BZ #6724]
5061         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5062         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5063         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5064         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5065         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5066         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5067         utmp32, utmpx32 and login32.
5068         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5069         versions of struct utmp functions to libc and libutil.
5070         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5071         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5072         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5073         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5074         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5075         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5076         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5077         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5078         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5079         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5080         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5081         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5082         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5083         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5084         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5085         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5086         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5087         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5088         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5089         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5090         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5091         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5093 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5095         * scripts/gen-as-const.awk: Generate more widely usable code by
5096         using 64-bit arithmetic.
5098         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5099         the same treatment as narrow output code in last patch.
5101         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5103         [BZ #6763]
5104         * elf/dl-load.c (local_strdup): Remove inline.
5105         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5106         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5107         part of the object.
5109         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5111 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5113         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5114         the new syscalls, too.
5116         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5117         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5119         [BZ #6698]
5120         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5121         parameter for end of buffer.  If temporary copy is too large use
5122         malloc.
5123         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5124         interface change.
5125         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5126         string rewrite when allocating buffer.
5128         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5129         syscalls, too.
5131         * nscd/connections.c (nscd_init): Clean up fcntl call.
5133         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5134         SOCK_NONBLOCK if possible.
5136         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5137         SOCK_CLOEXEC if available.
5139         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5140         __libc_clntudp_bufcreate_internal.
5141         * include/sys/socket.h: Declare __have_sock_cloexec.
5142         * socket/Makefile (aux): Add have_sock_cloexec.
5143         * socket/have_sock_cloexec.c: New file.
5144         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5145         __libc_clntudp_bufcreate.
5146         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5147         which takes an additional parameter.  Create socket with non-blocking
5148         mode and close-on-exec flag set, if wanted.
5149         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5150         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5151         instead of clntudp_create.  The socket has already the close-on-exec
5152         flag set if SOCK_CLOEXEC is defined.
5154 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5156         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5157         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5158         appropriate.
5159         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5160         non-blocking mode by using socket, paccept, and inotify_init1.
5162         * Versions.def (glibc): Add GLIBC_2.9.
5163         * io/Makefile (routines): Add dup3 and pipe2.
5164         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5165         * io/dup3.c: New file.
5166         * io/pipe2.c: New file.
5167         * posix/unistd.h: Declare dup3 and pipe2.
5168         * socket/Makefile (routines): Add paccept.
5169         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5170         * socket/paccept.c: New file.
5171         * socket/sys/socket.h: Declare paccept.
5172         * sysdeps/unix/syscalls.list: Add entry for dup3.
5173         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5174         epoll_create2 and inotify_init1.
5175         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5176         * sysdeps/unix/sysv/linux/paccept.c: New file.
5177         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5178         possible.
5179         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5180         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5181         inotify_init1, and pipe2 entries.
5182         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5183         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5184         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5185         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5186         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5187         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5188         SOCK_NONBLOCK.
5189         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5190         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5191         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5192         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5193         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5194         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5195         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5196         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5197         EPOLL_NONBLOCK.  Declare epoll_create2.
5198         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5199         EFD_NONBLOCK.
5200         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5201         IN_NONBLOCK.  Declare inotify_init1.
5202         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5203         SFD_NONBLOCK.
5204         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5205         TFD_NONBLOCK.
5207         * elf/elf.h: Define AT_EXECFN.
5208         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5209         LD_ORIGIN_PATH.
5210         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5211         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5212         if __ASSUME_AT_EXECFN is defined.
5213         (_dl_aux_init): Handle AT_EXECFN.
5214         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5215         for 2.6.27 and up.
5216         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5217         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5218         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5219         _dl_execfn if available and avoid compatibility code if
5220         __ASSUME_AT_EXECFN is defined.
5222         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5223         _dl_discover_osversion only for older kernels.
5225 2008-07-22  Roland McGrath  <roland@frob.com>
5227         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5229 2008-07-21  Roland McGrath  <roland@frob.com>
5231         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5232         returned too much data out of line.
5234 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5236         * locale/setlocale.c (setname): Remove inline to avoid compiler
5237         warning.
5239         [BZ #6712]
5240         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5242 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5244         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5245         doesn't manage to write anything, fail.
5247         * malloc/hooks.c (__malloc_check_init): Remove printf.
5249 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5251         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5253 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5255         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5256         from inotify.
5257         (main_loop_epoll): Likewise.
5259 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5261         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5263         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5264         if DEBUG is defined.
5266         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5267         query.  Adjust buffer size computation for padding.
5269 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5271         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5272         * stdio-common/tst-setvbuf1.c: New file.
5273         * stdio-common/tst-setvbuf1.expect: New file.
5275         [BZ #6719]
5276         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5277         when selecting fully-buffered stream.
5278         Patch by Wang Xin <wxinee@gmail.com>.
5280 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5282         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5283         (__open_2): New function.
5284         (__open64_2): New alias to __open_2.
5285         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5286         (__openat_2): New function.
5287         (__openat64_2): New alias to __openat_2.
5289 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5291         [BZ #6723]
5292         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5294 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5296         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5297         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5298         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5299         __hurd_dfail.
5300         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5301         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5302         * sysdeps/mach/hurd/send.c (__send): Likewise.
5303         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5304         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5306 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5308         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5309         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5310         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5311         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5312         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5313         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5315 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5317         [BZ #6657]
5318         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5319         of %EY.
5320         Patch by Petr Baudis.
5322 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5324         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5325         Patch by Peter Jones <pjones@redhat.com>.
5327 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5329         [BZ #6654]
5330         * stdlib/canonicalize.c (__realpath): readlink can write too much
5331         into the buffer on platforms without PATH_MAX.
5333 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5335         [BZ #6653]
5336         * posix/tst-regex.c (main): Rename to...
5337         (do_test): ... this. Remove cmdline option processing.
5338         (TIMEOUT): Define.
5339         (TEST_FUNCTION): Define.
5340         (CMDLINE_OPTIONS): Define.
5342 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5344         [BZ #5210]
5345         * configure.in: Add -Werror to -fstack-protector test to catch
5346         unsupported architectures.
5347         Patch by Gilles Esponasse <g.esp@free.fr>.
5349 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5351         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5352         getcontext returns ENOSYS.
5354 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5356         * nscd/connections.c (main_loop_poll): Fix test for read error.
5357         (main_loop_epoll): Likewise.
5359 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5361         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5362         better place so it is not called when nscd is used.
5364         * nscd/connections.c: Also recognize and handle changes to the
5365         resolver configuration file.
5367 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5369         * time/strftime.c: Pass reference to tzset_called around to handle
5370         recursive calls.
5372         [BZ #6612]
5373         * time/strftime.c (__strftime_internal): Call tzset() only
5374         when printing timezone-dependent values.
5375         Based on a patch by Petr Baudis <pasky@suse.cz>.
5377         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5378         unconditionally use second gaih_getanswer_slice result.
5380         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5381         (getaddrinfo): RES must always be non-NULL.
5383 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5385         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5386         cr[34] registers.
5387         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5388         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5389         Likewise.
5390         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5391         register.
5393 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5395         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5396         fields.
5397         * nscd/connections.c (inotify_fd): New variable.
5398         (nscd_init): Try to open an inotify descriptor.
5399         If successful, watch files for databases using inotify instead of
5400         having prune threads stat the files.
5401         (nscd_run_prune): Recognize clear_cache flag being set and call
5402         prune_cache appropriately.
5403         (main_loop_poll): Add inotify descriptor to wait set and handle the
5404         reported changes.
5405         (main_loop_epoll): Likewise.
5406         * nscd/cache.c (prune_cache): Don't stat files for databases if
5407         inotify is used.
5408         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5409         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5411         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5412         fixed-size portion of the record.
5413         * nscd/servicescache.c (cache_addserv): Likewise.
5414         * nscd/pwdcache.c (cache_addpw): Likewise.
5415         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5417 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5419         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5420         out we don't use uninitialized memory.
5422         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5423         the client.
5425 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5427         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5428         ignore T_DNAME messages.
5429         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5431 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5433         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5434         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5436 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5438         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5439         instead of portstr to nscd_getserv_r.  Patch by
5440         Roman Kagan <rkagan@mail.ru>.
5442 2008-05-26  Jim Meyering  <meyering@redhat.com>
5444         Remove more useless "if" tests before "free".
5445         * include/inline-hashtab.h (htab_delete): Likewise.
5446         * libio/freopen.c (freopen): Likewise.
5447         * libio/freopen64.c (freopen64): Likewise.
5448         * locale/programs/ld-collate.c (collate_read): Likewise.
5449         * misc/fstab.c (libc_freeres_fn): Likewise.
5450         * posix/glob.c (globfree): Likewise.
5452 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5454         * string/Makefile (strop-tests): Add memmem.
5455         * string/test-memmem.c: New file.
5456         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5457         (test_init): Size buf1 according to BUF1PAGES.
5459 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5461         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5462         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5463         (CFLAGS-scanf17.c): New.
5464         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5465         * stdio-common/scanf15.c (main): Likewise.
5466         * stdio-common/scanf16.c: New file.
5467         * stdio-common/scanf17.c: New file.
5469 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5471         * resolv/res_send.c (send_dg): If we already have one of two
5472         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5473         use the one answer insted of failing.
5475 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5477         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5478         being executed on PowerPC as the expected result exceeds IBM
5479         long double 128 __LDBL_MAX__.
5481 2008-05-21  Roland McGrath  <roland@redhat.com>
5483         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5485         * Makefile (check-data): Use $(abi-name) before other guesses.
5486         Look in $(add-ons) dirs before scripts/data/.
5487         * elf/Makefile (check-data): Likewise.
5489         * scripts/soversions.awk: Grok ABI line.
5490         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5491         Emit definition for abi-name variable.
5493 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5495         * string/endian.h: Define new fixed-size hto* and *toh macros only
5496         if [__USE_BSD].
5498         * iconvdata/Depend: Add localedata.
5500 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5502         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5504 2008-05-08  David S. Miller  <davem@davemloft.net>
5506         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5507         HIDDEN_JUMPTARGET.
5508         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5509         (__SYSCALL_CLOBBERS): Remove %g* registers.
5510         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5511         (__SYSCALL_CLOBBERS): Likewise.
5512         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5513         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5515 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5518         (CALL_ERRNO_LOCATION): Define.
5519         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5520         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5521         (CALL_ERRNO_LOCATION): Define.
5522         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5523         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5524         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5526 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5528         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5529         variable.
5531 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5533         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5534         (FIRST_FRAME_POINTER): Define.
5536 2008-05-09  David S. Miller  <davem@davemloft.net>
5538         * sysdeps/sparc/sparc64/backtrace.c: New file.
5540 2008-05-14  David S. Miller  <davem@davemloft.net>
5542         * sysdeps/sparc/machine-gmon.h: New file.
5543         * sysdeps/sparc/sparc-mcount.S: Likewise.
5544         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5545         sysdep_routines in gmon directory.
5547 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5549         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5551 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5553         * resolv/res_query.c (__libc_res_nquery): In case one of two
5554         answer was too short don't try to read that answer's header.
5556         * resolv/res_send.c (send_dg): In case of timeout and there are
5557         two queries and one has been answered, return value indicating
5558         success.
5560 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5562         * nscd/cache.c (cache_add): Take additional parameter specifying
5563         whether this is in response of a cache refill.  Check alignment
5564         of package data.  Revamp waking of pruning thread.
5565         (prune_cache): Small optimization.
5566         * nscd/nscd.h: Adjust cache_add prototypes.
5567         * nscd/aicache.c: Adjust cache_add calls.
5568         * nscd/grpcache.c: Likewise.
5569         * nscd/hstcache.c: Likewise.
5570         * nscd/initgrcache.c: Likewise.
5571         * nscd/pwdcache.c: Likewise.
5572         * nscd/servicescache.c: Likewise.
5573         * nscd/connections.c (restart): Really disable cache use before
5574         exec attempt.  If it fails, reenable cache.
5575         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5576         time to max to be able to notice concurrent cache additions.  Unlock
5577         prune_lock while performing gc.  Afterwards compute wakeup time with
5578         current wakeup_time value in mind.
5580 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5582         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5584         * nscd/mem.c (gc): Correctly determine highest used array element
5585         in mark.
5587         * nscd/mem.c (markrange): Add assert to check entries are all
5588         aligned.  Small cleanup in bitmap use.
5590         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5591         blockoff of type nscd_ssize_t.
5592         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5593         (mempoll_alloc): Record block offset and not address.
5595         * nscd/mem.c (gc): Fix test for stack overuse.
5597         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5598         more asserts.
5600         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5601         entry is available, believe it.
5603         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5604         no answers return NSS_STATUS_NOTFOUND.
5605         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5606         buffer does not have any content.
5608 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5610         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5612         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5613         lookup, don't assign canon unconditionally.
5615 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5617         * string/Makefile (distribute): Add str-two-way.h.
5619 2008-03-29  Eric Blake  <ebb9@byu.net>
5621         Rewrite string searches to O(n) rather than O(n^2).
5622         * string/str-two-way.h: New file.  For linear fixed-allocation
5623         string searching.
5624         * string/memmem.c: New implementation.
5625         * string/strstr.c: New implementation.
5626         * string/strcasestr.c: New implementation.
5628 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5630         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5631         opr.ctx_type.
5632         (calc_first): Initialize constraint field.
5633         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5634         Use search_duplicated_node to avoid loops.  Fix grammar.
5635         (duplicate_node): Merge constraint field for all node types.
5636         (calc_eclosure_iter): Look at constraint field for all node types.
5637         * posix/regex_internal.c (create_cd_newstate): Don't look at
5638         create_cd_newstate.
5640 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5642         [BZ #6428]
5643         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5645         [BZ #6442]
5646         * string/endian.h: Add macros for fixed-size endian conversion.
5647         * bits/byteswap.h: Allow inclusion from <endian.h>.
5648         * sysdeps/i386/bits/byteswap.h: Likewise.
5649         * sysdeps/ia64/bits/byteswap.h: Likewise.
5650         * sysdeps/s390/bits/byteswap.h: Likewise.
5651         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5652         * string/Makefile (tests): Add tst-endian.
5653         * string/tst-endian.c: New file.
5655         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5656         Patch by Reuben Thomas.
5658 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5660         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5662 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5664         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5666         [BZ #6461]
5667         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5668         Add missing braces.
5669         (BODY for __gconv_transform_internal_ascii): Likewise.
5671         [BZ #6472]
5672         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5673         to be treated like link-local addresses.
5674         (match_prefix): Don't treat IPv4 loopback address special when
5675         converting to v4 mapped addressed.
5677         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5678         if necessary.
5679         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5680         * posix/tst-rfc3484-2.c: Likewise.
5681         * posix/tst-rfc3484-3.c: Likewise.
5683         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5684         and SCTP.
5686         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5688         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5690         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5692 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5694         * po/lt.po: New file.  From Lituanian translation team.
5696 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5698         Introduce TLS descriptors for i386 and x86_64.
5699         * include/inline-hashtab.h: New file, copied from 2005's
5700         libiberty, with fix for memory leak imported afterwards by
5701         Glauber de Oliveira Costa.
5702         * elf/tlsdeschtab.h: New file.
5703         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5704         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5705         (CHECK_STATIC_TLS): Move to...
5706         * elf/dynamic-link.h: ... this file.
5707         (TRY_STATIC_TLS): New macro.
5708         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5709         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5710         R_386_TLS_DESC): Define.
5711         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5712         binutils.
5713         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5714         R_X86_64_TLSDESC): Define.
5715         (R_386_NUM, R_X86_64_NUM): Adjust.
5716         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5717         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5718         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5719         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5720         release tlsdesc_table.
5721         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5722         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5723         (elf_machine_rel): Handle R_386_TLS_DESC.
5724         (elf_machine_rela): Likewise.
5725         (elf_machine_lazy_rel): Likewise.
5726         (elf_machine_lazy_rela): Likewise.
5727         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5728         * sysdeps/i386/dl-tlsdesc.S: New file.
5729         * sysdeps/i386/dl-tlsdesc.h: New file.
5730         * sysdeps/i386/tlsdesc.c: New file.
5731         * sysdeps/i386/tlsdesc.sym: New file.
5732         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5733         tlsdesc_table.
5734         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5735         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5736         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5737         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5738         release tlsdesc_table.
5739         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5740         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5741         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5742         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5743         (elf_machine_rela): Likewise.
5744         (elf_machine_lazy_rel): Likewise.
5745         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5746         (__tls_get_addr): Do not declare for non-shared compiles.
5747         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5748         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5749         * sysdeps/x86_64/tlsdesc.c: New file.
5750         * sysdeps/x86_64/tlsdesc.sym: New file.
5751         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5752         tlsdesc_table for both 32- and 64-bit structs.
5754 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5756         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5757         its own function.  This reduces the frame setup costs and more.
5759 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5761         [BZ #3406]
5762         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5763         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5765 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5767         * io/openat.c (__openat_2): Also pass fd to __openat.
5768         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5769         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5771         * string/tester.c (test_memcmp): Add a few more tests.
5772         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5774 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5776         * nscd/cache.c (cache_add): Before returning with failure and this
5777         is the first use of the record, mark it as unusable.
5778         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5779         reporting a failure.
5780         * nscd/grpcache.c: Likewise
5781         * nscd/hstcache.c: Likewise.
5782         * nscd/initgrcache.c: Likewise.
5783         * nscd/pwdcache.c: Likewise.
5784         * nscd/servicescache.c: Likewise.
5786 2008-05-10  Roland McGrath  <roland@redhat.com>
5788         [BZ #6505]
5789         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5791 2008-05-08  David S. Miller  <davem@davemloft.net>
5793         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5795         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5796         (__ieee754_y0l): Likewise.
5797         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5798         (__ieee754_y1l): Likewise.
5799         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5800         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5801         frexpl and ldexpl.  math_private.h provides them and the latter
5802         is not even used.
5803         (__log1pl): Use __frexpl.
5805 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5807         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5808         prototypes.
5809         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5810         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5811         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5812         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5813         af==AF_UNSPEC.
5814         (_nss_nis_gethostbyname4_r): New function.
5815         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5816         Change to also handle af==AF_UNSPEC.
5817         (get_tablename): New function.  Use it to avoid duplication.
5818         (_nss_nisplus_gethostbyname4_r): New function.
5819         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5820         available.
5821         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5822         * nss/nss.h: Define struct gaih_addrtuple.
5823         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5824         af==AF_UNSPEC.
5825         (_nss_files_gethostbyname4_r): New function.
5826         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5827         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5828         calls.
5829         * resolv/res_query.c (__libc_res_nquery): Take two additional
5830         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5831         look up IPv4 and IPv6.
5832         Change all callers.
5833         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5834         for an additional query and answer buffer.  Pass to send_vc and
5835         send_dg.
5836         (send_vc): Send possibly two requests and receive two answers.
5837         (send_dg): Likewise.
5838         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5839         __libc_res_nquery.
5840         (_nss_dns_gethostbyname4_r): New function.
5841         (gaih_getanswer_slice): Likewise.
5842         (gaih_getanswer): Likewise.
5843         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5844         __libc_res_nquery call.
5845         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5846         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5847         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5848         available.
5850 2008-05-05  David S. Miller  <davem@davemloft.net>
5852         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5853         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5855 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5857         Fix termios bit macros.
5858         Move *DLY definitions where they belong, in termios.h.
5859         Add *[0-3] definitions.
5860         Fixes confusion between VT and FF.
5861         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5862         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5863         are already defined to avoid collision with termios.h.
5864         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5865         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5866         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5867         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5868         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5869         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5870         VTDLY, VT0, VT1): New macros.
5871         [__USE_GNU] (OLCUC): Change value of macro.
5872         [__USE_XOPEN] (OFILL): New macro.
5873         [__USE_BSD] (CRTSCTS): Change value.
5874         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5875         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5876         (B7200, B14400, B28800, B76800): New macros.
5878 2008-05-01  David S. Miller  <davem@davemloft.net>
5880         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5881         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5882         (gen-as-const-headers): Add it.
5883         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5884         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5885         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5886         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5888         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5889         six system call parameters.
5890         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5892 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5894         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5895         RUSAGE_LWP.
5896         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5897         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5899 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5901         * stdlib/tst-setcontext.c: Include unistd.h.
5903 2008-04-25  David S. Miller  <davem@davemloft.net>
5905         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5906         Pass "union semun" properly in to sys_ipc, it must be passed
5907         by value, not by reference.
5909 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5911         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5912         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5913         * nscd/connections.c (mem_in_flight): Likewise.
5915         * nscd/nscd.h (dbs): Make hidden.
5917         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5918         Avoid returning -1, return 0 instead.
5920 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5922         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5924 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5926         [BZ #5209]
5927         * sysdeps/unix/sysv/linux/times.c: New file.
5929         [BZ #5381]
5930         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5931         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5932         prototype.
5933         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5934         appropriate mem_in_flight element.
5935         (gc): Take allocations which have not yet been committed to the
5936         database into account.
5937         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5938         Reset mem_in_flight before returning.
5939         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5940         cue it up in mem_in_flight_list.
5941         * nscd/aicache.c: Adjust mempool_alloc call.
5942         * nscd/grpcache.c: Likewise.
5943         * nscd/hstcache.c: Likewise.
5944         * nscd/initgrcache.c: Likewise.
5945         * nscd/pwdcache.c: Likewise.
5946         * nscd/servicescache.c: Likewise.
5947         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5948         of -fpie.
5950         * nscd/connections.c (handle_request): Provide better error message
5951         in case SELinux forbids the service.
5953         * version.h (VERSION): Bump to 2.8.90.
5955 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5957         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5959 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5961         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5962         Also use for 32-bit.
5963         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5964         __nextafter instead of nextafter to avoid local PLT.
5965         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5966         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5968         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5970         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5971         __fe_nomask_env.
5972         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5973         <fenv_libc.h> instead of <fenv.h>.
5974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5977         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5979         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5980         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5981         function from fegetexcept and make old name weak alias.
5982         * include/fenv.h: Declare __fegetexcept.
5983         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5984         fegetexcept.
5985         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5986         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5987         to fetestexcept.
5988         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5989         instead of frexpl to avoid local PLT.
5990         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5991         ilogbl to avoid local PLT.
5992         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5993         instead of ldexpl to avoid local PLT.
5994         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5995         __roundl not roundl to avoid local PLT.
5996         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5997         local PLTs.  Use __sincosl instead of separate sinl and cosl
5998         calls.
5999         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6001         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6002         version for ppc64 to 2.4.21 since without it makecontext will fail.
6004         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6005         to the ABI in use.
6006         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6007         .__tls_get_addr.
6008         [__powerpc64__] (TLS_GD): Likewise.
6010 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6012         [BZ #4997]
6013         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6014         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6015         mantissa.
6016         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6017         Likewise.  Also account for when x is an odd number between 2^52
6018         and 2^53-1.
6019         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6020         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6021         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6022         detect aforementioned erroneous conditions.
6024 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6026         * configure.in: Check for -fno-section-anchors in addition to
6027         -fno-toplevel-reorder.
6029 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6031         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6033         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6034         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6035         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6036         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6037         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6038         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6040 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6042         [BZ #5443]
6043         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6044         * time/alt_digit.c: Likewise.
6045         * wcsmbs/wcsmbsload.c: Likewise.
6047 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6049         * version.h (VERSION): Bump to 2.8.
6051         * timzeone/asia: Update from tzdata2008b.
6052         * timezone/backward: Likewise.
6053         * timezone/europe: Likewise.
6054         * timezone/northamerica: Likewise.
6055         * timezone/southamerica: Likewise.
6056         * timezone/iso3166.tab: Likewise.
6057         * timezone/leapseconds: Likewise.
6058         * timezone/zone.tab: Likewise.
6059         * timezone/private.h: Update from tzcode2008a.
6060         * timezone/zdump.c: Likewise.
6061         * timezone/zic.c: Likewise.
6063 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6065         [BZ #5741]
6066         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6067         Define additonal Data Cache Block instruction macros.
6068         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6069         Replace dcbst with dcbf and sync with sync/isync.
6071 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6073         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6074         Always set ELF_RTYPE_CLASS_PLT.
6075         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6077 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6079         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6080         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6081         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6082         For ISA 2.01 and later replace mftb with mfspr 268.
6084 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6086         [BZ #5768]
6087         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6088         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6090 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6092         [BZ #5768]
6093         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6094         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6095         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6096         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6098 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6100         * stdlib/tst-makecontext.c (othervar): New variable.
6101         (cf): Test sign extending the argument to long.
6103 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6105         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6106         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6107         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6108         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6109         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6110         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6111         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6113 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6115         * elf/Makefile (tests): Substitute tests-vis-yes here.
6116         (tests-vis-yes): Delete.
6117         (modules-name, modules-vis-yes): Similarly.
6119 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6121         [BZ #4407]
6122         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6123         Preserve sign in signgamp when x is zero.
6125 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6127         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6128         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6129         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6130         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6131         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6132         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6134 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6136         [BZ #4314]
6137         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6138         buffers.
6140         [BZ #5209]
6141         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6142         a reserved error value.
6144         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6145         value to check for correct sign extension.
6147         [BZ #5436]
6148         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6149         Copy 64-bit parameter values even though this is not required in
6150         the standard.
6152         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6153         PC save.
6155 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6157         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6158         PC save.
6160 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6162         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6164 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6166         [BZ #5998]
6167         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6168         in line-buffered stream failed.
6169         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6171 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6173         [BZ #6024]
6174         * scripts/abi-versions.awk: If the version specified by
6175         --enable-oldest-abi is older than the first version for this
6176         architecture, use the default version.
6178         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6179         as well when ignoring the whole category.
6181 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6183         [BZ #6042]
6184         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6185         ETHERTYPE_* definitions.
6186         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6188 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6190         * stdlib/mbtowc.c (__no_r_state): Remove.
6191         (mbtowc): New static state variable.  Use it instead of
6192         __no_r_state.
6193         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6194         (__wctomb_state): New hidden variable.
6195         (wctomb): Use __wctomb_state instead of __no_r_state.
6196         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6197         (__wctomb_state): New extern decl.
6198         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6200 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6202         [BZ #5475]
6203         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6205 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6207         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6209 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6211         * po/nl.po: Update from translation team.
6213 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6215         [BZ #6007]
6216         * string/strfry.c: Handle empty strings again.
6218 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6220         [BZ #5443]
6221         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6222         before looking for translation.
6223         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6224         * locale/freelocale.c: Likewise.
6225         * locale/newlocale.c: Likewise.
6226         * locale/setlocale.c: Likewise.
6227         Based partially on a patch by ryo@np.css.fujitsu.com.
6229 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6231         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6232         acquiring wrlock.  Do conv_tab allocation while holding lock.
6233         * intl/Makefile: Add rules to build and run tst-gettext6.
6234         * intl/tst-gettext6.c: New test.
6235         * intl/tst-gettext6.sh: New file.
6237 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6239         * po/nl.po: Update from translation team.
6241         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6242         provided through st_blksize, try the default size before giving up.
6244 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6246         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6248         [BZ #5939]
6249         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6251         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6252         error message.  POSIX today does not require the messages to be in
6253         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6255         [BZ #5979]
6256         * sunrpc/auth_unix.c: Unify printed strings.
6257         * sunrpc/clnt_tcp.c: Likewise.
6258         * sunrpc/clnt_udp.c: Likewise.
6259         * sunrpc/clnt_unix.c: Likewise.
6260         * sunrpc/svc_tcp.c: Likewise.
6261         * sunrpc/svc_udp.c: Likewise.
6262         * sunrpc/svc_unix.c: Likewise.
6263         * sunrpc/xdr.c: Likewise.
6264         * sunrpc/xdr_array.c: Likewise.
6265         * sunrpc/xdr_rec.c: Likewise.
6266         * sunrpc/xdr_ref.c: Likewise.
6267         * locale/programs/ld-time.c (time_finish): Unify messages.
6268         * locale/programs/locfile.c (handle_copy): Fix typo.
6269         * nscd/nscd.c (options): Fix typo.
6271         [BZ #5995]
6272         * stdlib/strtod_l.c: Use correct sign for result in one more
6273         underflow case.
6274         Patch by Eric Blake <ebb9@byu.net>.
6276 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6278         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6279         and creat system calls.
6280         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6281         call.
6282         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6283         system calls.
6284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6285         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6286         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6288 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6290         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6291         <linux/limits.h> has defined it.
6292         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6293         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6294         headers.
6295         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6296         it instead of ARG_MAX.
6298 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6300         * posix/gai.conf: Fix comment for scope nullbits.
6301         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6302         default to 128 bits for v4 mapped addresses.
6304 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6306         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6307         ptrace call to get the ieee_instruction_pointer from the kernel.
6308         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6309         ptrace call to set the ieee_instructtion_pointer.
6310         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6311         Add comment that ieee_instruction_pointer is always 0.
6313 2008-03-09  Andreas Jaeger  <aj@suse.de>
6315         [BZ #5857]
6316         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6317         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6318         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6320         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6321         (rint_test): Likewise.
6323 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6325         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6326         call.
6327         (__nisfind_server): Similar for open readColdStartFile call.
6328         Patch partially by Jim Meyering.
6329         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6330         around internal_setent call.
6332         * po/vi.po: New Vietnamese translation.
6334         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6335         ADJ_OFFSET_SS_READ.
6337         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6338         remove CLONE_STOPPED.
6340 2008-02-10  Jim Meyering  <meyering@redhat.com>
6342         Remove useless "if" before "free":
6343         * elf/ldconfig.c (parse_conf_include): Likewise.
6344         * gmon/gmon.c (weak_alias): Likewise.
6345         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6346         * inet/rcmd.c (__validuser2_sa): Likewise.
6347         * intl/bindtextdom.c (set_binding_values): Likewise.
6348         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6349         * libio/genops.c (save_for_backup): Likewise.
6350         * libio/wgenops.c (save_for_wbackup): Likewise.
6351         * locale/programs/ld-collate.c (collate_read): Likewise.
6352         * locale/programs/linereader.c (get_string): Likewise.
6353         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6354         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6355         * resolv/res_debug.c (do_section): Likewise.
6356         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6357         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6358         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6359         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6360         * time/tzset.c (tzset_internal): Likewise.
6362 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6364         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6365         of ASSEMBLER.
6367 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6369         [BZ #5903]
6370         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6371         not stream for output file.  Open output file here.
6372         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6373         and output file name.
6374         (process_fd): Likewise.
6375         (process_file): Likewise.
6376         (main): Adjust callers of changed functions.
6377         * iconv/iconv_prog.h: Adjust prototype.
6379 2008-03-09  Andreas Jaeger  <aj@suse.de>
6381         [BZ #5753]
6382         * sysdeps/ia64/ieee754.h: Use protected namespace
6383         __BIG_ENDIAN/__LITTLE_ENDIAN.
6384         * sysdeps/ieee754/ieee754.h: Likewise.
6385         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6387 2008-03-08  Roland McGrath  <roland@frob.com>
6389         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6390         ignore a signal that came from a machine exception, treat it as a
6391         fatal core-dump signal instead.
6392         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6394         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6395         Clear DF bit in thread state's eflags.
6396         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6398 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6400         [BZ #5774]
6401         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6402         of NAN(...) sequence.
6403         * stdlib/Makefile (tests): Add tst-strtod6.
6404         * stdlib/tst-strtod6.c: New file.
6406         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6408         [BZ #5762]
6409         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6410         putting offending option character in quotes.  Clean up error
6411         messages.
6412         * po/be.po: Adjust msgstr in translation file.
6413         * po/bg.po: Likewise.
6414         * po/ca.po: Likewise.
6415         * po/cs.po: Likewise.
6416         * po/da.po: Likewise.
6417         * po/de.po: Likewise.
6418         * po/es.po: Likewise.
6419         * po/fr.po: Likewise.
6420         * po/hr.po: Likewise.
6421         * po/ko.po: Likewise.
6422         * po/nl.po: Likewise.
6423         * po/rw.po: Likewise.
6424         * po/sk.po: Likewise.
6425         * po/sv.po: Likewise.
6426         * po/tr.po: Likewise.
6427         * po/zh_CN.po: Likewise.
6428         * po/zh_TW.po: Likewise.
6430         [BZ #5760]
6431         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6432         Patch by Roland Bless <roland@bless.de>.
6434         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6435         .o file.
6436         * elf/Makefile (routines): Add dl-sysdep.
6437         (elide-routines.os): Likewise.
6439 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6441         [BZ #5786]
6442         * elf/dl-sysdep.c: Undefine ROUND after use.
6443         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6444         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6445         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6446         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6447         to ...
6448         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6449         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6450         if necessary.
6451         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6453         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6454         _dl_tls_get_addr_soft element.
6455         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6456         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6457         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6458         GLRO.
6459         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6460         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6461         of internal_function.
6463         * stdlib/Makefile (aux): Add tens_in_limb.
6464         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6465         * stdlib/tens_in_limb.c: ...here.  New file.
6467         [BZ #5778]
6468         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6469         __statfs_chown_restricted.
6470         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6471         for _PC_CHOWN_RESTRICTED.
6472         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6473         Implement __statfs_chown_restricted.
6474         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6475         _POSIX_CHOWN_RESTRICTED value to zero.
6476         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6477         defined to zero.
6479         * sysdeps/x86_64/rtld-memset.c: New file.
6481 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6483         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6485         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6486         Barcelona machine.  Make default fall through branch of
6487         __x86_64_preferred_memory_instruction check as the integer code path.
6489 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6491         * sysdeps/x86_64/cacheinfo.c
6492         (__x86_64_preferred_memory_instruction): New variable.
6493         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6495         * sysdeps/x86_64/memset.S: Rewrite.
6497 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6499         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6500         __obstack_printf_chk): New prototypes.
6501         (__vasprintf_chk, __vdprintf_chk,
6502         __obstack_vprintf_chk): Likewise.
6503         Add libc_hidden_proto.
6504         * libio/obprintf.c
6505         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6506         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6507         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6508         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6509         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6510         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6511         __obstack_vprintf_chk): New prototypes.
6512         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6513         obstack_vprintf): New inlines.
6514         * debug/dprintf_chk.c: New file.
6515         * debug/vdprintf_chk.c: New file.
6516         * debug/asprintf_chk.c: New file.
6517         * debug/vasprintf_chk.c: New file.
6518         * debug/obprintf_chk.c: New file.
6519         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6520         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6521         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6522         @@GLIBC_2.8.
6523         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6524         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6525         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6526         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6527         libc_hidden_proto.
6528         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6529         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6530         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6531         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6532         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6533         @@GLIBC_2.8.
6534         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6535         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6536         obstack_vprintf_chk.
6537         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6538         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6539         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6540         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6541         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6542         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6544 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6546         [BZ #5779]
6547         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6548         Patch by Roy Marples <roy@marples.name>.
6550         [BZ #5736]
6551         * malloc/malloc.c: Fix typo in comment.
6553         [BZ #5627]
6554         * locale/iso-639.def: Add Shuswap.
6556 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6558         [BZ #5790]
6559         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6560         overwrite *h_errnop/*errnop values from getanswer_r in case of
6561         failure.
6563 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6565         [BZ #5818]
6566         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6567         (verify_persistent_db): Remove one unnecessary test and add a new one
6568         for bad configuration.
6569         (nscd_init): Improve error reported when persistent database cannot
6570         be reused.
6571         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6572         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6573         .suggested_module and .max_db_size and case config file says the
6574         values are zero.
6575         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6577         [BZ #5854]
6578         * nis/ypclnt.c (yp_order): Fix handling of return value of
6579         do_ypcall_tr call.
6580         Patch by Jeff Moyer <jmoyer@redhat.com>.
6582         * po/fr.po: Update from translation team.
6584 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6585             Carlos O'Donell <carlos@systemhalted.org>
6587         [BZ #5012]
6588         * FAQ.in: Describe why glibc needs to be compiled with
6589         optimization.
6591 2008-02-19  Roland McGrath  <roland@redhat.com>
6593         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6595 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6597         [BZ #5737]
6598         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6599         __USE_MISC is defined.
6601 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6603         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6604         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6605         sys/timerfd.h.
6606         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6607         timerfd_gettime, timerfd_settime.
6608         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6609         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6611 2008-02-08  Roland McGrath  <roland@redhat.com>
6613         * elf/elf.h (NT_PPC_SPE): New macro.
6615 2008-02-06  Roland McGrath  <roland@redhat.com>
6617         * Makerules ($(common-objpfx)sysd-rules):
6618         Depend on $(sysdep-makeconfigs).
6620 2008-01-31  Roland McGrath  <roland@redhat.com>
6622         [BZ #5442]
6623         * configure.in: Use -print-file-name if it yields a directory,
6624         for each of include and include-fixed.
6625         * configure: Regenerated.
6627         * Makeconfig (sysd-rules-targets): New variable.
6628         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6629         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6631 2008-01-30  Roland McGrath  <roland@redhat.com>
6633         * manual/libc.texinfo: Update back-cover text.
6635         * elf/elf.h (NT_386_TLS): New macro.
6637 2008-01-29  Roland McGrath  <roland@redhat.com>
6639         * Makeconfig (sysd-rules-patterns): New variable.
6640         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6641         (check-inhibit-asm): New canned sequence, replaces ...
6642         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6643         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6644         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6645         (CFLAGS-rtld): Variable removed.
6647 2008-01-24  Roland McGrath  <roland@redhat.com>
6649         * configure.in: Let configure fragments set base_os.
6650         * configure: Regenerated.
6652 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6654         * po/ko.po: Update from translation team.
6656 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6658         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6660 2008-01-12  Andreas Jaeger  <aj@suse.de>
6662         [BZ #5040]
6663         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6664         Add EPOLLRDHUP.
6666 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6668         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6669         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6670         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6672 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6674         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6675         * elf/dl-close.c (_dl_close): Check for it.
6676         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6677         (_dl_allocate_static_tls): Likewise.
6678         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6679         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6680         to it.
6681         * elf/tst-tls16.c: New file.
6682         * elf/tst-tlsmod16a.c: New file.
6683         * elf/tst-tlsmod16b.c: New file.
6684         * elf/Makefile: Add rules to build and run tst-tls16.
6686 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6688         [BZ #5628]
6689         * bits/shm.h: Fix comment describing shmid_ds.
6690         * sysdeps/gnu/bits/shm.h: Likewise.
6691         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6692         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6693         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6694         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6695         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6696         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6697         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6698         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6699         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6701         [BZ #5607]
6702         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6703         prototypes.
6704         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6705         additional suffixes.
6706         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6707         Add optional functions mq_timedreceive and mq_timedsend.
6708         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6709         * conform/data/pthread.h-data: Fix prototype of
6710         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6711         * conform/data/semaphore.h-data: Allow time.h definitions.
6712         * conform/data/signal.h-data: Likewise.
6713         * conform/data/stdio.h-data: getw and putw are not required in v6.
6714         * conform/data/stdlib.h-data: Change setstate prototype.
6715         * conform/data/string.h-data: Fix strerror_r prototype.
6716         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6717         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6718         Fix readlink prototype.
6719         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6720         in6addr_loopback.
6721         * inet/netinet/in.h: Cleanup namespace.
6722         * posix/regex.h: Likewise.
6723         * resolv/netdb.h: Likewise.
6724         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6725         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6726         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6727         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6728         of names of in in6_addr.
6729         (default_precedence): Likewise.
6730         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6731         NULL definition.
6733 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6735         * conform/data/fmtmsg.h-data: Add missing allows.
6736         * conform/data/ftw.h-data: Likewise.
6737         * conform/data/inttypes.h-data: Likewise.
6738         * conform/data/math.h-data: Likewise.
6739         * conform/data/signal.h-data: Likewise.
6740         * conform/data/net/if.h-data: Likewise.
6741         * conform/data/netinet/in.h-data: Likewise.
6742         * conform/data/sys/socket.h-data: Likewise.
6744         [BZ #5614]
6745         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6746         (__strtok_r): Simplify.
6747         * string/tester.c (test_strtok_r): Add test case for futile search
6748         with single-character seach string.
6750 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6752         * po/ko.po: Update from translation team.
6754 2008-01-11  Andreas Jaeger  <aj@suse.de>
6756         [BZ #5600]
6757         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6758         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6759         kernel header.
6761 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6763         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6764         native interface lookup in all the relevant places.
6766 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6767             Ulrich Drepper  <drepper@redhat.com>
6769         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6770         field.  Use sockaddr_in6 for source_addr.
6771         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6772         (match_prefix): Likewise.
6773         (get_label): Likewise.
6774         (get_precedence): Likewise.
6775         (rfc3484_sort): Change to use indirect access to results array.
6776         Adjust to use of sockaddr_in6.  Replace service_order test with
6777         simple index comparison.
6778         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6779         service_order field.  Adjust qsort_t calls.  Access sorted result
6780         array indirectly through order array.
6781         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6782         * posix/tst-rfc3484-2.c: Likewise.
6783         * posix/tst-rfc3484-3.c: Likewise.
6785 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6787         [BZ #5541]
6788         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6789         pollfd structures.
6790         Patch by André Cruz.
6792         [BZ #5545]
6793         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6794         (clnt_spcreateerror): Likewise.
6796         [BZ #5553]
6797         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6798         (public_mEMALIGn): Likewise.
6799         Patch mostly by Daniel Jacobowitz.
6801 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6803         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6804         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6805         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6806         * stdlib/tst-makecontext2.c: New test.
6808 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6810         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6811         defined.
6812         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6813         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6814         transliteration hooks and REINIT_PARAMS afterwards.
6815         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6816         status.
6817         (REINIT_PARAMS): Define.
6818         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6819         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6820         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6821         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6822         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6823         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6824         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6825         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6826         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6827         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6828         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6829         * iconvdata/tst-iconv7.c: New test.
6831 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6833         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6835 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6837         [BZ #5112]
6838         * nscd/connections.c (restart): Fix condition.
6840 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6842         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6843         __ctype_toupper_loc): Add __THROW.
6845 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6847         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6848         recognition of interface family.
6850         * posix/getconf.c: Update copyright year.
6851         * nss/getent.c: Likewise.
6852         * iconv/iconvconfig.c: Likewise.
6853         * iconv/iconv_prog.c: Likewise.
6854         * elf/ldconfig.c: Likewise.
6855         * catgets/gencat.c: Likewise.
6856         * csu/version.c: Likewise.
6857         * elf/ldd.bash.in: Likewise.
6858         * elf/sprof.c (print_version): Likewise.
6859         * locale/programs/locale.c: Likewise.
6860         * locale/programs/localedef.c: Likewise.
6861         * nscd/nscd.c (print_version): Likewise.
6862         * debug/xtrace.sh: Likewise.
6863         * malloc/memusage.sh: Likewise.
6864         * malloc/mtrace.pl: Likewise.
6865         * debug/catchsegv.sh: Likewise.
6867 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6869         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6870         second lookup.
6872 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6874         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6875         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6877 2007-12-17  Roland McGrath  <roland@redhat.com>
6879         * inet/ether_line.c (ether_line): Remove unused variable.
6881 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6883         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6884         and winp.
6885         * login/openpty.c (openpty): Likewise.
6886         * login/pty.h (openpty, forkpty): Likewise.
6887         * manual/terminal.texi (openpty, forkpty): Likewise.
6889 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6891         * malloc/malloc.c (public_cALLOc): For arenas other than
6892         main_arena, count all bytes inside the mprotect_size range of the
6893         heap as uninitialized.
6895 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6897         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6898         executable stacks.
6900         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6901         mTRIm for all of them.
6902         (mTRIm): Additionally iterate over all free blocks and use madvise
6903         to free memory for all those blocks which contain at least one
6904         memory page.
6905         * malloc/tst-trim1.c: New file.
6906         * malloc/Makefile (tests): Add tst-trim1.
6908         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6910 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6912         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6913         First cast argument to long
6914         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6915         Return long.
6916         (__vdso_clock_gettime): Likewise.
6917         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6918         return long.
6920 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6922         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6923         * locale/nl_langinfo_l.c: Real implementation, copied from
6924         nl_langinfo.c.
6925         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6927 2007-12-01  Jim Meyering  <meyering@redhat.com>
6929         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6930         that would inhibit utf8-optimization of a regexp containing line-
6931         or buffer-anchors, e.g., `^', `$'.
6933 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6935         * time/bug-getdate1.c (do_test): Don't use century values which
6936         aren't valid on 32-bit systems.
6938 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6940         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6941         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6942         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6943         __strcat_g, __strncat_g): Add __asm__.
6945 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6947         [BZ #5477]
6948         * io/fchmodat.c: Fix typo in stub_warning use.
6949         Patch by Petr Salinger.
6951 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6953         * iconvdata/hp-thai8.c: New file.
6954         * iconvdata/Makefile: Add rules for hp-thai8.c.
6955         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6956         * iconvdata/gconv-modules: Likewise.
6958         [BZ #5464]
6959         * iconvdata/hp-greek8.c: New file.
6960         * iconvdata/Makefile: Add rules for hp-greek8.c.
6961         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6962         * iconvdata/gconv-modules: Likewise.
6964         [BZ #5463]
6965         * iconvdata/hp-turkish8.c: New file.
6966         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6967         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6968         * iconvdata/gconv-modules: Likewise.
6970         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6971         (shrink_heap): ... this new function.
6972         (heap_trim): Call shrink_heap instead of grow_heap.
6974         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6975         case don't call alloc_perturb.
6977 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6979         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6980         possible.
6981         * sysdeps/unix/sysv/linux/kernel-features.h
6982         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6983         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6985 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6987         [BZ #5424]
6988         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6989         * stdio-common/Makefile (tests): Add bug22.
6990         * stdio-common/bug22.c: New file.
6992         [BZ #5451]
6993         * time/getdate.c: Fix filling in default values.
6994         * time/bug-getdate1.c: New file.
6995         * time/Makefile: Add rules to build and run bug-getdate1.
6997         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6998         * iconvdata/ebcdic-es.c: Likewise.
6999         * iconvdata/ebcdic-es-a.c: Likewise.
7000         * iconvdata/ebcdic-uk.c: Likewise.
7001         * iconvdata/iso8859-16.c: Likewise.
7002         * iconvdata/viscii.c: Likewise.
7003         * iconvdata/iso8859-9e.c: Likewise.
7004         * iconvdata/Makefile: Adjust appropriately.
7006         [BZ #5428]
7007         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7008         __need_wint_t.
7010 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7012         [BZ #5427]
7013         * iconvdata/hp-roman9.c: New file.
7014         * iconvdata/Makefile: Add rules for hp-roman9.c.
7015         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7016         * iconvdata/gconv-modules: Likewise.
7018         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7019         * iconvdata/Makefile: Adjust appropriately.
7021         [BZ #5441]
7022         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7023         structure, it's allocated with alloca.
7024         * stdio-common/Makefile (tests): Add bug21.
7025         * stdio-common/bug21.c: New file.
7027 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7029         [BZ #5452]
7030         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7031         keyword for gcc's braced-groups.
7033 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7035         [BZ #5454]
7036         * inet/ether_line.c: Strip hostname of whitespaces.
7037         * inet/Makefile (tests): Add tst-ether_line.
7038         * inet/tst-ether_line.c: New file.
7040 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7042         [BZ #5439]
7043         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7045         [BZ #5435]
7046         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7048         * stdlib/tst-setcontext.c: Catch the case where the links gets
7049         messed up and we do not reach main again.
7051         * po/ca.po: Update from translation team.
7053 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7055         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7056         * posix/regex.h (REG_ENOSYS): Likewise.
7057         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7059 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7061         * nscd/nscd.h (MAX_STACK_USE): Define.
7062         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7063         (gc): Initialize stack_used based on allocation in prune_cache.
7064         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7065         Clear array before use.
7067         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7068         memory allocation failed.
7069         * nscd/hstcache.c (cache_addhst): Likewise.
7070         * nscd/grpcache.c (cache_addgr): Likewise.
7071         * nscd/servicescache.c (cache_addserv): Likewise.
7072         * nscd/pwdcache.c (cache_addpw): Likewise.
7073         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7075 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7078         and creat system calls.
7080         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7082 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7084         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7085         Add netiucv/iucv.h.
7086         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7087         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7088         protocol.
7089         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7090         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7091         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7093 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7095         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7096         strncat): Define as macros to avoid compile errors.
7098         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7099         creat entries.
7101 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7103         [BZ #5382]
7104         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7105         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7106         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7107         overflow it.
7108         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7110         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7111         Return zero in case the thread library is not NPTL.
7113         [BZ #5375]
7114         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7115         initializing interface list.
7117         [BZ #5378]
7118         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7119         use result of nss_getgrgid_r if nothing was found.  For other
7120         error return with a failure.
7121         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7123         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7124         macro name.
7126 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7128         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7129         (get_scope): For IPv4 scope, use scopes table.
7130         (fini): Free scopes table if necessary.
7131         (free_scopelist): New function.
7132         (scopecmp): New function.
7133         (gaiconf_init): Also handle scopev4 entries.
7134         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7135         * posix/tst-rfc3484-2.c (do_test): Likewise.
7136         * posix/gai.conf: Document scopev4 defaults.
7137         * posix/Makefile (tests): Add tst-rfc3484-3.
7138         * posix/tst-rfc3484-3.c: New file.
7140         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7141         Teredo tunnels.
7142         * posix/gai.conf: Update for current default tables.
7144 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7146         * po/tr.po: Update from translation team.
7148 2007-11-18  Roland McGrath  <roland@frob.com>
7150         * manual/arith.texi (Remainder Functions): Spelling fix.
7151         From Shaun Silk <genix@mysoul.com.au>.
7153         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7155 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7157         * po/zh_CN.po: Update from translation team.
7159         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7160         Add sys/signalfd.h and sys/eventfd.h.
7162 2007-11-15  Bruno Haible  <bruno@clisp.org>
7164         [BZ #5346]
7165         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7166         union.
7167         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7168         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7169         it needs only fixed stack space. Delay the initialization of
7170         msgid_len until it is needed.
7172 2007-11-15  Andreas Jaeger  <aj@suse.de>
7174         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7175         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7177 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7179         * po/ko.po: Update from translation team.
7181 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7183         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7184         significantly.  The device type is also part of the ifinfomsg data.
7186         * po/sv.po: Update from translation team.
7187         * po/nl.po: Likewise.
7189         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7190         to wake up in 24 hours.
7192         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7194 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7196         * po/cs.po: Update from translation team.
7197         * po/pl.po: Likewise.
7199         * include/ifaddrs.h: Remove in6ai_temporary.
7200         (struct in6addrinfo): Add index element.
7201         Declare __check_native.
7202         * inet/Makefile (aux): Add check_native.
7203         * sysdeps/unix/sysv/linux/check_native.c: New file.
7204         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7205         IFA_F_TEMPORARY.  Pass back ifa_index.
7206         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7207         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7208         call __check_native if necessary.
7209         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7210         to sort addresses.  Pass information about the results.
7211         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7212         of rfc3484_sort interface.
7213         * posix/tst-rfc3484-2.c: Likewise.
7215         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7216         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7217         for _quicksort.
7218         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7219         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7220         on as third parameter to compare function and _quicksort.
7221         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7222         to the compare function.
7223         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7224         * Versions.def: Add GLIBC_2.8 for libc.
7226         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7227         * posix/tst-rfc3484-2.c: Likewise.
7229         * include/kernel-features.h: Moved to...
7230         * sysdeps/mach/hurd/kernel-features.h: ...here.
7232 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7234         * sysdeps/i386/i586/memcpy_chk.S: New file.
7235         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7236         * sysdeps/i386/i586/memset_chk.S: Likewise.
7238 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7240         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7241         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7242         list of interfaces.  Also store prefix length.
7243         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7244         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7245         prefix if source and destination address are in the same subnet.
7246         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7247         Always look for matching record in in6ai list.
7248         Correct source_addr_len value for IPv6->IPv4 converted records.
7250 2007-11-11  Roland McGrath  <roland@frob.com>
7252         * include/kernel-features.h: New file.
7254 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7256         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7257         complications for 64-bit platforms.
7259         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7260         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7261         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7262         open64_2.
7263         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7264         entries.
7265         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7266         * sysdeps/wordsize-64/alphasort.c: New file.
7267         * sysdeps/wordsize-64/alphasort64.c: New file.
7268         * sysdeps/wordsize-64/fseeko.c: New file.
7269         * sysdeps/wordsize-64/fseeko64.c: New file.
7270         * sysdeps/wordsize-64/ftello.c: New file.
7271         * sysdeps/wordsize-64/ftello64.c: New file.
7272         * sysdeps/wordsize-64/ftw.c: New file.
7273         * sysdeps/wordsize-64/ftw64.c: New file.
7274         * sysdeps/wordsize-64/iofgetpos.c: New file.
7275         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7276         * sysdeps/wordsize-64/iofopen.c: New file.
7277         * sysdeps/wordsize-64/iofopen64.c: New file.
7278         * sysdeps/wordsize-64/iofsetpos.c: New file.
7279         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7280         * sysdeps/wordsize-64/lockf.c: New file.
7281         * sysdeps/wordsize-64/lockf64.c: New file.
7282         * sysdeps/wordsize-64/mkostemp.c: New file.
7283         * sysdeps/wordsize-64/mkostemp64.c: New file.
7284         * sysdeps/wordsize-64/mkstemp.c: New file.
7285         * sysdeps/wordsize-64/mkstemp64.c: New file.
7286         * sysdeps/wordsize-64/scandir.c: New file.
7287         * sysdeps/wordsize-64/scandir64.c: New file.
7288         * sysdeps/wordsize-64/tmpfile.c: New file.
7289         * sysdeps/wordsize-64/tmpfile64.c: New file.
7290         * sysdeps/wordsize-64/versionsort.c: New file.
7291         * sysdeps/wordsize-64/versionsort64.c: New file.
7292         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7293         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7294         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7295         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7296         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7297         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7298         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7299         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7300         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7301         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7302         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7303         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7305         * crypt/sha256-crypt.c: Fix a comment.
7306         * crypt/sha512-crypt.c: Likewise.
7308 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7310         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7312 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7314         [BZ #5277]
7315         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7316         because output buffer is too small break, don't loop.
7317         * iconvdata/Makefile (tests): Add bug-iconv6.
7318         * iconvdata/bug-iconv6.c: New file.
7320 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7322         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7323         with size_t type.
7324         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7325         size_t.  Add casts where needed.
7327         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7328         old headers, don't call avc_has_perm if we don't have the
7329         permission information.
7331 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7333         * elf/rtld.c (dl_main): Use the page size to find the map start.
7335 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7337         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7338         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7340         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7341         when the lookup call failed.
7343         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7344         Add prune_cond and wakeup_time.
7345         (CACHE_PRUNE_INTERNAL): Define.
7346         Update declarations of prune_cache and setup_thread.
7347         * nscd/connections.c (dbs): Update initializers.
7348         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7349         (nscd_init): Default number of threads is now 4.
7350         (invalidate_cache): Take lock before calling prune_cache.
7351         (handle_request): If SELinux forbids the request, say so.
7352         (readylist_cond): Use static initializer.
7353         (nscd_run_prune): New function.  Used only by pruning threads.
7354         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7355         here.
7356         (fd_ready): Update nscd_run reference.
7357         (start_threads): No need to initialize readylist_cond.
7358         Start pruning threads separately.
7359         * nscd/nscd_setup_thread.c: Change return value type to int and always
7360         return 0.
7361         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7362         to int and return nonzero value if we can use the TID address hack.
7363         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7364         the database is later than the new entry's timeout, update the
7365         wakeup time and wake the cleanup thread.
7366         (prune_cache): Return seconds the next entry in the database is still
7367         valid.  Remove locking for pruning here.
7368         * nscd/nscd.conf: Document default number of threads.
7370 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7372         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7373         stack is properly aligned for the target function.
7374         Correct unwind info.
7376         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7377         when using auditing libraries.
7379 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7381         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7382         _nss_dns_getnetbyaddr2_r.
7383         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7384         extra parameter to getanswer_r.
7385         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7386         _nss_dns_getnetbyaddr2_r.
7388         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7389         gethstbynm3_r.
7390         * nscd/gethstbynm2_r.c: Remove.
7391         * nscd/gethstbynm3_r.c: New file.
7392         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7393         __gethostbyaddr_r.
7394         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7395         __gethostbyaddr_r compatibility wrapper.
7396         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7397         determining timeout of entry.
7398         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7399         __gethostbyaddr2_r.
7400         (addhstbyX): Pass reference to variable for TTL to lookup and
7401         cache_addhst.
7402         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7403         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7404         and __nss_next2.  Remove __nss_services_lookup.
7405         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7406         Add compat wrapper.
7407         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7408         __nss_next2.
7409         * nss/getXXent_r.c: Likewise.
7410         * nss/getnssent_r.c: Likewise.
7411         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7412         does not exist in module, try the optional second name.
7413         (__nss_next2): New function.
7414         (__nss_next): Now wrapper around __nss_next2.
7415         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7416         Declare __nss_next2.
7417         Adjust definition of db_lookup_function type.
7418         * nss/service-lookup.c: Define NO_COMPAT.
7419         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7420         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7421         * inet/ether_ntoh.c: Likewise.
7422         * sunrpc/netname.c: Likewise.
7423         * sunrpc/publickey.c: Likewise.
7424         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7425         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7426         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7427         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7428         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7430         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7432         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7434 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7436         [BZ #5204]
7437         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7438         * crypt/sha512c-test.c: Likewise.
7440         [BZ #5225]
7441         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7442         to keep track of end of %[ format string element.
7443         * stdio-common/Makefile (tests): Add bug20.
7444         * stdio-common/bug20.c: New file.
7446         [BZ #5222]
7447         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7448         path elements in counting mode.
7450 2007-10-27  Andreas Jaeger  <aj@suse.de>
7452         [BZ #5040]
7453         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7455         [BZ #3112]
7456         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7457         (__cleanup): Free shared library when exiting.
7458         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7459         (__cleanup): Free shared library when exiting.
7461 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7463         [BZ #2549]
7464         * math/libm-test.inc (check_float_internal): Support
7465         denormalized return.
7467 2007-10-23  Andreas Jaeger  <aj@suse.de>
7469         [BZ #5208]
7470         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7471         __LONG_LONG_PAIR to handle little endian byte order.
7472         Suggested by abhishekrai@google.com
7474 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7476         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7478 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7480         * nscd/cache.c (prune_cache): Move test for modified file outside
7481         of locking.
7483 2007-10-21  Andreas Jaeger  <aj@suse.de>
7485         * manual/texinfo.tex: Update to latest version.
7487         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7489         * manual/arith.texi (Status bit operations): Fix formatting.
7491         * manual/errno.texi (Error Messages): Fix formatting.
7493         * manual/sysinfo.texi (System Parameters): Fix formatting.
7495         * manual/libc.texinfo: Update VERSION and UPDATED.
7497 2007-10-19  Roland McGrath  <roland@redhat.com>
7499         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7501 2007-10-06  David S. Miller  <davem@davemloft.net>
7503         * configure.in: Add sparcv9v2 and sparc64v2.
7504         * scripts/config.sub: Likewise.
7505         * configure: Regenerate.
7506         * elf/elf.h (HWCAP_SPARC_N2): New.
7507         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7508         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7509         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7510         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7511         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7512         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7513         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7515 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7517         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7518         even if the poll result indicates there is data to read.
7519         Patch by Jeff Moyer <jmoyer@redhat.com>.
7521 2007-10-18  Roland McGrath  <roland@redhat.com>
7523         * elf/elf.h (NT_PPC_VMX): New macro.
7525 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7527         * version.h (VERSION): Set to 2.7.90.
7529 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7531         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7532         weak_alias.
7534 2007-10-17  Roland McGrath  <roland@frob.com>
7536         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7537         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7539 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7541         * version.h (VERSION): Bump to 2.7.
7542         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7544         [BZ #5186]
7545         * time/tzset.c (__tz_convert): Don't force testing for a change of
7546         TZ if not called from localtime.  But then also see whether the
7547         file changed, in case __use_tzfile is set.
7549         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7550         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7551         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7552         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7553         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7554         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7555         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7556         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7558 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7560         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7561         and admin selects to be able to replace the gai.conf file, lock
7562         data structures around the qsort call.
7564 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7566         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7567         new memset.
7568         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7569         too high for the improvements.  Implement bzero unconditionally for
7570         use in libc.
7572 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7573             Jakub Jelinek  <jakub@redhat.com>
7575         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7576         even when time_t is 32-bit.
7577         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7578         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7579         always set after the search.
7581 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7583         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7584         unreachable code on 32-bit machines.
7586 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7588         [BZ #5184]
7589         * time/strftime_l.c: Include stdbool.h.
7590         (my_strftime): New wrapper, old function renamed to...
7591         (__strftime_internal): ... new function.  Add tzset_called
7592         argument, pass it down to recursive calls, don't call tzset ()
7593         if already true, set to true after call to tzset ().
7595 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7597         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7598         into account when copying TZ string.
7600 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7602         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7603         num_transition rather than num_transitions - 1.
7605 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7607         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7608         PIC indirect jump.
7610         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7611         a local label rather than HIDDEN_JUMPTARGET.
7613 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7615         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7616         (init_cacheinfo): Initialize it.
7617         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7618         Always define bzero.
7619         Remove non-glibc code.
7620         * sysdeps/x86_64/bzero.S: Make an empty file.
7622 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7624         * sysdeps/x86_64/cacheinfo.c
7625         (__x86_64_preferred_memory_instruction): New.
7626         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7628         * sysdeps/x86_64/memset.S: Rewrite.
7630 2007-10-15  Roland McGrath  <roland@redhat.com>
7632         * po/libc.pot: Regenerated.
7634 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7636         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7637         pointers.
7639         [BZ #3425]
7640         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7641         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7642         address record to T_A/T_AAAA requests.
7644 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7646         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7648         * posix/glob.c: Add some branch prediction throughout.
7650         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7651         read from nscd.
7653         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7654         service_order.
7655         (rfc3484_sort): Make sure that even if qsort doesn't support
7656         stable sorting out sorting here is stable by comparing service_order.
7657         (getaddrinfo): Initialize service_order.
7658         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7659         service_order field to sorting structure.
7660         * posix/tst-rfc3484-2.c (do_test): Likewise.
7662         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7663         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7664         __tzset_parse_tz and updating of daylight, timezone, tzname into
7665         update_vars.
7666         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7667         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7668         happens in __tz_compute.
7669         * time/tzfile.c (__tzfile_read): Also read TZ string.
7670         (find_transition): Fold into __tzfile_compute.
7671         (__tzfile_compute): For times beyond the last transition try to
7672         use the TZ string.
7673         * timezone/tst-timezone.c: Information in daylight and tzname does
7674         change for Asia/Tokyo timezone with more concrete information.
7675         Remove the test.
7677         * include/stdio.h: Add libc_hidden_proto for ftello.
7678         * libio/ftello.c: Add libc_hidden_def.
7680         [BZ #1140]
7681         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7682         on the specified time and not the last entries in the file.  Move
7683         code to determine tzname[] to...
7684         (find_transition): ...here.  Add ugly guess for times before the
7685         first transition.
7687 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7689         [BZ #3195]
7690         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7691         no entry.
7692         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7693         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7694         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7695         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7697         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7698         read mechanism when there are no group members and avoid no-op
7699         read syscall in this case.
7701         [BZ #3242]
7702         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7703         (__readall): If reading failed due to EAGAIN error wait a bit
7704         and possibly try again.
7705         (__readvall): Likewise.
7707 2007-10-13  Bruno Haible  <bruno@clisp.org>
7709         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7710         when we cannot recode the message.
7712 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7714         [BZ #4359]
7715         * libio/__freading.c (__freading): Don't return true for
7716         write-only streams.  For read/write streams, check whether we
7717         performed a read operation already.
7718         * libio/Makefile (tests): Add tst-ext2.
7719         * libio/tst-ext2.c: New file.
7721 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7723         * locale/programs/repertoire.c (repertoire_read): Always free
7724         memory for repertoire file name [Coverity CID 270].
7726         * elf/cache.c (save_aux_cache): Free memory allocated for
7727         temporary file name [Coverity CID 267].
7729 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7731         * misc/Makefile (headers): Add bits/error.h.
7733 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7735         * posix/fnmatch_loop.c: Take rule index returned as part of
7736         findidx return value into account when accessing weights.
7737         * posix/regcomp.c: Likewise.
7738         * posix/regexec.c: Likewise.
7740         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7741         (skip_to): Fix problems with parameter of elifdef/elifndef.
7743 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7745         * iconv/gconv_simple.c: Add some branch prediction.
7747 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7749         * locale/programs/ld-collate.c (collate_read): If ignore_content
7750         and nowtok is tok_define, eat any tok_eol tokens.
7752 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7754         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7755         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7757         * inet/netinet/in.h: Don't include bits/socket.h.
7758         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7759         macro.
7760         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7762 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7764         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7765         and tok_elifndef.
7766         * locale/programs/locfile-kw.gperf: Likewise.
7767         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7769 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7771         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7772         (__find_specwc): Change into __extern_always_inline function.
7773         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7774         (__parse_one_specmb): Remove ps argument.
7775         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7776         Adjust __find_specmb and __parse_one_specmb callers.
7777         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7778         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7779         Removed.
7780         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7781         caller.
7783 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7785         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7786         with some Pentium Ds.
7788 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7790         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7791         __read not read.
7792         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7793         __write not write.
7795 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7797         [BZ #181]
7798         * locale/C-time.c: Set week_1stday data to 19971201.
7799         * locale/programs/ld-time.c (time_finish): Default for
7800         first_workday is Monday.
7802         [BZ #2633]
7803         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7805         [BZ #5103]
7806         * posix/glob.c (glob): Recognize patterns starting \/.
7807         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7808         (main): Add test for pattern starting \/.
7810         * misc/error.h: Use __const instead of const.
7811         * misc/bits/error.h: Likewise.
7813 2007-10-07  Andreas Jaeger  <aj@suse.de>
7815         * include/bits/error.h: New file.
7817         * misc/bits/error.h (error_at_line): Fix prototype.
7819 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7821         [BZ #3924]
7822         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7823         more little bugs in creating the stack frame when pltexit has to
7824         be called.
7826         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7827         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7829         [BZ #4407]
7830         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7831         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7832         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7833         * math/libm-test.inc: Add test for this case.
7835         [BZ #5010]
7836         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7837         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7838         map service succeeded.
7839         (svc_is_mapped): New function.
7840         (svc_unregister): Use it before trying to unmap service.
7842 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7844         * timezone/zic.c: Update from tzcode2007h.
7846         [BZ #5063]
7847         * timezone/africa: Update from tzdata2007h.
7848         * timezone/antarctica: Likewise.
7849         * timezone/asia: Likewise.
7850         * timezone/australasia: Likewise.
7851         * timezone/europe: Likewise.
7852         * timezone/leapseconds: Likewise.
7853         * timezone/northamerica: Likewise.
7854         * timezone/southamerica: Likewise.
7855         * timzeone/zone.tab: Likewise.
7857         [BZ #5104]
7858         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7860         [BZ #5113]
7861         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7862         avoid warning with -Wconversion.
7863         (__strndup): Likewise.
7864         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7866         [BZ #5112]
7867         * nscd/connections.c (restart): Don't resync if database is
7868         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7870         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7871         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7873         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7874         evetnfd_read, eventfd_write.
7875         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7876         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7877         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7878         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7879         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7880         eventfd_write for GLIBC_2.7.
7882         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7883         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7884         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7885         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7887 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7889         * stdlib/msort.c: Include stdint.h.
7890         (struct msort_param): New type.
7891         (msort_with_tmp): Use struct msort_param pointer for unchanging
7892         parameters.  Add optimized handling for several common sizes
7893         and indirect sorting mode.
7894         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7895         sorting.
7896         Suggested by Belazougui Djamel .
7898         * stdlib/Makefile (tests): Add tst-qsort2.
7899         * stdlib/tst-qsort2.c: New test.
7901 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7903         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7904         for dup2 in case another thread races with the current one.  Retry
7905         in this case.
7907         * misc/error.h: Remove support for use outside of libc.  We have to
7908         include <features.h> now.  Include <bits/error.h> if possible.
7909         * misc/bits/error.h: New file.
7911 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7913         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7914         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7915         __extern_always_inline functions unconditionally, drop macros.
7917         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7918         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7919         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7921         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7922         add __artificial__ attribute.
7924 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7926         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7927         backward to forward direction.
7929         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7931         [BZ #645]
7932         * locale/programs/ld-collate.c (collate_finish): Compare against last
7933         used section which is known to have rules defined.
7934         (collate_read): After order_start, correctly record order of sections
7935         and queue sections up.
7937 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7939         [BZ #5071]
7940         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7941         the same number of pages.
7942         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7944         * locale/programs/ld-collate.c (collate_read): After initial copy
7945         statement, continue in state 0.
7947         * include/stdio_ext.h (__fsetlocking): Define as macro.
7949 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7951         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7952         of section order.
7954         * po/pt_BR.po: Fix typo.
7956 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7958         * iconvdata/Makefile (modules): Add ISO8859-9E.
7959         (distribute): Add iso8859-9e.c.
7960         (gen-8bit-gap-modules): Add iso8859-9e.
7961         * iconvdata/iso8859-9e.c: New file.
7962         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7963         * iconvdata/TESTS: Likewise.
7964         * iconvdata/tst-tables.sh: Likewise.
7966         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7968         * locale/iso-639.def: Add several new entries.
7970 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7972         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7973         void * pointers instead of struct link_map **.
7974         (_dl_scope_free): Change argument type to void *.
7975         * include/link.h (struct link_map): Change type of l_reldeps
7976         to struct link_map_reldeps, move l_reldepsact into that
7977         struct too.
7978         * elf/dl-deps.c: Include atomic.h.
7979         (_dl_map_object_deps): Only change l->l_initfini when it is
7980         fully populated, use _dl_scope_free for freeing it.  Optimize
7981         removal of libs from reldeps by using l_reserved flag, when
7982         some removal is needed, allocate a new list instead of
7983         reallocating and free the old with _dl_scope_free.  Adjust
7984         for l_reldeps and l_reldepsact changes.
7985         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7986         searching in l_initfini and l_reldeps without holding dl_load_lock.
7987         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7988         l_reldepsact changes.
7989         * elf/dl-close.c (_dl_close_worker): Likewise.
7990         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7992 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7994         * iconvdata/Makefile (modules): Add KOI8-RU.
7995         (distribute): Add koi8-ru.c.
7996         (gen-8bit-gap-modules): Add koi8-ru.
7997         * iconvdata/koi8-ru.c: New file.
7998         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7999         * iconvdata/TESTS: Likewise.
8000         * iconvdata/tst-tables.sh: Likewise.
8002         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8004 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8006         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8007         with __warning__/__error__ attributes.
8008         (__warnattr): Define.
8009         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8010         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8011         __warnattr.
8012         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8013         of __*_chk if compile time detectable overflow is found.
8014         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8015         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8016         with __warnattr.
8017         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8018         instead of __*_chk if compile time detectable overflow is found.
8019         (__gets_alias): Rename to...
8020         (__gets_warn): ... this.  Add __warnattr.
8021         (gets): Call __gets_warn instead of __gets_alias.
8022         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8023         aliases with __warnattr.
8024         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8025         time detectable overflow is found.
8026         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8027         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8028         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8029         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8030         __getdomainname_chk_warn): New aliases with __warnattr.
8031         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8032         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8033         __*_chk_warn instead of __*_chk if compile time detectable overflow
8034         is found.
8035         (__getgroups_chk): Rename argument to __listlen from listlen.
8036         (__getwd_alias): Rename to...
8037         (__getwd_warn): ... this.  Add __warnattr.
8038         (getwd): Call __getwd_warn instead of __getwd_alias.
8039         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8040         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8041         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8042         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8043         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8044         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8045         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8046         compile time detectable overflow is found.
8047         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8048         to use __*_chk or not.
8049         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8050         in comparisons which function should be called and in __*_chk*
8051         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8052         detectable overflow is found.
8053         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8054         __*_chk argument.
8055         * debug/tst-chk1.c (do_test): Add a few more tests.
8057 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8059         [BZ #5058]
8060         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8061         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8062         (_nl_unload_domain): Finalize conversions_lock.
8063         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8064         handling table of known conversions.
8066 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8068         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8069         close_not_cancel_no_status instead of close.
8071 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8073         [BZ #5028]
8074         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8075         nrules != 0 for multibyte chars.
8077 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8079         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8080         Provide better error message in case the type is unknown.
8082         [BZ #4963]
8083         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8084         * string/stratcliff.c: Make usable to test wide char functions.
8085         * wcsmbs/wcsatcliff.c: New file.
8086         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8088         [BZ #4972]
8089         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8090         (distribute): Add mac-centraleurope.c.
8091         (gen-8bit-gap-modules): Add mac-centraleurope.
8092         * iconvdata/mac-centraleurope.c: New file.
8093         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8094         * iconvdata/TESTS: Likewise.
8095         * iconvdata/tst-tables.sh: Likewise.
8097         [BZ #5043]
8098         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8100 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8102         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8103         from __x86_64_core_cache_size_half.
8104         (init_cacheinfo): Compute shared cache size for AMD processors with
8105         shared L3 correctly.
8106         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8107         name change.
8108         Patch in large parts by Evandro Menezes.
8110 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8112         * elf/dl-lookup.c (add_dependency): Handle failing memory
8113         allocation for dependency list.  Remove unnecessary check.
8115         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8116         open/close when determining source addresses.
8118         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8119         sha512-crypt, and sha512.
8120         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8121         (distribute): Add sha256.h and sha512.h.
8122         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8123         and call the appropriate code.
8124         * crypt/sha256-crypt.c: New file.
8125         * crypt/sha256.c: New file.
8126         * crypt/sha256.h: New file.
8127         * crypt/sha256c-test.c: New file.
8128         * crypt/sha256test.c: New file.
8129         * crypt/sha512-crypt.c: New file.
8130         * crypt/sha512.c: New file.
8131         * crypt/sha512.h: New file.
8132         * crypt/sha512c-test.c: New file.
8133         * crypt/sha512test.c: New file.
8135 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8137         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8138         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8139         __syslog_chk.
8141 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8143         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8144         %as in fscanf format strings.
8146         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8147         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8148         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8149         Likewise.
8150         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8151         Likewise.
8153         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8154         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8155         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8156         * elf/dl-sym.c (do_sym): Likewise.
8157         * include/link.h (struct link_map): Add l_serial field.
8158         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8159         * elf/dl-lookup.c (add_dependency): Add flags argument.
8160         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8161         flags, use THREAD_GSCOPE_RESET_FLAG before and
8162         THREAD_GSCOPE_SET_FLAG after
8163         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8164         Don't dereference map until it has been found on some list.
8165         If map->l_serial changed, return -1.
8167 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8169         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8170         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8171         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8172         libc_hidden_proto.
8173         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8174         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8175         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8176         add libc_hidden_proto.
8177         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8178         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8179         conformance requested.
8180         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8181         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8182         conformance requested.
8183         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8184         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8185         conformance requested.
8186         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8187         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8188         ISO C99 or POSIX conformance requested.
8189         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8190         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8191         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8192         and __isoc99_vsscanf@@GLIBC_2.7.
8193         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8194         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8195         (tests): Add scanf14.
8196         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8197         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8198         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8199         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8200         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8201         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8202         from using internal headers.
8203         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8204         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8205         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8206         and __isoc99_vswscanf@@GLIBC_2.7.
8207         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8208         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8209         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8210         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8211         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8212         * stdio-common/isoc99_scanf.c: New file.
8213         * stdio-common/isoc99_vsscanf.c: New file.
8214         * stdio-common/isoc99_vscanf.c: New file.
8215         * stdio-common/isoc99_vfscanf.c: New file.
8216         * stdio-common/isoc99_fscanf.c: New file.
8217         * stdio-common/isoc99_sscanf.c: New file.
8218         * wcsmbs/isoc99_fwscanf.c: New file.
8219         * wcsmbs/isoc99_vswscanf.c: New file.
8220         * wcsmbs/isoc99_swscanf.c: New file.
8221         * wcsmbs/isoc99_wscanf.c: New file.
8222         * wcsmbs/isoc99_vwscanf.c: New file.
8223         * wcsmbs/isoc99_vfwscanf.c: New file.
8224         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8225         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8226         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8227         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8228         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8229         * stdio-common/scanf14.c: New test.
8230         * stdio-common/scanf15.c: New test.
8231         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8232         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8233         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8234         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8235         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8236         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8237         __nldbl___isoc99_scanf@@GLIBC_2.7,
8238         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8239         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8240         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8241         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8242         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8243         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8244         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8245         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8246         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8247         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8248         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8249         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8250         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8251         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8252         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8253         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8254         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8255         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8256         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8257         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8258         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8259         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8260         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8261         functions.
8262         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8263         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8264         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8265         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8266         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8267         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8268         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8269         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8270         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8271         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8272         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8273         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8275         * stdio-common/Makefile (tests): Add scanf13.
8276         (scanf13-ENV): New.
8277         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8278         m modifier followed by l.
8279         (STRING_ARG): Add width argument.
8280         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8281         <case L_('C')>: Handle %mlc and %mC.
8282         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8283         arguments.
8284         * stdio-common/scanf13.c: New test.
8286         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8287         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8289 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8291         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8292         type and __THROW marker of splice, vmsplice, and tee.
8293         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8294         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8296         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8297         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8298         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8299         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8300         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8301         as cancellation points.
8303 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8305         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8306         parse more than three parts of the version number.
8308 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8310         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8311         modifier.  Patch by Jakub Jelinek.
8313 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8315         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8316         call_fallocate in misc subdir.
8317         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8318         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8319         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8320         instead of __fallocate64.
8321         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8323 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8325         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8326         * rt/Makefile (headers): Add bits/mqueue2.h.
8327         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8328         optimizing with GCC and __va_arg_pack_len is defined.
8329         * rt/bits/mqueue2.h: New file.
8330         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8331         (mq_open): New strong_alias.
8332         (__mq_open_2): New function.
8333         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8334         (mq_open): New strong_alias.
8335         (__mq_open_2): New function.
8336         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8337         * Versions.def (librt): Add GLIBC_2.7 version.
8338         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8339         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8341         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8342         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8343         is defined rather than when not C++.
8344         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8345         __openat64_alias): New redirects.
8346         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8347         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8348         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8349         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8350         functions instead of function-like macros.
8352 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8354         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8355         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8356         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8358 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8360         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8361         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8363 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8365         * inet/tst-network.c: Increment ERRORS for failing tests.
8367 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8369         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8370         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8371         implement as __extern_always_inline function.
8372         (vsyslog): Define as __extern_always_inline function unconditionally.
8373         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8374         When __va_arg_pack is defined, implement as __extern_always_inline
8375         functions.
8376         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8377         __extern_always_inline functions unconditionally.
8378         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8379         bits/stdio2.h will be included.
8380         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8381         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8382         implement as __extern_always_inline functions.
8383         (vswprintf, vwprintf, vfwprintf): Define as
8384         __extern_always_inline functions unconditionally.
8385         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8387 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8389         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8390         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8391         attribute.
8392         * include/features.h (__USE_EXTERN_INLINES): Define only when
8393         __extern_inline is defined.
8394         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8395         is defined instead of when not __cplusplus.
8396         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8397         is defined instead of when not __cplusplus.
8398         * socket/sys/socket.h: Include bits/socket2.h when
8399         __extern_always_inline is defined instead of when not __cplusplus.
8400         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8401         is defined instead of when not __cplusplus.
8402         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8403         is defined instead of when not __cplusplus.
8404         * string/string.h: Include bits/string3.h when __extern_always_inline
8405         is defined instead of when not __cplusplus.
8406         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8407         is defined instead of when not __cplusplus.
8408         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8409         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8410         is not defined.
8411         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8412         defined __extern_always_inline instead of !defined __cplusplus.
8413         * libio/bits/stdio-ldbl.h: Likewise.
8414         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8415         * misc/bits/syslog.h (syslog): Don't define for C++.
8416         (vsyslog): Use __extern_always_inline function for C++ instead of
8417         a macro.
8418         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8419         whenever that macro is defined.
8420         (vprintf): Don't provide the inline for C++.
8421         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8422         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8423         define the macros for C++.
8424         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8425         __extern_always_inline functions for C++.
8426         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8427         stat64, lstat64, fstat64, fstatat64): Don't define if not
8428         __USE_EXTERN_INLINES.
8429         * wcsmbs/bits/wchar2.h: Fix #error message.
8430         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8431         (vswprintf, vwprintf, vfwprintf): Define using
8432         __extern_always_inline functions for C++.
8433         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8434         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8435         strncpy, strcat, strncat): Define as __extern_always_inline
8436         functions instead of macros for C++.
8437         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8438         defined __extern_inline.
8439         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8440         to __extern_inline whenever that macro is defined.
8441         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8442         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8443         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8444         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8445         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8446         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8447         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8448         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8449         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8450         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8451         prototypes.  Only provide __extern_inline routines if
8452         __USE_EXTERN_INLINES.
8453         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8454         tests.
8455         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8456         For now avoid some *printf tests in C++.  Skip all testing
8457         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8458         is not.
8459         * debug/tst-chk4.cc: New file.
8460         * debug/tst-chk5.cc: New file.
8461         * debug/tst-chk6.cc: New file.
8462         * debug/tst-lfschk4.cc: New file.
8463         * debug/tst-lfschk5.cc: New file.
8464         * debug/tst-lfschk6.cc: New file.
8465         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8466         prototypes in C++.
8467         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8468         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8469         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8471 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8473         * po/cs.po: Update from translation team.
8475 2007-09-11  Roland McGrath  <roland@redhat.com>
8477         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8478         compiling.
8480 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8482         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8484 2007-09-05  Roland McGrath  <roland@redhat.com>
8486         * manual/signal.texi (Signaling Another Process): Typo fix.
8487         From Karl Berry <karl@freefriends.org>.
8489 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8491         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8492         zero if not defined.
8493         (make_request): Recognize optimistic addresses and treat them like
8494         deprecated addresses.
8495         Reported by Neil Horman <nhorman@redhat.com>.
8497 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8499         * nscd/connections.c (send_ro_fd): Also transfer file size.
8500         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8501         file size don't call fstat.
8503         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8504         ahead and map the file.  This should always be correct and we can
8505         catch problems later.
8507 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8509         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8510         prototypes.
8511         (__fread_alias, __fread_unlocked_alias): New aliases.
8512         (fread): New extern inline.
8513         (fread_unlocked): Likewise.  Undef macro before definition of
8514         the inline function.
8515         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8516         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8517         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8518         and __fread_unlocked_chk@@GLIBC_2.7.
8519         * debug/fread_chk.c: New file.
8520         * debug/fread_u_chk.c: New file.
8521         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8523 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8525         * sysdeps/unix/sysv/linux/syscalls.list
8526         (personality): Change caller to EXTRA.
8528 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8530         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8531         to keep gcc quiet.
8532         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8534         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8535         NDEBUG is defined.
8537         * Makerules: Use -p option with mkdir.
8539         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8540         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8541         (_xdr_directory_obj): Likewise.
8542         (xdr_entry_obj): Likewise.
8543         (xdr_group_obj): Likewise.
8544         (xdr_link_obj): Likewise.
8545         (xdr_table_obj): Likewise.
8546         (_xdr_nis_result): Likewise.
8547         (_xdr_ns_request): Likewise.
8548         (_xdr_ib_request): Likewise.
8549         (_xdr_nis_taglist): Likewise.
8550         (xdr_cback_data): Likewise.
8551         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8552         (xdr_ypresp_maplist): Likewise.
8554         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8556         * posix/regex_internal.h: Prevent some declarations and definitions
8557         to be seen when used in tests.
8559         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8560         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8562         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8564         * config.make.in (datarootdir): Add to shut up configure.
8566         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8567         associativity for fully-associative caches.
8569         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8570         requests.  Fill on more associativity values for L2.
8571         Patch mostly by Evandro Menezes.
8573 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8575         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8576         (_libc_vdso_platform_setup): Avoid using exported variable by using
8577         alias.
8579         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8581         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8582         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8583         defined.
8585 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8587         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8588         align stack for call if pltexit is to be used.
8590         [BZ #3924]
8591         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8592         align for function call in case pltexit has to be called later.
8594         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8595         implicit atomic operation when storing function pointer.
8596         (_dl_runtime_profile): Likewise.
8598 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8600         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8601         NIS_NOTFOUND.
8603 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8605         [BZ #4566]
8606         * string/strtok.c: Fix typo in comment.
8608         [BZ #4582]
8609         * debug/segfault.c: Fix typos in comments.
8611         [BZ #4588]
8612         * stdio-common/tempnam.c: Fix comment, it is not checked that
8613         TMPDIR points to a writable directory.
8615         [BZ #4726]
8616         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8617         memory allocated for the name server address.
8619         [BZ #4946]
8620         * nscd/connections.c (handle_request): Using sendfile always
8621         requires that mmap is used for the database.
8622         Patch by Petr Baudis <pasky@suse.cz>.
8624         [BZ #4905]
8625         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8626         suddenly has two or more addresses, ignore it and remove the old
8627         entry.
8629         [BZ #4814]
8630         * resolv/res_hconf.c: Prepare for compiling outside libc.
8631         * nscd/res_hconf.c: New file.
8632         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8633         the new file.
8634         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8635         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8637         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8639         [BZ #4925]
8640         * debug/pcprofiledump.c: Turn on internationalization by calling
8641         setlocale.  Patch mostly by Benno Schulenberg.
8643         [BZ #4936]
8644         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8645         the state.
8646         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8647         * iconvdata/bug-iconv5.c: New file.
8649 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8651         [BZ #4896]
8652         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8653         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8654         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8655         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8656         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8657         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8658         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8659         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8661 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8663         [BZ #4937]
8664         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8665         lookup loop.  Suggested by John Reiser.
8667 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8669         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8671 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8673         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8674         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8675         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8676         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8677         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8678         to...
8679         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8681 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8683         * po/nl.po: Update from translation team.
8685 2007-08-16  Andreas Jaeger  <aj@suse.de>
8687         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8688         Reported by Peter Festner <peter.festner@ewetel.net>.
8690 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8692         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8694 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8696         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8697         to check for undefined symbols.
8699         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8700         If the syscall fails, set errno to the actual returned error number
8701         rather than EINVAL.
8702         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8703         arguments are incorrect, set errno to EINVAL, if the syscall
8704         fails, set errno to the actual returned error number.
8706         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8707         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8709         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8710         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8711         file.
8712         (ASI_PNF, ASI_BLK_P): Don't define.
8713         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8714         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8715         file.
8716         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8717         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8718         file.
8720 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8722         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8723         FE_UNDERFLOW on Niagara CPUs.
8725         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8726         exceptions.
8728 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8730         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8731         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8732         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8733         flush should be used or not inside of the function.
8734         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8736         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8737         __thread_start): Use HIDDEN_JUMPTARGET.
8738         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8739         __thread_start): Likewise.
8740         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8742         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8743         Add libc_hidden_proto.
8744         (STRTOF): Add libc_hidden_proto.
8745         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8746         (strtold_l, wcstold_l): Use them as second argument for
8747         long_double_symbol.
8749 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8751         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8753 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8755         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8757 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8759         * po/bg.po: New file.  From the translation team.
8761 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8763         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8764         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8765         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8766         when each feature was introduced.
8768         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8769         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8770         (CHECK_HASH): New macro.
8771         (PREPARE_VERSION): Use it.
8773         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8774         prototype if not __ASSUME_PSELECT.
8775         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8776         prototype if not __ASSUME_PPOLL.
8778         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8780         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8781         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8782         is defined.
8784 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8786         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8787         (_libc_vdso_platform_setup): If vDSO is not available point
8788         __vdso_gettimeofday to the vsyscall.
8789         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8790         __vdso_gettimeofday instead of vsyscall.
8792 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8794         * nscd/servicescache.c: Include kernel-features.h.
8795         * nscd/gai.c: Likewise.
8796         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8797         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8798         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8799         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8800         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8801         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8802         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8803         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8804         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8806 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8808         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8809         and _dl_get_origin defines anymore.
8811         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8812         Build fix for systems which might lack POSIX timer support.
8814         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8815         (_libc_vdso_platform_setup): Mangle function pointers before storing
8816         them.
8817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8818         Demangle vdso pointer before use.
8819         (INTERNAL_VSYSCALL): Likewise.
8821         * elf/cache.c (primes): Mark as const.
8822         Noted by Roland McGrath.
8824 2007-08-01  Andreas Jaeger  <aj@suse.de>
8825             Jakub Jelinek  <jakub@redhat.com>
8827         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8828         (options): Add option.
8829         (parse_opt): Handle option.
8830         (manual_link): Adjust process_file caller.  Call implicit_soname.
8831         (search_dir): Formatting.  Use and populate auxiliary cache.
8832         (main): Load and save auxiliary cache.
8833         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8834         stat64 from fstat64 to caller.
8835         (implicit_soname): New function.
8836         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8837         leave *soname as NULL.
8838         * elf/cache.c: Include libgen.h.
8839         (print_entry, print_cache, compare, save_cache, add_to_cache):
8840         Formatting and cleanups.
8841         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8842         aux_cache_file): New structures.
8843         (AUX_CACHEMAGIC): Define.
8844         (primes): New array.
8845         (aux_hash_size, aux_hash): New variables.
8846         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8847         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8848         load_aux_cache, save_aux_cache): New functions.
8849         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8850         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8851         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8852         (process_file): Adjust prototype.
8854 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8856         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8857         with __need_size_t.
8859 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8861         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8862         r_found_version structure as second parameter.
8863         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8864         (_dl_vdso_vsym): Change type of second parameter accordingly.
8865         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8866         (_libc_vdso_platform_setup): Adjust.
8867         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8868         (_libc_vdso_platform_setup): Likewise.
8870         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8871         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8872         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8873         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8874         * csu/libc-start.c: Pretty printing.
8875         Use VDSO_SETUP if defined.
8876         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8877         and let generic code call into _libc_vdso_platform_setup.
8878         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8879         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8880         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8881         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8882         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8883         for GLIBC_PRIVATE.
8884         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8885         (sysdep_rountines): Add dl-vdso.
8887         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8888         of routines.
8890         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8891         attribute_hidden to __vdso_gettimeofday prototype.
8893 2007-08-12  Roland McGrath  <roland@redhat.com>
8895         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8896         From: Karl Berry <karl@freefriends.org>.
8898 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8900         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8901         an atime update for the files we read.
8903 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8905         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8907         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8908         instead of mkstemp.
8910         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8911         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8912         * misc/mkostemp.c: New file.
8913         * misc/mkostemp64.c: New file.
8914         * stdlib/stdlib.h: Declare the new functions.
8915         * sysdeps/posix/tempname.c: Add new parameter which is added to
8916         the flags for open.  Remove __GT_BIGFILE handling.
8917         * stdio-common/tempname.c: Likewise.
8918         * include/stdio.h: Adjust __gen_tempname prototype.
8919         Renumber __GT_* constants.
8920         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8921         * misc/mkdtemp.c: Likewise.
8922         * misc/mkstemp.c: Likewise.
8923         * misc/mkstemp64.c: Likewise.
8924         * misc/mktemp.c: Likewise.
8925         * stdio-common/tempnam.c: Likewise.
8926         * stdio-common/tmpfile.c: Likewise.
8927         * stdio-common/tmpfile64.c: Likewise.
8928         * stdio-common/tmpnam.c: Likewise.
8929         * stdio-common/tmpnam_r.c: Likewise.
8931 2007-08-10  Roland McGrath  <roland@frob.com>
8933         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8934         New macros.
8935         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8936         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8938 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8940         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8941         possible.
8942         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8943         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8944         * nss/nss_files/files-have_o_cloexec.c: New file.
8946         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8947         available.
8949 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8951         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8952         ___new_wcstold_l): New weak aliases.
8953         (strtold_l, wcstold_l): Use them as second argument for
8954         long_double_symbol.
8956 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8958         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8959         register in test for error.
8961         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8962         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8964         * po/sv.po: Update from translation team.
8966 2007-08-06  Roland McGrath  <roland@redhat.com>
8968         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8969         Remove __strto*_l inlines.
8970         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8971         * stdlib/strtod.c: Add libc_hidden_def.
8972         * stdlib/strtod_l.c: Likewise.
8973         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8974         for __new_strtold and __new_wcstold.
8975         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8976         __STRTOF, STRTOF.
8977         * stdlib/strtol.c: Add libc_hidden_def.
8978         * stdlib/strtol_l.c: Likewise.
8979         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8980         strtoq.
8982         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8984         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8985         * scripts/data/localplt-generic.data: ... here.
8986         * elf/Makefile (check-data): Get generic file if no other.
8987         ($(objpfx)check-localplt.out): Make target unconditional.
8989         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8990         Use ElfW(Nhdr).
8992 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8994         * po/zh_CN.po: Updated translation from translation team.
8996 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8999         Don't use CGOTSETUP and CGOTRESTORE macros.
9001 2007-08-04  Roland McGrath  <roland@redhat.com>
9003         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9005 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9007         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9008         __extension__ around the whole statement expression.
9010 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9012         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9013         elements during initialization.
9015         * po/pl.po: Updated translation from translation team.
9016         * po/tr.po: Likewise.
9017         * po/nl.po: Likewise.
9019 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9021         * rt/aio.h: Add __nonnull attributes.
9023 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9025         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9026         * stdlib/Makefile (tests): Add tst-strtod5.
9027         (tst-strtod5-ENV): New.
9028         * stdlib/tst-strtod5.c: New file.
9030         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9031         failed.
9032         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9033         on failure.
9035         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9036         allocated.
9038 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9040         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9041         numbers.
9043 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9045         * io/Makefile (aux): Add have_o_cloexec.
9046         * include/fcntl.h: Declare __have_o_cloexec.
9047         * io/have_o_cloexec.c: New file.
9048         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9049         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9050         fcntl call if not necessary.
9051         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9052         of local variable.
9054         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9055         Avoid memset, add explicit initialization.
9056         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9057         to the end and change into zero-sized array.
9058         Move lock member to fill a hole on 64-bit platforms.
9060         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9061         inline functions.
9062         * include/stdlib.h: Add __strto*_internal prototypes here.
9063         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9064         inline functions.
9065         * include/wchar.h: Add __wcsto*_internal prototypes.
9066         * sysdeps/generic/inttypes.h: No need to protect the declaration
9067         of the __strto*_internal and __wcsto*_internal members here.
9069         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9071 2007-08-02  Roland McGrath  <roland@redhat.com>
9073         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9074         $(inst_bindir)/getconf if possible.
9076         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9077         (generated): Add it.
9078         ($(inst_libexecdir)/getconf): Use it.
9080 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9082         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9083         /proc is faster and sufficient.  /sys is still needed for
9084         __get_nprocs_conf.
9086 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9088         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9089         syscall as __fallocate64.
9090         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9091         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9093 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9095         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9096         value.
9098         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9099         if off_t is different rank from size_t.
9101         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9102         uw_frame_state_for): Avoid type punning warnings.
9103         * sysdeps/generic/unwind-dw2-fde-glibc.c
9104         (_Unwind_IteratePhdrCallback): Likewise.
9105         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9106         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9107         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9108         pointers.
9110 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9112         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9113         total processors using sysfs.
9114         (__get_nprocs): Use sysfs to determine which processors are online.
9116 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9118         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9119         syscall arguments count.
9121         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9123 2007-07-30  Roland McGrath  <roland@redhat.com>
9125         * manual/libc.texinfo: Update copyrights, formatting magic, and
9126         @dircategory.  From Karl Berry <karl@freefriends.org>.
9128 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9130         [BZ #4860]
9131         * io/Makefile (headers): Add bits/fcntl2.h.
9133         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9134         using gcc builtin.
9135         (__CPU_EQUAL_S): Likewise.
9137         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9138         (tests): Add tst-cpuset.
9139         * posix/sched_cpualloc.c: New file.
9140         * posix/sched_cpufree.c: New file.
9141         * posix/tst-cpuset.c: New file.
9142         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9143         GLIBC_2.7.
9144         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9145         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9146         macros.  Define CPU_*_S macros.
9148 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9150         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9151         entry.
9153         [BZ #4858]
9154         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9155         #.0g and value rounded to 1.0.
9156         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9158 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9160         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9161         for int_frac_digits and frac_digits.
9163         * login/logout.c (logout): Avoid aliasing violation.
9164         * login/logwtmp.c (logwtmp): Likewise.
9166         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9168         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9169         to avoid warning.
9170         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9171         warning.
9172         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9173         warning.
9174         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9175         to avoid warnings.
9177         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9178         void **.
9179         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9181         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9182         char * to avoid warning.
9183         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9185         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9187         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9188         allocate_arrays): Cast second argument to charmap_find_symbol
9189         to char * to avoid warnings.
9191         * locale/programs/repertoire.c (repertoire_new_char): Change
9192         from_nr, to_nr and cnt to unsigned long, adjust printf format
9193         string.
9195         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9196         Cast second argument to new_element to char * to avoid warnings.
9198         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9200         * intl/gettextP.h (struct loaded_domain): Change plural to const
9201         struct expression *.
9202         * intl/plural-eval.c (plural_eval): Change first argument to
9203         const struct expression *.
9204         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9205         argument to const struct expression **.
9206         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9207         prototypes.
9208         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9209         in call to __gettext_free_exp.
9211         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9212         unitialized wstring/wpattern var warnings.
9214         * posix/runtests.c (struct a_test): Make data field const char *.
9216         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9217         vars if not LDBL_MANT_DIG >= 106.
9219         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9221         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9222         __find_specmb to avoid warning.
9224         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9226         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9227         to avoid warnings.
9229         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9230         initializer.
9232         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9233         tv var when it will be actually used.
9235         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9236         to avoid warnings.
9238         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9239         char array resp. pointer.
9240         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9241         char array.
9242         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9243         to const unsigned char **.
9244         (ucs4_to_cns11643): Change second argument to unsigned char *.
9245         * iconvdata/euc-tw.c (BODY): Change endp type to
9246         const unsigned char *.
9247         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9248         to unsigned char *.
9249         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9250         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9251         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9252         types to unsigned char pointers/arrays instead of char.
9253         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9254         to unsigned char *.
9255         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9256         * iconvdata/jis0212.h: Include assert.h.
9257         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9258         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9259         of trying to handle that.
9260         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9261         shut up a warning.
9262         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9263         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9264         two dimensional const unsigned char arrays.
9265         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9266         Initialize endp to inptr to shut up a warning.
9268 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9270         [BZ #4772]
9271         * time/strptime_l.c (__strptime_internal): Silently ignore
9272         strftime modifiers and field width in recursive calls.
9274         * include/time.h (enum ptime_locale_status): Remove.
9275         (__strptime_internal): Remove decided and era_cnt arguments,
9276         add statep argument.
9277         * time/strptime_l.c (__strptime_internal): Remove decided
9278         and era_cnt arguments, add statep argument.  Don't recompute
9279         any fields in recursive calls, only update caller's tm
9280         and state, if recursive call fails, don't change tm nor
9281         any state.
9282         (get_alt_number): Adjust.
9283         (recursive): Adjust caller.
9284         (strptime): Likewise.
9285         * time/strptime.c (strptime): Likewise.
9287 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9289         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9290         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9291         if from and to charsets are the same.
9292         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9293         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9294         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9296 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9298         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9299         Don't define wint_t when __need_mbstate_t unless it
9300         is necessary.
9301         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9302         in the typedef if possible.
9303         * wctype/wctype.h (wint_t): Define by including
9304         wchar.h with __need_wint_t instead of including stddef.h
9305         with __need_wint_t and as fallback definining it ourselves.
9306         * iconv/gconv.h (__need_wint_t): Define before including
9307         wchar.h.
9308         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9309         or _GLIBCPP_USE_WCHAR_T.
9310         (__need_wchar_t): Don't define
9311         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9312         (__need_wint_t): Don't define before including stddef.h,
9313         define before including wchar.h only if _LIBC or
9314         _GLIBCPP_USE_WCHAR_T.
9315         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9316         * sysdeps/mach/hurd/_G_config.h: Likewise.
9317         * sysdeps/generic/_G_config.h: Likewise.
9318         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9319         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9320         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9321         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9323 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9325         * sysdeps/posix/posix_fallocate64.c: Undefine
9326         __posix_fallocate64_l64 before alias handling.
9327         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9328         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9329         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9330         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9332         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9334 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9336         * locale/programs/ld-collate.c (atwc): New variable.
9337         (add_to_tablewc): New toplevel function, moved from collate_output.
9338         (collate_output): Remove add_to_tablewc nested function.
9340         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9341         (name_insert): New function.
9342         (write_output): Remove hash_table and hash_size vars and name_insert
9343         nested function.
9345 2007-07-24  Roland McGrath  <roland@redhat.com>
9347         * Makerules (install-others-programs-nosubdir): New target.
9348         (install-no-libc.a-nosubdir): Depend on it.
9350         * iconv/Makefile (install-others-programs): Set this instead of
9351         install-others.
9352         * login/Makefile (install-others-programs): Likewise.
9353         * posix/Makefile (install-others-programs): Likewise.
9355         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9356         dependencies.
9358 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9360         * io/Makefile (tests): Add tst-posix_fallocate.
9361         * io/tst-posix_fallocate.c: New file.
9363         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9364         __ASSUME_FALLOCATE.
9366 2007-07-22  Roland McGrath  <roland@frob.com>
9368         * hurd/getdport.c: Add missing copyright year update.
9370         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9371         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9373 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9375         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9377         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9378         O_CLOEXEC is needed.
9379         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9380         Avoid additional fcntl to set O_CLOEXEC if not needed.
9381         * nis/nss_compat/compat-initgroups.c: Likewise.
9382         * nis/nss_compat/compat-pwd.c: Likewise.
9383         * nis/nss_compat/compat-spwd.c: Likewise.
9385 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9387         [BZ #3665]
9388         * manual/errno.texi: Change ECANCELED value to 119.
9390         [BZ #4610]
9391         * mach/lock-intern.h: Include <sys/cdefs.h>.
9393         [BZ #4178]
9394         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9395         reading A.
9397         [BZ #4126]
9398         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9399         to __sigsuspend.
9401         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9403 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9405         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9406         `__ASSEMBLER__'.
9407         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9409 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9411         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9412         descriptor received from nscd.
9414         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9416         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9417         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9418         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9419         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9420         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9421         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9423 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9425         [BZ #4816]
9426         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9428         [BZ #4813]
9429         * login/forkpty.c (forkpty): Close master and slave fds on
9430         fork failure.  Patch by
9431         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9433 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9435         * include/features.h (__USE_ISOC95): New define.
9436         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9437         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9438         for -std=iso9899:199409.
9439         * CONFORMANCE: Remove comments about unsupported AMD1.
9441 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9443         * sysdeps/ia64/sched_cpucount.c: New file.
9444         * sysdeps/powerpc/sched_cpucount.c: New file.
9446         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9447         __BEGIN_DECLS/__END_DECLS around the prototype.
9448         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9449         pointer to const cpu_set_t.
9451         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9452         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9453         __need_size_t and include stddef.h.
9454         * sysvipc/sys/msg.h: Likewise.
9455         * posix/sched.h: Likewise.
9456         * hurd/hurd/signal.h (__need_size_t): Define.
9458         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9459         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9460         no longer defines wint_t or wchar_t.
9462         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9463         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9464         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9465         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9466         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9467         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9468         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9469         * debug/printf_chk.c (__printf_chk): Likewise.
9470         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9471         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9473         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9474         Define.
9476         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9477         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9479 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9481         [BZ #4792]
9482         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9483         * malloc/malloc.h (realloc): Likewise.
9485         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9486         if one of proc_file_chain streams has that fileno.
9487         * stdio-common/Makefile (tests): Add tst-popen2.
9488         * stdio-common/tst-popen2.c: New test.
9490 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9492         * elf/ldconfig.c: Allow GPLv2 or any later version.
9493         * elf/readlib.c: Likewise.
9494         * elf/chroot_canon.c: Likewise.
9495         * elf/cache.c: Likewise.
9496         * nscd/mem.c: Likewise.
9497         * nscd/getpwuid_r.c: Likewise.
9498         * nscd/grpcache.c: Likewise.
9499         * nscd/aicache.c: Likewise.
9500         * nscd/getsrvbynm_r.c: Likewise.
9501         * nscd/nscd.c: Likewise.
9502         * nscd/servicescache.c: Likewise.
9503         * nscd/getsrvbypt_r.c: Likewise.
9504         * nscd/initgrcache.c: Likewise.
9505         * nscd/gethstbyad_r.c: Likewise.
9506         * nscd/gethstbynm2_r.c: Likewise.
9507         * nscd/getgrnam_r.c: Likewise.
9508         * nscd/nscd_setup_thread.c: Likewise.
9509         * nscd/getpwnam_r.c: Likewise.
9510         * nscd/gai.c: Likewise.
9511         * nscd/connections.c: Likewise.
9512         * nscd/dbg_log.c: Likewise.
9513         * nscd/cache.c: Likewise.
9514         * nscd/hstcache.c: Likewise.
9515         * nscd/nscd_conf.c: Likewise.
9516         * nscd/getgrgid_r.c: Likewise.
9517         * nscd/pwdcache.c: Likewise.
9518         * catgets/gencat.c: Likewise.
9519         * locale/programs/linereader.h: Likewise.
9520         * locale/programs/locarchive.c: Likewise.
9521         * locale/programs/ld-paper.c: Likewise.
9522         * locale/programs/locfile-kw.h: Likewise.
9523         * locale/programs/ld-address.c: Likewise.
9524         * locale/programs/xmalloc.c: Likewise.
9525         * locale/programs/ld-time.c: Likewise.
9526         * locale/programs/localedef.c: Likewise.
9527         * locale/programs/simple-hash.c: Likewise.
9528         * locale/programs/xstrdup.c: Likewise.
9529         * locale/programs/ld-numeric.c: Likewise.
9530         * locale/programs/locfile-kw.gperf: Likewise.
9531         * locale/programs/ld-collate.c: Likewise.
9532         * locale/programs/charmap-kw.gperf: Likewise.
9533         * locale/programs/charmap.h: Likewise.
9534         * locale/programs/charmap-kw.h: Likewise.
9535         * locale/programs/config.h: Likewise.
9536         * locale/programs/locfile.c: Likewise.
9537         * locale/programs/ld-ctype.c: Likewise.
9538         * locale/programs/charmap.c: Likewise.
9539         * locale/programs/ld-messages.c: Likewise.
9540         * locale/programs/repertoire.h: Likewise.
9541         * locale/programs/locale.c: Likewise.
9542         * locale/programs/ld-name.c: Likewise.
9543         * locale/programs/linereader.c: Likewise.
9544         * locale/programs/locfile.h: Likewise.
9545         * locale/programs/3level.h: Likewise.
9546         * locale/programs/ld-monetary.c: Likewise.
9547         * locale/programs/ld-measurement.c: Likewise.
9548         * locale/programs/charmap-dir.c: Likewise.
9549         * locale/programs/ld-identification.c: Likewise.
9550         * locale/programs/localedef.h: Likewise.
9551         * locale/programs/charmap-dir.h: Likewise.
9552         * locale/programs/repertoire.c: Likewise.
9553         * locale/programs/simple-hash.h: Likewise.
9554         * locale/programs/ld-telephone.c: Likewise.
9555         * locale/programs/locale-spec.c: Likewise.
9556         * locale/programs/locfile-token.h: Likewise.
9557         * posix/getconf.c: Likewise.
9558         * iconv/dummy-repertoire.c: Likewise.
9559         * iconv/iconv_charmap.c: Likewise.
9560         * iconv/iconvconfig.c: Likewise.
9561         * iconv/iconv_prog.c: Likewise.
9562         * malloc/memusagestat.c: Likewise.
9563         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9565 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9567         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9568         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9569         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9570         check for the first argument.
9572 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9574         [BZ #4775]
9575         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9576         (__tgmath_real_type): Fix if expr is const int or other const
9577         qualified integral type.
9578         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9579         expressions and handle const qualified arguments.
9580         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9581         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9582         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9583         statement expressions.
9584         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9585         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9586         (__TGMATH_UNARY_IMAG): Define.
9587         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9588         * math/Makefile (tests): Add test-tgmath2.
9589         (CFLAGS-test-tgmath2.c): Add.
9590         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9591         count_cfloat, count_cldouble): New variables.
9592         (NCCALLS): Define.
9593         (main): Check number of complex calls as well.
9594         (F(compile_test)): Add complex tests and tests with const qualified
9595         arguments.
9596         (y, z, ccount): Define.
9597         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9598         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9599         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9600         F(cproj)): New functions.
9601         * math/test-tgmath2.c: New test.
9603 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9605         [BZ #4776]
9606         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9607         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9608         instead output ".".
9609         * dlfcn/Makefile (distribute): Add glreflib3.c.
9610         (module-names): Add glreflib3.
9611         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9612         glreflib1.so.
9613         (LDFLAGS_glreflib3.so): New.
9614         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9615         glreflib1.so.
9616         * dlfcn/glreflib3.c: New file.
9618         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9619         returned -1, return NULL.
9620         * intl/explodename.c (_nl_explode_name): Return -1 if
9621         _nl_normalize_codeset failed.
9623 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9625         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9626         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9627         and avoid branch misspredicts for > 31 bytes memset case.
9628         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9629         Remove toc ref to __cache_line_size.
9631         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9632         to get ISA-V2.0 branch hints.
9633         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9634         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9635         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9636         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9637         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9638         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9639         Remove toc ref to __cache_line_size.
9641         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9642         Include math_ldbl_opt.h.
9644 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9646         [BZ #4773]
9647         * time/strptime_l.c (__strptime_internal): Implement greedy
9648         matching of weekday and month names.
9650 2007-07-09  Roland McGrath  <roland@redhat.com>
9652         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9653         (ELF_NOTE_ABI): Use it.
9654         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9656 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9658         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9659         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9661 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9663         [BZ #4745]
9664         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9665         in loop to look for conversion specifier to avoid testing of
9666         wrong errno value.
9667         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9668         * stdio-common/bug18.c: New file.
9669         * stdio-common/bug18a.c: New file.
9670         * stdio-common/bug19.c: New file.
9671         * stdio-common/bug19a.c: New file.
9673 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9675         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9676         running awk script.
9678 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9680         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9681         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9682         Return NULL if mmap failed instead of asserting it does not.
9683         (calloc): Check for integer overflow.
9685         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9686         than LONG_MAX / 10.
9688 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9690         [BZ #4702]
9691         * nis/nss-default.c: Include errno.h.
9692         (init): Preserve errno.
9694 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9696         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9698 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9700         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9702 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9704         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9706 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9708         * sysdeps/s390/dl-procinfo.c: New file.
9709         * sysdeps/s390/dl-procinfo.h: New file.
9710         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9712 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9714         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9715         in PT_NOTE segments with multiple notes.
9716         * elf/readelflib.c (process_elf_file): Likewise.
9718 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9720         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9721         ISO C compliant.
9723 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9725         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9727 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9729         * include/link.h: Don't include rtld-lowlevel.h.
9730         (struct link_map): Remove l_scope_lock.
9731         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9732         (_dl_scope_free_list): New field (variable) in _rtld_global.
9733         (DL_LOOKUP_SCOPE_LOCK): Remove.
9734         (_dl_scope_free): New prototype.
9735         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9736         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9737         (_dl_profile_fixup): Likewise.
9738         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9739         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9740         THREAD_GSCOPE_RESET_FLAG around it.
9741         * elf/dl-close.c (_dl_close_worker): Don't use
9742         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9743         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9744         scopes were queued or if l_scope_mem has been abandoned.
9745         * elf/dl-open.c (_dl_scope_free): New function.
9746         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9747         * elf/dl-support.c (_dl_scope_free_list): New variable.
9748         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9749         Remove DL_LOOKUP_SCOPE_LOCK handling.
9750         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9751         handling.
9752         * elf/dl-object.c (_dl_new_object): Don't use
9753         __rtld_mrlock_initialize.
9755 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9757         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9758         to fill in holes
9759         (rtld_global_ro): Likewise.
9761 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9763         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9764         Move PT_LOAD checking to...
9765         (_dl_addr_inside_object): ... here, new function.
9766         * elf/dl-sym.c (do_sym): If not l_contiguous,
9767         call _dl_addr_inside_object.
9768         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9769         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9770         * elf/dl-open.c (dl_open_worker): Likewise.
9771         (_dl_addr_inside_object): New function if IS_IN_rtld.
9772         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9773         holes are present or are PROT_NONE protected.
9774         * include/link.h (struct link_map): Add l_contiguous field.
9775         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9777 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9778             Tomas Janousek  <tjanouse@redhat.com>
9779             Ulrich Drepper  <drepper@redhat.com>
9781         [BZ #4647]
9782         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9783         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9784         socket.
9785         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9786         unused member a bitmap.
9787         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9788         servers are configured.
9790 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9792         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9794 2007-06-17  Andreas Schwab  <schwab@suse.de>
9796         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9798 2007-06-16  Andreas Jaeger  <aj@suse.de>
9800         [BZ #4125]
9801         * sysdeps/unix/sysv/linux/sys/ptrace.h
9802         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9803         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9804         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9805         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9806         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9807         Define.
9808         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9809         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9810         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9811         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9813 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9815         [BZ #4599]
9816         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9817         determining whether there are IPv4/IPv6 addresses, ignore loopback
9818         addresses.
9820 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9822         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9823         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9824         as the return type.  Change type of "r" variable to CMPtype.
9825         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9826         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9827         * soft-fp/gedf2.c (__gedf2): Likewise.
9828         * soft-fp/gesf2.c (__gesf2): Likewise.
9829         * soft-fp/getf2.c (__getf2): Likewise.
9830         * soft-fp/ledf2.c (__ledf2): Likewise.
9831         * soft-fp/lesf2.c (__lesf2): Likewise.
9832         * soft-fp/letf2.c (__letf2): Likewise.
9833         * soft-fp/unorddf2 (__unorddf2): Likewise.
9834         * soft-fp/unordsf2 (__unordsf2): Likewise.
9835         * soft-fp/unordtf2 (__unordtf2): Likewise.
9837 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9839         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9840         make sure gcc doesn't mess around with this.
9842 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9844         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9846 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9848         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9849         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9850         at most once per _dl_close_worker.
9852 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9854         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9855         __sched_cpucount as const.
9856         * posix/sched_cpucount.c: Adjust.
9858         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9859         instruction for counting bits.
9860         * sysdeps/x86_64/sched_cpucount.c: New file.
9862 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9864         * configure.in: Avoid variable named BASH.
9865         * config.make.in: Likewise.
9866         Patch in part by Mike Frysinger.
9868 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9870         [BZ #4586]
9871         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9872         pseudo-zeros as zero.
9873         * sysdeps/x86_64/ldbl2mpn.c: New file.
9874         * sysdeps/ia64/ldbl2mpn.c: New file.
9876 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9878         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9879         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9880         Remove unreachable code at the end.
9882 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9884         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9885         ldbl-128ibm in comment.
9886         (fpclassifyl): Correct classification of denormals.
9887         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9888         return value for MIN denormal. Rewrite using long double math too
9889         correctly handle denormals and canonicalize the results.
9891 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9893         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9894         (__mpn_construct_long_double): Fix conversion where result ought
9895         to be smaller than __LDBL_MIN__, or the low double should be
9896         denormal.  Fix decision where to negate low double - honor round
9897         to even rules.
9898         * stdio-common/tst-sprintf2.c: Include string.h.
9899         (COMPARE_LDBL): Define.
9900         (TEST): Also test whether a string hexadecimal float representation
9901         can be parsed back to the number.
9902         (main): Add a couple of further tests.
9904 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9906         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9907         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9908         is non-zero, but smaller than 2 * __DBL_MIN__.
9909         * stdio-common/tst-sprintf2.c: New test.
9910         * stdio-common/Makefile (tests): Add tst-sprintf2.
9912         * math/test-misc.c (main): Don't run last batch of tests with
9913         IBM long double format.
9915 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9917         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9918         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9919         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9920         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9921         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9922         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9923         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9924         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9925         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9926         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9929         New file.
9930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9931         New file.
9932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9933         New file.
9934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9935         New file.
9936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9937         New file.
9938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9940         New file.
9941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9942         New file.
9943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9944         New file.
9945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9946         New file.
9947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9948         New file.
9950 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9952         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9953         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9954         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9955         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9956         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9957         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9958         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9959         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9961 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9963         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9964         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9965         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9966         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9967         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9968         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9969         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9970         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9972 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9974         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9975         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9976         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9977         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9979 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9981         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9982         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9984 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9986         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9987         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9988         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9989         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9991 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9993         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9994         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9996 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9998         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9999         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10001         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10002         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10003         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10004         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10006 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10008         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10009         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10010         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10011         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10013 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10015         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10016         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10017         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10018         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10019         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10020         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10022 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10024         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10025         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10026         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10027         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10029 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10031         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10032         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10033         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10034         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10035         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10036         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10037         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10038         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10039         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10040         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10041         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10042         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10043         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10044         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10045         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10046         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10048 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10050         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10051         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10053 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10055         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10056         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10058 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10060         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10061         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10062         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10063         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10064         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10065         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10066         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10067         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10068         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10069         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10071 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10073         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10075 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10077         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10078         branch miss-predicts. Ensure that cache line crossing does not impact
10079         dispatch grouping.
10081 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10083         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10084         "../../powerpc32/power4/memcopy.h".
10085         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10086         "../../powerpc32/power4/wordcopy.c".
10088 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10090         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10091         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10092         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10093         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10094         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10095         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10097 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10099         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10101 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10103         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10104         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10105         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10106         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10107         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10108         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10109         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10110         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10112 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10114         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10116 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10118         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10119         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10120         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10121         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10122         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10123         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10124         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10126 2007-05-29  Roland McGrath  <roland@redhat.com>
10128         * po/Makefile (po-sed-cmd): New variable.
10129         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10131 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10133         * crypt/md5-crypt.c: Fix comment.
10135         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10136         of crashing.  When this is the case or if the reply is malformed,
10137         don't try to close the new file descriptor since it does not
10138         exist.
10139         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10141 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10143         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10144         if __NR_utimensat is not defined.
10146 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10148         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10150 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10152         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10153         (open): Fix comment typos.  Don't call __open_2 if flags
10154         is a compile time constant without O_CREAT.
10155         (__open64_2): Add nonnull attribute.
10156         (open64): Fix comment typos.  Don't call __open64_2 if flags
10157         is a compile time constant without O_CREAT.
10158         (__openat_2): Add nonnull attribute, fix nonnull attribute
10159         on redirect.
10160         (openat): Fix comment typos.  Don't call __openat_2 if flags
10161         is a compile time constant without O_CREAT.
10162         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10163         on redirect.
10164         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10165         is a compile time constant without O_CREAT.
10167 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10169         * Makerules (sysd-rules): Define PTW for ptw-* files.
10170         * Versions: Define GLIBC_2.7 for libc.
10171         * include/stdio.h: Declare __fortify_fail.
10172         * debug/fortify_fail.c: New file.
10173         * debug/Makefile (routines): Add fortify_fail.
10174         * debug/chk_fail.c: Use __fortify_fail.
10175         * debug/stack_chk_fail.c: Likewise.
10176         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10177         __openat64_2 for GLIBC_2.7.
10178         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10179         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10180         and fails if necessary.
10181         * io/open64.c: Likewise.
10182         * io/openat.c: Likewise.
10183         * io/openat64.c: Likewise.
10184         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10185         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10186         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10187         * io/bits/fcntl2.h: New file.
10188         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10189         __openat64_2.
10190         * include/bits/fcntl2.h: New file.
10191         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10192         Add open_2.
10193         * sysdeps/unix/sysv/linux/open_2.c: New file.
10195 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10197         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10198         as second parameter to handle_intel.
10200         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10201         the entry.
10203         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10204         handling to ...
10205         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10206         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10207         cacheinfo.
10208         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10209         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10210         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10212         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10214 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10216         [BZ #4525]
10217         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10218         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10219         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10221         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10223         [BZ #4514]
10224         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10225         reinitialize workend at the start of each do_positional format spec
10226         loop, free workstart before do_positional loops.
10227         (printf_unknown): Fix size of work_buffer.
10228         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10230         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10231         (public_sET_STATe): If ms->version < 3, put all chunks into
10232         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10233         chunks.
10235         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10236         * malloc/hooks.c: Likewise.
10237         * malloc/arena.c: Likewise.
10238         * malloc/malloc.c (do_check_malloc_state): Don't assert
10239         n_mmaps is not greater than n_mmaps_max.  This removes the need
10240         for the previous change.
10242         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10243         2007-05-07 commit.
10245 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10247         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10248         Define for kernel >= 2.6.22.
10250 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10252         * elf/dl-close.c (_dl_close_worker): When removing object from
10253         global scope, wait for all lookups to finish afterwards.
10254         * elf/dl-open.c (add_to_global): When global scope array must
10255         grow, allocate a new one and free old array only after all
10256         lookups finish.
10257         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10258         (_dl_lookup_symbol_x): Likewise.
10259         * elf/dl-support.c: Define _dl_wait_lookup_done.
10260         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10261         _dl_wait_lookup_done.
10263         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10264         not overlapping with arena.
10266         * malloc/mcheck.c (reallochook): If size==0, free the block.
10268         * rt/tst-shm.c: Use fstat64 instead of fstat.
10270         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10271         __NR_sync_file_range is not defined.
10273 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10275         Dummy files to prevent stub versions from being used.
10276         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10277         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10278         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10279         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10281         * version.h (VERSION): Set to 2.6.90.
10283 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10285         * version.h (VERSION): Define to 2.6.
10286         * include/features.h (__GLIBC_MINOR__): Define to 6.
10288         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10290         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10291         sizes.
10293 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10295         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10296         number of mmaps.  n_mmaps_max is the target.
10297         * malloc/hooks.c: Likewise.
10298         * malloc/arena.c: Likewise.
10300 2007-05-12  Andreas Jaeger  <aj@suse.de>
10302         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10303         getpid.
10305 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10307         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10308         adding new variables.
10310         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10311         optimize.  Completely extend global scope array before making the
10312         new entries visible.
10314 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10316         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10317         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10318         tst-getcpu.
10320         * include/link.h: Move l_version and l_nversion members around to
10321         fill gaps.
10323         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10325         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10326         (__sched_setaffinity_new): If syscall was successful and
10327         RESET_VGETCPU_CACHE is defined, use it before returning.
10328         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10330         * io/sys/stat.h: Make sure struct timespec is defined for
10331         __USE_ATFILE.
10333         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10334         UTIME_OMIT.
10335         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10336         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10337         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10338         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10339         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10340         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10341         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10342         * io/sys/stat.h: Declare utimensat, futimens.
10343         * io/utimensat.c: New file.
10344         * io/futimens.c: New file.
10345         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10346         * sysdeps/unix/sysv/linux/futimens.c: New file.
10347         * io/Makefile (routines): Add utimensat, futimens.
10348         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10349         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10350         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10351         available.
10353         * include/sys/cdefs.h: Redefine __nonnull so that test for
10354         incorrect parameters in the libc code itself are not omitted.
10356 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10358         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10359         exception in addition to inexact when asked to raise only FE_INEXACT.
10361         [BZ #3427]
10362         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10363         in *envp.
10365 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10367         [BZ #4403]
10368         * string/strfry.c (strfry): Make result more random.
10370 2007-05-07  Richard Henderson  <rth@redhat.com>
10372         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10373         if __NO_LONG_DOUBLE_MATH.
10374         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10375         available in the compiler, add .arch directive to the assembly.
10377 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10379         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10380         compat_symbol to GLIBC_2_1.
10381         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10382         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10383         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10384         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10385         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10386         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10387         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10388         libc, not libm.
10389         (__isnanl): New compat_symbol.
10391 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10392             Jakub Jelinek  <jakub@redhat.com>
10394         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10395         (new_heap): Initialize mprotect_size.
10396         (grow_heap): When growing, only mprotect from mprotect_size till
10397         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10398         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10400 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10401             Peter Bergner  <bergner@us.ibm.com>
10403         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10404         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10405         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10406         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10407         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10408         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10409         Call __fe_mask_env() if all FP exceptions disabled.
10410         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10411         from old FPSCR to new fenv to propagate DFP rounding modes.
10412         Call __fe_mask_env() if FP exceptions previously enabled.
10413         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10414         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10415         transitioning from all exceptions disabled to any exception enabled
10416         or visa versa.
10417         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10418         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10419         when transitioning from all exceptions disabled to any exception
10420         enabled or visa versa.
10421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10428 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10430         [BZ #4465]
10431         * posix/unistd.h: Remove __THROW from fdatasync.
10433 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10435         [BZ #4465]
10436         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10438 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10440         * stdio-common/vfprintf.c (process_string_arg): Optimize
10441         ridiculous precision in wide char code printing multi-byte string.
10442         Reported by Jim Meyering <jim@meyering.net>.
10444         [BZ #4131]
10445         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10446         boundaries to work around systems with overlapping binary loading.
10447         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10449 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10451         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10452         __mbsnrtowcs after last change.
10454         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10455         (get_ident): Likewise.
10457 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10459         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10460         with setting the sticky bit.
10461         * math/test-misc.c (main): Add more truncation tests.
10463 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10465         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10466         double in the function declaration.
10467         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10468         double in the function declaration.
10469         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10470         float in the function declaration.
10471         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10472         float in the function declaration.
10474         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10475         denormal operands.  Do not generate FP_EX_DENORM exception.
10476         (FP_UNPACK_RAW_EP): Ditto.
10477         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10478         undefined _FP_UNPACK_RAW_E.
10479         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10480         undefined _FP_UNPACK_RAW_EP.
10481         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10482         undefined _FP_PACK_RAW_E.
10483         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10484         undefined _FP_PACK_RAW_EP.
10486         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10487         _FP_FRAC_COPY_2.
10488         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10489         _FP_FRAC_COPY_4.
10491 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10492             Jakub Jelinek  <jakub@redhat.com>
10494         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10495         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10496         this case.
10497         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10499 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10501         * math/test-misc.c (main): Add tests for rounding long double
10502         values close to smallest double denormalized value to double.
10504 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10506         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10507         condition for truncating to 0.  Set sticky bit for such
10508         truncation.
10510 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10512         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10513         fixed length array for ignore.
10515 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10517         [BZ #4438]
10518         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10519         stack for large precisions.
10520         * stdio-common/test-vfprintf.c (main): Add test for large
10521         precision.
10523 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10525         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10526         for exponent 0.
10527         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10529         [BZ #4439]
10530         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10531         account in the size check.
10532         * resolv/tst-inet_ntop.c: New test.
10533         * resolv/Makefile (tests): Add tst-inet_ntop.
10535 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10536             Jakub Jelinek  <jakub@redhat.com>
10538         [BZ #4349]
10539         * malloc/malloc.c: Keep separate list for first blocks on the bin
10540         lists with a given size.  This helps skipping over list elements
10541         we know won't fit in two places.
10542         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10544 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10546         [BZ #4102]
10547         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10548         label to Teredo tunnel addresses 2001://32.
10550 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10552         * locale/programs/ld-collate.c (collate_read): Allow order_start
10553         after copy.
10555         * locale/programs/ld-collate.c (collate_read): Fix printing of
10556         error message.
10558         [BZ #3213]
10559         * locale/C-translit.h.in: Add entry for U2044.
10561         [BZ #4342]
10562         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10563         hexa-decimal floats without exponent.
10564         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10566 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10568         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10569         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10570         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10571         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10572         GLIBC_2.6.
10573         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10574         Add sched_getcpu.
10576 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10578         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10579         of 0 after the out_fail label.
10581 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10583         [BZ #4406]
10584         * iconv/gconv_charset.h (strip): Allow ':'.
10585         * iconv/iconv_open.c (iconv_open): Adjust comment.
10587 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10589         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10590         version.
10592 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10594         [BZ #4381]
10595         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10596         alignment of buffer and tmp_buffer.
10597         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10598         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10599         alignment of buffer.
10600         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10601         bigger than INT_MAX.
10602         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10603         h_errnop arguments.  Fail if buflen is too small.
10604         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10606 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10608         [BZ #4405]
10609         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10610         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10612 2007-04-22  Roland McGrath  <roland@redhat.com>
10614         * elf/elf.h (NT_PRXFPREG): New macro.
10616 2007-04-19  Andreas Jaeger  <aj@suse.de>
10618         [BZ #3905]
10619         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10620         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10621         Added.
10623 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10625         * include/sys/mman.h: Mark madvise hidden.
10626         * misc/madvise.c: Add libc_hidden_def.
10628 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10630         * nis/nis_domain_of.c (__nis_domain_of): New function.
10631         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10632         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10633         * nis/nis_call.c (rec_dirsearch): Likewise.
10634         (first_shoot): Likewise.  Remove search_parent_first argument.
10635         (struct nis_server_cache): Rename search_parent_first field
10636         to search_parent.
10637         (nis_server_cache_search, nis_server_cache_add): Rename
10638         search_parent_first argument to search_parent.
10639         (__nisfind_server): Likewise.  If search_parent, call
10640         __nis_domain_of.
10642 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10644         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10646 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10648         [BZ #4368]
10649         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10651 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10653         [BZ #4364]
10654         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10656 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10658         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10659         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10660         current number of locales in SUPPORTED.
10661         (create_archive): Initialize serial.
10662         (enlarge_archive): Preserve aliases rather than duplicating
10663         their locrecs.
10665 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10667         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10668         after _IO_un_link, not before it.
10670         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10671         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10672         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10674 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10676         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10677         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10678         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10679         Remove __THROW.
10680         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10681         _IO_file_xsgetn_maybe_mmap): Likewise.
10682         * libio/oldfileops.c (old_do_write): Likewise.
10683         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10684         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10685         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10686         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10687         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10688         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10689         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10690         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10691         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10692         _IO_file_underflow, _IO_file_underflow_mmap,
10693         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10694         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10695         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10696         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10697         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10698         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10699         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10700         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10701         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10702         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10703         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10704         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10705         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10706         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10707         _IO_adjust_column_internal, _IO_default_uflow_internal,
10708         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10709         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10710         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10711         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10712         _IO_file_close_it_internal, _IO_file_underflow_internal,
10713         _IO_file_overflow_internal, _IO_file_attach_internal,
10714         _IO_file_fopen_internal, _IO_file_sync_internal,
10715         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10716         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10717         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10718         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10719         _IO_seekpos_unlocked): Likewise.
10720         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10721         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10723 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10725         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10726         argument in xmalloc size computation.
10728 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10730         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10731         math_opt_barrier and math_force_eval macros.
10733 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10735         [BZ #3306]
10736         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10737         * sysdeps/i386/fpu/math_private.h: New file.
10738         * sysdeps/x86_64/fpu/math_private.h: New file.
10739         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10740         math_force_eval macros.  Use "+m" constraint on asm rather than
10741         "=m" and "m".
10742         * math/s_nextafter.c (__nextafter): Likewise.
10743         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10744         Likewise.
10745         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10746         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10747         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10748         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10749         math_opt_barrier and math_force_eval macros.
10750         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10751         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10752         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10753         (__nexttoward): Use math_opt_barrier and
10754         math_force_eval macros.  Use "+m" constraint on asm rather than
10755         "=m" and "m".  Only use asm to force double result if
10756         FLT_EVAL_METHOD is 2.
10757         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10758         (__nexttowardf): Use math_opt_barrier and
10759         math_force_eval macros.  Use "+m" constraint on asm rather than
10760         "=m" and "m".  Only use asm to force double result if
10761         FLT_EVAL_METHOD is not 0.
10762         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10763         (__nexttowardf): Use math_opt_barrier and
10764         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10765         x to float using asm.
10766         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10767         (__nldbl_nexttowardf): Use math_opt_barrier and
10768         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10769         x to float using asm.
10770         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10771         (__nexttowardf): Use math_opt_barrier and math_force_eval
10772         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10773         * math/bug-nextafter.c (zero, inf): New variables.
10774         (main): Add new tests.
10775         * math/bug-nexttoward.c (zero, inf): New variables.
10776         (main): Add new tests.
10778 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10780         [BZ #3427]
10781         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10782         exceptions both in SW and MXCSR.
10783         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10784         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10785         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10786         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10787         in MXCSR if SSE is available.
10788         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10789         and ldsodefs.h.
10790         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10791         Fix comment typo.
10792         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10793         Return 0 rather than 1.
10794         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10795         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10796         * math/test-fenv.c (feholdexcept_tests): New function.
10797         (main): Call it.
10799 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10801         [BZ #3427]
10802         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10803         in SW.
10805 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10807         [BZ #4344]
10808         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10809         Reported by David Anderson <davea42@earthlink.net>.
10811 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10813         * posix/sys/wait.h: Remove unnecessary forward declaration.
10815 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10817         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10818         with obj->do_servers after first_shoot.
10820 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10822         * posix/Makefile (routines): Add sched_cpucount.
10823         (tests): Add tst-cpucount.
10824         * posix/sched_cpucount.c: New file.
10825         * posix/tst-cpucount.c: New file.
10826         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10827         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10828         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10829         * posix/sched.h: Define CPU_COUNT.
10831 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10833         * posix/fnmatch.c (STRUCT): Define.
10834         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10835         * posix/fnmatch_loop.c (struct STRUCT): New type.
10836         (FCT): Add ends argument.  If ends != NULL and normal * is
10837         seen in the pattern, store current pattern and string pointers
10838         and return.  Adjust recursive calls.
10839         (EXT): Adjust FCT callers.
10840         (STRUCT): Undef at the end of the file.
10841         * posix/Makefile (tests): Add tst-fnmatch2.
10842         * posix/tst-fnmatch2.c: New test.
10844 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10846         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10847         and 1 on failure.
10849         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10850         Change last argument to unsigned int.
10852 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10854         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10856 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10858         * config.h.in (HAVE_LIBCAP): Add.
10859         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10860         sys/capabilities.h.
10861         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10862         free_caps.  Cast away const from 4th cap_set_flag argument.
10864 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10866         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10867         GLIBC_2.6.
10868         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10869         Add sync_file_range.
10870         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10872 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10874         * sysdeps/powerpc/bits/atomic.h
10875         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10876         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10877         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10878         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10879         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10880         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10881         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10882         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10883         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10884         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10885         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10886         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10887         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10888         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10889         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10890         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10891         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10892         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10893         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10894         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10896 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10898         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10899         (__cache_line_size): Define the variable here.  Add
10900         attribute_hidden, remove weak_extern.
10901         (__libc_start_main): Set __cache_line_size
10902         unconditionally.
10903         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10904         (__cache_line_size): Define the variable here.  Add
10905         attribute_hidden, remove weak_extern.
10906         (DL_PLATFORM_AUXV): Set __cache_line_size
10907         unconditionally.
10908         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10909         weak_extern, add attribute_hidden.
10910         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10911         defined in ld.so.
10912         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10913         definition.
10914         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10916 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10918         [BZ #4276]
10919         * timezone/africa: Update from tzdata2007d.
10920         * timezone/asia: Likewise.
10921         * timezone/australasia: Likewise.
10922         * timezone/backward: Likewise.
10923         * timezone/europe: Likewise.
10924         * timezone/iso3166.tab: Likewise.
10925         * timezone/leapseconds: Likewise.
10926         * timezone/northamerica: Likewise.
10927         * timezone/southamerica: Likewise.
10928         * timezone/zone.tab: Likewise.
10930         * timezone/private.h: Update from tzcode2007d.
10931         * timezone/zdump.c: Likewise.
10932         * timezone/zic.c: Likewise.
10934 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10936         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10937         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10938         variables.
10939         (nis_server_cache_search, nis_server_cache_add): New functions.
10940         (__nisfind_server): Use them.  Add dbp and flags argument, if
10941         call __nisbind_create.
10942         (__nisbind_create): Add server_used and current_ep arguments,
10943         only call __nis_findfastest if server_used is ~0.
10944         (__do_niscall2, __prepare_niscall): Adjust callers.
10945         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10946         ckey_cache_euid, ckey_cache_lock): New variables.
10947         (get_ckey): New function.
10948         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10949         __pmap_getnisport.  Save __pmap_getnisport result in
10950         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10951         key.
10952         * nis/nis_lookup.c (nis_lookup): Likewise.
10953         * nis/nis_table.c (nis_list): Likewise.
10954         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10955         prototypes.
10957         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10958         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10959         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10960         _nss_nisplus_getservbyport_r): Likewise.
10961         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10962         _nss_nisplus_getnetbyaddr_r): Likewise.
10963         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10964         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10965         _nss_nisplus_getntohost_r): Likewise.
10966         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10967         _nss_nisplus_getrpcbynumber_r): Likewise.
10969 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10971         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10972         * configure: Rebuilt.
10974         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10975         bit-fields.
10976         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10978 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10980         [BZ #2831]
10981         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10982         bit-fields.
10984 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10986         * nscd/gai.c: Include alloca.h.
10987         (__libc_use_alloca): Define.
10989 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10991         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10992         smaller scopes.
10993         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10994         (DL_DST_REQUIRED): Adjust user.
10996         * include/dlfcn.h (struct link_map): New forward decl.
10998         * inet/getnameinfo.c: Include stddef.h.
10999         (getnameinfo): Use offsetof.
11001         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11003         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11005         * string/strerror_l.c: Include stdlib.h.
11007         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11008         * config.make.in (gnu89-inline-CFLAGS): New variable.
11009         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11010         -std=gnu99.
11011         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11012         * argp/argp.h: Use it.
11013         * bits/mathinline.h: Likewise.
11014         * bits/sigset.h: Likewise.
11015         * bits/string.h: Likewise.
11016         * ctype/ctype.h: Likewise.
11017         * hurd/hurd.h: Likewise.
11018         * hurd/hurd/fd.h: Likewise.
11019         * hurd/hurd/port.h: Likewise.
11020         * hurd/hurd/signal.h: Likewise.
11021         * hurd/hurd/threadvar.h: Likewise.
11022         * hurd/hurd/userlink.h: Likewise.
11023         * io/sys/stat.h: Likewise.
11024         * libio/bits/stdio.h: Likewise.
11025         * libio/bits/stdio2.h: Likewise.
11026         * mach/lock-intern.h: Likewise.
11027         * mach/mach/mig_support.h: Likewise.
11028         * math/bits/cmathcalls.h: Likewise.
11029         * posix/bits/unistd.h: Likewise.
11030         * socket/bits/socket2.h: Likewise.
11031         * stdlib/bits/stdlib.h: Likewise.
11032         * stdlib/stdlib.h: Likewise.
11033         * string/argz.h: Likewise.
11034         * string/bits/string2.h: Likewise.
11035         * string/bits/string3.h: Likewise.
11036         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11037         * sysdeps/generic/inttypes.h: Likewise.
11038         * sysdeps/generic/machine-lock.h: Likewise.
11039         * sysdeps/generic/machine-sp.h: Likewise.
11040         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11041         * sysdeps/i386/i486/bits/string.h: Likewise.
11042         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11043         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11044         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11045         * sysdeps/mach/i386/machine-lock.h: Likewise.
11046         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11047         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11048         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11049         * sysdeps/s390/bits/string.h: Likewise.
11050         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11051         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11052         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11053         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11054         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11055         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11056         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11057         * wcsmbs/bits/wchar2.h: Likewise.
11058         * wcsmbs/wchar.h: Likewise.
11059         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11060         __extern_inline definition.
11062 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11064         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11065         NULL.
11067         [BZ #3919]
11068         * math/libm-test.inc (log_test): Test -Inf and NaN.
11069         (log10_test, log1p_test, log2_test): Test -Inf.
11070         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11071         FE_INVALID when argument is qNaN.
11072         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11073         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11074         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11075         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11076         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11077         testb $4, %ah and jump if non-zero.
11078         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11079         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11081         [BZ #4101]
11082         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11083         ancestors with the same depths.
11084         Patch by Niels Moeller <nisse@lysator.liu.se>.
11085         (filter_doc): Don't crash if argp is NULL.
11086         * argp/Makefile (tests): Add tst-argp2.
11087         * argp/tst-argp2.c: New test.
11089         [BZ #4130]
11090         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11091         open_not_cancel_2.
11092         (updwtmp_file): Likewise.
11094         [BZ #4181]
11095         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11096         (inet6_opt_append): Don't check extlen is big enough if extbuf
11097         is NULL.
11098         (inet6_opt_finish): Likewise.
11099         * inet/Makefile (tests): Add test-inet6_opt.
11100         * inet/test-inet6_opt.c: New test.
11102         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11103         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11104         NLMSG_ERR.  Instead use a page sized buffer.
11105         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11106         buffer.
11108 2007-03-14  Richard Henderson  <rth@redhat.com>
11110         * sysdeps/alpha/fpu/s_llround.c: New file.
11111         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11112         * sysdeps/alpha/fpu/s_lround.c: New file.
11113         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11114         * sysdeps/alpha/fpu/s_round.c: New file.
11115         * sysdeps/alpha/fpu/s_roundf.c: New file.
11116         * sysdeps/alpha/fpu/s_trunc.c: New file.
11117         * sysdeps/alpha/fpu/s_truncf.c: New file.
11119         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11120         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11121         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11122         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11123         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11124         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11126         * sysdeps/alpha/fpu/s_fmax.S: New file.
11127         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11128         * sysdeps/alpha/fpu/s_fmin.S: New file.
11129         * sysdeps/alpha/fpu/s_fminf.S: New file.
11130         * sysdeps/alpha/fpu/s_isnan.c: New file.
11131         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11132         * sysdeps/alpha/fpu/s_llrint.c: New file.
11133         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11134         * sysdeps/alpha/fpu/s_lrint.c: New file.
11135         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11136         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11137         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11139         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11140         (__fdimf, fdimf, __fdim, fdim): Remove.
11141         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11142         (__isnanf, __isnan, __isnanl): New.
11144 2007-03-13  Richard Henderson  <rth@redhat.com>
11146         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11148 2007-03-13  Richard Henderson  <rth@redhat.com>
11150         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11151         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11152         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11153         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11154         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11155         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11157 2007-03-13  Richard Henderson  <rth@redhat.com>
11159         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11160         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11161         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11162         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11163         Move to dl-auxv.h; initialize instead of extern weak.
11164         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11165         weak symbol.
11166         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11167         Extern instead of initialized.
11169 2007-03-13  Richard Henderson  <rth@redhat.com>
11171         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11172         __sigsuspend_nocancel.
11174 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11176         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11177         172.16/12 address range.
11179 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11181         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11182         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11183         message.
11185 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11187         [BZ #4069]
11188         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11189         earlier.
11190         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11192         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11193         for x qNaN and y either +-inf or non-integer value.
11194         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11195         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11196         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11198 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11200         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11201         from sysdep_headers.
11203 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11205         * time/tzfile.c (find_transition): Instead of a linear search try to
11206         guess the transition index, use a linear search if the result is at
11207         most 10 transitions away from the guess or binary search otherwise.
11209 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11211         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11212         memory reallocation.
11214 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11216         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11217         and fix some typos.
11218         Optimize use of TOLOWER.
11220         [BZ #3325]
11221         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11222         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11223         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11225         [BZ #3458]
11226         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11227         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11229         [BZ #4076]
11230         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11231         (open_dir_stream): Likewise.
11232         * io/Makefile (tests): Add bug-ftw5.
11233         * io/bug-ftw5.c: New file.
11235         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11236         * nscd/servicescache.c (cache_addserv): Likewise.
11238         * nscd/grpcache.c (cache_addgr): In case a record changed on
11239         refresh, adjust key_copy.
11241         [BZ #4074]
11242         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11243         refresh, adjust key_copy.
11245         [BZ #4070]
11246         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11247         special cases.
11248         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11250 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11252         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11253         optimization.
11255         * stdio-common/vfscanf.c: Small cleanups throughout.
11257 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11259         [BZ #3325]
11260         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11261         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11262         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11263         Patch by Jared Casper <jaredcasper@gmail.com>.
11265         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11266         * sysdeps/unix/opendir.c: Likewise.
11267         * sysdeps/unix/readdir.c: Likewise.
11269         [BZ #2211]
11270         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11271         point numbers.
11272         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11274         * stdio-common/vfscanf.c: Fix problems in width accounting.
11275         * stdio-common/tst-sscanf.c (double_tests): New tests.
11276         (main): Hook them up.
11278         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11279         More simplifications of floating-point reader.
11281         * stdio-common/Makefile (tests): Add tst-swscanf.
11282         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11283         testing.
11284         * stdio-common/tst-swscanf.c: New file.
11286 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11288         [BZ #2633]
11289         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11290         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11291         Remove using for __jmp_buf_tag.
11292         * locale/locale.h (struct lconv): Also define in std namespace.
11293         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11295         [BZ #3842]
11296         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11297         using __libc_enable_secure.
11299         [BZ #3818]
11300         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11302         [BZ #3745]
11303         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11304         of names for ellipsises.
11306         [BZ #3348]
11307         * malloc/memusage.sh: Cleanups.
11308         * debug/xtrace.sh: Quoting and trap changes.
11310 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11312         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11314         * locale/iso-3166.def: Update entry for Serbia.
11315         * locale/iso-4217.def: Define RSD, remove CSD.
11317         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11318         and 64-bit operations.
11320         [BZ #4040]
11321         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11322         16-bit operations.
11324         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11325         of writev.
11327 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11329         [BZ #3991]
11330         * assert/assert.h (assert): Simplify.
11331         (assert_perror): Likewise.
11332         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11334         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11335         reqdata.
11337         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11338         change: don't pass NULL in place of an integer.
11340 2007-02-02  Bruno Haible  <bruno@clisp.org>
11342         [BZ #3954]
11343         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11344         Add mapping for U+327E.
11345         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11346         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11347         mapping of 0xD9 0xE8.
11348         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11349         mapping of U+327E.
11350         Reported by Jungshik Shin <jungshik@google.com>.
11352         [BZ #3955]
11353         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11354         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11355         Reported by Jungshik Shin <jungshik@google.com>.
11357 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11359         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11360         byte variants.
11362         [BZ #4040]
11363         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11364         byte variants.  Patch mostly be tom@tommay.net.
11366 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11368         [BZ #3996]
11369         * posix/glob.c (attribute_hidden): Define if not defined.
11370         (glob): Unescape dirname, filename or username when needed and not
11371         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11372         is NULL.  Handle unescaped [ in pattern without closing ].
11373         Don't pass GLOB_CHECK down to recursive glob for directories.
11374         (__glob_pattern_type): New function.
11375         (__glob_pattern_p): Implement using __glob_pattern_type.
11376         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11377         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11378         Remove unreachable code.
11379         * posix/globtest.sh: Add a couple of new tests.
11381 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11383         * po/ru.po: Update from translation team.
11385 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11387         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11388         to the list of i486+ CPUs.
11389         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11391 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11393         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11394         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11395         references.
11397 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11399         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11401         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11402         * resolv/res_mkquery.c: Define __res_nopt.
11403         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11404         try adding EDNS0 record.
11405         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11406         EDNS0 record was send make sure we don't try it again.
11407         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11408         * include/resolv.h: Declare __res_nopt.
11410 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11412         [BZ #3944]
11413         * time/strptime_l.c (__strptime_internal): Set have_mon for
11414         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11415         have been computed from tm_yday and tm_year.  Don't crash
11416         in day_of_the_week or day_of_the_year if not have_mon
11417         and tm_mon contains bogus value.
11418         * time/Makefile (tests): Add tst-strptime3.
11419         * time/tst-strptime3.c: New test.
11421 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11423         [BZ #3957]
11424         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11425         bit for RE_HAT_LISTS_NOT_NEWLINE.
11426         (build_charclass_op): Remove bogus comment.
11427         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11428         * posix/bug-regex27.c: New test.
11429         * posix/bug-regex28.c: New test.
11431 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11433         * po/sv.po: Update from translation team.
11435 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11437         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11439 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11441         * include/locale.h (__uselocale): Add libc_hidden_proto.
11442         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11444         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11445         gettimeofday.
11447 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11449         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11450         returning.
11451         (PTR_DEMANGLE): Real definition now that it's not the same as
11452         PRT_MANGLE anymore.
11453         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11455         * string/strerror_l.c: New file.
11456         * string/Makefile (routines): Add strerror_l.
11457         * string/string.h: Declare strerror_l.
11458         * string/Versions: Export strerror_l for GLIBC_2.6.
11460 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11462         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11463         as parameter.  Construct request record.  Try sending request
11464         before the first poll use, it usually succeeds.  Adjust all
11465         callers.
11466         * nscd/nscd-client.h: Define MAXKEYLEN.
11467         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11469 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11471         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11472         from return value.
11473         * nscd/nscd_helper.c: Include string.h.
11474         (__nscd_cache_search): Remove const qualifier from return value.
11475         On strict alignment architectures check hash entry and data head
11476         alignment.
11477         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11478         mmapped data during GC cycle contains garbage.  If
11479         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11480         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11481         dropped to 0.
11482         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11483         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11484         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11485         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11486         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11488 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11490         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11492 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11494         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11495         names not numbers in cfi_*.
11497 2007-01-26  Andreas Jaeger  <aj@suse.de>
11499         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11500         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11501         Correct values of PER_HPUX and PER_OSF4.
11503 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11505         * elf/dl-minimal.c: Undefine _itoa first.
11506         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11507         * malloc/mtrace.c: Revert last change.
11508         * posix/wordexp.c: Likewise.
11510 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11512         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11513         and __geode__ to the list of i486+ CPUs.
11514         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11516 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11518         * stdio-common/_itoa.c: Include <limits.h>.
11519         * stdio-common/_itowa.c: Likewise.
11521 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11523         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11524         platforms.
11525         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11526         64-bit platforms.
11527         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11528         possible.
11529         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11530         if possible.
11532         [BZ #3902]
11533         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11534         * stdio-common/Makefile (tests): Add bug17.
11535         * stdio-common/bug17.c: New file.
11537 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11539         * iconvdata/brf.c: New file.
11540         * iconvdata/testdata/BRF: New file.
11541         * iconvdata/testdata/BRF..UTF8: New file.
11542         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11543         * iconvdata/Makefile: Add rules to build BRF.
11544         * iconvdata/TESTS: Add BRF entry.
11545         * iconvdata/gconv-modules: Likewise.
11546         * iconvdata/tst-tables.sh: Likewise.
11548 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11550         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11551         type `long long int', not `long int'.
11552         (wcstoq): Likewise.
11554 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11556         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11557         of values on 64-bit platforms which are too large.
11559 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11560             Joe Kerian  <jkerian@us.us.ibm.com>
11562         [BZ #2749]
11563         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11564         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11565         (__copysignl): Use signbit() for comparison.
11566         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11567         SET_LDOUBLE_WORDS64.
11569         [BZ #2423, #2749]
11570         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11571         (__ceill): Remove calls to fegetround(), fesetround().
11572         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11576 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11578         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11580         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11582 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11584         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11585         demangle pointer.
11586         * csu/libc-start.c: Likewise.
11588 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11590         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11591         really work anyway.
11593 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11595         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11596         users.
11597         (handle_request): Remove unnecessary tests.
11599         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11601 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11603         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11604         workbits in semi-raw fraction.
11606         * math/test-misc.c: Add new tests.
11608 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11610         * math/basic-test.c: Include test-skeleton.c.
11611         (TEST_TRUNC): Define.
11612         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11613         (main): Rename to ...
11614         (do_test): ...this.  Run new tests.
11615         (TEST_FUNCTION): Define.
11617 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11618             Joe Kerian  <jkerian@us.us.ibm.com>
11620         [BZ #2749]
11621         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11622         handling for high words.
11623         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11624         and overflow for infinity.
11626 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11628         * nscd/connections.c (handle_request): Add a __builtin_expect.
11630         * nscd/connections.c (serv2db): Change type into structure which
11631         also says whether this is a request for data.  Renamed to
11632         servinfo.  All users changed.
11633         (handle_request): Much simpler test whether we should search the cache.
11635         * nscd/connections.c (handle_request): Fix thinko in selinux test
11636         invocation.
11638         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11639         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11640         it before getting dl_load_lock and then relock.
11641         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11642         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11643         case we unlocked the scope.
11644         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11645         _dl_lookup_symbol_x in case we locked the scope.
11646         (_dl_profile_fixup): Likewise.
11647         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11648         set DL_LOOKUP_SCOPE_LOCK.
11650 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11652         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11653         CFLAGS-getsrvbynpt_r.c.
11654         * nscd/getsrvbynm_r.c: New file.
11655         * nscd/getsrvbypt_r.c: New file.
11656         * nscd/nscd_getserv_r.c: New file.
11657         * nscd/servicescache.c: New file.
11658         * nscd/Makefile (routines): Add nscd_getserv_r.
11659         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11660         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11661         CFLAGS-getsrvbypt_r.c.
11662         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11663         table.  Add entries for services database.
11664         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11665         services database.
11666         (dbs): Add .reset_res and servdb initialization.
11667         (serv2db): Add entries for services database.
11668         (verify_persistent_db): Accept dbnr == servdb.
11669         (invalidate_cache): Rewrite database name recognition to use a table.
11670         Call res_init() if .reset_res is set for database.
11671         (handle_request): Add code to handle services database.
11672         * nscd/gai.c: Don't define __getservbyname_r.
11673         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11674         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11675         (serv_response_header): Define.
11676         (struct datahead): Add serv_response_header member.
11677         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11678         using table.
11679         * nscd/nscd.conf: Add entries for services database.
11680         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11681         Declare serv_iov_disabled.
11682         Declare addservbyname, readdservbyname, addservbyport, and
11683         readdservbyport.
11684         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11685         (find_db): Fix error message.
11686         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11687         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11688         * nscd/selinux.c (perms): Add entries for services database.
11689         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11690         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11692         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11693         * nscd/hstcache.c: Likewise.
11694         * nscd/pwdcache.c: Likewise.
11696         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11697         computation of keylen.
11699         * include/string.h: Only redefine strndupa if this is really for
11700         libc code.
11702 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11704         * nscd/nscd_gethst_r.c: Minor cleanups.
11706         * nscd/connections.c (handle_request): Check selinux permissions
11707         for all non-admin commands.
11709         * sysdeps/i386/i486/bits/atomic.h: Define
11710         atomic_compare_and_exchange_val_acq,
11711         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11712         using __sync_* built-ins for gcc >= 4.1.
11713         * sysdeps/x86_64/bits/atomic.h: Likewise.
11715         [BZ #3840]
11716         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11717         and .oS.d files.
11719 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11721         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11722         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11723         (do_test): Check errno and exit(0) if ENOSYS.
11725 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11727         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11728         thousands separators.
11729         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11730         * stdlib/tst-strtod4.c: New test.
11732         [BZ #3855]
11733         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11734         hexadecimal digit should accept just the initial 0.
11735         * stdlib/tst-strtod2.c (tests): New variable.
11736         (do_test): Run several tests rather than just one.
11738 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11740         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11741         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11743 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11745         * io/fts.c: Make sure fts_cur is always valid after return from
11746         fts_read.
11747         Patch by Miloslav Trmac <mitr@redhat.com>.
11749 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11751         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11752         (R_MIPS_NUM): Bump by 1.
11754 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11756         * posix/execvp.c: Include alloca.h.
11757         (allocate_scripts_argv): Renamed to...
11758         (scripts_argv): ... this.  Don't allocate buffer here nor count
11759         arguments.
11760         (execvp): Use alloca if possible.
11761         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11762         * posix/tst-vfork3.c: New test.
11764 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11766         * string/Makefile (tst-strxfrm2-ENV): Define.
11767         * stdlib/Makefile (tst-strtod3-ENV): Define.
11769 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11771         * posix/getconf.c: Update copyright year.
11772         * nss/getent.c: Likewise.
11773         * iconv/iconvconfig.c: Likewise.
11774         * iconv/iconv_prog.c: Likewise.
11775         * elf/ldconfig.c: Likewise.
11776         * catgets/gencat.c: Likewise.
11777         * csu/version.c: Likewise.
11778         * elf/ldd.bash.in: Likewise.
11779         * elf/sprof.c (print_version): Likewise.
11780         * locale/programs/locale.c: Likewise.
11781         * locale/programs/localedef.c: Likewise.
11782         * nscd/nscd.c (print_version): Likewise.
11783         * debug/xtrace.sh: Likewise.
11784         * malloc/memusage.sh: Likewise.
11785         * malloc/mtrace.pl: Likewise.
11786         * debug/catchsegv.sh: Likewise.
11788 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11790         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11791         attempts.
11793 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11795         * posix/wordexp.c: Remove some unnecessary tests.
11797 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11799         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11800         blacklist the group till after we look it up.
11802 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11804         * include/atomic.h (atomic_forced_read): New macro.
11806 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11808         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11810 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11812         * nss/getXXbyYY_r.c: Include atomic.h.
11813         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11814         add atomic_write_barrier () in between.
11816         * stdlib/Makefile (tests): Add tst-makecontext.
11817         * stdlib/tst-makecontext.c: New test.
11819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11820         (__makecontext): Don't realign uc_mcontext.uc_regs.
11822 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11824         * elf/dl-support.c: Include dl-procinfo.h.
11825         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11826         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11827         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11828         Define.
11829         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11830         hardcoded constants.
11831         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11832         PPC_PLATFORM_* macros for array designators.
11834 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11836         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11837         names to the beginning.
11838         (_dl_powerpc_platforms): Add "power6x".
11839         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11840         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11841         (_DL_PLATFORMS_COUNT): Increase.
11842         (_dl_string_platform): Handle power6x case.
11843         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11844         PPC_FEATURE_POWER6_EXT): Define.
11845         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11847 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11849         [BZ #3747]
11850         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11851         [-2^31 .. 2^31) range.
11852         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11853         targets.
11854         * stdlib/tst-rand48-2.c: New test.
11855         * stdlib/Makefile (tests): Add tst-rand48-2.
11857 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11859         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11861 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11863         * misc/tst-pselect.c (do_test): Make sure the helper process is
11864         terminating when the test is aborted.
11866 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11868         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11869         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11870         Handle relatime mount option.
11872         [BZ #2337]
11873         * libio/Makefile (tests): Add tst-setvbuf1.
11874         * libio/tst-setvbuf1.c: New file.
11876 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11878         [BZ #2337]
11879         * libio/genops.c (__uflow): Fix a typo.
11880         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11881         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11882         the narrow buffer size.
11884 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11886         [BZ #2337]
11887         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11888         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11889         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11890         in _flags.
11891         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11892         _IO_wstr_finish): Likewise.
11893         * libio/wmemstream.c (open_wmemstream): Likewise.
11894         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11895         even for wide streams.
11897 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11900         kernel-features.h.
11902 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11904         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11905         separators also if no non-zero digits found.
11906         * stdlib/Makefile (tests): Add tst-strtod3.
11908 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11910         [BZ #3632]
11911         * include/features.h: Fix comment about default value for
11912         _POSIX_C_SOURCE.
11914         [BZ #3664]
11915         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11916         empty parsed strings.
11917         * stdlib/Makefile (tests): Add tst-strtod2.
11918         * stdlib/tst-strtod2.c: New file.
11920         [BZ #3673]
11921         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11922         computation.
11923         * stdlib/Makefile (tests): Add tst-atof2.
11924         * stdlib/tst-atof2.c: New file.
11926         [BZ #3674]
11927         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11928         correctly if removing trailing zero of hex-float.
11929         * stdlib/Makefile (tests): Add tst-atof1.
11930         * stdlib/tst-atof1.c: New file.
11932 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11934         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11935         Start searching for next comma at p rather than rest.
11936         * misc/Makefile (tests): Add tst-mntent2.
11937         * misc/tst-mntent2.c: New test.
11939         * misc/getusershell.c (initshells): Check for integer overflows.
11940         Make strings buffer one bigger as fgets always succeeds when second
11941         argument is 1.  Don't use calloc for shells array.  Disallow
11942         / as shell.
11944 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11946         * malloc/memusage.c: Handle realloc with new size of zero and
11947         non-NULL pointer correctly.
11948         (me): Really write first record twice.
11949         (struct entry): Make format bi-arch safe.
11950         (dest): Write out more realloc statistics.
11951         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11953 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11955         * nis/nis_subr.c (nis_getnames): Revert last change.
11957 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11959         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11960         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11961         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11962         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11963         ENOTTY.
11964         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11965         * io/tst-ttyname_r.c: New test.
11967 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11969         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11971 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11973         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11974         jump table entries.
11976 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11978         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11979         `clone' function to ensure proper unwinding stop of gdb.
11980         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11982 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11984         * nscd/nscd.init: Remove obsolete and commented-out -S option
11985         handling.
11987 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11989         [BZ #3514]
11990         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11992         [BZ #3515]
11993         * manual/string.texi (strtok): Remove duplicate paragraph.
11995 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11997         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11998         libgcc not supporting `rflags' unwinding (register # >= 17).
12000 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12002         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12003         succeeded.
12005 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12006             Jakub Jelinek  <jakub@redhat.com>
12007             Jan Kratochvil  <jan.kratochvil@redhat.com>
12009         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12010         unwind information.
12011         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12012         'restore_rt' even in the 'signal' directory.
12013         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12015 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12017         [BZ #3559]
12018         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12019         malloc crashed.  Don't allocate memory unnecessarily in each
12020         loop.
12022 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12024         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12026 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12028         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12030 2006-11-18  Bruno Haible  <bruno@clisp.org>
12032         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12033         __sysconf only after having tried to call getgroups32.
12035 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12037         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12038         addresses for IPv4 queries if they can be mapped.
12040 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12042         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12043         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12044         (signmask): Add .size directive.
12045         (othermask): Add .type directive.
12047 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12049         * po/nl.po: Update from translation team.
12051         * timezone/zdump.c: Redo fix for BZ #3137.
12053 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12055         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12056         to first_unused after parsing :include: file.
12058 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12060         * timezone/africa: Update from tzdata2006o.
12061         * timezone/antarctica: Likewise.
12062         * timezone/asia: Likewise.
12063         * timezone/australasia: Likewise.
12064         * timezone/backward: Likewise.
12065         * timezone/europe: Likewise.
12066         * timezone/iso3166.tab: Likewise.
12067         * timezone/northamerica: Likewise.
12068         * timezone/southamerica: Likewise.
12069         * timezone/zone.tab: Likewise.
12071         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12072         on machines with 64-bit time_t.
12074         * timezone/checktab.awk: Update from tzcode2006o.
12075         * timezone/ialloc.c: Likewise.
12076         * timezone/private.h: Likewise.
12077         * timezone/scheck.c: Likewise.
12078         * timezone/tzfile.h: Likewise.
12079         * timezone/tzselect.ksh: Likewise.
12080         * timezone/zdump.c: Likewise.
12081         * timezone/zic.c: Likewise.
12083         [BZ #3483]
12084         * elf/ldconfig.c (main): Call setlocale and textdomain.
12085         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12087         [BZ #3480]
12088         * manual/argp.texi: Fix typos.
12089         * manual/charset.texi: Likewise.
12090         * manual/errno.texi: Likewise.
12091         * manual/filesys.texi: Likewise.
12092         * manual/lang.texi: Likewise.
12093         * manual/maint.texi: Likewise.
12094         * manual/memory.texi: Likewise.
12095         * manual/message.texi: Likewise.
12096         * manual/resource.texi: Likewise.
12097         * manual/search.texi: Likewise.
12098         * manual/signal.texi: Likewise.
12099         * manual/startup.texi: Likewise.
12100         * manual/stdio.texi: Likewise.
12101         * manual/sysinfo.texi: Likewise.
12102         * manual/syslog.texi: Likewise.
12103         * manual/time.texi: Likewise.
12104         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12106         [BZ #3465]
12107         * sunrpc/clnt_raw.c: Minimal message improvements.
12108         * sunrpc/pm_getmaps.c: Likewise.
12109         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12110         * nis/nis_print_group_entry.c: Likewise.
12111         * locale/programs/repertoire.c: Likewise.
12112         * locale/programs/charmap.c: Likewise.
12113         * malloc/memusage.sh: Likewise.
12114         * elf/dl-deps.c: Likewise.
12115         * locale/programs/ld-collate.c: Likewise.
12116         * libio/vswprintf.c: Likewise.
12117         * malloc/memusagestat.c: Likewise.
12118         * sunrpc/auth_unix.c: Likewise.
12119         * sunrpc/rpc_main.c: Likewise.
12120         * nscd/cache.c: Likewise.
12121         * locale/programs/repertoire.c: Unify output messages.
12122         * locale/programs/charmap.c: Likewise.
12123         * locale/programs/ld-ctype.c: Likewise.
12124         * locale/programs/ld-monetary.c: Likewise.
12125         * locale/programs/ld-numeric.c: Likewise.
12126         * locale/programs/ld-time.c: Likewise.
12127         * elf/ldconfig.c: Likewise.
12128         * nscd/selinux.c: Likewise.
12129         * elf/cache.c: Likewise.
12130         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12132         [BZ #3451]
12133         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12134         change atomic.
12135         (ceil): Likewise.
12137 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12139         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12140         if N is one bigger than return value.
12141         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12142         and l1 last arguments, if buf is defined, verify the return value
12143         equals to strlen (buf) and verify no byte beyond passed length
12144         is modified.
12146 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12148         * po/sv.po: Update from translation team.
12150 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12152         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12153         noinline attribute.
12155 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12157         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12158         noinline attribute.
12160         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12161         Use __new_sys_siglist instead of _sys_siglist_internal as
12162         second macro argument.
12163         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12164         strong_alias.
12166 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12168         [BZ #3493]
12169         * posix/unistd.h (sysconf): Remove const attribute.
12171         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12172         temporary or deprecated addresses.
12173         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12175         * string/Makefile (tests): Add tst-strxfrm2.
12176         * string/tst-strxfrm2.c: New file.
12178 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12180         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12181         rather than r->r_brk.
12183 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12185         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12186         optimization even if needed > n.
12188         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12189         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12190         return false, otherwise return true.
12191         (cache_rpath): Return decompose_rpath return value.
12193 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12195         * include/libc-symbols.h (declare_symbol): Rename to...
12196         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12197         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12198         .size directive.
12199         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12200         changes.
12201         * sysdeps/gnu/siglist.c: Likewise.
12203 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12205         * sysdeps/powerpc/fpu/bits/mathinline.h
12206         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12207         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12209 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12211         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12212         Update handling of cache descriptor 0x49 for new models.
12213         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12214         Likewise.
12216 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12218         * malloc/memusage.c (dest): Reset not_me back to false after
12219         printing statistics.
12221 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12223         * configure.in: Work around ld --help change and avoid -z relro
12224         test completely if the architecture doesn't care about security.
12226 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12228         * po/sv.po: Update from translation team.
12230 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12232         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12233         generate compatibility version.
12235 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12237         * configure.in: Relax -z relro requirement a bit.
12239         * po/sv.po: Update from translation team.
12241 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12243         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12244         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12245         * elf/dl-close.c (_dl_close_worker): Likewise.
12246         * elf/dl-open.c (_dl_open_worker): Likewise.
12247         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12249 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12251         * configure.in: Require assembler support for visibility, compiler
12252         support for visibility and aliases, linker support for various -z
12253         options.
12254         * Makeconfig: Remove conditional code which now is unnecessary.
12255         * config.h.in: Likewise.
12256         * config.make.in: Likewise.
12257         * dlfcn/Makefile: Likewise.
12258         * elf/Makefile: Likewise.
12259         * elf/dl-load.c: Likewise.
12260         * elf/rtld.c: Likewise.
12261         * include/libc-symbols.h: Likewise.
12262         * include/stdio.h: Likewise.
12263         * io/Makefile: Likewise.
12264         * io/fstat.c: Likewise.
12265         * io/fstat64.c: Likewise.
12266         * io/fstatat.c: Likewise.
12267         * io/fstatat64.c: Likewise.
12268         * io/lstat.c: Likewise.
12269         * io/lstat64.c: Likewise.
12270         * io/mknod.c: Likewise.
12271         * io/mknodat.c: Likewise.
12272         * io/stat.c: Likewise.
12273         * io/stat64.c: Likewise.
12274         * libio/stdio.c: Likewise.
12275         * nscd/Makefile: Likewise.
12276         * stdlib/Makefile: Likewise.
12277         * stdlib/atexit.c: Likewise.
12278         * sysdeps/generic/ldsodefs.h: Likewise.
12279         * sysdeps/i386/dl-machine.h: Likewise.
12280         * sysdeps/i386/sysdep.h: Likewise.
12281         * sysdeps/i386/i686/memcmp.S: Likewise.
12282         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12283         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12284         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12286         * Makerules: USE_TLS support is now default.
12287         * tls.make.c: Likewise.
12288         * csu/Versions: Likewise.
12289         * csu/libc-start.c: Likewise.
12290         * csu/libc-tls.c: Likewise.
12291         * csu/version.c: Likewise.
12292         * dlfcn/dlinfo.c: Likewise.
12293         * elf/dl-addr.c: Likewise.
12294         * elf/dl-cache.c: Likewise.
12295         * elf/dl-close.c: Likewise.
12296         * elf/dl-iteratephdr.c: Likewise.
12297         * elf/dl-load.c: Likewise.
12298         * elf/dl-lookup.c: Likewise.
12299         * elf/dl-object.c: Likewise.
12300         * elf/dl-open.c: Likewise.
12301         * elf/dl-reloc.c: Likewise.
12302         * elf/dl-support.c: Likewise.
12303         * elf/dl-sym.c: Likewise.
12304         * elf/dl-sysdep.c: Likewise.
12305         * elf/dl-tls.c: Likewise.
12306         * elf/ldconfig.c: Likewise.
12307         * elf/rtld.c: Likewise.
12308         * elf/tst-tls-dlinfo.c: Likewise.
12309         * elf/tst-tls1.c: Likewise.
12310         * elf/tst-tls10.h: Likewise.
12311         * elf/tst-tls14.c: Likewise.
12312         * elf/tst-tls2.c: Likewise.
12313         * elf/tst-tls3.c: Likewise.
12314         * elf/tst-tls4.c: Likewise.
12315         * elf/tst-tls5.c: Likewise.
12316         * elf/tst-tls6.c: Likewise.
12317         * elf/tst-tls7.c: Likewise.
12318         * elf/tst-tls8.c: Likewise.
12319         * elf/tst-tls9.c: Likewise.
12320         * elf/tst-tlsmod1.c: Likewise.
12321         * elf/tst-tlsmod13.c: Likewise.
12322         * elf/tst-tlsmod13a.c: Likewise.
12323         * elf/tst-tlsmod14a.c: Likewise.
12324         * elf/tst-tlsmod2.c: Likewise.
12325         * elf/tst-tlsmod3.c: Likewise.
12326         * elf/tst-tlsmod4.c: Likewise.
12327         * elf/tst-tlsmod5.c: Likewise.
12328         * elf/tst-tlsmod6.c: Likewise.
12329         * include/errno.h: Likewise.
12330         * include/link.h: Likewise.
12331         * include/tls.h: Likewise.
12332         * locale/global-locale.c: Likewise.
12333         * locale/localeinfo.h: Likewise.
12334         * malloc/arena.c: Likewise.
12335         * malloc/hooks.c: Likewise.
12336         * malloc/malloc.c: Likewise.
12337         * resolv/Versions: Likewise.
12338         * sysdeps/alpha/dl-machine.h: Likewise.
12339         * sysdeps/alpha/libc-tls.c: Likewise.
12340         * sysdeps/generic/ldsodefs.h: Likewise.
12341         * sysdeps/generic/tls.h: Likewise.
12342         * sysdeps/i386/dl-machine.h: Likewise.
12343         * sysdeps/ia64/dl-machine.h: Likewise.
12344         * sysdeps/ia64/libc-tls.c: Likewise.
12345         * sysdeps/mach/hurd/fork.c: Likewise.
12346         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12347         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12348         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12349         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12350         * sysdeps/s390/libc-tls.c: Likewise.
12351         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12352         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12353         * sysdeps/sh/dl-machine.h: Likewise.
12354         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12355         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12356         * sysdeps/x86_64/dl-machine.h: Likewise.
12358         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12359         split out locking and parameter checking.
12360         (_dl_close): Call _dl_close_worker after locking and checking.
12361         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12362         _dl_close.
12363         * elf/Makefile: Add rules to build and run tst-thrlock.
12364         * elf/tst-thrlock.c:  New file.
12366         [BZ #3426]
12367         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12368         reality.
12370         [BZ #3429]
12371         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12372         we are sure we do not need it anymore for _dl_close.  Also move
12373         the asserts inside the lock region.
12374         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12376 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12378         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12379         argument.
12380         (_dl_lookup_symbol_x): Adjust caller.
12382         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12383         _ns_global_scope.
12384         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12386         * elf/dl-libc.c: Revert l_scope name changes.
12387         * elf/dl-load.c: Likewise.
12388         * elf/dl-object.c: Likewise.
12389         * elf/rtld.c: Likewise.
12390         * elf/dl-close.c (_dl_close): Likewise.
12391         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12392         always use __rtld_mrlock_{change,done}.  Always free old scope list
12393         here if not l_scope_mem.
12394         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12395         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12396         the lookup and __rtld_mrlock_unlock it after the lookup.
12397         * elf/dl-sym.c: Likewise.
12398         * include/link.h (struct r_scoperec): Remove.
12399         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12400         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12402 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12404         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12406 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12408         * configure.in: Disable building profile libraries by default.
12410 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12412         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12413         as signed longs, check for x_base + pos overflow.
12414         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12415         * sunrpc/tst-xdrmem2.c: New test.
12417 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12419         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12420         _dl_lookup_symbol_x code.
12422 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12424         * elf/dl-runtime.c: Include sysdep-cancel.h.
12425         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12426         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12427         instead of catomic_* macros.
12428         * elf/dl-sym.c: Include sysdep-cancel.h.
12429         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12430         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12431         * elf/dl-close.c: Include sysdep-cancel.h.
12432         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12433         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12434         * elf/dl-open.c: Include sysdep-cancel.h.
12435         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12436         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12438 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12440         [BZ #3313]
12441         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12442         fastbin rather than end of fastbin array.
12444 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12446         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12447         body macro.
12448         * sysdeps/x86_64/bits/atomic.h
12449         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12450         (catomic_decrement): Use correct body macro.
12452 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12454         * include/atomic.h: Add a unique prefix to all local variables
12455         in macros.
12456         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12458 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12460         [BZ #3369]
12461         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12462         and 7.
12464 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12466         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12468 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12470         [BZ #3313]
12471         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12472         determine highest fast bin to consolidate, always look into all of
12473         them.
12474         (do_check_malloc_state): Only require for empty bins for large
12475         sizes in main arena.
12477         * libio/stdio.h: Add more __wur attributes.
12479         * elf/dl-minimal.c (realloc): Optimize last patch.
12481 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12483         [BZ #3352]
12484         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12485         and use memcpy() if it does.
12487 2006-11-12  Andreas Jaeger  <aj@suse.de>
12489         [BZ #2510]
12490         * manual/search.texi (Hash Search Function): Clarify.
12491         (Array Search Function): Clarify.
12493 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12495         [BZ #2830]
12496         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12497         shifting.
12498         * math/atest-exp2.c (read_mpn_hex): Likewise.
12499         * math/atest-sincos.c (main): Likewise.
12501 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12503         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12504         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12505         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12506         version GLIBC_2.6.
12507         * Versions.def: Add GLIBC_2.6 for libc.
12509         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12511         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12513 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12515         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12517         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12519         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12520         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12522 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12524         * include/atomic.c: Define catomic_* operations.
12525         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12526         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12527         * malloc/memusage.c: Likewise.
12528         * gmon/mcount.c: Likewise.
12529         * elf/dl-close.c: Likewise.
12530         * elf/dl-open.c: Likewise.
12531         * elf/dl-profile.c: Likewise.
12532         * elf/dl-sym.c: Likewise.
12533         * elf/dl-runtime.c: Likewise.
12534         * elf/dl-fptr.c: Likewise.
12535         * resolv/res_libc.c: Likewise.
12537 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12539         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12540         components which lack them.
12542         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12543         at least one entry consisting of the parameter concatenated with
12544         the domain.
12546 2006-10-10  Roland McGrath  <roland@frob.com>
12548         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12549         * sysdeps/mach/hurd/futimes.c: Likewise.
12550         * sysdeps/mach/hurd/lutimes.c: Likewise.
12552 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12553             Jakub Jelinek  <jakub@redhat.com>
12555         Implement reference counting of scope records.
12556         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12557         from the list in objects which remain.  Always allocate new scope
12558         record.
12559         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12560         don't resize, allocate a new one.
12561         * elf/dl-runtime.c: Update reference counters before using a scope
12562         array.
12563         * elf/dl-sym.c: Likewise.
12564         * elf/dl-libc.c: Adjust for l_scope name change.
12565         * elf/dl-load.c: Likewise.
12566         * elf/dl-object.c: Likewise.
12567         * elf/rtld.c: Likewise.
12568         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12569         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12570         Add l_scoperec_lock.
12571         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12572         * sysdeps/generic/rtld-lowlevel.h: New file.
12574         * include/atomic.h: Rename atomic_and to atomic_and_val and
12575         atomic_or to atomic_or_val.  Define new macros atomic_and and
12576         atomic_or which do not return values.
12577         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12578         Various cleanups.
12579         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12581         * po/sv.po: Update from translation team.
12583 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12585         * Versions.def: Add GLIBC_2.6 to libpthread.
12587         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12588         (versioned_symbol): Likewise.
12589         (compat_symbol): Likewise.
12591         * po/tr.po: Update from translation team.
12593 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12595         * nis/Banner: Removed.  It's been integral part forever and the
12596         author info is incomplete anyway.
12597         * libio/Banner: Likewise.
12599         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12600         code, make sure the nis_freeresult call doesn't crash and that the
12601         result is reported correctly.
12603 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12605         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12606         when callback is NULL.
12608         * nis/Versions (libnss_nisplus): Add
12609         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12610         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12611         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12612         _nss_create_tablename): Rename to...
12613         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12614         ... these.  No longer static.
12615         (internal_setgrent): Adjust users.
12616         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12617         Don't use locking around _nss_grp_create_tablename call.
12618         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12620 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12622         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12624 2006-10-06  Andreas Jaeger  <aj@suse.de>
12626         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12628 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12630         * po/pl.po: Update from translation team.
12632         * nscd/nscd.c (main): Fix typo in message.
12633         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12635 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12637         [BZ #3291]
12638         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12639         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12640         (__sigprocmask): Define.
12642 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12644         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12645         used.
12647 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12649         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12650         in oldtotal and newtotal calculation.
12651         * nscd/nscd-client.h (struct mapped_database): Add datasize
12652         field.
12653         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12654         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12655         increased.
12656         (__nscd_cache_search): Add checks to make sure we never reference
12657         data beyond the current mapping.
12659 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12661         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12662         variables const to avoid compiler warnings.
12664         * io/fts.c (fts_close): Remove redundant checks.
12665         (fts_build): Likewise.
12666         (fts_palloc): Likewise.
12668         * manual/message.texi (Advanced gettext functions,
12669         Using gettextized software): Fix typos.
12671 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12673         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12674         explain why there are no leaks.
12676 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12678         * libio/wmemstream.c: Include <wchar.h>.
12679         * libio/bug-wmemstream1.c: Likewise.
12680         * libio/tst-wmemstream1.c: Likewise.
12681         * libio/tst-wmemstream2.c: Likewise.
12683         * version.h (RELEASE): Bump to 2.5.
12684         * README: Regenerated.
12686         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12688         [BZ #3273]
12689         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12690         found no group members.
12691         Patch by Petr Baudis.
12693 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12695         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12696         assert bootstrap_map.l_tls_modid is zero.
12697         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12698         if USE___THREAD.
12700 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12702         * libio/stdio.h: Move open_wmemstream prototype to ...
12703         * wcsmbs/wchar.h: ... here.
12705 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12707         [BZ #3252]
12708         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12709         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12710         __{,l}chown to handle the rest.
12711         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12712         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12713         __{,l}chown to handle the rest.
12714         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12715         i386/fchownat.c.
12716         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12717         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12719         [BZ #3253]
12720         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12721         time, rather allocate increasingly bigger arrays of pointers, if
12722         possible with alloca, if too large with malloc.
12724 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12726         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12728         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12730 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12732         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12733         home addresses.
12734         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12735         IFA_F_HOMEADDRESS flag for interfaces.
12736         * include/ifaddrs.h (struct in6addrinfo): Define
12737         in6ai_homeaddress.
12739 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12741         [BZ #3225]
12742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12743         PTR_DEMANGLE3): Define.
12744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12745         PTR_DEMANGLE3): Likewise.
12746         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12747         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12748         Likewise.
12749         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12751 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12753         * po/libc.pot: Regenerated.
12754         * po/be.po: Updated.
12755         * po/ca.po: Likewise.
12756         * po/cs.po: Likewise.
12757         * po/da.po: Likewise.
12758         * po/de.po: Likewise.
12759         * po/el.po: Likewise.
12760         * po/en_GB.po: Likewise.
12761         * po/es.po: Likewise.
12762         * po/fi.po: Likewise.
12763         * po/fr.po: Likewise.
12764         * po/gl.po: Likewise.
12765         * po/hr.po: Likewise.
12766         * po/hu.po: Likewise.
12767         * po/ja.po: Likewise.
12768         * po/ko.po: Likewise.
12769         * po/nb.po: Likewise.
12770         * po/nl.po: Likewise.
12771         * po/pl.po: Likewise.
12772         * po/pt_BR.po: Likewise.
12773         * po/ru.po: Likewise.
12774         * po/rw.po: Likewise.
12775         * po/sk.po: Likewise.
12776         * po/sv.po: Likewise.
12777         * po/tr.po: Likewise.
12778         * po/zh_CN.po: Likewise.
12779         * po/zh_TW.po: Likewise.
12781         [BZ #3137]
12782         * iconv/iconv_prog.c (main): Fix spelling in error message.
12783         * iconv/iconvconfig.c (main): Likewise.
12784         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12785         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12786         * locale/programs/localedef.c (main): Likewise.
12787         * locale/programs/repertoire.c (repertoire_read): Likewise.
12788         * timezone/zdump.c (main): Likewise.
12789         * nscd/connections.c (handle_request): Fix spelling in log message.
12790         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12792 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12794         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12795         interfaces.
12797 2006-09-20  Andreas Jaeger  <aj@suse.de>
12799         * math/libm-test.inc (lrint_test_upward): Fix typo.
12801 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12803         [BZ #2592]
12804         * math/libm-test.inc (lrint_test_tonearest): New function.
12805         (lrint_test_towardzero): New function.
12806         (lrint_test_downward): New function.
12807         (lrint_test_upward): New function.
12808         (main): Run these new tests.
12809         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12810         of values near to 0.
12811         (two52): Use double not long double.
12812         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12813         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12814         (two23): Use float not double.
12815         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12816         (two23): Use float not double.
12817         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12818         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12819         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12820         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12822 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12824         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12825         Cast sp to unsigned long to avoid compiler warning.
12826         Use __makecontext_ret function instead of a trampoline on the stack.
12827         (__makecontext_ret): New function.
12828         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12830 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12832         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12833         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12834         bits.
12836 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12838         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12839         sure no reference to the unloaded map's search list remains in the
12840         dependency's scope.
12842 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12844         * elf/Makefile: Add rules to build and run unload7 test.
12845         * elf/unload7.c: New test.
12846         * elf/unload7mod1.c: New file.
12847         * elf/unload7mod2.c: New file.
12849 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12851         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12852         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12853         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12854         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12855         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12856         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12857         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12858         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12859         PTRACE_GETEVENTMSG): Likewise.
12860         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12861         values.
12863 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12865         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12866         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12867         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12868         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12870 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12872         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12873         write '\0' to the fd.
12874         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12875         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12876         Change regs to unsigned long pointer from unsigned int, fix fscr
12877         offset.
12879 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12881         * io/Makefile (CFLAGS-fstatat.c): Set.
12882         (CFLAGS-fstatat64.c): Likewise.
12883         (CFLAGS-mknodat.c): Likewise.
12885         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12886         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12888         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12890 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12891             Steven Munroe  <sjmunroe@us.ibm.com>
12893         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12894         names to the beginning.  Rename "cell" to "cellbe".
12895         (_dl_powerpc_platforms): New.
12896         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12897         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12898         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12899         (_DL_HWCAP_PLATFORM): Define to new mask.
12900         (_dl_platform_string, _dl_string_platform): New functions.
12901         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12902         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12904 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12906         [BZ #2526]
12907         * README.libm: Fix a thinko in sqrt algorithm description.
12909         [BZ #3143]
12910         * manual/string.texi (argz_delete): Fix prototype.
12911         Patch by <alpt@freaknet.org>.
12913 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12915         [BZ #3138]
12916         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12917         * io/tst-fcntl.c (do_prepare): Likewise.
12918         * posix/tst-exec.c (do_prepare): Likewise.
12919         * posix/tst-preadwrite.c (do_prepare): Likewise.
12920         * posix/tst-spawn.c (do_prepare): Likewise.
12921         * posix/tst-truncate.c (do_prepare): Likewise.
12922         * rt/tst-aio.c (do_prepare): Likewise.
12923         * rt/tst-aio64.c (do_prepare): Likewise.
12924         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12925         size_t.
12927 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12929         [BZ #2821]
12930         * time/mktime.c (guess_time_tm): Fix overflow detection.
12931         * time/Makefile (tests): Add bug-mktime1.
12932         * time/bug-mktime1.c: New file.
12934         [BZ #3189, #3188]
12935         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12936         (mremap): Likewise.
12938 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12940         [BZ #1006]
12941         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12942         Ensure relocation doesn't clobber any bits outside of the
12943         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12944         R_SPARC_HI22 and R_SPARC_H44.
12946         [BZ #2775]
12947         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12948         (long) (MINSIZE + nb - old_size) is positive.
12950         * malloc/arena.c (grow_heap): When growing bail even if new_size
12951         is negative.
12953         [BZ #3155]
12954         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12955         stack below r1.
12957 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12959         * posix/regex_internal.c (re_string_reconstruct): Handle
12960         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12961         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12962         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12963         re_string_context_at.
12964         * posix/Makefile: Add rules to build and run bug-regex26 test.
12965         * posix/bug-regex26.c: New test.
12967         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12968         rather than col_sym_free.  Move seqp declaration earlier.
12970         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12972 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12974         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12975         decl before first goto out.
12977 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12979         * Makerules (shlib.lds): If have-hash-style, put .hash section
12980         at the end of the RO segment.
12982 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12984         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12985         style hash table format is used.
12987 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12989         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12990         randomization rather than before.
12991         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12993 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12995         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12997         * malloc/malloc.c (_int_malloc): Use full list insert and not
12998         shortcut which assumes the list is empty for large requests
12999         too.
13001         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13003 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13005         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13006         and offout arguments to the prototype.
13007         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13008         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13009         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13010         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13011         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13012         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13013         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13014         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13016 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13018         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13020         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13021         dlopen parameters.
13023 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13025         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13026         only if herrno is NETDB_INTERNAL.  Handle errors other than
13027         ERANGE outside of the loops, handle TRY_AGAIN.
13029         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13030         if other's ctype category was missing.
13031         * locale/programs/ld-collate.c (collate_read): Return if
13032         copy_locale's collate category is missing.
13034 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13036         [BZ #2684]
13037         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13038         arenas if allocation failed.
13039         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13041 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13043         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13044         waste bins[0..1].
13045         (malloc_state): Reduce bins size by 2.
13046         (_int_malloc): Fix test for large enough buffer for early termination.
13047         When no unsorted block matches perfectly and an exiting block has
13048         to be split, use full list insert and not shortcut which assumes
13049         the list is empty.
13051         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13052         failure.
13054 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13056         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13057         do anything.
13059         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13060         symbol require exact match (these are PLTs).
13061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13062         (_dl_ppc64_addr_sym_match): Likewise.
13064         [BZ #2683]
13065         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13066         If symbol has a value use it.
13067         * elf/tst-dladdr1.c: New file.
13068         * elf/Makefile: Add rules to build and run tst-addr1.
13070 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13072         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13073         keeps failing and heap growth or new heap creation isn't
13074         successful either.
13075         * malloc/tst-malloc.c (main): Add new tests.
13077 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13079         [BZ #2734]
13080         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13081         as in the x86-64 code to use bswap.
13083 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13085         [BZ #2680]
13086         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13087         __USE_UNIX98.
13088         * posix/bits/unistd.h: Likewise.
13090 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13092         [BZ #2751]
13093         * string/strchr.c: Add cast to avoid warning.
13095 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13097         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13098         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13099         limit is needed to avoid the exploding of the address space
13100         requirement for secondary heaps.
13101         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13102         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13104 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13106         [BZ #3018]
13107         * Makerules (depfiles): Handle extra-test-objs the same as
13108         extra-objs.
13109         (common-mostlyclean): Likewise.
13110         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13111         instead.
13112         * elf/Makefile (extra-objs): Likewise.
13113         * stdlib/Makefile (extra-objs): Likewise.
13115 2006-08-14  Eric Blake  <ebb9@byu.net>
13117         [BZ #3044]
13118         * misc/error.h: Assume C89 or better.
13119         * misc/error.c: Likewise.
13121 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13123         [BZ #3040]
13124         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13125         __ASSUME_ATFCTS is defined.
13127 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13129         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13130         to sort in each call.
13132         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13133         is empty simply return and use next service.
13134         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13136         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13137         tells us when not finding a charmap file is an error.
13138         * locale/programs/charmap.h: Adjust charmap_read prototype.
13139         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13140         cannot find a charmap.
13141         * locale/programs/localedef.c (main): Adjust charmap_read call.
13143 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13145         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13146         sysdeps/posix/pause.c implementation instead.
13148 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13150         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13151         to EPERM.
13153 2006-08-13  Andreas Schwab  <schwab@suse.de>
13155         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13156         Don't clobber caller's LRSAVE.
13157         (_dl_prof_resolve): Likewise.
13159 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13161         [BZ #1996]
13162         * libio/memstream.c (open_memstream): Allocate initial buffer with
13163         calloc.
13164         * libio/wmemstream.c (open_wmemstream): Likewise.
13165         * libio/strops.c: Pretty printing.
13166         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13167         (enlarge_userbuf): New function.
13168         (_IO_str_seekoff): Call it if seek position is larger than current
13169         buffer.
13170         * libio/wstrops.c: Likewise.
13171         * libio/vasprintf.c: Add comment as to why we do not have to use
13172         calloc instead of malloc to allocate initial buffer.
13173         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13174         * libio/bug-memstream1.c: New file.
13175         * libio/bug-wmemstream1.c: New file.
13177 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13179         * libio/wstrops.c: Remove dead macro definitions and comments.
13180         * libio/strops.c: Likewise.
13182         [BZ #2764]
13183         * login/utmpname.c (__utmpname): Remove unnecessary test.
13185 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13187         [BZ #2832]
13188         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13189         0s from integers.
13191 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13193         [BZ #2987]
13194         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13195         for CPU clocks.
13196         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13197         setting of CPU clocks.
13199 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13201         [BZ #2841]
13202         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13203         since C99 requires the result to promote to 'int' when uint_least8_t
13204         and uint_least16_t promote to 'int'.
13206 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13208         [BZ #3013]
13209         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13210         lenght of one output field, correct bitmask creation.
13211         * locale/programs/ld-time.c: Add alignment.
13213         [BZ #2997]
13214         * misc/error.c: Add space between program name and message if file
13215         name is missing.
13217 2006-08-03  Eric Blake  <ebb9@byu.net>
13219         [BZ #2998]
13220         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13222 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13224         * malloc/memusagestat.c: Silence warnings.
13226         * malloc/malloc.c: Dynamically size mmap treshold if the program
13227         frees mmaped blocks.
13228         Patch by Valerie Henson and Arjan van de Ven.
13230 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13232         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13233         __USE_GNU.
13235         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13236         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13237         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13238         Only provide var definitions in strtol_l (or for *ull*
13239         in strtoll_l).
13241         * stdio-common/bug16.c (tests): New array.
13242         (do_tests): Allow the first hexadecimal digit
13243         to be 1, 2, 4 or 8.  Do 3 additional tests.
13245         * sysdeps/s390/fpu/libm-test-ulps: Update.
13247         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13248         fchownat syscall if available.
13249         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13250         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13251         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13253 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13255         * nis/nis_xdr.c: Avoid some function calls.
13257 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13258             Ulrich Drepper  <drepper@redhat.com>
13260         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13261         short cut if only one name component is stripped away.
13263 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13265         * nis/nis_call.c: Minor cleanups throughout.
13266         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13267         (first_shoot): Add search_parent_first parameter.  Only if it is set
13268         search parent server first.
13269         If directory for table found through cold start cache is not the same
13270         as referenced in the cache, don't use it.
13271         (__nisfind_server): Take additional parameter.  Pass it on to
13272         first_shoot.
13273         (__prepare_niscall): Adjust __nisfind_server call.
13274         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13275         * nis/nis_table.c: Adjust __nisfind_server call.
13276         * nis/nis_lookup.c: Likewise.
13277         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13279 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13281         [BZ #2182]
13282         * math/s_cacosh.c: Return values from positive branch.
13283         * math/s_cacoshf.c: Likewise.
13284         * math/s_cacoshl.c: Likewise.
13286         [BZ #2883]
13287         * sysvipc/sys/msg.h: Change return value to ssize_t.
13288         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13289         * sysvipc/msgrcv.c: Likewise.
13290         * include/sys/msg.h: Likewise.
13292         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13293         test introduced in patch for bz #661.
13294         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13295         element for NEWGROUPS.
13297         [BZ #2908]
13298         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13299         'f', use '1' as leading digit not '\1'.
13300         * stdio-common/Makefile (tests): Add bug16.
13301         * stdio-common/bug16.c: New file.
13303         [BZ #2914]
13304         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13305         and don't try to open it.  The patch introducing the macro
13306         contained a bug and used the same file name as the new file
13307         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13308         this out completely.
13310         [BZ #2926]
13311         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13312         Patch by Jerry James <Jerry.James@usu.edu>.
13314         * rt/Makefile (tests): Add tst-clock2.
13315         * rt/tst-clock2.c: New file.
13317         [BZ #2978]
13318         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13319         function and its parameters and pass it to new thread.
13320         (__gai_notify): Add support for alternative waiting for completion.
13321         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13322         waiting for completion.
13323         * resolv/getaddrinfo_a.c: Likewise.
13324         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13325         waiting for completion is used.
13326         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13327         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13328         * resolv/gai_error.c: Likewise.
13329         * resolv/gai_sigqueue.c: Likewise.
13331 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13333         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13334         errno to EBADF and return MACH_PORT_NULL.
13336 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13338         [BZ #2980]
13339         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13341 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13343         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13344         walk them instead of the symbol table.
13346 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13348         [BZ #2098]
13349         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13350         status of NSS calls, not the number of returned entries.
13352         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13353         request_key, keyctl.
13355 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13357         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13359 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13361         * elf/tst-auditmod1.c: Fix typo in #error.
13363 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13365         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13367         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13369 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13371         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13372         that the directory is empty even on non-POSIX filesystems.
13374 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13376         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13378         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13379         the backend NSS module.  If backend setgrent call failed, don't have
13380         internal_setgrent fail.  Just remember this until it is needed.
13381         * nis/nss_compat/compat-pwd.c: Likewise.
13382         * nis/nss_compat/compat-spwd.c: Likewise.
13384 2006-07-30  Roland McGrath  <roland@redhat.com>
13386         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13387         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13388         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13389         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13391         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13392         (nanosleep_not_cancel): New macro.
13393         (sigsuspend_not_cancel): new macro.
13394         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13395         (do_sigsuspend): Define as inline.
13396         (__sigsuspend): Always use do_sigsuspend.
13397         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13398         * include/signal.h: Declare __sigsuspend_nocancel.
13399         * sysdeps/posix/pause.c
13400         [! NO_CANCELLATION] (__pause_nocancel): New function.
13402         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13403         * include/time.h (__nanosleep_nocancel): Likewise.
13405 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13407         * locale/programs/localedef.c (add_to_readlist): Rename local
13408         variables to avoid confusion.
13410         * locale/programs/charmap.c (charmap_read): Emit error message if
13411         charmap couldn't be found or read.
13413 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13415         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13416         __ASSUME_FUTEX_LOCK_PI.
13417         * include/time.h: Declare __nanosleep_nocancel.
13418         * include/unistd.h: Declare __pause_nocancel.
13420         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13421         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13422         get the __stack_chk_fail_local definition when it's needed.
13424 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13426         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13427         * dlfcn/bug-atexit3.c: New file.
13428         * dlfcn/bug-atexit3-lib.cc: New file.
13430         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13431         used when the namespace is not the base namespace.
13433 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13435         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13436         (__new_exitfn): Bump it in every successful call.
13437         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13438         more exit handlers, call them right away.
13439         * stdlib/exit.h: Declare __new_exitfn_called.
13441 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13443         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13444         calling registered handler.
13446         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13447         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13448         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13449         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13450         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13451         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13452         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13453         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13455 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13457         * elf/dl-lookup.c (dl_new_hash): New functions.
13458         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13459         value here.  Compute new-style hash value.  Pass new hash value
13460         and reference to variable with the old value to do_lookup_x.
13461         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13462         old-style hash table.
13463         (_dl_debug_bindings): Pass new hash value and reference to variable
13464         with the old value to do_lookup_x.
13465         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13466         new-style hash value and change old-style hash value parameter to
13467         be a reference.  Reoganize functions to determine whether
13468         new-style hash table is available.  Only fall back on old-style
13469         table.  If old-style hash value is needed, compute it here.
13470         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13471         entry.
13472         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13473         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13474         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13475         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13476         * Makeconfig: If linker supports --hash-style option add it to all
13477         linker command lines to build DSOs.
13478         * config.make.in: Define have-hash-style.
13479         * configure.in: Test whether linker supports --hash-style option.
13481         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13482         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13484 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13486         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13487         auditing.
13489         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13490         RPATH of main map twice.
13492 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13494         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13495         look further, return original strings.
13496         (_nl_find_msg): Do not return found translation if the conversion
13497         failed.  Either signal the string is unusable or that something went
13498         wrong and the original should be used.
13500 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13502         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13504 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13506         [BZ #2766]
13507         * misc/insremque.c (insque): Handle prev == NULL.
13508         * misc/Makefile (tests): Add tst-insremque.
13509         * misc/tst-insremque.c: New test.
13511 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13513         [BZ #2792]
13514         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13515         conflict with DL_DST_REQUIRED.
13517 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13519         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13520         match what Solaris does.
13522 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13524         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13525         local_setegid instead of seteuid and setegid.
13526         * sysdeps/generic/local-setxid.h: New file.
13527         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13529         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13531         * string/Makefile (tests): Add bug-envz1.
13532         * string/bug-envz1.c: New file.
13534 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13536         * posix/regex_internal.c (re_string_skip_chars): If no character has
13537         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13538         to the byte which couldn't be converted.
13539         (re_string_reconstruct): Don't clear valid_raw_len before calling
13540         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13541         tip_context using re_string_context_at.
13542         * posix/Makefile: Add rules to build and run bug-regex25 test.
13543         * posix/bug-regex25.c: New test.
13545 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13547         [BZ #2703]
13548         * string/envz.c (envz_strip): Correct erroneously reversed src
13549         and dest parameters to memmove() invocation.
13551 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13553         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13554         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13555         to make sure the database has been already invalidated.
13556         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13557         after the cache has been invalidated.  Use pthread_mutex_lock rather
13558         than pthread_mutex_trylock if fd != -1.
13559         * nscd/connections.c (invalidate_cache): Add fd argument, write
13560         response to fd if not calling prune_cache, pass fd to prune_cache.
13561         (handle_request): Adjust invalidate_cache caller.
13562         (nscd_run): Pass -1 as fd to prune_cache.
13564 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13566         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13567         the correct place.
13569 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13571         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13572         * nscd/cache.c (prune_cache): Take prunelock before starting the
13573         work.  Just return in case it is already taken.
13574         * nscd/connections.c (dbs): Initialize .prunelock.
13576 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13578         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13579         copying.  No need to allocate new array for group members.  Just
13580         move the pointers and update the size.
13582         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13583         Avoid memory leak in case realloc fails.  Simplification for
13584         better code generation.
13586         Avoid deprecation warning because of libc_hidden_proto for
13587         inet6_option_alloc.
13588         * inet/inet6_option.c (option_alloc): Renamed from
13589         inet6_option_alloc.  Made static.
13590         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13591         (inet6_option_append): Call option_alloc.
13592         * include/netinet/in.h: Remove libc_hidden_proto for
13593         inet6_option_alloc.
13595         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13596         for cleanup when cb!=NULL [Coverity CID 233].
13598 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13600         [BZ #2693]
13601         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13602         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13603         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13604         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13605         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13606         and inet6_rth_getaddr.
13607         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13608         array.
13609         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13610         Mark inet6_option_* interfaces as deprecated.
13611         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13612         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13613         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13614         inet6_rth_segments, and inet6_rth_getaddr.
13615         * inet/inet6_opt.c: New file.
13616         * inet/inet6_rth.c: New file.
13618         * inet/netinet/icmp6.h: Pretty printing.
13620         [BZ #2683]
13621         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13623 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13625         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13626         doing it all here.  When server does not know the answer do not
13627         fail immediate, try parent first.
13629         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13630         overflow test.
13632 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13634         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13635         from __do_niscall.
13636         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13637         and exported.
13638         (__follow_path): New function.  Split out from nis_list.
13639         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13640         _xdr_nis_result.
13641         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13642         _xdr_nis_result.
13643         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13644         and __follow_path.
13645         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13646         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13647         from libnsl for version GLIBC_PRIVATE.
13648         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13649         Remove entry parameter from _nss_nisplus_parse_pwent and
13650         _nss_nisplus_parse_grent.
13651         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13652         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13653         again.  Rewrite getpwent handling to not use nis_first_entry and
13654         nis_next_entry.  Roll out own niscall handling.
13655         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13657         * sunrpc/xdr_rec.c: Fix typo in comment.
13659 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13661         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13662         handling.
13664         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13665         to allocate memory for my_pollfd.  Better initialization of
13666         cb_is_running.  Use TEMP_FAILURE_RETRY.
13668         * malloc/memusage.sh (memusageso): Add quotes.
13669         (memusagestat): Likewise.
13670         * debug/xtrace.sh (pcprofileso): Likewise.
13671         (pcprofiledump): Likewise.
13672         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13673         replacement.
13674         * malloc/Makefile ($(objpfx)memusage): Likewise.
13676         * nis/nis_callback.c (__nis_create_callback): Calls to
13677         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13678         asprintf call fails.
13680         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13681         no uninitialized memory is passed to sendto.
13683 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13685         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13686         of snprintf+strdup.  Handle OOM.
13687         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13688         cb->serv together.  Remove now obsolete free calls.
13689         (__nis_destroy_callback): Remove now obsolete free call.
13691 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13693         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13694         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13695         and ULA respectively). Set precedence for IPv4 address to 10 as
13696         defined in RFC3484 for preferring IPv6.
13697         * posix/gai.conf: Update to match the new default tables.
13699 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13701         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13702         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13703         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13704         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13706         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13707         Removed.
13708         (init_nss_interface): Remove initialization of these variables.
13710 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13712         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13713         nis_free_directory forward to avoid duplication.
13715 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13717         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13718         rec_dirsearch returning NULL.
13719         (first_shoot): Handle __nis_finddirectory returning NULL.
13720         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13722         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13723         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13725 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13727         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13728         pid changed.
13730 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13732         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13734         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13735         * nscd/nscd_getgr_r.c: Likewise.
13737         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13739         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13740         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13742         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13744         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13746         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13748         * include/rpc/auth.h: Mark xdr_des_block_internal and
13749         xdr_opaque_auth_internal as hidden.
13751         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13752         hidden.
13754         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13756         * misc/getusershell.c (okshells): Don't use static initializers,
13757         do it dynamically.
13759         * stdlib/fmtmsg.c (keywords): Change type of len element to
13760         uint32_t to not waste space on 64bit machines.
13762         * locale/setlocale.c: Change _nl_category_names into a string.
13763         Add new _nl_category_name_idxs.  Change all users.
13764         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13765         Declare _nl_category_name_idxs.
13766         * locale/findlocale.c: Adjust for _nl_category_names change.
13767         * locale/loadlocale.c: Likewise.
13768         * locale/newlocale.c: Likewise.
13769         * intl/dcigettext.c: Likewise.
13771         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13772         (add_alias2): ...here.  New function.
13773         (__gconv_read_conf): Simplify builtin alias handling.
13774         (builtin_aliases): Convert to string to avoid relocations.
13775         * iconv/gconv_builtin.h: Add comment about correct formatting.
13777 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13779         * resolv/res_debug.c (loc_ntoa): Make error const.
13781 2006-05-14  Andreas Schwab  <schwab@suse.de>
13783         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13785 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13787         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13788         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13789         sizeof (cpu_set_t).
13791 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13793         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13795         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13797         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13798         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13800         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13801         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13803         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13804         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13805         xdr_cback_data.
13807         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13808         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13809         xdr_ypupdate_args.
13811         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13812         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13814         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13815         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13817         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13818         * include/rpcsvc/nis_callback.h: New file.
13820         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13821         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13823         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13824         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13826         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13827         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13829         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13830         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13832         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13833         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13834         xdr_ypdelete_args.
13836         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13837         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13839         * nis/nis_error.c: Remove table of strings.  Use position
13840         independent mechanism.
13841         * nis/nis_error.h: New file.
13843 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13845         * locale/programs/ld-time.c (time_finish): If wide era name or
13846         format aren't provided, set both wname and wformat to L"".
13848 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13850         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13851         results if the call was succesful.
13853         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13855         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13856         as hidden.
13858 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13860         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13862 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13864         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13865         caller makes sure this is not the case.
13866         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13868 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13870         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13871         calls.
13873         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13874         [Coverity CID 229, 230]
13876         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13877         DGETTEXT calls.
13878         (hol_help): Likewise.  [Coverity CID 226, 227]
13880         * string/argz-replace.c (__argz_replace): Unconditionally call
13881         free on SRC.  [Coverity CID 225]
13883         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13884         the return value of __nis_default_owner and __nis_default_group,
13885         it has been especially allocated.  [Coverity CID 224]
13887         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13888         searchgroup and searchowner.  Significantly simplified.
13889         (__nis_default_owner): Remove duplication.  Do not locally copy the
13890         string before duplicating it.
13891         (__nis_default_group): Likewise.
13893         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13894         we must clear the variable before calling __nisfind_server.
13896         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13897         nis_getnames.  [Coverity CID 223]
13899         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13900         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13902         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13903         allocate memory for the input to add_bytes.  [Coverity CID 221]
13905         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13906         was allocated here.  [Coverity CID 219, 220]
13908         * posix/getconf.c (print_all): Free confstr data after printing.
13909         [Coverity CID 218]
13911         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13912         list allocation fails.  [Coverity CID 215]
13914         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13915         [Coverity CID 213]
13917         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13918         string is NULL.  [Coverity CID 212]
13919         * argp/Makefile: Add rules to build and run bug-argp1.
13920         * argp/bug-argp1.c: New file.
13922         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13923         end of string.
13924         * stdlib/canonicalize.c (__realpath): Likewise.
13926         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13927         pointer.  [Coverity CID 206]
13929         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13930         in statically linked code.
13931         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13932         statically built code, be prepared to have no link map.
13933         [Coverity CID 205]
13935         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13936         dgettext calls. [Coverity CID 204]
13938         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13939         the one user.
13940         (uparam_names): Reduce size.  Avoid relative relocations.
13941         Moved to read-only segment.
13942         (fill_in_uparams): Update for new layout.
13944         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13945         assumed to always be != NULL. [Coverity CID 202]
13947         * argp/argp-help.c (hol_entry_help): Remove some dead code
13948         [Coverity CID 200].
13950         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13951         away a few more unconditional yperr2nss calls.
13952         (_nss_nis_getservbyname_r): Likewise.
13954 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13956         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13957         architectures.
13959         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13960         that unused memory passed to sendto is nevertheless initialized.
13962         [BZ #2499]
13963         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13964         possibly unaligned memory accesses.
13966         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13967         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13968         and __putlong respectively.  Correct buffer overflow check for
13969         NS_NOTIFY_OP.
13971         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13973         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13974         (send_dg): Rewrite error handling to be more compact and avoid
13975         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13977         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13979         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13980         instead of ns_get16.
13981         (res_queriesmatch): Likewise.  Minor optimization.
13983         [BZ #2499]
13984         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13985         __libc_res_nsend might reallocate the buffer for the answer.  In
13986         this case we have to reload the HP pointer.
13988 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13990         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13991         some branch prediction hints.
13993         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13994         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13995         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13996         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13997         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13998         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13999         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14000         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14002 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14004         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14005         by a GOT relocation to make Scrt1.o position independent.
14006         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14008         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14009         six system call parameters.
14010         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14012 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14014         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14015         malloc&bzero.
14017         * sunrpc/svc_udp.c (BZERO): Remove definition.
14018         (CALLOC): Define.
14019         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14021         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14022         (des_SPtrans): Use uint32_t type.
14023         (des_skb): Likewise.
14025         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14027 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14029         [BZ #2509]
14030         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14031         on 32-bit arches.
14033 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14035         * locale/programs/ld-address.c (address_finish): Fix one more
14036         place where the iso639 array might be accessed beyond the limits.
14038 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14040         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14041         filling it for the first time.
14043         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14044         Adjust all callers.
14045         Free res object content before returning.
14047         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14049         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14050         client->cl_auth.
14052         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14053         cleanup for initial thread, just the free call on TVP.
14055         * nscd/gai.c (__getline): Define.
14058 See ChangeLog.16 for earlier changes.