Fix up sched.h for XPG7.
[glibc.git] / ChangeLog
blob6e524cc2e70155fe0d8bac6abe54b2bbbed73a3e
1 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
3         * posix/sched.h: Define time_t and pid_t for XPG7.
5 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7         * sysdeps/i386/i686/bcopy.S: New file.
9         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
11         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
12         and END_CHK.
13         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
14         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
15         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
17         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
19         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
21         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
22         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
23         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
24         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
25         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
26         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
27         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
28         * sysdeps/i386/i686/multiarch/bzero.S: New file.
29         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
30         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
31         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
32         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
33         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
34         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
35         * sysdeps/i386/i686/multiarch/memmove.S: New file.
36         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
37         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
38         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
39         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
40         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
41         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
42         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
43         * sysdeps/i386/i686/multiarch/memset.S: New file.
44         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
46         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
47         (END_CHK): Likewise.
49         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
50         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
51         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
53         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
54         for 0x0e and 0x80.
55         (__x86_64_data_cache_size): New.
56         (init_cacheinfo): Set __x86_64_data_cache_size.
58         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
59         on bit_Fast_Rep_String for Intel Core i7.
61         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
62         (index_Fast_Rep_String): Likewise.
63         (FEATURE_INDEX_1): Likewise.
64         (FEATURE_INDEX_MAX): Likewise.
65         (cpu_features): Add feature.
67 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
69         * conform/data/sys/select.h-data: Fix up for XPG7.
71 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
73         * posix/sys/wait.h: Don't define W* macros etc. if
74         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
76 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
78         * io/sys/stat.h: Declare fchmod for XPG7.
79         * conform/data/sys/stat.h-data: Fix up for XPG7.
81         * termios/termios.h: Define pid_t for XPG7.
83         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
84         * conform/data/tgmath.h-data: Likewise.
86         * conform/data/time.h-data: Fix POSIX tests.
88         * conform/data/wchar.h-data: Fix up XPG7 tests.
90         * include/features.h: Fix __USE_ISOC95 handling.
92         * conform/data/wordexp.h-data: Fix typo in last change.
94         * conform/data/unistd.h-data: Fix up older POSIX tests.
96         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
97         * posix/unistd.h: Likewise.
99         * posix/unistd.h: Include environments.h also for XPG6 and up.
100         Define intptr_t for XPG6 and up.
101         Fix up for XPG7.
102         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
104         * conform/data/sys/types.h-data: Fix up for XPG7.
106         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
107         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
108         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
109         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
110         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
111         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
112         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
113         * sysdeps/unix/sysv/bits/stat.h: Likewise.
114         * sysdeps/mach/hurd/bits/stat.h: Likewise.
116         * bits/confname.h: Fix typo in last change.
118         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
120 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
122         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
123         and SA_RESETHAND now available in Base.
124         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
125         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
126         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
127         * conform/data/signal.h-data: Update for XPG7.
129         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
131         * string/strings.h: Don't declare obsolete functions for XPG7.
132         Declare ffs only for XSI.
133         * conform/data/strings.h-data: Update for XPG7.
135 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
137         [BZ #11125]
138         * libio/stdio.h: Define va_list, off_t, and ssize_t.
140         * posix/glob.h: Define size_t.
142         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
144         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
146 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
148         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
149         be self-contained.
151         * conform/data/stdio.h-data: Expect off_t and ssize_t.
153 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
155         * libio/stdio.h: Define va_list also for XPG7.
157         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
158         * conform/data/ctype.h-data: Likewise.
159         * conform/data/dirent.h-data: Likewise.
160         * conform/data/errno.h-data: Likewise.
161         * conform/data/fcntl.h-data: Likewise.
162         * conform/data/fmtmsg.h-data: Likewise.
163         * conform/data/fnmatch.h-data: Likewise.
164         * conform/data/ftw.h-data: Likewise.
165         * conform/data/glob.h-data: Likewise.
166         * conform/data/grp.h-data: Likewise.
167         * conform/data/iconv.h-data: Likewise.
168         * conform/data/langinfo.h-data: Likewise.
169         * conform/data/libgen.h-data: Likewise.
170         * conform/data/limits.h-data: Likewise.
171         * conform/data/locale.h-data: Likewise.
172         * conform/data/math.h-data: Likewise.
173         * conform/data/monetary.h-data: Likewise.
174         * conform/data/mqueue.h-data: Likewise.
175         * conform/data/ndbm.h-data: Likewise.
176         * conform/data/netdb.h-data: Likewise.
177         * conform/data/pthread.h-data: Likewise.
178         * conform/data/pwd.h-data: Likewise.
179         * conform/data/regex.h-data: Likewise.
180         * conform/data/sched.h-data: Likewise.
181         * conform/data/search.h-data: Likewise.
182         * conform/data/semaphore.h-data: Likewise.
183         * conform/data/setjmp.h-data: Likewise.
184         * conform/data/signal.h-data: Likewise.
185         * conform/data/spawn.h-data: Likewise.
186         * conform/data/stdio.h-data: Likewise.
187         * conform/data/stdlib.h-data: Likewise.
188         * conform/data/string.h-data: Likewise.
189         * conform/data/strings.h-data: Likewise.
190         * conform/data/sys/ipc.h-data: Likewise.
191         * conform/data/sys/msg.h-data: Likewise.
192         * conform/data/sys/resource.h-data: Likewise.
193         * conform/data/sys/sem.h-data: Likewise.
194         * conform/data/sys/shm.h-data: Likewise.
195         * conform/data/sys/socket.h-data: Likewise.
196         * conform/data/sys/stat.h-data: Likewise.
197         * conform/data/sys/time.h-data: Likewise.
198         * conform/data/sys/types.h-data: Likewise.
199         * conform/data/sys/uio.h-data: Likewise.
200         * conform/data/sys/wait.h-data: Likewise.
201         * conform/data/syslog.h-data: Likewise.
202         * conform/data/tar.h-data: Likewise.
203         * conform/data/termios.h-data: Likewise.
204         * conform/data/time.h-data: Likewise.
205         * conform/data/ulimit.h-data: Likewise.
206         * conform/data/unistd.h-data: Likewise.
207         * conform/data/utmpx.h-data: Likewise.
208         * conform/data/wchar.h-data: Likewise.
209         * conform/data/wctype.h-data: Likewise.
210         * conform/data/wordexp.h-data: Likewise.
212         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
213         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
214         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
215         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
216         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
217         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
218         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
219         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
220         * sysdeps/unix/sysv/bits/stat.h: Likewise.
221         * sysdeps/mach/hurd/bits/stat.h: Likewise.
223         * stdlib/stdlib.h: Define wait-related bits for XPG7.
224         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
225         Declare mkstemp and getsubopt for XPG7.
226         Declare posix_openpt for XPG6 XSI.
228         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
229         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
231         * string/string.h: Declare strdup for XPG7.
233 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
235         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
236         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
238         * dirent/dirent.h: Really fix feature selection.
240         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
241         Fix all users.
242         * locale/C-address.c: Fix all users.
243         * locale/C-collate.c: Likewise.
244         * locale/C-ctype.c: Likewise.
245         * locale/C-identification.c: Likewise.
246         * locale/C-measurement.c: Likewise.
247         * locale/C-messages.c: Likewise.
248         * locale/C-monetary.c: Likewise.
249         * locale/C-name.c: Likewise.
250         * locale/C-numeric.c: Likewise.
251         * locale/C-paper.c: Likewise.
252         * locale/C-telephone.c: Likewise.
253         * locale/C-time.c: Likewise.
254         * locale/findlocale.c: Likewise.
255         * locale/global-locale.c: Likewise.
256         * locale/loadarchive.c: Likewise.
257         * locale/loadlocale.c: Likewise.
258         * locale/nl_langinfo_l.c: Likewise.
259         * locale/setlocale.c: Likewise.
260         * locale/xlocale.c: Likewise.
261         * locale/xlocale.h: Likewise.
262         * stdio-common/vfscanf.c: Likewise.
263         * stdlib/strfmon_l.c: Likewise.
264         * stdlib/strtod_l.c: Likewise.
265         * stdlib/strtol_l.c: Likewise.
266         * string/strcoll_l.c: Likewise.
267         * string/strxfrm_l.c: Likewise.
268         * time/alt_digit.c: Likewise.
269         * time/asctime.c: Likewise.
270         * time/era.c: Likewise.
271         * time/lc-time-cleanup.c: Likewise.
272         * time/strftime_l.c: Likewise.
273         * time/strptime_l.c: Likewise.
274         * wcsmbs/wcsmbsload.c: Likewise.
275         * wcsmbs/wcsmbsload.h: Likewise.
277         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
278         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
279         for XPG7.
280         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
281         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
282         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
283         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
284         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
285         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
287 2010-01-07  Roland McGrath  <roland@redhat.com>
289         * elf/elf.h (PN_XNUM): New macro.
291         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
292         literal 2.
294 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
296         * dirent/dirent.h: Fix typo in feature selection macro use.
298 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
300         [BZ #11115]
301         * stdlib/tst-makecontext3.c: New file.
302         * stdlib/Makefile (tests): Add new test.
304         * stdlib/tst-setcontext.c (check_called): Fix a typo.
306 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
308         * configure.in: Enable multi-arch by default if the assembler
309         supports gnu_indirect_function symbol type and the architecture
310         supports it.
312 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
314         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
315         is defined.
317 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
319         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
320         MACH_PORT_NULL when id != cttyid.
322 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
324         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
325         __mach_port_deallocate on rootdevid.
327 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
329         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
330         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
331         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
332         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
334 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
336         [BZ #10992]
337         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
338         Patch by Eric Blake <ebb9@byu.net>.
340 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
342         [BZ #11093]
343         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
344         POLLWRBAND also for POSIX 2008.
345         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
346         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
348         * include/link.h (struct link_map): Move l_used into its own word.
349         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
350         still zero.
351         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
352         never really used.
354 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
356         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
357         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
358         check processor feature.
359         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
360         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
361         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
362         (index_SSE2): Likewise.
364 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
366         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
367         if __ASSEMBLER__ is defined.
368         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
369         (bit_SSE4_2): Likewise.
370         (index_SSSE3): Likewise.
371         (index_SSE4_2): Likewise.
372         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
373         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
374         check processor feature.
375         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
376         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
377         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
378         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
379         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
380         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
381         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
383 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
385         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
387 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
389         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
391 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
393         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
394         O_DSYNC to match 2.6.33+ kernels.
395         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
396         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
397         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
398         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
399         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
400         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
402 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
404         [BZ #11000]
405         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
406         *herrnop before returning.
407         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
408         Likewise.
409         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
410         TRYAGAIN errors separately.
411         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
412         *name4_r after functions.
414 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
416         [BZ #11046]
417         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
418         version check.
420 2009-11-05  Bruno Haible  <bruno@clisp.org>
422         [BZ #11056]
423         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
424         argv argument as non-NULL.
425         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
427 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
429         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
430         recvmmsg.
431         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
432         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
434 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
436         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
437         registers.
438         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
439         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
440         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
442 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
444         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
445         SCHED_RESET_ON_FORK.
447 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
449         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
450         only used on truly ancient kernel if configuration requires a more
451         recent kernel.
453 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
455         [BZ #3662]
456         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
457         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
459         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
460         pass it on to __ptsname_internal.
461         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
462         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
463         All the code from __ptsname_r but take additional parameter.  Use that
464         instead of pointer to local stat64 variable.
465         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
466         variable.
467         * include/stdlib.h: Declare __ptsname_internal.
469         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
470         before the exec.
471         * sysdeps/unix/sysv/linux/grantpt.c: New file.
472         * login/programs/pt_chown.c (main): Don't print message on errors
473         when doing real work.
475         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
476         once.
478         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
479         irel relocations split out from...
480         (__libc_csu_init): ...here.
481         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
483 2009-11-23  Andreas Schwab  <schwab@redhat.com>
485         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
486         for timestamps also if __USE_XOPEN2K8.
487         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
488         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
489         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
490         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
492 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
494         * nscd/connections.c (restart): Try harder to re-exec.
496         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
498         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
499         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
500         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
501         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
502         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
503         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
505         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
506         Define.
507         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
509 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
511         [BZ #10162]
512         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
513         than software pipeline.  Properly recover from shorter read.
515 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
517         [BZ #10958]
518         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
519         initialized before using it.
520         (_IO_putwc_unlocked): Likewise.
522         [BZ #10918]
523         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
524         in cast to not throw away const-ness of parameters.
525         (__CPU_EQUAL_S): Likewise.
526         (__CPU_OP_S): Likewise.
528         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
529         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
530         this gratuitous change and we have to keep compatibility.
531         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
532         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
533         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
534         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
535         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
536         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
538 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
540         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
541         of parameters of sync_file_range.
542         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
543         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
544         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
545         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
546         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
547         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
549 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
551         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
552         Implement using sync_file_range2 syscall if __NR_sync_file_range2
553         is defined.
554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
555         file.
557 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
559         * posix/bug-regex30.c: New file.
560         * posix/Makefile: Add rules to build and run bug-regex30.
561         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
562         character lead bytes when there is a range in a COMPLEX_BRACKET.
563         Reported by Oleg Bylatov.
565 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
567         [BZ #10969]
568         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
569         * locale/tst-duplocale.c: New file.
570         * locale/Makefile (tests): Add tst-duplocale.
572         [BZ #10968]
573         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
574         Patch by Bruno Haible <bruno@clisp.org>.
575         * locale/tst-locname.c: New file.
576         * locale/Makefile (tests): Add tst-locname.
578         [BZ #10972]
579         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
580         constants from recent kernels.
581         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
582         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
583         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
584         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
585         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
586         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
588 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
590         [BZ #10162]
591         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
592         software pipeline.
594 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
596         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
597         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
598         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
600 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
602         * posix/bug-regex29.c: Include stdio.h.
604 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
606         [BZ #10939]
607         * Versions.def: Define GLIBC_2.12 for libc.
608         * manual/errno.texi: Add ERFKILL entry.
609         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
610         for 2.12.
611         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
612         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
614         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
615         F_GETOWN_EX definitions according to corrected kernel definitions.
616         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
617         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
618         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
619         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
620         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
621         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
623 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
625         * version.h: Bump for 2.12 development.
627 2009-11-10  Andreas Schwab  <schwab@redhat.com>
629         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
630         out of buffer space.
631         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
632         map_v4v6_hostent running out of space.
634 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
636         * string/bits/string3.h (memset): If the second parameter is constant
637         and zero there is likely no transposition.
638         Patch by Caolan McNamara <caolanm@redhat.com.
640 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
642         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
643         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
645 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
647         * malloc/memusagestat.c (main): Fix spelling in an error message.
649 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
651         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
652         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
654 2009-11-03  Andreas Schwab  <schwab@redhat.com>
656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
657         readahead.
659 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
661         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
662         relocate opd entry when resolving prelink conflicts.
664 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
666         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
667         when -D_FILE_OFFSET_BITS=64.
669         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
670         of last two arguments when -D_FILE_OFFSET_BITS=64.
671         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
672         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
673         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
674         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
675         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
676         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
678 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
680         [BZ #4457]
681         * sysdeps/generic/libgcc_s.h: New file.
682         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
684 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
686         * malloc/hooks.c (free_check): Restore locking and call _int_free
687         appropriately.
689 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
691         * version.h (VERSION): Bump for 2.11 release.
692         * include/features.h (__GLIBC_MINOR__): Bump to 11.
694         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
696         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
698         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
699         to avoid warning.
700         * stdlib/tst-strtoll.c (tests): Likewise.
702         [BZ #9986]
703         * time/strftime_l.c (__strftime_internal): Allow %OC.
705         * misc/mkostemps.c: New file.
706         * misc/mkostemps64.c: New file.
708 2009-10-30  Andreas Schwab  <schwab@redhat.com>
710         * locale/programs/locale-spec.c: Include <error.h> and
711         <libintl.h>.
713         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
715 2009-10-28  Roland McGrath  <roland@redhat.com>
717         * Makefile (dist-prepare): New target.
718         (tag-for-dist): Target removed.
719         (glibc-%.tar): Pattern rule removed.
720         (%.tar): New pattern rule, does simple use of git archive.
721         (dist-version): Remove variable definition.
722         (dist): Just depend on that.  Add .tar.xz dependency.
723         If dist-version variable not set on command line, depend on
724         dist-prepare, re-invoke with dist-version set via git describe.
726         * Makerules (%.xz): New pattern rule.
728 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
730         * elf/ifuncdep2.c: Include ifunc-sel.h.
731         (global): Delete.
732         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
733         * elf/ifuncmain1.c (global): Delete.
734         * elf/ifuncmain1vis.c: Likewise.
735         * elf/ifuncmain2.c: Likewise.
736         * elf/ifuncmain5.c: Likewise.
737         * elf/ifuncmod3.c: Likewise.
738         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
739         (foo_ifunc): Use ifunc_one.
740         * elf/ifuncmain7.c: Likewise.
741         * elf/ifuncmod1.c: Include ifunc-sel.h.
742         (global): Define protected var.
743         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
744         * elf/ifuncmod5.c: Likewise.
745         * sysdeps/generic/elf/ifunc-sel.h: New file.
746         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
748 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
750         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
751         (R_PPC_REL16*): Correct comments.
752         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
753         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
754          R_PPC64_REL16_HA): Define.
755         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
756         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
757         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
758         Delete unused "reloc" param.
759         (__process_machine_rela): Handle R_PPC_IRELATIVE.
760         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
761         Delete "reloc" param.
762         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
763         R_PPC_IRELATIVE.
764         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
765         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
766         relocations.
768 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
770         [BZ #10315]
771         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
772         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
773         UDP_ENCAP_L2TPINUDP.
775         [BZ #10349]
776         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
777         parameter, specifying length of prefix.
778         * stdio-common/tempname.c: Likewise.
779         * include/stdio.h: Adjust prototypes.
780         * libio/oldtmpfile.c: Adjust caller.
781         * misc/mkdtemp.c: Likewise.
782         * misc/mkostemp.c: Likewise.
783         * misc/mkostemp64.c: Likewise.
784         * misc/mkstemp.c:  Likewise.
785         * misc/mkstemp64.c: Likewise.
786         * misc/mktemp.c: Likewise.
787         * stdio-common/tempnam.c: Likewise.
788         * stdio-common/tmpfile.c: Likewise.
789         * stdio-common/tmpnam.c: Likewise.
790         * stdio-common/tmpnam_r.c: Likewise.
791         * misc/mkstemps.c: New file.
792         * misc/mkstemps64.c: New file.
793         * stdlib/stdlib.h: Add prototypes.
794         * misc/Makefile (routines): Add mkstemps and mkstemps64.
795         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
797 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
799         * locale/iso-639.def: Add sml entry.
801         [BZ #10391]
802         * resolv/res_send.c (send_dg): Initialize resplen.
804         [BZ #10446]
805         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
806         definition to the kernel's.
807         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
809 2009-08-18  Anders Johansson  <ajohansson@novell.com>
811         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
812         offsets and record sizes in assert()s and response sending.
813         * nscd/grpcache.c: Likewise.
814         * nscd/hstcache.c: Likewise.
815         * nscd/initgrcache.c: Likewise.
816         * nscd/pwdcache.c: Likewise.
818 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
820         [BZ #10540]
821         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
822         /etc/hosts does not exist set errnop and herrnop appropriately.
823         Patch by Steve Langasek <vorlon@debian.org>.
825         [BZ #10553]
826         * malloc/malloc.c (malloc_info): Fix typos in format strings.
827         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
829         [BZ #10564]
830         * login/utmp_file.c (TIMEOUT): Increase to 10.
832         [BZ #10609]
833         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
834         for file names in case the syscall is not available.
835         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
836         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
837         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
838         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
839         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
840         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
841         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
842         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
843         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
844         * sysdeps/unix/sysv/linux/openat.c: Likewise.
845         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
846         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
847         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
848         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
849         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
850         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
851         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
853         [BZ #10643]
854         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
855         creation filed, remove the request from the 'requests' list and signal
856         the caller that the request is finished.
858         [BZ #10692]
859         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
860         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
862         [BZ #10713]
863         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
864         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
866         [BZ #10780]
867         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
868         overflows the int return type.
870         [BZ #10717]
871         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
872         have to compute maxsize_total, we have to update the variables, and
873         the also_total handling must happen after the repair.
875         [BZ #10742]
876         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
877         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
879 2009-10-27  Andreas Schwab  <schwab@redhat.com>
881         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
882         errno is always set when returning unsuccessfully.
884 2009-10-29  Andreas Schwab  <schwab@redhat.com>
886         * malloc/memusage.c (update_data): Fix index wraparound handling
887         so that buffer_cnt is actually reset.
889 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
891         [BZ #10784]
892         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
893         of the directory we look at into the static buffer if there is one
894         at the start of the loop.
896         [BZ #10789]
897         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
898         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
900         [BZ #10840]
901         * sysdeps/unix/sysv/linux/kernel-features.h: Define
902         __ASSUME_F_GETOWN_EX.
903         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
904         if possible.
905         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
907         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
908         and f_owner_ex.
909         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
910         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
911         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
912         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
913         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
914         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
916         [BZ #10847]
917         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
918         getutmpx symbol.
920         [BZ #10823]
921         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
922         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
924 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
926         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
928 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
930         [BZ #10817]
931         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
932         Reported by Ray Chason.
934 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
937         strend-sse4.
938         * sysdeps/x86_64/multiarch/strchr.S: New file.
939         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
940         * sysdeps/x86_64/multiarch/strrchr.S: New file.
942 2009-10-21  Andreas Schwab  <schwab@redhat.com>
944         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
946 2009-10-19  Andreas Schwab  <schwab@redhat.com>
948         * include/math.h: Add hidden protos for __exp/__expf/__expl.
949         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
950         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
951         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
952         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
953         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
954         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
955         __ieee751_expl to handle overflow.
957 2009-10-14  David S. Miller  <davem@davemloft.net>
959         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
960         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
962 2009-10-13  Andreas Schwab  <schwab@redhat.com>
964         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
965         !USE_MULTIARCH.
967 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
969         [BZ #10730]
970         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
971         Patch in part by Steve Ward <planet36@gmail.com>.
973         [BZ #10731]
974         * stdlib/rand_r.c: Fix typo.
976         * po/cs.po: Update from translation team.
978 2009-10-06  Andreas Schwab  <schwab@redhat.com>
980         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
981         returning if RTLD_NOLOAD.
983 2009-10-06  Roland McGrath  <roland@redhat.com>
985         * sysdeps/x86_64/multiarch/strstr-c.c
986         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
988         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
989         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
991         * sysdeps/x86_64/multiarch/init-arch.h
992         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
993         (HAS_CPU_FEATURE): New macro.
994         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
995         * sysdeps/x86_64/multiarch/init-arch.c
996         (__get_cpu_features): #undef it before definition.
998 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1000         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1001         first_weekday to 1 and first_workday to 2.
1003 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1005         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1006         F_GETOWN_EX.
1007         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1008         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1009         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1010         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1011         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1012         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1014 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1016         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1017         * stdio-common/vfprintf.c: Likewise.
1019 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1021         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1022         (mkdirat): Call __directory_name_split_at instead of
1023         __directory_name_split.
1025 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1027         * locale/programs/locale-spec.c (locale_special): If nothing matches
1028         fail with an appropriate message.
1030 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1032         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1033         and XX.
1035 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1037         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1038         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1040 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1042         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1044 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1046         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1047         character size elements in step data.
1049 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1051         * po/hu.po: Update from translation team.
1052         * po/vi.po: Likewise.
1054 2009-09-19  Roland McGrath  <roland@redhat.com>
1056         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1058 2009-09-15  Roland McGrath  <roland@redhat.com>
1060         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1061         * nptl/sysdeps/pthread/configure: Regenerated.
1062         * nptl/sysdeps/x86_64/configure: Regenerated.
1063         * sysdeps/unix/sysv/linux/configure: Regenerated.
1064         * sysdeps/x86_64/elf/configure: Regenerated.
1066         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1068         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1069         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1070         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1071         * configure: Regenerated.
1073 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1075         * posix/getconf.c (main): Handle -- on command line.
1077 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1079         * configure.in: Support binutils 2.100 and 3.0.
1081 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1083         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1084         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1085         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1086         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1088 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1090         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1091         unnamed_section_defined field.
1092         (collate_read): Test and set unnamed_section_defined.
1094         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1095         _POSIX2_LINE_MAX.
1097 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1099         * configure.in: Support binutils 2.20.
1101 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1103         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1104         __strstr_ia32): Add attribute_hidden.
1106 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1108         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1109         parsing of group entry.
1111 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1113         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1114         external buffer.  Always discard readahead in internal buffer.
1115         * libio/Makefile (tests): Add bug-wsetpos.
1116         * libio/bug-wsetpos.c: New file.
1118 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1120         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1121         Add attribute_hidden.
1122         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1123         __strcasestr_sse2): Likewise.
1124         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1125         (__fma_fma): Make static.
1126         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1127         (__fmaf_fma): Make static.
1129 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1131         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1132         reformulate in-buffer optimisation check to match code in
1133         _IO_new_file_seekoff.
1135 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1137         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1138         to srwi in 32-bit memcpy for power6.
1140 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1142         * include/stdio.h: Declare hidden proto for fflush.
1143         * libio/iofflush.c: Add hidden weak alias for fflush.
1145 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1147         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1148         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1150 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1152         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1154 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1156         [BZ #10560]
1157         * malloc/malloc.c: Add local assert definition to avoid problems with
1158         memory allocation in the real one.
1160 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1162         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1163         Removed.
1164         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1165         turn off SSSE3 on Atom.
1167 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1169         * stdlib/tst-strtol.c (tests): More tests.
1170         * stdlib/tst-strtoll.c (tests): Likewise.
1172 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1174         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1176         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1178 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1180         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1181         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1183         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1185         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1187         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1189 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1191         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1193 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1195         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1196         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1198         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1200         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1201         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1203         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1204         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1206         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1207         leftover YMM_SIZE definition.
1209 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1211         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1212         union.
1213         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1214         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1215         Redefine.
1216         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1218         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1219         and SET_FLOAT_WORD definitions.
1221 2009-08-24  Roland McGrath  <roland@redhat.com>
1223         * sysdeps/unix/syscall-template.S: New file.
1224         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1225         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1226         (compile-syscall): Pass mkdep and -g options as normal.
1227         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1228         (common-generated): Don't add them here.
1230 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1232         * math/s_fdim.c: In case of overflows set errno.
1233         * math/s_fdimf.c: Likewise.
1234         * math/s_fdiml.c: Likewise.
1236         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1237         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1238         are using the inline optimizations.
1240         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1241         (__signbitf): Likewise.
1243 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1245         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1246         terminated.
1247         * posix/Makefile (tests): Add bug-regex29.
1248         * posix/bug-regex29.c: New file.
1250         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1251         older POSIX versions are selected.
1253         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1254         as well.
1255         * stdio-common/printf_fphex.c: Likewise.
1256         * stdio-common/tstdiomisc.c: Add more tests.
1258         * locale/locale.h: Include xlocale.h and the thread-local locale
1259         declarations for XPG7, not XPG6.
1261 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1263         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1264         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1267         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1268         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1270 2009-08-20  Roland McGrath  <roland@redhat.com>
1272         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1273         Use l_addr instead of l_map_start (dli_fbase).
1274         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1275         address when there is no proximate symbol.
1276         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1277         Likewise.
1279 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1281         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1283 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1285         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1286         Also handle SIGINT.  In that case only do the cleanup and then
1287         re-raise the signal.
1288         (main): Install handler for SIGINT.
1290 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1292         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1293         clobber list.
1295 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1297         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1298         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1299         tst-auditmod7b.c.
1300         (tests): Add tst-audit6 tst-audit7.
1301         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1302         tst-auditmod7a tst-auditmod7b.
1303         ($(objpfx)tst-audit6): New.
1304         ($(objpfx)tst-audit6.out): Likewise.
1305         ($(objpfx)tst-audit7): Likewise.
1306         ($(objpfx)tst-audit7.out): Likewise.
1307         (tst-audit6-ENV): Likewise.
1308         (tst-audit7-ENV): Likewise.
1309         (CFLAGS-tst-auditmod6b.c): Likewise.
1310         (CFLAGS-tst-auditmod6c.c): Likewise.
1311         (CFLAGS-tst-auditmod7b.c): Likewise.
1312         * elf/tst-audit6.c: New file.
1313         * elf/tst-audit7.c: New file.
1314         * elf/tst-auditmod6a.c: New file.
1315         * elf/tst-auditmod6b.c: New file.
1316         * elf/tst-auditmod6c.c: New file.
1317         * elf/tst-auditmod7a.c: New file.
1318         * elf/tst-auditmod7b.c: New file.
1319         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1320         saving and restoring SSE/AVX registers to ...
1321         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1323 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1325         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1326         only if SHARED is defined.
1327         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1329 2009-08-03  Jim Meyering  <meyering@redhat.com>
1331         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1333 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1335         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1336         section as the other functions for this architecture.
1337         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1339 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1341         * sysdeps/x86_64/strcmp.S: Add support to compile with
1342         USE_SSSE3.  In this case palignr is used.
1343         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1344         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1345         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1346         Add strcmp-ssse3 and strncmp-ssse3.
1347         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1348         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1350         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1351         warning through fake initialization.
1353 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1355         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1357 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1359         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1360         unique symbols.
1362 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1364         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1365         EBX from EAX = 1.  Handle EAX = 11.
1367 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1369         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1370         inside ''.
1372 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1374         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1375         hidden IFUNC functions.
1376         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1378         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1380         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1381         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1382         strcasestr-c.
1383         (CFLAGS-strcspn-c.c): Define.
1384         (CFLAGS-strpbrk-c.c): Define.
1385         (CFLAGS-strspn-c.c): Define.
1386         (CFLAGS-strstr.c): Define.
1387         (CFLAGS-strcasestr.c): Define.
1388         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1389         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1390         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1391         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1392         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1393         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1394         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1395         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1396         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1397         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1398         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1399         -16L instead of 0xfffffffffffffff0L.
1400         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1402 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1404         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1406 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1408         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1409         another rewrite.  Much smaller and faster.
1410         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1412         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1413         ss_flags from the correct location.
1415 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1417         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1418         * sysdeps/i386/i686/cacheinfo.c: New file.
1419         * sysdeps/i386/i686/multiarch/Makefile: New file.
1420         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1421         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1422         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1423         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1424         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1425         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1426         (__cpuid_count): New. Provide the default.
1427         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1428         (__x86_64_preferred_memory_instruction): Define only if
1429         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1430         (intel_check_word): Use __cpuid.
1431         (handle_intel): Likewise.
1432         (handle_amd): Likewise.
1433         (__cache_sysconf): Likewise.
1434         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1435         (__cache_sysconf): Likewise.
1436         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1437         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1438         (get_common_indeces): Use __cpuid.
1439         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1440         if ENABLE_SSSE3_ON_ATOM is not defined.
1441         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1442         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1443         popcnt instead of popcntq.
1445 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1447         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1449 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1451         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1452         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1453         which always causes a compile error.
1455         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1457         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1458         comes from...
1459         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1460         which always causes a compile error.
1462         * debug/Makefile (tests): Add tst-longjmp_chk2.
1463         * debug/tst-longjmp_chk2.c: New file.
1465         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1466         Remove incorrect use of BP_SYM.
1467         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1468         here now since it is more complex than just a simple check.
1470         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1471         we make no more progress.
1473 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1475         * math/s_fma.c: Don't define alias if __fma is a macro.
1476         * math/s_fmaf.c: Likewise.
1477         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1478         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1479         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1481         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1482         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1483         New macro HAS_FMA.
1484         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1485         function.
1486         * include/libc-symbols.h (libm_ifunc): Define.
1487         * sysdeps/x86_64/multiarch/Versions: New file.
1489         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1491 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1493         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1495 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1497         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1498         call that registers used in calling conventions need to be preserved.
1499         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1500         to preserve register content if necessary.
1501         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1502         (_dl_x86_64_restore_sse): New function.
1503         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1504         is allowed to modify xmm/ymm registers.
1506         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1507         application's perspective.
1508         * stdio-common/scanf17.c: Likewise.
1510 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1512         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1513         size to memsz.
1514         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1515         here.
1516         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1517         two steps to catch bugs.
1519 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1521         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1522         determines which files are used in runtime lookups and only checks
1523         those for SSE use.
1524         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1525         testing.
1526         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1527         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1528         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1529         take a while.
1531         * elf/dl-open.c: Move _dl_scope_free to...
1532         * elf/dl-scope.c: ...here.  New file.
1533         * elf/Makefile (dl-routines): Add scope.
1535         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1536         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1537         RES_USE_DNSSEC.
1538         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1539         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1540         all the places we handled RES_USE_EDNS0 only before.
1541         Patch by Adam Tkac <atkac@redhat.com>.
1543 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1545         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1546         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1547         Update size when reallocating.
1549 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1551         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1552         functions used in ld.so modify xmm/ymm registers.
1553         * sysdeps/x86_64/Makefile:  Hook new test up.
1554         * sysdeps/x86_64/rtld-memchr.c: New file.
1555         * sysdeps/x86_64/rtld-memcmp.c: New file.
1556         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1557         * sysdeps/x86_64/rtld-strchr.S: New file.
1558         * sysdeps/x86_64/rtld-strlen.S: New file.
1559         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1560         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1562 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1564         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1565         strncmp-c.
1566         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1567         (exit): Likewise.
1568         (Byte1): Likewise.
1569         (Byte2): Likewise.
1570         (Byte3): Likewise.
1571         (Byte4): Likewise.
1572         (Byte5): Likewise.
1573         (Byte6): Likewise.
1574         (next_8_bytes): Likewise.
1575         (Byte0): Remove commented out codes.
1576         (unaligned_table): Align jump table at 8 bytes.
1577         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1578         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1579         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1580         * sysdeps/x86_64/strncmp.S: New file.
1582 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1584         [BZ #10422]
1585         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1586         kernels, dropped when eventfd2 support was added.
1587         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1588         kernels, dropped when signalfd4 support was added.
1589         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1590         added, name them.
1592         [BZ #10452]
1593         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1594         replies up.
1596         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1598 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1600         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1601         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1603         [BZ #10448]
1604         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1605         callback we must touch the status to avoid using stale value.
1607         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1608         compiled in.
1610 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1612         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1613         /lib/modules/* headers anymore.  We have sane headers in the standard
1614         place now.
1616 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1618         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1619         "etf3enh" and "highgprs" added.
1620         (_dl_s390_platforms): "z10" added.
1621         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1622         Increased for the new entries.
1623         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1624         HWCAP_S390_HIGH_GPRS added.
1626         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1627         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1628         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1629         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1630         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1632 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1634         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1635         avoid additional cpuid instructions.  Most of the information is
1636         stored somewhere.
1638         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1639         cache descriptors.
1640         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1642         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1643         SSSE3 bit for Atoms.
1644         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1645         here anymore.
1647         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1648         structure before copying it to avoid warning.
1649         * posix/tst-rfc3484-2.c (do_test): Likewise.
1650         * posix/tst-rfc3484-3.c (do_test): Likewise.
1652         [BZ #10416]
1653         * include/unistd.h: Make header file suitable for C++ test cases.
1654         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1656         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1657         stack alignment in the exit code.
1659         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1660         potentially be zero.
1662         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1663         unique symbol definition.
1664         Patch by Jakub Jelinek.
1665         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1666         make sure the object with the definition cannot be unloaded.  Adjust
1667         a few types.
1668         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1669         the unique symbol hash table should not be const.
1671 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1673         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1674         unnecesary variables.  Comment fixes.
1676 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1678         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1679         Use NONASCII_CASE information provided by the locale to determine
1680         whether optimized string load function can be used.  Minor cleanups.
1682 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1684         * string/strcasestr.c (STRCASESTR): New macro.
1685         (__strcasestr): Renamed to ..
1686         (STRCASESTR): ...this.
1687         * string/strstr.c (STRSTR): New macro.
1688         (strstr): Renamed to ..
1689         (STRSTR): ...this.
1690         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1691         strstr-c strcasestr-c
1692         (CFLAGS-strstr.c): New.
1693         (CFLAGS-strcasestr.c): Likewise.
1694         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1695         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1696         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1697         * sysdeps/x86_64/multiarch/strstr.c: New file.
1699 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1701         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1702         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1703         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1704         _NL_CTYPE_NONASCII_CASE.
1705         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1706         field.
1707         (ctype_finish): Check whether there are any 8-bit characters outside
1708         the range ASCII has or whether the mapping isn't the same as for
1709         ASCII (±0x20).  Set nonascii_case appropriately.
1710         (ctype_output): Add output handler for nonascii_case.
1712 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1714         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1715         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1717 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1719         [BZ #10360]
1720         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1721         0xffff in the EDNS0 record.
1723 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1725         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1726         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1727         is written before the list head update.
1728         Patch by Andreas Schwab <aschwab@redhat.com>.
1730 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1731             Jakub Jelinek  <jakub@redhat.com>
1733         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1734         corruption thread-safe.
1736 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1738         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1739         overrides atomic_compare_and_exchange_val_rel, define to
1740         atomic_compare_and_exchange_val_rel by default, otherwise default
1741         to catomic_compare_and_exchange_val_acq.
1742         (catomic_compare_and_exchange_bool_rel): If arch overrides
1743         atomic_compare_and_exchange_bool_rel, define to
1744         atomic_compare_and_exchange_bool_rel by default.
1745         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1746         Use catomic_compare_and_exchange_val_rel instead of
1747         catomic_compare_and_exchange_val_acq.
1749 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1751         * sysdeps/generic/ldsodefs.h: Add prototype for
1752         _dl_higher_prime_number.
1753         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1755         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1756         restoring of ymm registers a bit.
1758 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1760         * sysdeps/x86_64/memcmp.S: New file.
1762 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1764         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1765         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1766         pointers in writable memory.
1768 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1770         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1771         * config.make.in: Add config-cflags-avx entry.
1772         * configure.in: Substitute libc_cv_cc_avx.
1773         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1774         * elf/tst-audit4.c: New file.
1775         * elf/tst-audit5.c: New file.
1776         * elf/tst-auditmod4a.c: New file.
1777         * elf/tst-auditmod4b.c: New file.
1778         * elf/tst-auditmod5a.c: New file.
1779         * elf/tst-auditmod5b.c: New file.
1780         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1781         link-defines.sym.
1782         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1783         (La_x86_64_vector): Likewise.
1784         (La_x86_64_regs): Append lr_vector.
1785         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1786         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1787         saving and restoring SSE registers to ...
1788         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1789         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1790         <link-defines.h>.
1791         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1792         La_x86_64_regs.  Allocate extra space and jump to memory at
1793         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1794         (save_and_restore_vector_sse): New.
1795         (save_and_restore_vector_avx): Likewise.
1796         (check_avx): Likewise.
1797         (save_and_restore_vector): Likewise.
1798         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1799         HAVE_AVX_SUPPORT.
1800         * sysdeps/x86_64/link-defines.sym: New file.
1802 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1804         * elf/do-lookup.h: Removed after folding content into...
1805         * elf/dl-lookup.c: ...here.
1807         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1809 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1811         * configure.in: Check for gnu_unique_symbol symbol type.
1812         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1813         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1814         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1815         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1816         change.
1817         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1818         unique symbol table.
1819         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1820         for first namespace.
1821         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1822         unique symbol hash table.
1823         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1824         * elf/tst-unique1.c: New file.
1825         * elf/tst-unique1mod1.c: New file.
1826         * elf/tst-unique1mod2.c: New file.
1827         * elf/tst-unique2.c: New file.
1828         * elf/tst-unique2mod1.c: New file.
1829         * elf/tst-unique2mod2.c: New file.
1831 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1833         * elf/elf.h (STB_GNU_UNIQUE): Define.
1835         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1836         from...
1837         * include/inline-hashtab.h: ...here.
1838         (htab_expand): Adjust for renamed function.  Correct memory handling.
1840 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1842         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1844 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1846         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1847         (PPC_FEATURE_HAS_VSX): Likewise.
1849 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1851         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1852         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1854         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1855         aligned to 16 byte boundaries.
1856         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1857         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1858         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1860 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1862         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1863         * config.make.in (config-cflags-sse4): New variable.
1864         * configure.in: Substitute libc_cv_cc_sse4.
1865         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1866         HAVE_SSE4_SUPPORT.
1867         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1868         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1869         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1870         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1871         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1872         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1873         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1874         * sysdeps/x86_64/multiarch/strspn.S: New file.
1876 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1878         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1879         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1880         (tests): Add tst-audit3 for x86_64.
1881         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1882         ($(objpfx)tst-audit3): Define.
1883         ($(objpfx)tst-audit3.out): Define.
1884         (tst-audit3-ENV): Define.
1885         * elf/tst-audit3.c: New file.
1886         * elf/tst-auditmod3a.c: New file.
1887         * elf/tst-auditmod3b.c: New file.
1888         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1889         and restore xmm6.
1891         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1892         (__stpncpy): Renamed to ...
1893         (STPNCPY): This.
1894         (stpncpy): Create alias only if STPNCPY is not defined.
1895         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1896         defined.
1897         (strncpy): Renamed to ...
1898         (STRNCPY): This.
1899         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1900          stpncpy-c strncpy-c for string.
1901         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1902         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1903         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1904         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1905         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1906         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1908 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1910         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1911         adding to fast bin list.
1913 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1915         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1916         inet_makeaddr.  This worked only with class-based networks.
1917         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1918         Likewise.
1920         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1921         recognize all types.
1922         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1923         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1924         be in host byte order.
1926 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1928         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1929         (MODEL_OFFSET): Define.
1930         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1931         family and model.
1932         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1933         out common code into new function get_common_indeces. Determine
1934         extended family and model for Intel processors.
1936 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1938         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1939         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1940         option.
1941         * resolv/res_send.c (reopen): New function.  Broken out of...
1942         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1943         fallback mechanism.  If single-request fails switch to
1944         single-request-reopen mode which opens a new socket for the second
1945         request.
1947 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1949         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1950         (CHECK_SP): Use it.
1952 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1954         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1955         for saved registers.
1956         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1957         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1958         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1960 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1962         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1964 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1966         * po/id.po: Update from translation team.
1968         * po/bg.po: Update from translation team.
1970 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1972         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1973         defined.
1974         (strncmp): Renamed to STRNCMP.
1975         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1976         strncmp-c for string.
1977         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1978         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1979         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1980         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1982 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1984         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1985         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1986         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1987         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1988         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1989         ifuncmain7static.c.
1990         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1991         ifuncmain7static, and ifuncmain7picstatic.
1992         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1993         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1994         $(objpfx)ifuncmain7pie.out.
1995         (modules-names): Add ifuncmod5 ifuncmod6
1996         (ifuncmod5.so-no-z-defs): Define.
1997         (ifuncmod6.so-no-z-defs): Define.
1998         (CFLAGS-ifuncmain5pic.c): Define.
1999         (CFLAGS-ifuncmain5picstatic.c): Define.
2000         (CFLAGS-ifuncmain5staticpic.c): Define.
2001         (CFLAGS-ifuncdep5pic.c): Define.
2002         (CFLAGS-ifuncmain7pic.c): Define.
2003         (CFLAGS-ifuncmain7picstatic.c): Define.
2004         (CFLAGS-ifuncmain1staticpie.c): Define.
2005         (CFLAGS-ifuncmain5pie.c): Define.
2006         (CFLAGS-ifuncmain6pie.c): Define.
2007         (CFLAGS-ifuncmain7pie.c): Define.
2008         ($(objpfx)ifuncmain1staticpie.out): Define.
2009         ($(objpfx)ifuncmain1staticpie): Define.
2010         ($(objpfx)ifuncmain5pie.out): Define.
2011         ($(objpfx)ifuncmain5pie): Define.
2012         ($(objpfx)ifuncmain6pie.out): Define.
2013         ($(objpfx)ifuncmain6pie): Define.
2014         ($(objpfx)ifuncmain5): Define.
2015         ($(objpfx)ifuncmain5pic): Define.
2016         ($(objpfx)ifuncmain5static): Define.
2017         ($(objpfx)ifuncmain5staticpic): Define.
2018         ($(objpfx)ifuncmain5picstatic): Define.
2019         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2020         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2021         ifuncmain6pie.out.
2022         * elf/b/elf/ifuncmain1staticpie.c: New file.
2023         * elf/ifuncdep5.c: New file.
2024         * elf/ifuncdep5pic.c: New file.
2025         * elf/ifuncmain5.c: New file.
2026         * elf/ifuncmain5pic.c: New file.
2027         * elf/ifuncmain5picstatic.c: New file.
2028         * elf/ifuncmain5pie.c: New file.
2029         * elf/ifuncmain5static.c: New file.
2030         * elf/ifuncmain5staticpic.c: New file.
2031         * elf/ifuncmain6pie.c: New file.
2032         * elf/ifuncmain7.c: New file.
2033         * elf/ifuncmain7pic.c: New file.
2034         * elf/ifuncmain7picstatic.c: New file.
2035         * elf/ifuncmain7pie.c: New file.
2036         * elf/ifuncmain7static.c: New file.
2037         * elf/ifuncmod5.c: New file.
2038         * elf/ifuncmod6.c: New file.
2040 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2042         [BZ #10085]
2043         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2044         (nss_endgrent): New variable.
2045         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2046         fields. Change type of files to bool and adjust all users.
2047         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2048         (internal_endgrent): Call nss_endgrent if necessary.
2049         (add_group): New function.  Broken out of...
2050         (check_and_add_group): ...here.
2051         (getgrent_next_nss): Remove test that any callback is available.
2052         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2053         callback.  If there is no blacklist we can trust the results returned
2054         by the initgroups_dyn callback.  In case there is a callback and we
2055         find a group entry for the group ID but it doesn't contain the
2056         correct member, switch to the slow mode and use getgrent_r.
2057         (internal_getgrent_r): When we see a +: entry, determine whether
2058         there is any callback and which we can use the initgroups_dyn
2059         callback.
2061 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2063         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2064         (_int_free): Likewise.
2066         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2067         AF_IEEE802154.
2068         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2069         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2070         and ARPHRD_IEEE802154_PHY.
2072         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2073         relative to generic Linux version.
2075 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2077         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2078         ($(objpfx)ifuncmain1vispie): Likewise.
2080 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2082         * login/Makefile: Build pt_chown as PIE.
2084 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2086         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2087         a format string.
2088         * elf/sln.c (usage): Likewise.
2089         * malloc/memusage.sh (do_help): Likewise.
2090         * nss/getent.c (more_help): Likewise.
2091         * posix/getconf.c (main): Likewise.
2092         * sunrpc/rpcinfo.c (usage): Likewise.
2093         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2095 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2097         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2098         those needed.
2099         * login/Makefile: If necessary link pt_chown with -lcap.
2100         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2101         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2103 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2105         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2106         comparisons.
2107         * string/test-memchr.c (do_random_tests): Test very large lengths
2108         as well.
2110 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2112         * Makeconfig (+link-pie): Define.
2113         (+prectorS): Define.
2114         (+postctorS): Define.
2115         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2116         * nscd/Makefile ($(objpfx)nscd): Likewise.
2118 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2120         [BZ #10107]
2121         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2122         with cmplwi.
2123         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2125 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2127         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2128         into ...
2129         * sysdeps/unix/grantpt.c: ...here.
2131 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2133         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2134         chmod if it is necessary.
2136         [BZ #10166]
2137         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2138         when the slave device is in devpts or devfs.
2140         [BZ #10183]
2141         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2143         [BZ #10195]
2144         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2145         of nd_opt_home_agent_info_preference to uint16_t.
2146         Patch by Arnaud Ebalard <arno@natisbad.org>.
2148         [BZ #10207]
2149         * nss/getent.c: Add support for printing gshadow data.
2151         [BZ #10203]
2152         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2153         not just the currently used one and those which follow.
2154         Patch by Joe Landers <jlanders@vmware.com>.
2156         [BZ #10196]
2157         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2158         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2159         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2161         [BZ #10217]
2162         * stdlib/abort.c: Define variable __abort_msg.
2163         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2164         * include/stdlib.h: Declare __abort_msg.
2165         * assert/assert-perr.c: Don't free buffer for message immediately.
2166         Store atomically in __abort_msg and free old buffer if necessary.
2167         * assert/assert.c: Likewise.
2168         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2169         store pointer in __abort_msg, and possibly free old string.
2170         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2172         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2174         [BZ #10211]
2175         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2176         handle leap seconds if they are available.
2177         Patch by Akinori Hattori <hattya@gentoo.org>.
2179         * timezone/tzselect.ksh: Update from tzcode2009i.
2180         * timezone/zdump.c: Likewise.
2181         * timezone/zic.c: Likewise.
2183         * timezone/africa: Update from tzdata2009i.
2184         * timezone/antarctica: Likewise.
2185         * timezone/asia: Likewise.
2186         * timezone/australasia: Likewise.
2187         * timezone/backward: Likewise.
2188         * timezone/etcetera: Likewise.
2189         * timezone/europe: Likewise.
2190         * timezone/factory: Likewise.
2191         * timezone/iso3166.tab: Likewise.
2192         * timezone/leapseconds: Likewise.
2193         * timezone/northamerica: Likewise.
2194         * timezone/pacificnew: Likewise.
2195         * timezone/solar87: Likewise.
2196         * timezone/solar88: Likewise.
2197         * timezone/solar89: Likewise.
2198         * timezone/southamerica: Likewise.
2199         * timezone/systemv: Likewise.
2200         * timezone/yearistype: Likewise.
2201         * timezone/zone.tab: Likewise.
2203 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2205         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2206         STT_GNU_IFUNC symbol or in 8 into type_class.
2208         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2209         instead of Elf64_Addr.
2211 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2213         * po/sv.po: Update from translation team.
2215         [BZ #10229]
2216         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2217         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2218         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2219         the C version.
2221 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2223         * Versions.def: Add GLIBC_2.11 for libpthread.
2225 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2227         * resolv/res_send.c (send_dg): Remember we switched to
2228         single-request mode.
2230 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2232         * dlfcn/dlfcn.h: Remove comma at end of enum.
2233         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2235         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2236         parsing mode string.
2238 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2240         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2242         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2244         * sysdeps/x86_64/multiarch/strlen.S: New file.
2245         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2246         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2247         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2248         content.
2250         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2251         is defined.
2253 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2255         * sysdeps/x86_64/strlen.S: Minor optimizations.
2257 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2259         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2260         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2261         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2262         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2263         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2264         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2265         ifuncmain3.c, ifuncmod3.c,.
2266         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2267         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2268         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2269         ifuncmain4picstatic.
2270         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2271         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2272         ifuncmain3, ifuncmain4.
2273         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2274         $(objpfx)ifuncmain1vispie.out.
2275         (modules-names): Add ifuncmod1 ifuncmod3.
2276         (generated): Add ifuncmain1pie ifuncmain1pie.out
2277         ifuncmain1vispie ifuncmain1vispie.out.
2278         Define rules to build and run the tests.
2279         * elf/ifuncdep1.c: New file.
2280         * elf/ifuncdep1pic.c: New file.
2281         * elf/ifuncdep2.c: New file.
2282         * elf/ifuncdep2pic.c: New file.
2283         * elf/ifuncmain1.c: New file.
2284         * elf/ifuncmain1pic.c: New file.
2285         * elf/ifuncmain1picstatic.c: New file.
2286         * elf/ifuncmain1pie.c: New file.
2287         * elf/ifuncmain1static.c: New file.
2288         * elf/ifuncmain1staticpic.c: New file.
2289         * elf/ifuncmain1vis.c: New file..
2290         * elf/ifuncmain1vispic.c: New file..
2291         * elf/ifuncmain1vispie.c: New file.
2292         * elf/ifuncmain2.c: New file.
2293         * elf/ifuncmain2pic.c: New file.
2294         * elf/ifuncmain2picstatic.c: New file.
2295         * elf/ifuncmain2static.c: New file.
2296         * elf/ifuncmain3.c: New file.
2297         * elf/ifuncmain4.c: New file.
2298         * elf/ifuncmain4picstatic.c: New file.
2299         * elf/ifuncmain4static.c: New file.
2300         * elf/ifuncmod1.c: New file.
2301         * elf/ifuncmod3.c: New file.
2303 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2305         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2307 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2309         [BZ #10221]
2310         * posix/Makefile (routines): Add execvpe.
2311         * posix/Versions: Export execvpe for GLIBC_2.11.
2312         * posix/execvp.c: Now only a wrapper.  Move code to...
2313         * posix/execvpe.c: ...here.  New file.
2314         * posix/unistd.h: Declare execvpe.
2316 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2318         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2319         for STT_GNU_IFUNC handling for efficiency.
2320         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2322         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2323         _exit.
2324         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2326 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2328         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2329         for !SHARED.
2331 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2333         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2334         is not defined.
2335         (__rela_iplt_start): New declaration.
2336         (__rela_iplt_end): Likewise.
2337         (__rel_iplt_start): Likewise.
2338         (__rel_iplt_end): Likewise.
2339         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2340         * elf/elf.h (R_386_IRELATIVE): New macro.
2341         (R_X86_64_IRELATIVE): New macro.
2342         (R_386_NUM): Updated.
2343         (R_X86_64_NUM): Likewise.
2344         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2345         (libc_ifunc_hidden_def): New macro.
2346         * sysdeps/generic/dl-irel.h: New file.
2347         * sysdeps/i386/dl-irel.h: New file.
2348         * sysdeps/x86_64/dl-irel.h: New file.
2349         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2350         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2351         Handle R_386_IRELATIVE.
2352         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2353         (elf_machine_lazy_rela): Likewise.
2354         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2355         R_X86_64_IRELATIVE.
2356         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2358 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2360         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2361         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2362         are no differences.  If an architecture has bits in CPUID index 1
2363         meaning different things the values for the COMMON_CPUID_INDEX_1
2364         index must not be set.
2365         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2366         (HAS_POPCOUNT): ...this.  New macro.
2367         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2368         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2369         to set the value for Intel and AMD architectures.
2370         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2371         INTEL_CPUID_INDEX_1.
2372         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2373         change.
2375 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2377         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2378         and $build.
2380 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2382         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2383         (__expm1l): Set errno to ERANGE on overflow.
2384         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2385         (__tanl): Set errno to EDOM for ±Inf.
2386         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2387         (__cosl): Set errno to EDOM for ±Inf.
2388         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2389         (__sinl): Set errno to EDOM for ±Inf.
2391         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2392         defined, use it.
2393         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2394         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2395         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2397 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2399         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2400         code accessing it.
2401         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2403 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2405         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2406         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2407         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2408         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2410         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2411         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2412         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2413         defined.
2414         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2415         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2417 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2419         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2420         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2421         is, either do nothing at all if __ASSUME_ACCEPT4, or
2422         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2423         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2424         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2425         define.
2426         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2427         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2428         internal_accept4 in socket directory.
2430 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2432         * sysdeps/ia64/configure.in: New file.
2434 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2436         [BZ #10162]
2437         * sysdeps/ia64/memchr.S: Use speculative load.
2439         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2440         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2441         use it.
2443         * sysdeps/i386/__longjmp.S: Add .text.
2444         * sysdeps/x86_64/__longjmp.S: Likewise.
2446 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2448         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2449         __ASSUME_ACCEPT4 for IA-64.
2451 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2453         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2455         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2456         (SOCKOP_accept4): Define.
2458 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2460         Sun approved the change of the license.
2461         * sunrpc/auth_des.c: Replace license text.
2462         * sunrpc/auth_none.c: Likewise.
2463         * sunrpc/auth_unix.c: Likewise.
2464         * sunrpc/authdes_prot.c: Likewise.
2465         * sunrpc/authuxprot.c: Likewise.
2466         * sunrpc/bindrsvprt.c: Likewise.
2467         * sunrpc/clnt_gen.c: Likewise.
2468         * sunrpc/clnt_perr.c: Likewise.
2469         * sunrpc/clnt_raw.c: Likewise.
2470         * sunrpc/clnt_simp.c: Likewise.
2471         * sunrpc/clnt_tcp.c: Likewise.
2472         * sunrpc/clnt_udp.c: Likewise.
2473         * sunrpc/clnt_unix.c: Likewise.
2474         * sunrpc/des_crypt.c: Likewise.
2475         * sunrpc/des_soft.c: Likewise.
2476         * sunrpc/get_myaddr.c: Likewise.
2477         * sunrpc/getrpcport.c: Likewise.
2478         * sunrpc/key_call.c: Likewise.
2479         * sunrpc/key_prot.c: Likewise.
2480         * sunrpc/openchild.c: Likewise.
2481         * sunrpc/pm_getmaps.c: Likewise.
2482         * sunrpc/pm_getport.c: Likewise.
2483         * sunrpc/pmap_clnt.c: Likewise.
2484         * sunrpc/pmap_prot.c: Likewise.
2485         * sunrpc/pmap_prot2.c: Likewise.
2486         * sunrpc/pmap_rmt.c: Likewise.
2487         * sunrpc/rpc/auth.h: Likewise.
2488         * sunrpc/rpc/auth_unix.h: Likewise.
2489         * sunrpc/rpc/clnt.h: Likewise.
2490         * sunrpc/rpc/des_crypt.h: Likewise.
2491         * sunrpc/rpc/key_prot.h: Likewise.
2492         * sunrpc/rpc/netdb.h: Likewise.
2493         * sunrpc/rpc/pmap_clnt.h: Likewise.
2494         * sunrpc/rpc/pmap_prot.h: Likewise.
2495         * sunrpc/rpc/pmap_rmt.h: Likewise.
2496         * sunrpc/rpc/rpc.h: Likewise.
2497         * sunrpc/rpc/rpc_des.h: Likewise.
2498         * sunrpc/rpc/rpc_msg.h: Likewise.
2499         * sunrpc/rpc/svc.h: Likewise.
2500         * sunrpc/rpc/svc_auth.h: Likewise.
2501         * sunrpc/rpc/types.h: Likewise.
2502         * sunrpc/rpc/xdr.h: Likewise.
2503         * sunrpc/rpc_clntout.c: Likewise.
2504         * sunrpc/rpc_cmsg.c: Likewise.
2505         * sunrpc/rpc_common.c: Likewise.
2506         * sunrpc/rpc_cout.c: Likewise.
2507         * sunrpc/rpc_dtable.c: Likewise.
2508         * sunrpc/rpc_hout.c: Likewise.
2509         * sunrpc/rpc_main.c: Likewise.
2510         * sunrpc/rpc_parse.c: Likewise.
2511         * sunrpc/rpc_parse.h: Likewise.
2512         * sunrpc/rpc_prot.c: Likewise.
2513         * sunrpc/rpc_sample.c: Likewise.
2514         * sunrpc/rpc_scan.c: Likewise.
2515         * sunrpc/rpc_scan.h: Likewise.
2516         * sunrpc/rpc_svcout.c: Likewise.
2517         * sunrpc/rpc_tblout.c: Likewise.
2518         * sunrpc/rpc_util.c: Likewise.
2519         * sunrpc/rpc_util.h: Likewise.
2520         * sunrpc/rpcinfo.c: Likewise.
2521         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2522         * sunrpc/rpcsvc/key_prot.x: Likewise.
2523         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2524         * sunrpc/rpcsvc/mount.x: Likewise.
2525         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2526         * sunrpc/rpcsvc/rex.x: Likewise.
2527         * sunrpc/rpcsvc/rstat.x: Likewise.
2528         * sunrpc/rpcsvc/rusers.x: Likewise.
2529         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2530         * sunrpc/rpcsvc/spray.x: Likewise.
2531         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2532         * sunrpc/rtime.c: Likewise.
2533         * sunrpc/svc.c: Likewise.
2534         * sunrpc/svc_auth.c: Likewise.
2535         * sunrpc/svc_authux.c: Likewise.
2536         * sunrpc/svc_raw.c: Likewise.
2537         * sunrpc/svc_run.c: Likewise.
2538         * sunrpc/svc_simple.c: Likewise.
2539         * sunrpc/svc_tcp.c: Likewise.
2540         * sunrpc/svc_udp.c: Likewise.
2541         * sunrpc/svc_unix.c: Likewise.
2542         * sunrpc/svcauth_des.c: Likewise.
2543         * sunrpc/xcrypt.c: Likewise.
2544         * sunrpc/xdr.c: Likewise.
2545         * sunrpc/xdr_array.c: Likewise.
2546         * sunrpc/xdr_float.c: Likewise.
2547         * sunrpc/xdr_mem.c: Likewise.
2548         * sunrpc/xdr_rec.c: Likewise.
2549         * sunrpc/xdr_ref.c: Likewise.
2550         * sunrpc/xdr_sizeof.c: Likewise.
2551         * sunrpc/xdr_stdio.c: Likewise.
2553         * po/da.po: Update from translation team.
2555 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2557         * sysdeps/sh/____longjmp_chk.S: New file.
2558         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2559         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2561 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2562             Ulrich Drepper  <drepper@redhat.com>
2564         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2565         (__nscd_cache_search): Assume each entry in the
2566         hash chain needs one hashentry and half of datahead.  Use
2567         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2569 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2571         * posix/sys/wait.h: Fix typos.  Pretty printing.
2572         * stdlib/stdlib.h: Likewise.  Correct comments.
2574         [BZ #10159]
2575         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2577         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2578         patch.
2580 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2582         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2583         Use it if we absolutely cannot reach any more correct list elements
2584         because that many do not fit into the currently mapped database.
2586 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2588         * nscd/nscd_helper.c: Include stddef.h.
2589         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2590         in a couple of places.  Return NULL if trail is not less than
2591         datasize, don't consider dataheads with length smaller than
2592         offsetof (struct datahead, data) + datalen.
2593         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2594         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2595         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2596         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2597         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2598         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2599         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2601         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2602         Rename ...
2603         (fallocate64): ... to this.
2604         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2605         Rename ...
2606         (fallocate64): ... to this.
2607         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2608         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2609         fallocate64@@GLIBC_2.10.
2610         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2611         fallocate64@@GLIBC_2.11.
2612         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2614         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2615         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2617         * nscd/selinux.c (nscd_avc_destroy): Removed.
2618         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2619         * nscd/nscd.c (termination_handler): Don't call
2620         nscd_avc_destroy.
2622 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2624         * include/atomic.h: Formatting.
2625         (catomic_compare_and_exchange_val_acq): Don't define if already
2626         defined by bits/atomic.h.
2628 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2630         * math/libm-test.inc (expm1_test): Add test for range error.
2632         * Versions.def: Add GLIBC_2.11 for libc.
2633         * debug/Makefile (routines): Add longjmp_chk.
2634         Add rules to build and run tst-longjmp_chk.
2635         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2636         * debug/longjmp_chk.c: New file.
2637         * debug/tst-longjmp_chk.c: New file.
2638         * include/bits/setjmp2.: New file.
2639         * include/stdio.h: Mark __fortify_fail as internal_function.
2640         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2641         * setjmp/bits/setjmp2.h: New file.
2642         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2643         of the aliases.
2644         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2645         defined.
2646         * sysdeps/i386/____longjmp_chk.S: New file.
2647         * sysdeps/x86_64/____longjmp_chk.S: New file.
2648         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2649         * sysdeps/x86_64/__longjmp.S: Likewise.
2651         * version.h: Bump for 2.11 development.
2653         * elf/check-execstack.c: New file.
2654         * elf/Makefile: Add rules to build and run check-execstack.
2656 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2658         * version.h (VERSION): Bump to 2.10.1.
2660         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2661         compatibility functions.
2662         * nss/getXXent_r.c: Likewise.
2663         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2664         * gshadow/getsgnam_r.c: Likewise.
2665         * gshadow/Version: Remove duplicate entries.
2667         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2668         for recent processor.
2669         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2670         Likewise.
2672 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2674         * version.h (VERSION): Bump for 2.10 release.
2675         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2677         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2678         same place we add ASFLAGS-config.
2680 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2682         [BZ #10128]
2683         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2684         or FORMERR and the other NOERROR, don't raise an error.
2686 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2688         [BZ #10118]
2689         * Makeconfig (+asflags): New variable based upon ASFLAG or
2690         asflags-cpu.
2691         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2692         * config.make.in (asflags-cpu): Add variable based upon
2693         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2694         the assembler.
2695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2696         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2697         recognizes power6 instruction set due to passing -mcpu=power6 from
2698         --with-cpu=power6 when compiling .S files.
2699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2700         Likewise.
2701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2702         Likewise.
2703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2704         Likewise.
2706 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2708         * string/stratcliff.c (do_test): Test for zero length
2709         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2710         at the end of the page.
2712 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2714         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2716         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2717         count is zero.
2719         * po/da.po: Update from translation team.
2721 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2723         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2724         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2726 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2728         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2729         and READ_IMPLIES_EXEC.
2731 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2733         * po/da.po: Update from translation team.
2735 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2737         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2738         comment change.
2740 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2742         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2743         to MAP_ANON in PROT_NONE mmap64 call.
2744         (open_archive): Likewise.
2745         (file_data_available_p): Use mmap64 instead of mremap.
2746         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2747         Attempt to reserve address space after mmap64 region.
2749 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2751         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2752         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2753         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2755         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2756         atanh should set ERANGE.
2758         [BZ #10087]
2759         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2760         result of lookup to make call to implement STT_GNU_IFUNC.
2761         (_dl_profile_fixup): Likewise.
2762         Patch by H.J. Lu <hjl.tools@gmail.com>.
2764         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2765         warning.
2767         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2768         from definition.
2770         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2771         label if it is not used.
2773         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2774         of gmon_hist_hdr and gmon_hdr structures and use them.
2775         * elf/sprof.c: Likewise.
2777         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2778         warning.
2780         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2782         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2783         to avoid cast.
2785         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2786         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2787         to avoid warnings.
2788         (iruserok_af): Use ss_family instead of casts.
2790         * gmon/gmon.c (write_hist): Define real-type variant of
2791         gmon_hist_hdr structure and use it.
2792         (write_gmon): Likewise for gmon_hdr.
2794         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2795         function if we are not going to define it.
2796         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2798         * inet/inet6_option.c (option_alloc): Add temporary variable to
2799         avoid warning.
2801         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2802         name of VTable element.
2803         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2804         * libio/iovsscanf.c: Likewise.
2805         * libio/vasprintf.c: Likewise.
2806         * libio/vsnprintf.c: Likewise.
2807         * stdio-common/isoc99_vsscanf.c: Likewise.
2808         * stdlib/strfmon_l.c: Likewise.
2809         * debug/vasprintf_chk.c: Likewise.
2810         * debug/vsnprintf_chk.c: Likewise.
2811         * debug/vsprintf_chk.c: Likewise.
2813         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2814         function pointers.
2816 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2818         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2820 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2822         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2824         * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2825         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2826         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2827         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2828         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2829         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2830         * math/libm-test.inc: Add tests for errno after tan calls with
2831         ±Inf.
2833         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2834         errno value vor pow(+-0,neg).
2835         * math/libm-test.inc (pow_test): Add tests for errno value for
2836         pole errors.
2838         * math/w_fmod.c: Also handle x=±Inf as error.
2839         * math/w_fmodf.c: Likewise.
2840         * math/w_fmodl.c: Likewise.
2841         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2842         x=±Inf or y=0.
2844         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
2845         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2846         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2847         * sysdeps/i386/fpu/s_sin.S: Likewise.
2848         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2849         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2850         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2851         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2852         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2853         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2854         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2855         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2856         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2857         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2858         ±Inf.
2860         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2861         ERANGE for underflows.
2862         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2864         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2865         the 2001 revision.
2867         * libio/tst-widetext.input: Remove surrogates.
2869         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2871         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2872         for lgamma should set errno to ERANGE, not EDOM.
2873         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2875 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2877         [BZ #10093]
2878         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2879         UTF-16 surrogates.
2881         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2882         space when temporarily mapping the whole content of the old file.
2884         [BZ #10100]
2885         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2886         not zero.
2888 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2890         * iconvdata/sjis.c (BODY): Don't advance inptr before
2891         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2892         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2893         two byte chars.
2895 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2897         * locale/locarchive.h (struct locarhandle): Rename len field to
2898         mmaped and add new reserved field.
2899         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2900         (create_archive): Reserve address space and then map file into it.
2901         (open_archive): Likewise.
2902         (file_data_available_p): New function.
2903         (compare_from_file): New function.
2904         (close_archive): Adjust to member name changes.
2905         (add_locale): Before comparing locale data, check it is mapped.
2906         Otherwise fall back to reading from the file.
2908 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2910         * stdio-common/psiginfo.c: Include <errno.h>.
2912 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2914         [BZ #9920]
2915         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2916         to get consistency between 32 and 64 bit architectures.
2918         [BZ #10052]
2919         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2920         directory for dummy syscall rules.
2921         Patch by Chris Steinbroner <hesh@pobox.com>.
2923 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2925         [BZ #10092]
2926         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2927         MNT_EXPIRE.
2929 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2931         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2932         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2934 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2936         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2937         data from vector to temporary buffer and call PWRITEV after it
2938         instead of vice versa.
2939         * sysdeps/posix/preadv.c: Fix up comment.
2940         * misc/preadv.c: Likewise.
2941         * misc/preadv64.c: Likewise.
2942         * misc/pwritev.c: Likewise.
2943         * misc/pwritev64.c: Likewise.
2944         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2946 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2948         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2950         * shadow/Makefile (tests): Add tst-shadow.
2951         * shadow/tst-shadow.c: New file.
2953         [BZ #9955]
2954         * gshadow/Makefile: New file.
2955         * gshadow/Versions: New file.
2956         * gshadow/fgetsgent.c: New file.
2957         * gshadow/fgetsgent_r.c: New file.
2958         * gshadow/getsgent.c: New file.
2959         * gshadow/getsgent_r.c: New file.
2960         * gshadow/getsgnam.c: New file.
2961         * gshadow/getsgnam_r.c: New file.
2962         * gshadow/gshadow.h: New file.
2963         * gshadow/putsgent.c: New file.
2964         * gshadow/sgetsgent.c: New file.
2965         * gshadow/sgetsgent_r.c: New file.
2966         * gshadow/tst-gshadow.c: New file.
2967         * include/gshadow.h: New file.
2968         * Makeconfig (all-subdirs): Add gshadow.
2969         * Makefile (installed-headers): Add gshadow/gshadow.h.
2970         * nss/Makefile (databases): Add sgrp.
2971         * nss/Versions: Add gshadow functions as private exports.
2972         * nss/nsswitch.conf: Add gshadow entry.
2973         * nss/sgrp-lookup.c: New file.
2974         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2975         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2976         * nss/nss_files/files-sgrp.c: New file.
2977         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2978         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2980 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2982         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2983         * stdio-common/reg-modifier.c: Likewise.
2985 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2987         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2988         is no FPU.
2990 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2992         [BZ #10086]
2993         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2994         headers up to 2.6.30.
2996         * po/ca.po: Update from translation team.
2998 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3000         [BZ #10069]
3001         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3002         an object that uses static TLS if the TLS modid is higher than the
3003         reserve we always allocate.  At least for multi-threaded code.
3005 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3007         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3008         Numerically stable check for valid width.
3010         * locale/programs/locarchive.c (open_archive): Map the entire file
3011         and not just the administrative data.
3012         (add_locale): When we find a hash sum match compare the content
3013         to be sure.
3015         * malloc/malloc.c (malloc_info): Output address space information.
3017 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3019         * malloc/malloc.c (malloc_info): Also output system memory information.
3021         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3022         architectures have preadv/pwritev in 2.6.30.
3024         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3025         * sysdeps/posix/readv.c: Likewise.
3026         Reported by Markus Armbruster <armbru@redhat.com>.
3028         * malloc/hooks.c (top_check): Force hook value into register.
3030 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3032         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3033         calls to _dl_relocate_object.
3035 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3037         [BZ #9957]
3038         * malloc/malloc.c (force_reg): Define.
3039         (sYSMALLOc): Load hook variable into variable
3040         before test and force into register.
3041         (sYSTRIm): Likewise.
3042         (public_mALLOc): Force hook value into register.
3043         (public_fREe): Likewise.
3044         (public_rEALLOc): Likewise.
3045         (public_mEMALIGn): Likewise.
3046         (public_vALLOc): Likewise.
3047         (public_pVALLOc): Likewise.
3048         (public_cALLOc): Likewise.
3049         (__posix_memalign): Likewise.
3050         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3051         before test and force into register.
3052         * malloc/hooks.c (top_check): Likewise.
3053         (public_sET_STATe): Pretty printing.
3055         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3056         in case we only receive one reply in single-request mode.
3058 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3060         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3061         are dlopened in statically linked program even for __LM_ID_CALLER.
3063 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3065         * resolv/res_send.c (send_dg): Don't switch into single-request
3066         mode if we already are in it.
3068 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3070         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3071         are always at least 4 bytes in the returned line.
3073 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3075         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3076         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3077         instead of 8K.  Stop searching in /proc/stat after hitting first
3078         line not starting with cpu.
3079         (next_line): Truncate too long
3080         lines at buffer size * 3/4 instead of pretending there were line
3081         breaks inside of large lines.
3083 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3085         * sysdeps/x86_64/mp_clz_tab.c: New file.
3087 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3088             Ulrich Drepper  <drepper@redhat.com>
3090         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3091         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3092         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3094 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3096         * sysdeps/sh/libc-tls.c: New file.
3098         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3100 2009-04-14  Roland McGrath  <roland@redhat.com>
3102         * elf/elf.h: Add various missing ARM constants, to match binutils.
3104 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3106         Optimizations from GMP.
3107         * sysdeps/x86_64/add_n.S: New file.
3108         * sysdeps/x86_64/addmul_1.S: New file.
3109         * sysdeps/x86_64/lshift.S: New file.
3110         * sysdeps/x86_64/mul_1.S: New file.
3111         * sysdeps/x86_64/rshift.S: New file.
3112         * sysdeps/x86_64/sub_n.S: New file.
3113         * sysdeps/x86_64/submul_1.S: New file.
3115 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3117         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3118         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3119         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3120         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3122 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3124         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3125         preadv/pwritev.
3127 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3129         * sysdeps/x86-64/strrchr.S: New file.
3131 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3133         * stdio-common/printf.h (struct printf_info): Add user element.
3134         New types printf_arginfo_size_function, printf_va_arg_function.
3135         Declare register_printf_specifier, register_printf_modifier,
3136         register_printf_type.
3137         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3138         (union printf_arg): Add pa_user element.
3139         Adjust __printf_arginfo_table type.
3140         Add __printf_va_arg_table, __printf_modifier_table,
3141         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3142         declarations.
3143         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3144         If registered arginfo call failed try normal specifier.
3145         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3146         function.
3147         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3148         * stdio-common/Versions: Export register_printf_modifier,
3149         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3150         * stdio-common/reg-modifier.c: New file.
3151         * stdio-common/reg-type.c: New file.
3152         * stdio-common/reg-printf.c (__register_printf_specifier): New
3153         function.  Mostly the old __register_printf_function function but
3154         uses locking and type of third parameter changed.
3155         (__register_printf_function): Implement using
3156         __register_printf_specifier.
3157         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3158         calls to arginfo functions.  Allocate enough memory for user-defined
3159         types.  Call new va_arg functions to get user-defined types.
3160         Try installed handlers even for existing format specifiers first.
3162 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3164         * sysdeps/x86_64/rawmemchr.S: New file.
3166         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3167         Simplified code and possible copy problem fixed.
3169         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3170         function if it is not defined.  Add some necessary casts.
3171         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3173         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3174         have preadv/pwritev in 2.6.30.
3176 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3178         * malloc/malloc.c (malloc_info): New function.
3179         * malloc/malloc.h: Declare it.
3180         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3182         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3183         to avoid PLT slot.
3185         * malloc/malloc.c (_int_realloc): Add parameter with old block
3186         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3187         Adjust all callers.
3188         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3190 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3192         * sysdeps/x86_64/strchrnul.S: New file.
3194         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3195         depending libcrypt on -lfreebl3.
3197         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3198         preadv/pwritev in 2.6.30.
3200         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3201         instead of __strcasecmp.
3203         * string/stratcliff.c (do_test): Add memchr tests..
3204         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3205         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3206         first read quad word.
3208 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3210         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3211         * string/tst-svc.input: Add new test case.
3212         * string/tst-svc.expect: Adjust.
3213         * string/Makefile: Don't ignore tst-svc error.
3215         * sysdeps/x86_64/memchr.S: New file.
3217         * resolv/resolv.h (RES_SNGLKUP): Define.
3218         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3219         * resolv/res_send.c (send_dg): If we sent two requests at once and
3220         only get one reply before timeout switch to mode where we send the
3221         second request only after the first answer has been received.
3223 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3225         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3226         * sysdeps/x86_64/strchr.S: Likewise.
3228 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3230         * configure.in: We need to test for the compiler earlier.
3232         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3233         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3234         GLIBC_2.10.
3235         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3236         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3237         and pwritev.
3238         * misc/preadv.c: New file.
3239         * misc/preadv64.c: New file.
3240         * misc/pwritev.c: New file.
3241         * misc/pwritev64.c: New file.
3242         * sysdeps/posx/preadv.c: New file.
3243         * sysdeps/posx/preadv64.c: New file.
3244         * sysdeps/posx/pwritev.c: New file.
3245         * sysdeps/posx/pwritev64.c: New file.
3246         * sysdeps/unix/sysv/linux/preadv.c: New file.
3247         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3248         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3249         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3250         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3251         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3253         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3254         compatibility code.
3255         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3257         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3258         __ASSUME_COMPLETE_READV_WRITEV.
3259         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3260         with modern kernels.
3261         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3263         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3264         to free a possible malloced buffer in case of cancellation.
3265         * sysdeps/posix/writev.c: Likewise for write.
3267 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3269         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3271         * configure.in: Recognize --enable-nss-crypt.
3272         * config.make.in: Add nss-crypt entry.
3273         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3274         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3275         and include path for NSS directory to compiler for md5-crypt,
3276         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3277         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3278         function implementation, use NSS.  Introduce wrappers around the
3279         hash function calls.  Little code size optimization.
3280         * crypt/sha256-crypt.c: Likewise.
3281         * crypt/sha512-crypt.c: Likewise.
3282         * scripts/check-local-headers.sh: Ignore nss3 directory.
3284         * configure.in: Rename pic_default to libc_cv_pic_default.
3285         * config.make.in: Likewise.
3287 2009-04-01  Roland McGrath  <roland@redhat.com>
3289         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3290         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3291         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3292         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3293         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3294         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3295         (R_SPARC_NUM): Update.
3296         From Dave Miller <davem@davemloft.net>.
3298 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3300         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3302 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3304         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3305         those which are used.
3306         * elf/dl-addr.c: Likewise.
3307         * elf/dl-caller.c: Likewise.
3308         * elf/dl-fini.c: Likewise.
3309         * elf/dl-iteratephdr.c: Likewise.
3310         * elf/dl-libc.c: Likewise.
3311         * elf/dl-load.c: Likewise.
3312         * elf/dl-support.c: Likewise.
3313         * elf/dl-sym.c: Likewise.
3314         * elf/rtld.c: Likewise.
3315         * sysdeps/generic/ldsodefs.h: Likewise.
3317         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3318         * elf/dl-minimal.c: Likewise.
3319         * elf/dl-misc.c: Likewise.
3320         * elf/rtld.c: Likewise.
3321         * sysdeps/generic/ldsodefs.h: Likewise.
3323 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3325         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3326         Avoid reuse of complex expression.
3328         * po/fr.po: Update from translation team.
3330 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3332         * include/dirent.h: Yet more changes to match sort function type
3333         change.
3334         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3335         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3336         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3338 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3340         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3342 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3344         * nscd/connections.c (restart): Try to preserve the process name
3345         by reading the /proc/self/exe symlink and using the return name.
3346         Patch by Jeff Bastian <jbastian@redhat.com>.
3348 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3350         [BZ #9733]
3351         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3352         if we are not loading a new audit library.
3353         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3354         Only use profiling trampoline for auditing if we are not relocating
3355         an audit library.
3356         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3357         * elf/rtld.c: Likewise.
3358         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3360         * elf/rtld.c (dl_main): Extend help message for --audit option.
3362         [BZ #9759]
3363         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3364         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3365         * dirent/alphasort.c: Adjust implementation to type change.
3366         * dirent/alphasort64.c: Likewise.
3367         * dirent/scandir.c: Likewise.
3368         * dirent/versionsort.c: Likewise.
3369         * dirent/versionsort64.c: Likewise.
3370         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3371         declaration.
3372         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3373         declaration.
3375         [BZ #9880]
3376         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3377         correctly.  Set segleft member in output as required.
3378         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3379         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3381         [BZ #9881]
3382         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3383         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3384         * inet/Makefile (tests): Add tst-inet6_rth.
3385         * inet/tst-inet6_rth.c: New file.
3387         [BZ #5807]
3388         * string/strlen.c (strlen): Fix omission in the expression to test
3389         for NUL bytes.
3391 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3393         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3395         * elf/dl-runtime.c (reloc_offset): Define.
3396         (reloc_index): Define.
3397         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3398         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3399         computing index from reloc_offset.
3400         (_dl_call_pltexit): Likewise.
3401         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3402         the relocation index to _dl_fixup.
3403         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3404         _dl_call_pltexit.
3405         * sysdeps/x86_64/dl-runtime.c: New file.
3407         [BZ #9893]
3408         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3409         alignment of La_x86_64_regs.  Store xmm parameters.
3410         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3412         [BZ #9913]
3413         * string/strverscmp.c (__strverscmp): Fix case of different digits
3414         in fractional part of string.
3415         Patch by Jingyu Liu <jyliu@fortinet.com>.
3416         * string/Makefile (tests): Add tst-svc2.
3417         * string/tst-svc2.c: New file.
3419         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3421         * locale/iso-639.def: Add Min Nan.
3423 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3425         [BZ #9948]
3426         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3428 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3430         * elf/dl-sysdep.c (auxvars): Compress data structure.
3432         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3433         STT_GNU_IFUNC handling.
3434         (elf_machine_rela): Likewise.
3436 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3438         * config.h.in (USE_MULTIARCH): Define.
3439         * configure.in: Handle --enable-multi-arch.
3440         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3441         (_dl_fixup_profile): Likewise.
3442         * elf/do-lookup.c (dl_lookup_x): Likewise.
3443         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3444         * elf/elf.h (STT_GNU_IFUNC): Define.
3445         * include/libc-symbols.h (libc_ifunc): Define.
3446         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3447         framework in init-arch.h to get CPUID values.
3448         * sysdeps/x86_64/multiarch/Makefile: New file.
3449         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3450         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3451         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3453         * config.make.in (experimental-malloc): Define.
3454         * configure.in: Handle --enable-experimental-malloc.
3455         * malloc/Makefile: Handle experimental-malloc flag.
3456         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3457         * malloc/arena.c: Likewise.
3458         * malloc/hooks.c: Likewise.
3459         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3461 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3463         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3464         prediction.  A few size optimizations.
3466 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3468         * time/tzset.c: Optimize a bit for size.
3470 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3472         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3473         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3475         * elf/sprof.c: Avoid warning about multi-line comment.
3477 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3479         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3480         DST name.
3481         * time/tst-posixtz.c: Add tests for quoted timezone names.
3483 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3485         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3486         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3487         200809L instead of 200112L.
3488         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3489         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3491         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3492         instead of __quick_exit_funcs to __run_exit_handlers.
3493         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3494         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3495         (__cxa_at_quick_exit): Remove attribute_hidden.
3496         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3497         to __run_exit_handlers.
3498         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3499         attribute_hidden.
3501 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3503         * po/id.po: Update from translation team.
3505 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3508         .machine push; .machine "power6" and .machine pop around mtfsf
3509         insns outside of _ARCH_PWR6 define.
3510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3512         Likewise.
3513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3514         Likewise.
3515         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3516         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3517         relax_fenv_state): Likewise.
3519 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3521         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3522         cxa_at_quick_exit.
3523         (static-only-routines): Add at_quick_exit.
3524         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3525         GLIBC_2.10.
3526         * stdlib/quick_exit.c: New file.
3527         * stdlib/at_quick_exit.c: New file.
3528         * stdlib/cxa_at_quick_exit.c: New file.
3529         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3530         it appropriately.
3531         (__internal_atexit): New function.
3532         (__new_exitfn): Now takes parameter to point to the list to use.
3533         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3534         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3535         (exit): ...here.  Just call __run_exit_handlers appropriately.
3536         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3537         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3538         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3539         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3541         * po/id.po: Update from translation team.
3543 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3545         * po/ru.po: Update from translation team.
3547 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3549         * po/nl.po: Update from translation team.
3551 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3553         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3554         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3555         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3556         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3557         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3558         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3559         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3561         * po/pl.po: Update from translation team.
3563 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3565         [BZ #7083]
3566         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3567         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3568         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3569         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3570         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3571         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3572         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3573         for GLIBC_2.10.
3574         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3575         Add fallocate and fallocate64.
3577         * io/fcntl.h: Pretty printing.
3579 2009-03-02  Richard Guenther  <rguenther@suse.de>
3581         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3582         attribute also for non-C99 inline semantics variant.
3584 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3586         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3587         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3588         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3589         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3591         Likewise.
3592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3593         Likewise.
3595 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3597         * po/cs.po: Update from translation team.
3599 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3601         * po/bg.po: Update from translation team.
3602         * po/sv.po: Likewise.
3603         * po/fi.po: Likewise.
3604         * po/vi.po: Likewise.
3606 2009-02-27  Roland McGrath  <roland@redhat.com>
3608         * Makeconfig (%.v.i): Depend on Makeconfig.
3609         Exclude % lines from initial #-comment removal.
3611 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3613         * po/ko.po: Update from translation team.
3615 2009-02-26  Roland McGrath  <roland@redhat.com>
3617         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3618         avoids unused warning.
3620 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3621             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3623         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3624         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3625         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3626         and asm/user.h.  Include asm/ptrace.h.
3627         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3628         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3629         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3630         Undefine.
3631         (start_thread): Don't undefine.
3632         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3633         Define.
3635 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3637         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3638         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3639         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3640         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3641         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3642         200112L to 200809L.
3643         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3644         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3645         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3646         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3647         _SC_THREAD_ROBUST_PRIO_PROTECT.
3648         * posix/unistd.h: fexecve is in POSIX 2008.
3649         * time/time.h: strftime_l is in POSIX 2008.
3650         * io/sys/stat.h: futimens is in POSIX 2008.
3651         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3652         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3653         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3654         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3655         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3656         open_memstream, and vdprintf are in POSIX 2008.
3658 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3660         * include/features.h: Define macros for XPG7/POSIX 2008.
3661         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3662         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3663         POSIX 2008.
3664         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3665         * locale/xlocale.h: Define locale_t type.
3666         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3667         in POSIX 2008.  Don't define locale_t here.
3668         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3669         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3670         UTIME_OMIT only with __USE_ATFILE.
3671         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3672         * stdio-common/psiginfo.c: New file.
3673         * stdio-common/psiginfo-data.h: New file.
3674         * stdio-common/psiginfo-define.h: New file.
3675         * stdio-common/Makefile (routines): Add psiginfo.
3676         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3677         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3678         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3679         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3680         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3681         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3682         * io/sys/stat.h: Move mknodat definition into same conditional as
3683         mknod.
3684         * time/sys/time.h: futimesat is not among the functions accepted
3685         into the POSIX standard.
3687         * include/features.h: If no feature selection given and we select
3688         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3689         * posix/Versions: Export __posix_getopt.
3690         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3691         Use it to alternatively initialize __posixly_correct.
3692         (_getopt_internal_r): Take addition parameter.  Pass on to
3693         _getopt_initialize.
3694         (_getopt_internal): Take addition parameter.  Pass on to
3695         _getopt_internal_r.
3696         (getopt): Pass additional zero to _getopt_internal.
3697         (__posix_getopt): New function.
3698         * posix/getopt.h: Add redirection for getopt.
3699         * posix/getopt1.c (getopt_long): Pass additional zero to
3700         _getopt_internal.
3701         (getopt_long_only): Likewise.
3702         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3703         (_getopt_long_only_r): Likewise.
3704         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3705         _getopt_internal_r.
3707 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3709         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3710         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3711         * sysdeps/posix/sysconf.c (__sysconf): Handle
3712         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3713         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3715 2009-02-24  Roland McGrath  <roland@redhat.com>
3717         [BZ #9895]
3718         * README.template: Reworded not to use substituted version number.
3719         Renamed to ...
3720         * README: ... here (no longer generated).
3721         * Makefile (README): Target removed.
3723 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3725         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3726         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3727         instead.
3729         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3731         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3733 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3735         * po/bg.po: Update from translation team.
3737 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3739         * stdlib/monetary.h: Uglify function parameter names.
3740         * sunrpc/rpc/pmap_clnt.h: Likewise.
3741         * sunrpc/rpc/svc.h: Likewise.
3742         * sunrpc/rpc/xdr.h: Likewise.
3743         * sunrpc/rpc/clnt.h: Likewise.
3744         * resolv/netdb.h: Likewise.
3745         * resolv/arpa/nameser.h: Likewise.
3746         * resolv/resolv.h: Likewise.
3747         * argp/argp.h: Likewise.
3748         * locale/langinfo.h: Likewise.
3749         * io/sys/stat.h: Likewise.
3750         * posix/spawn.h: Likewise.
3751         * nis/rpcsvc/nislib.h: Likewise.
3752         * malloc/obstack.h: Likewise.
3753         * sysdeps/ia64/bits/link.h: Likewise.
3754         * sysdeps/i386/bits/link.h: Likewise.
3755         * sysdeps/s390/bits/link.h: Likewise.
3756         * sysdeps/powerpc/bits/link.h: Likewise.
3757         * sysdeps/x86_64/bits/link.h: Likewise.
3758         * sysdeps/sparc/bits/link.h: Likewise.
3759         * sysdeps/sh/bits/link.h: Likewise.
3760         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3761         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3762         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3763         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3765 2008-12-01  Fredrik Unger  <fred@tree.se>
3767         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3768         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3769         _FP_UNPACK_RAW_2, fix up first argument.
3771 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3773         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3774         (GET_NPROCS_PARSER): Change parameters and use next_line.
3775         (__get_nprocs): Rewrite to not use stdio routines.
3776         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3777         Change parameters and use next_line.
3779 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3781         [BZ #5381]
3782         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3783         Change mempool_alloc prototype.
3784         * nscd/mem.c (gc): Don't handle mem_in_flight.
3785         (mempool_alloc): Third parameter now only indicates whether this is the
3786         first call (to allocate data) or not.  If it is, get db rdlock.
3787         Release it on error.  Don't handle mem_in_flight.
3788         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3789         Adjust third parameter of mempool_alloc calls.
3790         Nothing to do here in case mempool_alloc fails.
3791         Avoid local variable shadowing parameter.  No need to get db rdlock
3792         before calling cache_add.
3793         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3794         no mem_in_flight array anymore.
3795         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3796         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3797         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3798         in case mempool_alloc fails. No need to get db rdlock before calling
3799         cache_add.
3800         * nscd/hstcache.c (cache_addhst): Likewise.
3801         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3802         * nscd/servicescache.c (cache_addserv): Likewise.
3803         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3805 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3807         * po/lt.po: Update from translation team.
3809 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3811         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3812         defined, allow additional data to be added using the optional
3813         MORE_ELF_HEADER_DATA macro.
3814         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3815         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3817 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3819         * include/atomic.h: Define catomic_and if not already defined.
3820         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3821         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3823 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3825         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3826         Change all callers.
3827         (_int_realloc): Likewise.  Third argument is now padded size
3828         All _int_* functions are now static.
3830         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3831         * malloc/arena.c: Likewise.
3832         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3833         functions.
3835         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3836         easily.
3838         * malloc/malloc.c: Add branch prediction for use of the hooks.
3840         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3842 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3844         [BZ #7095]
3845         * bits/confname.h: Add SUSv7 macros for getconf environments.
3846         * bits/environments.h: Likewise.
3847         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3848         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3849         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3850         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3851         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3852         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3853         * posix/getconf.c: Likewise.
3854         * posix/sysconf.c: Likewise.
3855         * sysdeps/posix/sysconf.c: Likewise.
3856         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3857         environments.
3859 2009-01-16  Petr Baudis  <pasky@suse.cz>
3861         [BZ #9753]
3862         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3863         even if we currently have zero nscount.
3865 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3867         [BZ #9781]
3868         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3869         the input line is too long.
3871         * po/Makefile (libc.pot): Add f_print as function taking c-format
3872         parameter.
3874         * debug/xtrace.sh: Unify translatable messages.
3875         * elf/ldd.bash.in: Likewise.
3876         * elf/sprof.c: Likewise.
3877         * locale/programs/locale.c: Likewise.
3878         * malloc/memusage.sh: Likewise.
3879         * nss/getent.c: Likewise.
3881 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3883         * debug/pcprofiledump.c (print_version,
3884         argp_program_version_hook): New function.
3885         * elf/ldconfig.c (more_help): New function.
3886         (argp): Use it.
3887         * elf/sln.c (usage): New function.
3888         (main): Support --help and --version.
3889         * malloc/memusagestat.c (print_version): New function.
3890         (argp_program_version_hook): New variable.
3891         * nscd/nscd.c (more_help): New function.
3892         (argp): Use it.
3893         * posix/getconf.c (main): Send --version output to stdout.
3894         Support --help.
3895         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3896         arguments.  All callers changed.
3897         (print_version): New function.
3898         (parseargs): Support --help and --version.
3899         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3900         changed.
3901         (print_version): New function.
3902         (main): Use getopt_long.  Support --help and --version.
3903         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3904         --version.
3906 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3908         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3909         (update_data): Fix handling of wrapping back
3910         to the beginning of the buffer.
3912         [BZ #9823]
3913         * stdio-common/psignal.c (psignal): Fix test for empty string.
3915 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3917         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3918         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3919         move _null_auth to .rodata.
3921         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3922         value of 24.
3924         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3926         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3927         today than when the original code was written.  Use larger
3928         buffers.  This also makes it unnecessary to have stat information,
3929         if this causes extra efforts.
3930         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3931         __alloc_dir.
3933 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3935         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3936         is set.
3937         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3938         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3939         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3940         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3941         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3942         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3944 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3946         * po/ru.po: Update from translation team.
3948 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3950         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3951         Add _tid slot to maintain consistency with kernel.
3953 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3955         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3956         incomplete characters at end of input buffer.
3957         * libio/Makefile (tests): Add tst-fgetwc.
3958         * libio/tst-fgetwc.c: New file.
3959         * libio/tst-fgetwc.input: New file.
3961 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3963         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3965 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3967         [BZ #9793]
3968         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3969         *OUTBUFSTART unless the whole output fit into the buffer.
3970         * iconv/Makefile (tests): Add tst-iconv4.
3971         * iconv/tst-iconv4.c: New file.
3973 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3975         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3976         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3978 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3980         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3981         newer linker scripts.
3983 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3985         [BZ #7040]
3986         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3987         inotify_rm_watch should have type int.
3989 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3991         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3992         Make aligned_restore_vmx a local symbol.
3993         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3994         Likewise.
3996 2009-01-30  Andreas Jaeger  <aj@suse.de>
3998         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3999         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4000         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4001         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4002         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4003         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4004         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4006 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4008         [BZ #9726]
4009         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4010         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4012 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4014         [BZ #9726]
4015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4016         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4018         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4020 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4022         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4023         memcpy instead of memcmp.
4024         (_dl_setup_pointer_guard): Likewise.
4026 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4028         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4029         manipulated brk, use malloc_printerr.
4030         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4031         requests.
4033 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4035         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4036         rindex): For C++ add inlines so that they can be recognized as
4037         builtins.
4038         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4040 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4041             Jakub Jelinek  <jakub@redhat.com>
4043         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4044         * wcsmbs/wchar.h: Likewise.
4046 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4048         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4049         (stackinfo_sub_sp): Define.
4051 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4053         [BZ #9750]
4054         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4055         * include/alloca.h (alloca_account): Define.
4056         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4057         (stackinfo_sub_sp): Define.
4059         * nscd/connections.c (nscd_init): If database file access fails
4060         check whether this is due to permission problems and bail in that
4061         case.
4063         [BZ #9741]
4064         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4065         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4067 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4069         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4070         Add "t" to clobber list.
4071         (INTERNAL_SYSCALL_NCS): Likewise.
4073 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4075         * nss/getent.c (print_networks): Don't print comma between aliases.
4077 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4079         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4081         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4082         the hash table.
4083         * misc/Makefile (tests): Add bug-hsearch1.
4084         * misc/bug-hsearch1.c: New file.
4086 2009-01-22  Roland McGrath  <roland@redhat.com>
4088         * Makeconfig (%.v.i): Strip trailing # comments,
4089         not only whole-line comments.
4091 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4093         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4094         one parameter.  If non-NULL use it to initialize return value.
4095         (_dl_setup_pointer_guard): New function.
4096         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4097         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4098         * elf/rtld.c (security_init): Pass _dl_random to
4099         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4100         pointer_chk_guard.
4101         * elf/dl-sysdep.c (_dl_random): New variable.
4102         (_dl_sysdep_start): Handle AT_RANDOM.
4103         (_dl_show_auxv): Likewise.
4104         * elf/dl-support.c (_dl_random): New variable.
4105         (_dl_aux_init): Handle AT_RANDOM.
4106         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4107         to _dl_setup_stack_chk_guard.
4109         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4111 2009-01-10  Roland McGrath  <roland@redhat.com>
4113         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4115 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4117         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4119         [BZ #9706]
4120         * nss/nss_files/files-parse.c (strtou32): New function.
4121         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4122         across 32-bit and 64-bit platforms.
4123         (INT_FIELD_MAYBE_NULL): Likewise.
4125 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4127         [BZ #9720]
4128         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4129         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4130         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4131         Likewise.
4133 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4135         [BZ #697]
4136         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4137         being NULL also if there are no backreferences.
4138         * posix/rxspencer/tests: Add testcases.
4140 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4142         [BZ #9697]
4143         * posix/bug-regex17.c: Add testcases.
4144         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4145         handling.
4147 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4149         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4150         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4151         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4152         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4153         for elf subdir.
4154         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4155         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4156         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4157         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4158         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4159         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4161 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4163         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4164         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4165         re_string_skip_chars, re_string_reconstruct): Likewise.
4166         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4168 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4170         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4171         adjust the buffer alignment.
4173 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4175         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4176         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4177         net/route.h.
4179         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4180         flavor to description only when flavor is not NULL.
4182         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4183         mutex after SIGIO/SIGURG lookup loop.
4185 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4187         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4189 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4191         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4192         handling.
4194 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4196         * sysdeps/unix/sysv/linux/kernel-features.h
4197         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4199         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4200         if no output is written.
4202         * version.h: Bump to 2.10 development.
4204         * posix/getconf.c: Update copyright year.
4205         * nss/getent.c: Likewise.
4206         * iconv/iconvconfig.c: Likewise.
4207         * iconv/iconv_prog.c: Likewise.
4208         * elf/ldconfig.c: Likewise.
4209         * catgets/gencat.c: Likewise.
4210         * csu/version.c: Likewise.
4211         * elf/ldd.bash.in: Likewise.
4212         * elf/sprof.c (print_version): Likewise.
4213         * locale/programs/locale.c: Likewise.
4214         * locale/programs/localedef.c: Likewise.
4215         * nscd/nscd.c (print_version): Likewise.
4216         * debug/xtrace.sh: Likewise.
4217         * malloc/memusage.sh: Likewise.
4218         * malloc/mtrace.pl: Likewise.
4219         * debug/catchsegv.sh: Likewise.
4221 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4223         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4224         script.
4226 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4228         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4229         gethostbyname4_r function call succeeded, just leave the loop.
4231         [BZ #9694]
4232         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4233         very end.
4234         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4235         * wctype/Makefile (tests): Add bug-wctypeh.
4236         * wctype/bug-wctypeh.c: New file.
4238         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4239         LOCALDOMAIN is defined.
4240         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4242         * sysdeps/x86_64/bits/select.h: New file.
4244         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4246 2008-12-21  Bruno Haible  <bruno@clisp.org>
4248         [BZ #9677]
4249         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4250         if no output is written.
4252 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4254         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4255         libc internal symbol __dup2 to avoid access through the PLT.
4257 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4259         [BZ #6545]
4260         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4261         available only for __USE_GNU.
4263         * inet/Makefile (tests): Add tst-getni2.
4264         * inet/tst-getni2.c: New file.
4266         [BZ #7080]
4267         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4268         NULL when NI_NAMEREQD is set.
4269         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4270         * inet/Makefile (tests): Add tst-getni1.
4271         * inet/tst-getni1.c: New file.
4273 2008-12-03  Petr Baudis  <pasky@suse.cz>
4275         [BZ #7067]
4276         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4277         instead of prune_lock.
4278         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4279         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4281 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4283         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4284         use.
4286         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4287         handling.
4289         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4290         after reading name server list.
4292         [BZ #7058]
4293         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4294         handling for host name aliases.
4296 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
4298         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4299         instead of doing things manually.
4301 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4303         * posix/regex_internal.h (build_wcs_upper_buffer):
4304         Return type is reg_error_t.
4306 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4308         * posix/globtest.sh: Use mktemp to create temporary file and
4309         directory.
4311         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4312         sets correctly.
4313         (__CPU_CLR_S): Likewise.
4314         (__CPU_ISSET_S): Likewise.
4316 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4317             Ulrich Drepper  <drepper@redhat.com>
4319         * scripts/firstversion.awk: Use custom comparison function to compare
4320         version numbers.
4321         * scripts/versions.awk: Use sort invocation which can handle
4322         multi-digit sub-version numbers.
4324 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4326         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4327         * locale/iso-639.def: Add Chhattisgarhi entry.
4329 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4331         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4332         ESRCH return value.
4333         (_nss_dns_gethostbyname4_r): Likewise.
4334         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4335         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4336         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4337         the no_data variable.
4339         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4340         information at the correct index.
4342         * socket/sys/socket.h: Declare accept4.
4343         * socket/accept4.c: New file.
4344         * sysdeps/unix/sysv/linux/accept4.c: New file.
4345         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4346         * socket/Makefile (routines): Add accept4.
4347         * socket/Versions: Export accept4 with version GLIBC_2.10.
4348         * socket/paccept.c: Removed.
4349         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4350         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4351         * Versions.def: Define GLIBC_2.10 for libc.
4352         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4354         * nscd/connections.c: Use accept4.
4356         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4358 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4360         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4361         flag already set.
4363         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4364         not exist.
4365         * stdlib/Makefile (tests): Add tst-unsetenv1.
4366         * stdlib/tst-unsetenv1.c: New file.
4368 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4370         * login/utmp_file.c (file_writable): New variable.
4371         (setutent_file): Don't try to open file for writing.
4372         (pututline_file): Before writing, make descriptor writable if
4373         necessary.
4375 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4377         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4378         to IPv4 or IPv6 if an interface has been found.
4380 2008-11-26  Roland McGrath  <roland@redhat.com>
4382         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4383         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4385         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4386         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4387         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4389         * elf/elf.h (NT_386_IOPERM): New macro.
4390         (NT_PPC_VSX): New macro.
4392 2008-11-25  Roland McGrath  <roland@redhat.com>
4394         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4395         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4396         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4397         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4398         Subdirectories moved to ports repository.
4399         * configure.in (base_machine): Remove alpha case.
4401 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4403         * sysdeps/mach/strerror_l.c: New file.
4405 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4407         [BZ #6411]
4408         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4409         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4410         magic numbers.
4411         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4412         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4413         (relax_fenv_state): Same as above.
4414         (FPSCR_29): Reserve bit in ISA 2.05.
4415         (FPSCR_NI): Provide define for compat.
4416         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4417         magic numbers.
4418         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4419         magic numbers.
4420         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4421         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4422         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4423         access to hwcap to account for hwcap size increase to uint64_t.
4424         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4425         Likewise.
4426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4427         (*setcontext): Likewise.
4428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4429         New file.
4430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4431         New file.
4432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4433         (*setcontext): dynamically select mtfsf insn based on
4434         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4435         increase to uint64_t.
4436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4437         (*swapcontext): dynamically select mtfsf insn based on
4438         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4439         increase to uint64_t.
4440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4441         New file.
4442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4443         New file.
4444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4445         (*setcontext): dynamically select mtfsf insn based on
4446         PPC_FEATURE_HAS_DFP.
4447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4448         (*swapcontext): dynamically select mtfsf insn based on
4449         PPC_FEATURE_HAS_DFP.
4451 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4453         * version.h: Bump for 2.9 release.
4454         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4456         [BZ #7029]
4457         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4458         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4459         all the rounding.
4461 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4463         [BZ #7009]
4464         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4465         unknown request types for now.
4467 2008-11-11  Roland McGrath  <roland@redhat.com>
4469         * sysdeps/x86_64/configure: New file.
4471         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4472         * configure: Regenerated.
4474 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4476         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4477         correct instruction to remove the stack frame.
4479 2008-11-03  Michael Matz  <matz@suse.de>
4481         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4482         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4484 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4486         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4487         Remove.
4489         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4490         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4491         of the thread variable instead of void *.
4492         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4493         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4494         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4495         __libc_tsd_define arguments.
4496         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4497         __libc_tsd_address arguments.  Remove union hack.
4498         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4499         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4500         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4501         Adjust __libc_tsd_{set,get} arguments.
4502         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4503         __libc_tsd_define arguments.
4504         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4505         arguments.
4506         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4507         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4508         (LOCALE): Adjust __libc_tsd_define arguments.
4509         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4510         arguments.
4511         (LOCALE): Adjust __libc_tsd_define arguments.
4512         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4513         arguments.
4514         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4515         arguments.
4517 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4519         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4520         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4522 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4524         [BZ #6966]
4525         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4527 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4528             Ulrich Drepper  <drepper@redhat.com>
4530         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4531         definition for GCC 3.1 and later.
4533 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4535         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4536         refetch dtv, as it might have changed.
4537         * elf/Makefile: Add rules to build and run tst-tls18.
4538         * elf/tst-tls18.c: New test.
4539         * elf/tst-tlsmod18a.c: New file.
4541 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4543         [BZ #6875]
4544         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4546 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4548         [BZ #6867]
4549         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4551         [BZ #6919]
4552         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4553         Fix length of copy operation.
4555 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4557         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4558         and fix its calling convention.
4560 2008-10-07  Andreas Schwab  <schwab@suse.de>
4562         [BZ #6942]
4563         * resolv/res_send.c (send_vc): Fix last change.
4564         (send_dg): Align here as well.
4566 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4568         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4569         return value in case rlimit is RLIM_INFINITY.
4571         [BZ #6947]
4572         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4573         for UL_SETFSIZE.
4574         * resource/Makefile (tests): Add bug-ulimit1.
4575         * resource/bug-ulimit1.c: New file.
4577         [BZ #6974]
4578         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4579         without dot.  Properly terminate the string with a null byte.
4580         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4582         [BZ #6980]
4583         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4584         negative sizees.
4585         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4586         negative __size.
4588         [BZ #6995]
4589         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4591 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4593         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4594         abort if there is no initgroups_dyn function.
4596         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4597         result if any of the queries really provided an answer.
4599 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4601         * po/lt.po: Update from translation team.
4603 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4605         * po/id.po: Update from translation team.
4607 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4609         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4610         Fix tests for existence of second reply.
4612 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4614         * po/id.po: New file.
4615         Contributed by the Indonesian translation team.
4617 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4619         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4620         initialization.
4622 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4624         * elf/Makefile: Add rules to build and run tst-tls17.
4625         * elf/tst-tls17.c: New test.
4626         * elf/tst-tlsmod17a.c: New file.
4627         * elf/tst-tlsmod17b.c: Likewise.
4629 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4631         * stdlib/divmod_1.c: Use correct type for dummy variable.
4632         * stdlib/mod_1.c: Likewise.
4634 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4636         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4638 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4640         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4641         __nonnull order for C++.
4642         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4643         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4645 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4647         * stdlib/longlong.h: Update from GCC.
4649 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4650             David S. Miller  <davem@davemloft.net>
4652         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_