3992fb77c8cc4cef65c91ef8807b56ce4d3b8490
[platform/upstream/glibc.git] / ChangeLog
1 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
2
3         * bits/confname.h: Fix typo in last change.
4
5         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
6
7 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
8
9         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
10         and SA_RESETHAND now available in Base.
11         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
12         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
13         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14         * conform/data/signal.h-data: Update for XPG7.
15
16         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
17
18         * string/strings.h: Don't declare obsolete functions for XPG7.
19         Declare ffs only for XSI.
20         * conform/data/strings.h-data: Update for XPG7.
21
22 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
23
24         [BZ #11125]
25         * libio/stdio.h: Define va_list, off_t, and ssize_t.
26
27         * posix/glob.h: Define size_t.
28
29         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
30
31         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
32
33 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
34
35         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
36         be self-contained.
37
38         * conform/data/stdio.h-data: Expect off_t and ssize_t.
39
40 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
41
42         * libio/stdio.h: Define va_list also for XPG7.
43
44         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
45         * conform/data/ctype.h-data: Likewise.
46         * conform/data/dirent.h-data: Likewise.
47         * conform/data/errno.h-data: Likewise.
48         * conform/data/fcntl.h-data: Likewise.
49         * conform/data/fmtmsg.h-data: Likewise.
50         * conform/data/fnmatch.h-data: Likewise.
51         * conform/data/ftw.h-data: Likewise.
52         * conform/data/glob.h-data: Likewise.
53         * conform/data/grp.h-data: Likewise.
54         * conform/data/iconv.h-data: Likewise.
55         * conform/data/langinfo.h-data: Likewise.
56         * conform/data/libgen.h-data: Likewise.
57         * conform/data/limits.h-data: Likewise.
58         * conform/data/locale.h-data: Likewise.
59         * conform/data/math.h-data: Likewise.
60         * conform/data/monetary.h-data: Likewise.
61         * conform/data/mqueue.h-data: Likewise.
62         * conform/data/ndbm.h-data: Likewise.
63         * conform/data/netdb.h-data: Likewise.
64         * conform/data/pthread.h-data: Likewise.
65         * conform/data/pwd.h-data: Likewise.
66         * conform/data/regex.h-data: Likewise.
67         * conform/data/sched.h-data: Likewise.
68         * conform/data/search.h-data: Likewise.
69         * conform/data/semaphore.h-data: Likewise.
70         * conform/data/setjmp.h-data: Likewise.
71         * conform/data/signal.h-data: Likewise.
72         * conform/data/spawn.h-data: Likewise.
73         * conform/data/stdio.h-data: Likewise.
74         * conform/data/stdlib.h-data: Likewise.
75         * conform/data/string.h-data: Likewise.
76         * conform/data/strings.h-data: Likewise.
77         * conform/data/sys/ipc.h-data: Likewise.
78         * conform/data/sys/msg.h-data: Likewise.
79         * conform/data/sys/resource.h-data: Likewise.
80         * conform/data/sys/sem.h-data: Likewise.
81         * conform/data/sys/shm.h-data: Likewise.
82         * conform/data/sys/socket.h-data: Likewise.
83         * conform/data/sys/stat.h-data: Likewise.
84         * conform/data/sys/time.h-data: Likewise.
85         * conform/data/sys/types.h-data: Likewise.
86         * conform/data/sys/uio.h-data: Likewise.
87         * conform/data/sys/wait.h-data: Likewise.
88         * conform/data/syslog.h-data: Likewise.
89         * conform/data/tar.h-data: Likewise.
90         * conform/data/termios.h-data: Likewise.
91         * conform/data/time.h-data: Likewise.
92         * conform/data/ulimit.h-data: Likewise.
93         * conform/data/unistd.h-data: Likewise.
94         * conform/data/utmpx.h-data: Likewise.
95         * conform/data/wchar.h-data: Likewise.
96         * conform/data/wctype.h-data: Likewise.
97         * conform/data/wordexp.h-data: Likewise.
98
99         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
100         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
101         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
102         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
103         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
104         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
105         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
106         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
107         * sysdeps/unix/sysv/bits/stat.h: Likewise.
108         * sysdeps/mach/hurd/bits/stat.h: Likewise.
109
110         * stdlib/stdlib.h: Define wait-related bits for XPG7.
111         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
112         Declare mkstemp and getsubopt for XPG7.
113         Declare posix_openpt for XPG6 XSI.
114
115         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
116         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
117
118         * string/string.h: Declare strdup for XPG7.
119
120 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
121
122         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
123         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
124
125         * dirent/dirent.h: Really fix feature selection.
126
127         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
128         Fix all users.
129         * locale/C-address.c: Fix all users.
130         * locale/C-collate.c: Likewise.
131         * locale/C-ctype.c: Likewise.
132         * locale/C-identification.c: Likewise.
133         * locale/C-measurement.c: Likewise.
134         * locale/C-messages.c: Likewise.
135         * locale/C-monetary.c: Likewise.
136         * locale/C-name.c: Likewise.
137         * locale/C-numeric.c: Likewise.
138         * locale/C-paper.c: Likewise.
139         * locale/C-telephone.c: Likewise.
140         * locale/C-time.c: Likewise.
141         * locale/findlocale.c: Likewise.
142         * locale/global-locale.c: Likewise.
143         * locale/loadarchive.c: Likewise.
144         * locale/loadlocale.c: Likewise.
145         * locale/nl_langinfo_l.c: Likewise.
146         * locale/setlocale.c: Likewise.
147         * locale/xlocale.c: Likewise.
148         * locale/xlocale.h: Likewise.
149         * stdio-common/vfscanf.c: Likewise.
150         * stdlib/strfmon_l.c: Likewise.
151         * stdlib/strtod_l.c: Likewise.
152         * stdlib/strtol_l.c: Likewise.
153         * string/strcoll_l.c: Likewise.
154         * string/strxfrm_l.c: Likewise.
155         * time/alt_digit.c: Likewise.
156         * time/asctime.c: Likewise.
157         * time/era.c: Likewise.
158         * time/lc-time-cleanup.c: Likewise.
159         * time/strftime_l.c: Likewise.
160         * time/strptime_l.c: Likewise.
161         * wcsmbs/wcsmbsload.c: Likewise.
162         * wcsmbs/wcsmbsload.h: Likewise.
163
164         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
165         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
166         for XPG7.
167         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
168         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
169         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
170         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
171         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
172         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
173
174 2010-01-07  Roland McGrath  <roland@redhat.com>
175
176         * elf/elf.h (PN_XNUM): New macro.
177
178         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
179         literal 2.
180
181 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
182
183         * dirent/dirent.h: Fix typo in feature selection macro use.
184
185 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
186
187         [BZ #11115]
188         * stdlib/tst-makecontext3.c: New file.
189         * stdlib/Makefile (tests): Add new test.
190
191         * stdlib/tst-setcontext.c (check_called): Fix a typo.
192
193 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
194
195         * configure.in: Enable multi-arch by default if the assembler
196         supports gnu_indirect_function symbol type and the architecture
197         supports it.
198
199 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
200
201         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
202         is defined.
203
204 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
205
206         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
207         MACH_PORT_NULL when id != cttyid.
208
209 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
210
211         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
212         __mach_port_deallocate on rootdevid.
213
214 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
215
216         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
217         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
218         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
219         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
220
221 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
222
223         [BZ #10992]
224         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
225         Patch by Eric Blake <ebb9@byu.net>.
226
227 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
228
229         [BZ #11093]
230         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
231         POLLWRBAND also for POSIX 2008.
232         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
233         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
234
235         * include/link.h (struct link_map): Move l_used into its own word.
236         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
237         still zero.
238         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
239         never really used.
240
241 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
242
243         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
244         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
245         check processor feature.
246         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
247         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
248         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
249         (index_SSE2): Likewise.
250
251 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
252
253         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
254         if __ASSEMBLER__ is defined.
255         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
256         (bit_SSE4_2): Likewise.
257         (index_SSSE3): Likewise.
258         (index_SSE4_2): Likewise.
259         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
260         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
261         check processor feature.
262         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
263         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
264         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
265         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
266         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
267         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
268         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
269
270 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
271
272         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
273
274 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
275
276         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
277
278 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
279
280         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
281         O_DSYNC to match 2.6.33+ kernels.
282         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
283         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
284         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
285         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
286         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
287         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
288
289 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
290
291         [BZ #11000]
292         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
293         *herrnop before returning.
294         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
295         Likewise.
296         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
297         TRYAGAIN errors separately.
298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
299         *name4_r after functions.
300
301 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
302
303         [BZ #11046]
304         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
305         version check.
306
307 2009-11-05  Bruno Haible  <bruno@clisp.org>
308
309         [BZ #11056]
310         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
311         argv argument as non-NULL.
312         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
313
314 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
315
316         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
317         recvmmsg.
318         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
319         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
320
321 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
322
323         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
324         registers.
325         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
326         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
327         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
328
329 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
330
331         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
332         SCHED_RESET_ON_FORK.
333
334 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
335
336         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
337         only used on truly ancient kernel if configuration requires a more
338         recent kernel.
339
340 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
341
342         [BZ #3662]
343         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
344         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
345
346         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
347         pass it on to __ptsname_internal.
348         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
349         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
350         All the code from __ptsname_r but take additional parameter.  Use that
351         instead of pointer to local stat64 variable.
352         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
353         variable.
354         * include/stdlib.h: Declare __ptsname_internal.
355
356         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
357         before the exec.
358         * sysdeps/unix/sysv/linux/grantpt.c: New file.
359         * login/programs/pt_chown.c (main): Don't print message on errors
360         when doing real work.
361
362         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
363         once.
364
365         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
366         irel relocations split out from...
367         (__libc_csu_init): ...here.
368         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
369
370 2009-11-23  Andreas Schwab  <schwab@redhat.com>
371
372         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
373         for timestamps also if __USE_XOPEN2K8.
374         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
375         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
376         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
377         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
378
379 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
380
381         * nscd/connections.c (restart): Try harder to re-exec.
382
383         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
384
385         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
386         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
387         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
388         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
389         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
390         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
391
392         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
393         Define.
394         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
395
396 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
397
398         [BZ #10162]
399         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
400         than software pipeline.  Properly recover from shorter read.
401
402 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
403
404         [BZ #10958]
405         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
406         initialized before using it.
407         (_IO_putwc_unlocked): Likewise.
408
409         [BZ #10918]
410         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
411         in cast to not throw away const-ness of parameters.
412         (__CPU_EQUAL_S): Likewise.
413         (__CPU_OP_S): Likewise.
414
415         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
416         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
417         this gratuitous change and we have to keep compatibility.
418         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
419         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
420         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
421         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
422         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
423         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
424
425 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
426
427         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
428         of parameters of sync_file_range.
429         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
430         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
431         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
432         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
433         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
434         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
435
436 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
437
438         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
439         Implement using sync_file_range2 syscall if __NR_sync_file_range2
440         is defined.
441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
442         file.
443
444 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
445
446         * posix/bug-regex30.c: New file.
447         * posix/Makefile: Add rules to build and run bug-regex30.
448         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
449         character lead bytes when there is a range in a COMPLEX_BRACKET.
450         Reported by Oleg Bylatov.
451
452 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
453
454         [BZ #10969]
455         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
456         * locale/tst-duplocale.c: New file.
457         * locale/Makefile (tests): Add tst-duplocale.
458
459         [BZ #10968]
460         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
461         Patch by Bruno Haible <bruno@clisp.org>.
462         * locale/tst-locname.c: New file.
463         * locale/Makefile (tests): Add tst-locname.
464
465         [BZ #10972]
466         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
467         constants from recent kernels.
468         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
469         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
470         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
471         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
472         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
473         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
474
475 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
476
477         [BZ #10162]
478         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
479         software pipeline.
480
481 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
482
483         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
484         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
485         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
486
487 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
488
489         * posix/bug-regex29.c: Include stdio.h.
490
491 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
492
493         [BZ #10939]
494         * Versions.def: Define GLIBC_2.12 for libc.
495         * manual/errno.texi: Add ERFKILL entry.
496         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
497         for 2.12.
498         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
499         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
500
501         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
502         F_GETOWN_EX definitions according to corrected kernel definitions.
503         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
504         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
505         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
506         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
507         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
508         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
509
510 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
511
512         * version.h: Bump for 2.12 development.
513
514 2009-11-10  Andreas Schwab  <schwab@redhat.com>
515
516         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
517         out of buffer space.
518         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
519         map_v4v6_hostent running out of space.
520
521 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
522
523         * string/bits/string3.h (memset): If the second parameter is constant
524         and zero there is likely no transposition.
525         Patch by Caolan McNamara <caolanm@redhat.com.
526
527 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
528
529         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
530         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
531
532 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
533
534         * malloc/memusagestat.c (main): Fix spelling in an error message.
535
536 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
537
538         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
539         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
540
541 2009-11-03  Andreas Schwab  <schwab@redhat.com>
542
543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
544         readahead.
545
546 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
547
548         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
549         relocate opd entry when resolving prelink conflicts.
550
551 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
552
553         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
554         when -D_FILE_OFFSET_BITS=64.
555
556         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
557         of last two arguments when -D_FILE_OFFSET_BITS=64.
558         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
559         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
560         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
561         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
563         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
564
565 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
566
567         [BZ #4457]
568         * sysdeps/generic/libgcc_s.h: New file.
569         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
570
571 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
572
573         * malloc/hooks.c (free_check): Restore locking and call _int_free
574         appropriately.
575
576 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
577
578         * version.h (VERSION): Bump for 2.11 release.
579         * include/features.h (__GLIBC_MINOR__): Bump to 11.
580
581         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
582
583         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
584
585         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
586         to avoid warning.
587         * stdlib/tst-strtoll.c (tests): Likewise.
588
589         [BZ #9986]
590         * time/strftime_l.c (__strftime_internal): Allow %OC.
591
592         * misc/mkostemps.c: New file.
593         * misc/mkostemps64.c: New file.
594
595 2009-10-30  Andreas Schwab  <schwab@redhat.com>
596
597         * locale/programs/locale-spec.c: Include <error.h> and
598         <libintl.h>.
599
600         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
601
602 2009-10-28  Roland McGrath  <roland@redhat.com>
603
604         * Makefile (dist-prepare): New target.
605         (tag-for-dist): Target removed.
606         (glibc-%.tar): Pattern rule removed.
607         (%.tar): New pattern rule, does simple use of git archive.
608         (dist-version): Remove variable definition.
609         (dist): Just depend on that.  Add .tar.xz dependency.
610         If dist-version variable not set on command line, depend on
611         dist-prepare, re-invoke with dist-version set via git describe.
612
613         * Makerules (%.xz): New pattern rule.
614
615 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
616
617         * elf/ifuncdep2.c: Include ifunc-sel.h.
618         (global): Delete.
619         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
620         * elf/ifuncmain1.c (global): Delete.
621         * elf/ifuncmain1vis.c: Likewise.
622         * elf/ifuncmain2.c: Likewise.
623         * elf/ifuncmain5.c: Likewise.
624         * elf/ifuncmod3.c: Likewise.
625         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
626         (foo_ifunc): Use ifunc_one.
627         * elf/ifuncmain7.c: Likewise.
628         * elf/ifuncmod1.c: Include ifunc-sel.h.
629         (global): Define protected var.
630         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
631         * elf/ifuncmod5.c: Likewise.
632         * sysdeps/generic/elf/ifunc-sel.h: New file.
633         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
634
635 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
636
637         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
638         (R_PPC_REL16*): Correct comments.
639         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
640         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
641          R_PPC64_REL16_HA): Define.
642         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
643         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
644         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
645         Delete unused "reloc" param.
646         (__process_machine_rela): Handle R_PPC_IRELATIVE.
647         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
648         Delete "reloc" param.
649         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
650         R_PPC_IRELATIVE.
651         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
652         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
653         relocations.
654
655 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
656
657         [BZ #10315]
658         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
659         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
660         UDP_ENCAP_L2TPINUDP.
661
662         [BZ #10349]
663         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
664         parameter, specifying length of prefix.
665         * stdio-common/tempname.c: Likewise.
666         * include/stdio.h: Adjust prototypes.
667         * libio/oldtmpfile.c: Adjust caller.
668         * misc/mkdtemp.c: Likewise.
669         * misc/mkostemp.c: Likewise.
670         * misc/mkostemp64.c: Likewise.
671         * misc/mkstemp.c:  Likewise.
672         * misc/mkstemp64.c: Likewise.
673         * misc/mktemp.c: Likewise.
674         * stdio-common/tempnam.c: Likewise.
675         * stdio-common/tmpfile.c: Likewise.
676         * stdio-common/tmpnam.c: Likewise.
677         * stdio-common/tmpnam_r.c: Likewise.
678         * misc/mkstemps.c: New file.
679         * misc/mkstemps64.c: New file.
680         * stdlib/stdlib.h: Add prototypes.
681         * misc/Makefile (routines): Add mkstemps and mkstemps64.
682         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
683
684 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
685
686         * locale/iso-639.def: Add sml entry.
687
688         [BZ #10391]
689         * resolv/res_send.c (send_dg): Initialize resplen.
690
691         [BZ #10446]
692         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
693         definition to the kernel's.
694         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
695
696 2009-08-18  Anders Johansson  <ajohansson@novell.com>
697
698         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
699         offsets and record sizes in assert()s and response sending.
700         * nscd/grpcache.c: Likewise.
701         * nscd/hstcache.c: Likewise.
702         * nscd/initgrcache.c: Likewise.
703         * nscd/pwdcache.c: Likewise.
704
705 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
706
707         [BZ #10540]
708         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
709         /etc/hosts does not exist set errnop and herrnop appropriately.
710         Patch by Steve Langasek <vorlon@debian.org>.
711
712         [BZ #10553]
713         * malloc/malloc.c (malloc_info): Fix typos in format strings.
714         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
715
716         [BZ #10564]
717         * login/utmp_file.c (TIMEOUT): Increase to 10.
718
719         [BZ #10609]
720         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
721         for file names in case the syscall is not available.
722         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
723         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
724         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
725         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
726         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
727         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
728         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
729         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
730         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
731         * sysdeps/unix/sysv/linux/openat.c: Likewise.
732         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
733         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
734         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
735         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
736         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
737         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
738         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
739
740         [BZ #10643]
741         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
742         creation filed, remove the request from the 'requests' list and signal
743         the caller that the request is finished.
744
745         [BZ #10692]
746         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
747         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
748
749         [BZ #10713]
750         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
751         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
752
753         [BZ #10780]
754         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
755         overflows the int return type.
756
757         [BZ #10717]
758         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
759         have to compute maxsize_total, we have to update the variables, and
760         the also_total handling must happen after the repair.
761
762         [BZ #10742]
763         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
764         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
765
766 2009-10-27  Andreas Schwab  <schwab@redhat.com>
767
768         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
769         errno is always set when returning unsuccessfully.
770
771 2009-10-29  Andreas Schwab  <schwab@redhat.com>
772
773         * malloc/memusage.c (update_data): Fix index wraparound handling
774         so that buffer_cnt is actually reset.
775
776 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
777
778         [BZ #10784]
779         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
780         of the directory we look at into the static buffer if there is one
781         at the start of the loop.
782
783         [BZ #10789]
784         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
785         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
786
787         [BZ #10840]
788         * sysdeps/unix/sysv/linux/kernel-features.h: Define
789         __ASSUME_F_GETOWN_EX.
790         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
791         if possible.
792         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
793
794         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
795         and f_owner_ex.
796         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
797         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
798         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
799         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
800         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
801         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
802
803         [BZ #10847]
804         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
805         getutmpx symbol.
806
807         [BZ #10823]
808         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
809         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
810
811 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
812
813         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
814
815 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
816
817         [BZ #10817]
818         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
819         Reported by Ray Chason.
820
821 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
822
823         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
824         strend-sse4.
825         * sysdeps/x86_64/multiarch/strchr.S: New file.
826         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
827         * sysdeps/x86_64/multiarch/strrchr.S: New file.
828
829 2009-10-21  Andreas Schwab  <schwab@redhat.com>
830
831         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
832
833 2009-10-19  Andreas Schwab  <schwab@redhat.com>
834
835         * include/math.h: Add hidden protos for __exp/__expf/__expl.
836         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
837         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
838         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
839         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
840         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
841         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
842         __ieee751_expl to handle overflow.
843
844 2009-10-14  David S. Miller  <davem@davemloft.net>
845
846         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
847         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
848
849 2009-10-13  Andreas Schwab  <schwab@redhat.com>
850
851         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
852         !USE_MULTIARCH.
853
854 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
855
856         [BZ #10730]
857         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
858         Patch in part by Steve Ward <planet36@gmail.com>.
859
860         [BZ #10731]
861         * stdlib/rand_r.c: Fix typo.
862
863         * po/cs.po: Update from translation team.
864
865 2009-10-06  Andreas Schwab  <schwab@redhat.com>
866
867         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
868         returning if RTLD_NOLOAD.
869
870 2009-10-06  Roland McGrath  <roland@redhat.com>
871
872         * sysdeps/x86_64/multiarch/strstr-c.c
873         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
874
875         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
876         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
877
878         * sysdeps/x86_64/multiarch/init-arch.h
879         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
880         (HAS_CPU_FEATURE): New macro.
881         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
882         * sysdeps/x86_64/multiarch/init-arch.c
883         (__get_cpu_features): #undef it before definition.
884
885 2009-10-05  Andreas Schwab  <schwab@redhat.com>
886
887         * locale/C-time.c: Revert week-1stday back to 19971130 and set
888         first_weekday to 1 and first_workday to 2.
889
890 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
891
892         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
893         F_GETOWN_EX.
894         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
895         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
896         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
897         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
898         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
899         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
900
901 2009-09-28  Andreas Schwab  <schwab@redhat.com>
902
903         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
904         * stdio-common/vfprintf.c: Likewise.
905
906 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
907
908         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
909         (mkdirat): Call __directory_name_split_at instead of
910         __directory_name_split.
911
912 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
913
914         * locale/programs/locale-spec.c (locale_special): If nothing matches
915         fail with an appropriate message.
916
917 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
918
919         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
920         and XX.
921
922 2009-09-25  Andreas Schwab  <schwab@redhat.com>
923
924         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
925         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
926
927 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
928
929         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
930
931 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
932
933         * iconvdata/iso646.c (gconv_init): Correctly initialize the
934         character size elements in step data.
935
936 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
937
938         * po/hu.po: Update from translation team.
939         * po/vi.po: Likewise.
940
941 2009-09-19  Roland McGrath  <roland@redhat.com>
942
943         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
944
945 2009-09-15  Roland McGrath  <roland@redhat.com>
946
947         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
948         * nptl/sysdeps/pthread/configure: Regenerated.
949         * nptl/sysdeps/x86_64/configure: Regenerated.
950         * sysdeps/unix/sysv/linux/configure: Regenerated.
951         * sysdeps/x86_64/elf/configure: Regenerated.
952
953         * Makefile (autoconf-it): Set execute bit only on top-level configure.
954
955         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
956         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
957         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
958         * configure: Regenerated.
959
960 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
961
962         * posix/getconf.c (main): Handle -- on command line.
963
964 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
965
966         * configure.in: Support binutils 2.100 and 3.0.
967
968 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
969
970         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
971         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
972         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
973         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
974
975 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
976
977         * locale/programs/ld-collate.c (struct locale_collate_t): Add
978         unnamed_section_defined field.
979         (collate_read): Test and set unnamed_section_defined.
980
981         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
982         _POSIX2_LINE_MAX.
983
984 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
985
986         * configure.in: Support binutils 2.20.
987
988 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
989
990         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
991         __strstr_ia32): Add attribute_hidden.
992
993 2009-09-01  Andreas Schwab  <schwab@redhat.com>
994
995         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
996         parsing of group entry.
997
998 2009-09-02  Andreas Schwab  <schwab@redhat.com>
999
1000         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1001         external buffer.  Always discard readahead in internal buffer.
1002         * libio/Makefile (tests): Add bug-wsetpos.
1003         * libio/bug-wsetpos.c: New file.
1004
1005 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1006
1007         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1008         Add attribute_hidden.
1009         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1010         __strcasestr_sse2): Likewise.
1011         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1012         (__fma_fma): Make static.
1013         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1014         (__fmaf_fma): Make static.
1015
1016 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1017
1018         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1019         reformulate in-buffer optimisation check to match code in
1020         _IO_new_file_seekoff.
1021
1022 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1023
1024         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1025         to srwi in 32-bit memcpy for power6.
1026
1027 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1028
1029         * include/stdio.h: Declare hidden proto for fflush.
1030         * libio/iofflush.c: Add hidden weak alias for fflush.
1031
1032 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1033
1034         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1035         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1036
1037 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1038
1039         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1040
1041 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1042
1043         [BZ #10560]
1044         * malloc/malloc.c: Add local assert definition to avoid problems with
1045         memory allocation in the real one.
1046
1047 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1048
1049         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1050         Removed.
1051         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1052         turn off SSSE3 on Atom.
1053
1054 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1055
1056         * stdlib/tst-strtol.c (tests): More tests.
1057         * stdlib/tst-strtoll.c (tests): Likewise.
1058
1059 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1060
1061         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1062
1063         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1064
1065 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1066
1067         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1068         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1069
1070         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1071
1072         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1073
1074         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1075
1076 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1077
1078         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1079
1080 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1081
1082         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1083         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1084
1085         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1086
1087         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1088         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1089
1090         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1091         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1092
1093         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1094         leftover YMM_SIZE definition.
1095
1096 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1097
1098         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1099         union.
1100         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1101         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1102         Redefine.
1103         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1104
1105         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1106         and SET_FLOAT_WORD definitions.
1107
1108 2009-08-24  Roland McGrath  <roland@redhat.com>
1109
1110         * sysdeps/unix/syscall-template.S: New file.
1111         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1112         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1113         (compile-syscall): Pass mkdep and -g options as normal.
1114         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1115         (common-generated): Don't add them here.
1116
1117 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1118
1119         * math/s_fdim.c: In case of overflows set errno.
1120         * math/s_fdimf.c: Likewise.
1121         * math/s_fdiml.c: Likewise.
1122
1123         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1124         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1125         are using the inline optimizations.
1126
1127         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1128         (__signbitf): Likewise.
1129
1130 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1131
1132         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1133         terminated.
1134         * posix/Makefile (tests): Add bug-regex29.
1135         * posix/bug-regex29.c: New file.
1136
1137         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1138         older POSIX versions are selected.
1139
1140         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1141         as well.
1142         * stdio-common/printf_fphex.c: Likewise.
1143         * stdio-common/tstdiomisc.c: Add more tests.
1144
1145         * locale/locale.h: Include xlocale.h and the thread-local locale
1146         declarations for XPG7, not XPG6.
1147
1148 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1149
1150         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1151         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1154         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1155         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1156
1157 2009-08-20  Roland McGrath  <roland@redhat.com>
1158
1159         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1160         Use l_addr instead of l_map_start (dli_fbase).
1161         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1162         address when there is no proximate symbol.
1163         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1164         Likewise.
1165
1166 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1167
1168         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1169
1170 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1171
1172         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1173         Also handle SIGINT.  In that case only do the cleanup and then
1174         re-raise the signal.
1175         (main): Install handler for SIGINT.
1176
1177 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1178
1179         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1180         clobber list.
1181
1182 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1185         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1186         tst-auditmod7b.c.
1187         (tests): Add tst-audit6 tst-audit7.
1188         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1189         tst-auditmod7a tst-auditmod7b.
1190         ($(objpfx)tst-audit6): New.
1191         ($(objpfx)tst-audit6.out): Likewise.
1192         ($(objpfx)tst-audit7): Likewise.
1193         ($(objpfx)tst-audit7.out): Likewise.
1194         (tst-audit6-ENV): Likewise.
1195         (tst-audit7-ENV): Likewise.
1196         (CFLAGS-tst-auditmod6b.c): Likewise.
1197         (CFLAGS-tst-auditmod6c.c): Likewise.
1198         (CFLAGS-tst-auditmod7b.c): Likewise.
1199         * elf/tst-audit6.c: New file.
1200         * elf/tst-audit7.c: New file.
1201         * elf/tst-auditmod6a.c: New file.
1202         * elf/tst-auditmod6b.c: New file.
1203         * elf/tst-auditmod6c.c: New file.
1204         * elf/tst-auditmod7a.c: New file.
1205         * elf/tst-auditmod7b.c: New file.
1206         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1207         saving and restoring SSE/AVX registers to ...
1208         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1209
1210 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1211
1212         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1213         only if SHARED is defined.
1214         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1215
1216 2009-08-03  Jim Meyering  <meyering@redhat.com>
1217
1218         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1219
1220 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1221
1222         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1223         section as the other functions for this architecture.
1224         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1225
1226 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1227
1228         * sysdeps/x86_64/strcmp.S: Add support to compile with
1229         USE_SSSE3.  In this case palignr is used.
1230         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1231         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1232         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1233         Add strcmp-ssse3 and strncmp-ssse3.
1234         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1235         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1236
1237         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1238         warning through fake initialization.
1239
1240 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1241
1242         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1243
1244 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1245
1246         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1247         unique symbols.
1248
1249 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1250
1251         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1252         EBX from EAX = 1.  Handle EAX = 11.
1253
1254 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1255
1256         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1257         inside ''.
1258
1259 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1260
1261         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1262         hidden IFUNC functions.
1263         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1264
1265         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1266
1267         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1268         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1269         strcasestr-c.
1270         (CFLAGS-strcspn-c.c): Define.
1271         (CFLAGS-strpbrk-c.c): Define.
1272         (CFLAGS-strspn-c.c): Define.
1273         (CFLAGS-strstr.c): Define.
1274         (CFLAGS-strcasestr.c): Define.
1275         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1276         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1277         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1278         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1279         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1280         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1281         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1282         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1283         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1284         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1285         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1286         -16L instead of 0xfffffffffffffff0L.
1287         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1288
1289 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1290
1291         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1292
1293 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1294
1295         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1296         another rewrite.  Much smaller and faster.
1297         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1298
1299         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1300         ss_flags from the correct location.
1301
1302 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1305         * sysdeps/i386/i686/cacheinfo.c: New file.
1306         * sysdeps/i386/i686/multiarch/Makefile: New file.
1307         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1308         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1309         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1310         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1311         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1312         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1313         (__cpuid_count): New. Provide the default.
1314         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1315         (__x86_64_preferred_memory_instruction): Define only if
1316         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1317         (intel_check_word): Use __cpuid.
1318         (handle_intel): Likewise.
1319         (handle_amd): Likewise.
1320         (__cache_sysconf): Likewise.
1321         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1322         (__cache_sysconf): Likewise.
1323         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1324         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1325         (get_common_indeces): Use __cpuid.
1326         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1327         if ENABLE_SSSE3_ON_ATOM is not defined.
1328         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1329         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1330         popcnt instead of popcntq.
1331
1332 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1333
1334         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1335
1336 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1337
1338         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1339         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1340         which always causes a compile error.
1341
1342         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1343
1344         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1345         comes from...
1346         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1347         which always causes a compile error.
1348
1349         * debug/Makefile (tests): Add tst-longjmp_chk2.
1350         * debug/tst-longjmp_chk2.c: New file.
1351
1352         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1353         Remove incorrect use of BP_SYM.
1354         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1355         here now since it is more complex than just a simple check.
1356
1357         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1358         we make no more progress.
1359
1360 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1361
1362         * math/s_fma.c: Don't define alias if __fma is a macro.
1363         * math/s_fmaf.c: Likewise.
1364         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1365         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1366         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1367
1368         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1369         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1370         New macro HAS_FMA.
1371         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1372         function.
1373         * include/libc-symbols.h (libm_ifunc): Define.
1374         * sysdeps/x86_64/multiarch/Versions: New file.
1375
1376         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1377
1378 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1379
1380         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1381
1382 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1383
1384         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1385         call that registers used in calling conventions need to be preserved.
1386         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1387         to preserve register content if necessary.
1388         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1389         (_dl_x86_64_restore_sse): New function.
1390         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1391         is allowed to modify xmm/ymm registers.
1392
1393         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1394         application's perspective.
1395         * stdio-common/scanf17.c: Likewise.
1396
1397 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1398
1399         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1400         size to memsz.
1401         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1402         here.
1403         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1404         two steps to catch bugs.
1405
1406 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1407
1408         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1409         determines which files are used in runtime lookups and only checks
1410         those for SSE use.
1411         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1412         testing.
1413         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1414         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1415         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1416         take a while.
1417
1418         * elf/dl-open.c: Move _dl_scope_free to...
1419         * elf/dl-scope.c: ...here.  New file.
1420         * elf/Makefile (dl-routines): Add scope.
1421
1422         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1423         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1424         RES_USE_DNSSEC.
1425         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1426         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1427         all the places we handled RES_USE_EDNS0 only before.
1428         Patch by Adam Tkac <atkac@redhat.com>.
1429
1430 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1431
1432         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1433         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1434         Update size when reallocating.
1435
1436 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1437
1438         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1439         functions used in ld.so modify xmm/ymm registers.
1440         * sysdeps/x86_64/Makefile:  Hook new test up.
1441         * sysdeps/x86_64/rtld-memchr.c: New file.
1442         * sysdeps/x86_64/rtld-memcmp.c: New file.
1443         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1444         * sysdeps/x86_64/rtld-strchr.S: New file.
1445         * sysdeps/x86_64/rtld-strlen.S: New file.
1446         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1447         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1448
1449 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1450
1451         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1452         strncmp-c.
1453         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1454         (exit): Likewise.
1455         (Byte1): Likewise.
1456         (Byte2): Likewise.
1457         (Byte3): Likewise.
1458         (Byte4): Likewise.
1459         (Byte5): Likewise.
1460         (Byte6): Likewise.
1461         (next_8_bytes): Likewise.
1462         (Byte0): Remove commented out codes.
1463         (unaligned_table): Align jump table at 8 bytes.
1464         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1465         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1466         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1467         * sysdeps/x86_64/strncmp.S: New file.
1468
1469 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1470
1471         [BZ #10422]
1472         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1473         kernels, dropped when eventfd2 support was added.
1474         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1475         kernels, dropped when signalfd4 support was added.
1476         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1477         added, name them.
1478
1479         [BZ #10452]
1480         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1481         replies up.
1482
1483         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1484
1485 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1486
1487         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1488         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1489
1490         [BZ #10448]
1491         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1492         callback we must touch the status to avoid using stale value.
1493
1494         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1495         compiled in.
1496
1497 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
1498
1499         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1500         /lib/modules/* headers anymore.  We have sane headers in the standard
1501         place now.
1502
1503 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1504
1505         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1506         "etf3enh" and "highgprs" added.
1507         (_dl_s390_platforms): "z10" added.
1508         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1509         Increased for the new entries.
1510         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1511         HWCAP_S390_HIGH_GPRS added.
1512
1513         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1514         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1515         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1516         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1517         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1518
1519 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
1520
1521         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1522         avoid additional cpuid instructions.  Most of the information is
1523         stored somewhere.
1524
1525         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1526         cache descriptors.
1527         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1528
1529         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1530         SSSE3 bit for Atoms.
1531         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1532         here anymore.
1533
1534         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1535         structure before copying it to avoid warning.
1536         * posix/tst-rfc3484-2.c (do_test): Likewise.
1537         * posix/tst-rfc3484-3.c (do_test): Likewise.
1538
1539         [BZ #10416]
1540         * include/unistd.h: Make header file suitable for C++ test cases.
1541         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1542
1543         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1544         stack alignment in the exit code.
1545
1546         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1547         potentially be zero.
1548
1549         * elf/tst-unique1.c: Extend test to check for unloading DSO with
1550         unique symbol definition.
1551         Patch by Jakub Jelinek.
1552         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1553         make sure the object with the definition cannot be unloaded.  Adjust
1554         a few types.
1555         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1556         the unique symbol hash table should not be const.
1557
1558 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
1559
1560         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
1561         unnecesary variables.  Comment fixes.
1562
1563 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1564
1565         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1566         Use NONASCII_CASE information provided by the locale to determine
1567         whether optimized string load function can be used.  Minor cleanups.
1568
1569 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1570
1571         * string/strcasestr.c (STRCASESTR): New macro.
1572         (__strcasestr): Renamed to ..
1573         (STRCASESTR): ...this.
1574         * string/strstr.c (STRSTR): New macro.
1575         (strstr): Renamed to ..
1576         (STRSTR): ...this.
1577         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1578         strstr-c strcasestr-c
1579         (CFLAGS-strstr.c): New.
1580         (CFLAGS-strcasestr.c): Likewise.
1581         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1582         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1583         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1584         * sysdeps/x86_64/multiarch/strstr.c: New file.
1585
1586 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
1587
1588         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1589         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1590         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1591         _NL_CTYPE_NONASCII_CASE.
1592         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1593         field.
1594         (ctype_finish): Check whether there are any 8-bit characters outside
1595         the range ASCII has or whether the mapping isn't the same as for
1596         ASCII (±0x20).  Set nonascii_case appropriately.
1597         (ctype_output): Add output handler for nonascii_case.
1598
1599 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
1600
1601         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1602         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1603
1604 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1605
1606         [BZ #10360]
1607         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1608         0xffff in the EDNS0 record.
1609
1610 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1611
1612         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1613         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1614         is written before the list head update.
1615         Patch by Andreas Schwab <aschwab@redhat.com>.
1616
1617 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1618             Jakub Jelinek  <jakub@redhat.com>
1619
1620         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1621         corruption thread-safe.
1622
1623 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
1624
1625         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1626         overrides atomic_compare_and_exchange_val_rel, define to
1627         atomic_compare_and_exchange_val_rel by default, otherwise default
1628         to catomic_compare_and_exchange_val_acq.
1629         (catomic_compare_and_exchange_bool_rel): If arch overrides
1630         atomic_compare_and_exchange_bool_rel, define to
1631         atomic_compare_and_exchange_bool_rel by default.
1632         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1633         Use catomic_compare_and_exchange_val_rel instead of
1634         catomic_compare_and_exchange_val_acq.
1635
1636 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
1637
1638         * sysdeps/generic/ldsodefs.h: Add prototype for
1639         _dl_higher_prime_number.
1640         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1641
1642         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1643         restoring of ymm registers a bit.
1644
1645 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
1646
1647         * sysdeps/x86_64/memcmp.S: New file.
1648
1649 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
1650
1651         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1652         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
1653         pointers in writable memory.
1654
1655 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1656
1657         * config.h.in: Add HAVE_AVX_SUPPORT entry.
1658         * config.make.in: Add config-cflags-avx entry.
1659         * configure.in: Substitute libc_cv_cc_avx.
1660         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1661         * elf/tst-audit4.c: New file.
1662         * elf/tst-audit5.c: New file.
1663         * elf/tst-auditmod4a.c: New file.
1664         * elf/tst-auditmod4b.c: New file.
1665         * elf/tst-auditmod5a.c: New file.
1666         * elf/tst-auditmod5b.c: New file.
1667         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1668         link-defines.sym.
1669         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1670         (La_x86_64_vector): Likewise.
1671         (La_x86_64_regs): Append lr_vector.
1672         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1673         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1674         saving and restoring SSE registers to ...
1675         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1676         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1677         <link-defines.h>.
1678         (_dl_runtime_profile): Use LR_SIZE to allocate space for
1679         La_x86_64_regs.  Allocate extra space and jump to memory at
1680         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1681         (save_and_restore_vector_sse): New.
1682         (save_and_restore_vector_avx): Likewise.
1683         (check_avx): Likewise.
1684         (save_and_restore_vector): Likewise.
1685         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1686         HAVE_AVX_SUPPORT.
1687         * sysdeps/x86_64/link-defines.sym: New file.
1688
1689 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
1690
1691         * elf/do-lookup.h: Removed after folding content into...
1692         * elf/dl-lookup.c: ...here.
1693
1694         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1695
1696 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
1697
1698         * configure.in: Check for gnu_unique_symbol symbol type.
1699         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1700         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1701         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
1702         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1703         change.
1704         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1705         unique symbol table.
1706         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1707         for first namespace.
1708         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1709         unique symbol hash table.
1710         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1711         * elf/tst-unique1.c: New file.
1712         * elf/tst-unique1mod1.c: New file.
1713         * elf/tst-unique1mod2.c: New file.
1714         * elf/tst-unique2.c: New file.
1715         * elf/tst-unique2mod1.c: New file.
1716         * elf/tst-unique2mod2.c: New file.
1717
1718 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
1719
1720         * elf/elf.h (STB_GNU_UNIQUE): Define.
1721
1722         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
1723         from...
1724         * include/inline-hashtab.h: ...here.
1725         (htab_expand): Adjust for renamed function.  Correct memory handling.
1726
1727 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
1728
1729         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
1730
1731 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
1732
1733         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
1734         (PPC_FEATURE_HAS_VSX): Likewise.
1735
1736 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
1737
1738         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
1739         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
1740
1741         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
1742         aligned to 16 byte boundaries.
1743         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1744         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1745         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1746
1747 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1748
1749         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
1750         * config.make.in (config-cflags-sse4): New variable.
1751         * configure.in: Substitute libc_cv_cc_sse4.
1752         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
1753         HAVE_SSE4_SUPPORT.
1754         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1755         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
1756         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
1757         * sysdeps/x86_64/multiarch/strcspn.S: New file.
1758         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
1759         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
1760         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
1761         * sysdeps/x86_64/multiarch/strspn.S: New file.
1762
1763 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1764
1765         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
1766         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
1767         (tests): Add tst-audit3 for x86_64.
1768         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
1769         ($(objpfx)tst-audit3): Define.
1770         ($(objpfx)tst-audit3.out): Define.
1771         (tst-audit3-ENV): Define.
1772         * elf/tst-audit3.c: New file.
1773         * elf/tst-auditmod3a.c: New file.
1774         * elf/tst-auditmod3b.c: New file.
1775         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
1776         and restore xmm6.
1777
1778         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
1779         (__stpncpy): Renamed to ...
1780         (STPNCPY): This.
1781         (stpncpy): Create alias only if STPNCPY is not defined.
1782         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
1783         defined.
1784         (strncpy): Renamed to ...
1785         (STRNCPY): This.
1786         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1787          stpncpy-c strncpy-c for string.
1788         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1789         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1790         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1791         * sysdeps/x86_64/multiarch/strcpy.S: New file.
1792         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1793         * sysdeps/x86_64/multiarch/strncpy.S: New file.
1794
1795 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
1796
1797         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1798         adding to fast bin list.
1799
1800 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
1801
1802         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1803         inet_makeaddr.  This worked only with class-based networks.
1804         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1805         Likewise.
1806
1807         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1808         recognize all types.
1809         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1810         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
1811         be in host byte order.
1812
1813 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1814
1815         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1816         (MODEL_OFFSET): Define.
1817         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1818         family and model.
1819         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1820         out common code into new function get_common_indeces. Determine
1821         extended family and model for Intel processors.
1822
1823 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1824
1825         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1826         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1827         option.
1828         * resolv/res_send.c (reopen): New function.  Broken out of...
1829         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1830         fallback mechanism.  If single-request fails switch to
1831         single-request-reopen mode which opens a new socket for the second
1832         request.
1833
1834 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1835
1836         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1837         (CHECK_SP): Use it.
1838
1839 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1840
1841         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1842         for saved registers.
1843         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1844         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1845         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1846
1847 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1848
1849         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1850
1851 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1852
1853         * po/id.po: Update from translation team.
1854
1855         * po/bg.po: Update from translation team.
1856
1857 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1858
1859         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1860         defined.
1861         (strncmp): Renamed to STRNCMP.
1862         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1863         strncmp-c for string.
1864         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1865         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1866         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1867         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1868
1869 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1872         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1873         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1874         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1875         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1876         ifuncmain7static.c.
1877         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1878         ifuncmain7static, and ifuncmain7picstatic.
1879         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1880         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1881         $(objpfx)ifuncmain7pie.out.
1882         (modules-names): Add ifuncmod5 ifuncmod6
1883         (ifuncmod5.so-no-z-defs): Define.
1884         (ifuncmod6.so-no-z-defs): Define.
1885         (CFLAGS-ifuncmain5pic.c): Define.
1886         (CFLAGS-ifuncmain5picstatic.c): Define.
1887         (CFLAGS-ifuncmain5staticpic.c): Define.
1888         (CFLAGS-ifuncdep5pic.c): Define.
1889         (CFLAGS-ifuncmain7pic.c): Define.
1890         (CFLAGS-ifuncmain7picstatic.c): Define.
1891         (CFLAGS-ifuncmain1staticpie.c): Define.
1892         (CFLAGS-ifuncmain5pie.c): Define.
1893         (CFLAGS-ifuncmain6pie.c): Define.
1894         (CFLAGS-ifuncmain7pie.c): Define.
1895         ($(objpfx)ifuncmain1staticpie.out): Define.
1896         ($(objpfx)ifuncmain1staticpie): Define.
1897         ($(objpfx)ifuncmain5pie.out): Define.
1898         ($(objpfx)ifuncmain5pie): Define.
1899         ($(objpfx)ifuncmain6pie.out): Define.
1900         ($(objpfx)ifuncmain6pie): Define.
1901         ($(objpfx)ifuncmain5): Define.
1902         ($(objpfx)ifuncmain5pic): Define.
1903         ($(objpfx)ifuncmain5static): Define.
1904         ($(objpfx)ifuncmain5staticpic): Define.
1905         ($(objpfx)ifuncmain5picstatic): Define.
1906         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1907         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1908         ifuncmain6pie.out.
1909         * elf/b/elf/ifuncmain1staticpie.c: New file.
1910         * elf/ifuncdep5.c: New file.
1911         * elf/ifuncdep5pic.c: New file.
1912         * elf/ifuncmain5.c: New file.
1913         * elf/ifuncmain5pic.c: New file.
1914         * elf/ifuncmain5picstatic.c: New file.
1915         * elf/ifuncmain5pie.c: New file.
1916         * elf/ifuncmain5static.c: New file.
1917         * elf/ifuncmain5staticpic.c: New file.
1918         * elf/ifuncmain6pie.c: New file.
1919         * elf/ifuncmain7.c: New file.
1920         * elf/ifuncmain7pic.c: New file.
1921         * elf/ifuncmain7picstatic.c: New file.
1922         * elf/ifuncmain7pie.c: New file.
1923         * elf/ifuncmain7static.c: New file.
1924         * elf/ifuncmod5.c: New file.
1925         * elf/ifuncmod6.c: New file.
1926
1927 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1928
1929         [BZ #10085]
1930         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1931         (nss_endgrent): New variable.
1932         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1933         fields. Change type of files to bool and adjust all users.
1934         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1935         (internal_endgrent): Call nss_endgrent if necessary.
1936         (add_group): New function.  Broken out of...
1937         (check_and_add_group): ...here.
1938         (getgrent_next_nss): Remove test that any callback is available.
1939         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1940         callback.  If there is no blacklist we can trust the results returned
1941         by the initgroups_dyn callback.  In case there is a callback and we
1942         find a group entry for the group ID but it doesn't contain the
1943         correct member, switch to the slow mode and use getgrent_r.
1944         (internal_getgrent_r): When we see a +: entry, determine whether
1945         there is any callback and which we can use the initgroups_dyn
1946         callback.
1947
1948 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1951         (_int_free): Likewise.
1952
1953         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1954         AF_IEEE802154.
1955         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1956         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1957         and ARPHRD_IEEE802154_PHY.
1958
1959         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1960         relative to generic Linux version.
1961
1962 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1963
1964         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1965         ($(objpfx)ifuncmain1vispie): Likewise.
1966
1967 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1968
1969         * login/Makefile: Build pt_chown as PIE.
1970
1971 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1972
1973         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1974         a format string.
1975         * elf/sln.c (usage): Likewise.
1976         * malloc/memusage.sh (do_help): Likewise.
1977         * nss/getent.c (more_help): Likewise.
1978         * posix/getconf.c (main): Likewise.
1979         * sunrpc/rpcinfo.c (usage): Likewise.
1980         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1981
1982 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1983
1984         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1985         those needed.
1986         * login/Makefile: If necessary link pt_chown with -lcap.
1987         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1988         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1989
1990 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1991
1992         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1993         comparisons.
1994         * string/test-memchr.c (do_random_tests): Test very large lengths
1995         as well.
1996
1997 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1998
1999         * Makeconfig (+link-pie): Define.
2000         (+prectorS): Define.
2001         (+postctorS): Define.
2002         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2003         * nscd/Makefile ($(objpfx)nscd): Likewise.
2004
2005 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2006
2007         [BZ #10107]
2008         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2009         with cmplwi.
2010         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2011
2012 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2013
2014         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2015         into ...
2016         * sysdeps/unix/grantpt.c: ...here.
2017
2018 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2019
2020         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2021         chmod if it is necessary.
2022
2023         [BZ #10166]
2024         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2025         when the slave device is in devpts or devfs.
2026
2027         [BZ #10183]
2028         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2029
2030         [BZ #10195]
2031         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2032         of nd_opt_home_agent_info_preference to uint16_t.
2033         Patch by Arnaud Ebalard <arno@natisbad.org>.
2034
2035         [BZ #10207]
2036         * nss/getent.c: Add support for printing gshadow data.
2037
2038         [BZ #10203]
2039         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2040         not just the currently used one and those which follow.
2041         Patch by Joe Landers <jlanders@vmware.com>.
2042
2043         [BZ #10196]
2044         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2045         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2046         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2047
2048         [BZ #10217]
2049         * stdlib/abort.c: Define variable __abort_msg.
2050         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2051         * include/stdlib.h: Declare __abort_msg.
2052         * assert/assert-perr.c: Don't free buffer for message immediately.
2053         Store atomically in __abort_msg and free old buffer if necessary.
2054         * assert/assert.c: Likewise.
2055         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2056         store pointer in __abort_msg, and possibly free old string.
2057         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2058
2059         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2060
2061         [BZ #10211]
2062         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2063         handle leap seconds if they are available.
2064         Patch by Akinori Hattori <hattya@gentoo.org>.
2065
2066         * timezone/tzselect.ksh: Update from tzcode2009i.
2067         * timezone/zdump.c: Likewise.
2068         * timezone/zic.c: Likewise.
2069
2070         * timezone/africa: Update from tzdata2009i.
2071         * timezone/antarctica: Likewise.
2072         * timezone/asia: Likewise.
2073         * timezone/australasia: Likewise.
2074         * timezone/backward: Likewise.
2075         * timezone/etcetera: Likewise.
2076         * timezone/europe: Likewise.
2077         * timezone/factory: Likewise.
2078         * timezone/iso3166.tab: Likewise.
2079         * timezone/leapseconds: Likewise.
2080         * timezone/northamerica: Likewise.
2081         * timezone/pacificnew: Likewise.
2082         * timezone/solar87: Likewise.
2083         * timezone/solar88: Likewise.
2084         * timezone/solar89: Likewise.
2085         * timezone/southamerica: Likewise.
2086         * timezone/systemv: Likewise.
2087         * timezone/yearistype: Likewise.
2088         * timezone/zone.tab: Likewise.
2089
2090 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2091
2092         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2093         STT_GNU_IFUNC symbol or in 8 into type_class.
2094
2095         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2096         instead of Elf64_Addr.
2097
2098 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2099
2100         * po/sv.po: Update from translation team.
2101
2102         [BZ #10229]
2103         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2104         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2105         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2106         the C version.
2107
2108 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * Versions.def: Add GLIBC_2.11 for libpthread.
2111
2112 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2113
2114         * resolv/res_send.c (send_dg): Remember we switched to
2115         single-request mode.
2116
2117 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2118
2119         * dlfcn/dlfcn.h: Remove comma at end of enum.
2120         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2121
2122         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2123         parsing mode string.
2124
2125 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2126
2127         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2128
2129         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2130
2131         * sysdeps/x86_64/multiarch/strlen.S: New file.
2132         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2133         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2134         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2135         content.
2136
2137         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2138         is defined.
2139
2140 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2141
2142         * sysdeps/x86_64/strlen.S: Minor optimizations.
2143
2144 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2145
2146         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2147         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2148         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2149         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2150         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2151         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2152         ifuncmain3.c, ifuncmod3.c,.
2153         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2154         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2155         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2156         ifuncmain4picstatic.
2157         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2158         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2159         ifuncmain3, ifuncmain4.
2160         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2161         $(objpfx)ifuncmain1vispie.out.
2162         (modules-names): Add ifuncmod1 ifuncmod3.
2163         (generated): Add ifuncmain1pie ifuncmain1pie.out
2164         ifuncmain1vispie ifuncmain1vispie.out.
2165         Define rules to build and run the tests.
2166         * elf/ifuncdep1.c: New file.
2167         * elf/ifuncdep1pic.c: New file.
2168         * elf/ifuncdep2.c: New file.
2169         * elf/ifuncdep2pic.c: New file.
2170         * elf/ifuncmain1.c: New file.
2171         * elf/ifuncmain1pic.c: New file.
2172         * elf/ifuncmain1picstatic.c: New file.
2173         * elf/ifuncmain1pie.c: New file.
2174         * elf/ifuncmain1static.c: New file.
2175         * elf/ifuncmain1staticpic.c: New file.
2176         * elf/ifuncmain1vis.c: New file..
2177         * elf/ifuncmain1vispic.c: New file..
2178         * elf/ifuncmain1vispie.c: New file.
2179         * elf/ifuncmain2.c: New file.
2180         * elf/ifuncmain2pic.c: New file.
2181         * elf/ifuncmain2picstatic.c: New file.
2182         * elf/ifuncmain2static.c: New file.
2183         * elf/ifuncmain3.c: New file.
2184         * elf/ifuncmain4.c: New file.
2185         * elf/ifuncmain4picstatic.c: New file.
2186         * elf/ifuncmain4static.c: New file.
2187         * elf/ifuncmod1.c: New file.
2188         * elf/ifuncmod3.c: New file.
2189
2190 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2191
2192         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2193
2194 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2195
2196         [BZ #10221]
2197         * posix/Makefile (routines): Add execvpe.
2198         * posix/Versions: Export execvpe for GLIBC_2.11.
2199         * posix/execvp.c: Now only a wrapper.  Move code to...
2200         * posix/execvpe.c: ...here.  New file.
2201         * posix/unistd.h: Declare execvpe.
2202
2203 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2204
2205         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2206         for STT_GNU_IFUNC handling for efficiency.
2207         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2208
2209         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2210         _exit.
2211         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2212
2213 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2214
2215         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2216         for !SHARED.
2217
2218 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2221         is not defined.
2222         (__rela_iplt_start): New declaration.
2223         (__rela_iplt_end): Likewise.
2224         (__rel_iplt_start): Likewise.
2225         (__rel_iplt_end): Likewise.
2226         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2227         * elf/elf.h (R_386_IRELATIVE): New macro.
2228         (R_X86_64_IRELATIVE): New macro.
2229         (R_386_NUM): Updated.
2230         (R_X86_64_NUM): Likewise.
2231         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2232         (libc_ifunc_hidden_def): New macro.
2233         * sysdeps/generic/dl-irel.h: New file.
2234         * sysdeps/i386/dl-irel.h: New file.
2235         * sysdeps/x86_64/dl-irel.h: New file.
2236         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2237         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2238         Handle R_386_IRELATIVE.
2239         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2240         (elf_machine_lazy_rela): Likewise.
2241         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2242         R_X86_64_IRELATIVE.
2243         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2244
2245 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2246
2247         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2248         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2249         are no differences.  If an architecture has bits in CPUID index 1
2250         meaning different things the values for the COMMON_CPUID_INDEX_1
2251         index must not be set.
2252         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2253         (HAS_POPCOUNT): ...this.  New macro.
2254         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2255         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2256         to set the value for Intel and AMD architectures.
2257         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2258         INTEL_CPUID_INDEX_1.
2259         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2260         change.
2261
2262 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2263
2264         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2265         and $build.
2266
2267 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2268
2269         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2270         (__expm1l): Set errno to ERANGE on overflow.
2271         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2272         (__tanl): Set errno to EDOM for Â±Inf.
2273         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2274         (__cosl): Set errno to EDOM for Â±Inf.
2275         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2276         (__sinl): Set errno to EDOM for Â±Inf.
2277
2278         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2279         defined, use it.
2280         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2281         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2282         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2283
2284 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2285
2286         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2287         code accessing it.
2288         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2289
2290 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2291
2292         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2293         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2294         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2295         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2296
2297         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2298         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2299         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2300         defined.
2301         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2302         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2303
2304 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2305
2306         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2307         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2308         is, either do nothing at all if __ASSUME_ACCEPT4, or
2309         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2310         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2311         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2312         define.
2313         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2314         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2315         internal_accept4 in socket directory.
2316
2317 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2318
2319         * sysdeps/ia64/configure.in: New file.
2320
2321 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2322
2323         [BZ #10162]
2324         * sysdeps/ia64/memchr.S: Use speculative load.
2325
2326         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2327         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2328         use it.
2329
2330         * sysdeps/i386/__longjmp.S: Add .text.
2331         * sysdeps/x86_64/__longjmp.S: Likewise.
2332
2333 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2334
2335         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2336         __ASSUME_ACCEPT4 for IA-64.
2337
2338 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2339
2340         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2341
2342         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2343         (SOCKOP_accept4): Define.
2344
2345 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2346
2347         Sun approved the change of the license.
2348         * sunrpc/auth_des.c: Replace license text.
2349         * sunrpc/auth_none.c: Likewise.
2350         * sunrpc/auth_unix.c: Likewise.
2351         * sunrpc/authdes_prot.c: Likewise.
2352         * sunrpc/authuxprot.c: Likewise.
2353         * sunrpc/bindrsvprt.c: Likewise.
2354         * sunrpc/clnt_gen.c: Likewise.
2355         * sunrpc/clnt_perr.c: Likewise.
2356         * sunrpc/clnt_raw.c: Likewise.
2357         * sunrpc/clnt_simp.c: Likewise.
2358         * sunrpc/clnt_tcp.c: Likewise.
2359         * sunrpc/clnt_udp.c: Likewise.
2360         * sunrpc/clnt_unix.c: Likewise.
2361         * sunrpc/des_crypt.c: Likewise.
2362         * sunrpc/des_soft.c: Likewise.
2363         * sunrpc/get_myaddr.c: Likewise.
2364         * sunrpc/getrpcport.c: Likewise.
2365         * sunrpc/key_call.c: Likewise.
2366         * sunrpc/key_prot.c: Likewise.
2367         * sunrpc/openchild.c: Likewise.
2368         * sunrpc/pm_getmaps.c: Likewise.
2369         * sunrpc/pm_getport.c: Likewise.
2370         * sunrpc/pmap_clnt.c: Likewise.
2371         * sunrpc/pmap_prot.c: Likewise.
2372         * sunrpc/pmap_prot2.c: Likewise.
2373         * sunrpc/pmap_rmt.c: Likewise.
2374         * sunrpc/rpc/auth.h: Likewise.
2375         * sunrpc/rpc/auth_unix.h: Likewise.
2376         * sunrpc/rpc/clnt.h: Likewise.
2377         * sunrpc/rpc/des_crypt.h: Likewise.
2378         * sunrpc/rpc/key_prot.h: Likewise.
2379         * sunrpc/rpc/netdb.h: Likewise.
2380         * sunrpc/rpc/pmap_clnt.h: Likewise.
2381         * sunrpc/rpc/pmap_prot.h: Likewise.
2382         * sunrpc/rpc/pmap_rmt.h: Likewise.
2383         * sunrpc/rpc/rpc.h: Likewise.
2384         * sunrpc/rpc/rpc_des.h: Likewise.
2385         * sunrpc/rpc/rpc_msg.h: Likewise.
2386         * sunrpc/rpc/svc.h: Likewise.
2387         * sunrpc/rpc/svc_auth.h: Likewise.
2388         * sunrpc/rpc/types.h: Likewise.
2389         * sunrpc/rpc/xdr.h: Likewise.
2390         * sunrpc/rpc_clntout.c: Likewise.
2391         * sunrpc/rpc_cmsg.c: Likewise.
2392         * sunrpc/rpc_common.c: Likewise.
2393         * sunrpc/rpc_cout.c: Likewise.
2394         * sunrpc/rpc_dtable.c: Likewise.
2395         * sunrpc/rpc_hout.c: Likewise.
2396         * sunrpc/rpc_main.c: Likewise.
2397         * sunrpc/rpc_parse.c: Likewise.
2398         * sunrpc/rpc_parse.h: Likewise.
2399         * sunrpc/rpc_prot.c: Likewise.
2400         * sunrpc/rpc_sample.c: Likewise.
2401         * sunrpc/rpc_scan.c: Likewise.
2402         * sunrpc/rpc_scan.h: Likewise.
2403         * sunrpc/rpc_svcout.c: Likewise.
2404         * sunrpc/rpc_tblout.c: Likewise.
2405         * sunrpc/rpc_util.c: Likewise.
2406         * sunrpc/rpc_util.h: Likewise.
2407         * sunrpc/rpcinfo.c: Likewise.
2408         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2409         * sunrpc/rpcsvc/key_prot.x: Likewise.
2410         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2411         * sunrpc/rpcsvc/mount.x: Likewise.
2412         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2413         * sunrpc/rpcsvc/rex.x: Likewise.
2414         * sunrpc/rpcsvc/rstat.x: Likewise.
2415         * sunrpc/rpcsvc/rusers.x: Likewise.
2416         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2417         * sunrpc/rpcsvc/spray.x: Likewise.
2418         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2419         * sunrpc/rtime.c: Likewise.
2420         * sunrpc/svc.c: Likewise.
2421         * sunrpc/svc_auth.c: Likewise.
2422         * sunrpc/svc_authux.c: Likewise.
2423         * sunrpc/svc_raw.c: Likewise.
2424         * sunrpc/svc_run.c: Likewise.
2425         * sunrpc/svc_simple.c: Likewise.
2426         * sunrpc/svc_tcp.c: Likewise.
2427         * sunrpc/svc_udp.c: Likewise.
2428         * sunrpc/svc_unix.c: Likewise.
2429         * sunrpc/svcauth_des.c: Likewise.
2430         * sunrpc/xcrypt.c: Likewise.
2431         * sunrpc/xdr.c: Likewise.
2432         * sunrpc/xdr_array.c: Likewise.
2433         * sunrpc/xdr_float.c: Likewise.
2434         * sunrpc/xdr_mem.c: Likewise.
2435         * sunrpc/xdr_rec.c: Likewise.
2436         * sunrpc/xdr_ref.c: Likewise.
2437         * sunrpc/xdr_sizeof.c: Likewise.
2438         * sunrpc/xdr_stdio.c: Likewise.
2439
2440         * po/da.po: Update from translation team.
2441
2442 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2443
2444         * sysdeps/sh/____longjmp_chk.S: New file.
2445         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2446         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2447
2448 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2449             Ulrich Drepper  <drepper@redhat.com>
2450
2451         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2452         (__nscd_cache_search): Assume each entry in the
2453         hash chain needs one hashentry and half of datahead.  Use
2454         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2455
2456 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2457
2458         * posix/sys/wait.h: Fix typos.  Pretty printing.
2459         * stdlib/stdlib.h: Likewise.  Correct comments.
2460
2461         [BZ #10159]
2462         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2463
2464         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2465         patch.
2466
2467 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2468
2469         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2470         Use it if we absolutely cannot reach any more correct list elements
2471         because that many do not fit into the currently mapped database.
2472
2473 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2474
2475         * nscd/nscd_helper.c: Include stddef.h.
2476         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2477         in a couple of places.  Return NULL if trail is not less than
2478         datasize, don't consider dataheads with length smaller than
2479         offsetof (struct datahead, data) + datalen.
2480         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2481         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2482         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2483         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2484         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2485         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2486         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2487
2488         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2489         Rename ...
2490         (fallocate64): ... to this.
2491         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2492         Rename ...
2493         (fallocate64): ... to this.
2494         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2495         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2496         fallocate64@@GLIBC_2.10.
2497         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2498         fallocate64@@GLIBC_2.11.
2499         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2501         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2502         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2503
2504         * nscd/selinux.c (nscd_avc_destroy): Removed.
2505         * nscd/selinux.h (nscd_avc_destroy): Likewise.
2506         * nscd/nscd.c (termination_handler): Don't call
2507         nscd_avc_destroy.
2508
2509 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
2510
2511         * include/atomic.h: Formatting.
2512         (catomic_compare_and_exchange_val_acq): Don't define if already
2513         defined by bits/atomic.h.
2514
2515 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2516
2517         * math/libm-test.inc (expm1_test): Add test for range error.
2518
2519         * Versions.def: Add GLIBC_2.11 for libc.
2520         * debug/Makefile (routines): Add longjmp_chk.
2521         Add rules to build and run tst-longjmp_chk.
2522         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2523         * debug/longjmp_chk.c: New file.
2524         * debug/tst-longjmp_chk.c: New file.
2525         * include/bits/setjmp2.: New file.
2526         * include/stdio.h: Mark __fortify_fail as internal_function.
2527         * setjmp/Makefile (headers): Add bits/setjmp2.h.
2528         * setjmp/bits/setjmp2.h: New file.
2529         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2530         of the aliases.
2531         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2532         defined.
2533         * sysdeps/i386/____longjmp_chk.S: New file.
2534         * sysdeps/x86_64/____longjmp_chk.S: New file.
2535         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2536         * sysdeps/x86_64/__longjmp.S: Likewise.
2537
2538         * version.h: Bump for 2.11 development.
2539
2540         * elf/check-execstack.c: New file.
2541         * elf/Makefile: Add rules to build and run check-execstack.
2542
2543 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
2544
2545         * version.h (VERSION): Bump to 2.10.1.
2546
2547         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2548         compatibility functions.
2549         * nss/getXXent_r.c: Likewise.
2550         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2551         * gshadow/getsgnam_r.c: Likewise.
2552         * gshadow/Version: Remove duplicate entries.
2553
2554         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2555         for recent processor.
2556         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2557         Likewise.
2558
2559 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
2560
2561         * version.h (VERSION): Bump for 2.10 release.
2562         * include/features.h (__GLIBC_MINOR__): Bump to 10.
2563
2564         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
2565         same place we add ASFLAGS-config.
2566
2567 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2568
2569         [BZ #10128]
2570         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2571         or FORMERR and the other NOERROR, don't raise an error.
2572
2573 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
2574
2575         [BZ #10118]
2576         * Makeconfig (+asflags): New variable based upon ASFLAG or
2577         asflags-cpu.
2578         (ASFLAGS): Add override to set ASFLAGS to +asflags.
2579         * config.make.in (asflags-cpu): Add variable based upon
2580         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2581         the assembler.
2582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2583         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2584         recognizes power6 instruction set due to passing -mcpu=power6 from
2585         --with-cpu=power6 when compiling .S files.
2586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2587         Likewise.
2588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2589         Likewise.
2590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2591         Likewise.
2592
2593 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
2594
2595         * string/stratcliff.c (do_test): Test for zero length
2596         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2597         at the end of the page.
2598
2599 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
2600
2601         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2602
2603         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2604         count is zero.
2605
2606         * po/da.po: Update from translation team.
2607
2608 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
2609
2610         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2611         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2612
2613 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
2614
2615         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2616         and READ_IMPLIES_EXEC.
2617
2618 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
2619
2620         * po/da.po: Update from translation team.
2621
2622 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
2623
2624         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2625         comment change.
2626
2627 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
2628
2629         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2630         to MAP_ANON in PROT_NONE mmap64 call.
2631         (open_archive): Likewise.
2632         (file_data_available_p): Use mmap64 instead of mremap.
2633         (enlarge_archive): Likewise.  Update head if ah->addr changed.
2634         Attempt to reserve address space after mmap64 region.
2635
2636 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
2637
2638         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2639         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2640         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2641
2642         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2643         atanh should set ERANGE.
2644
2645         [BZ #10087]
2646         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2647         result of lookup to make call to implement STT_GNU_IFUNC.
2648         (_dl_profile_fixup): Likewise.
2649         Patch by H.J. Lu <hjl.tools@gmail.com>.
2650
2651         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2652         warning.
2653
2654         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2655         from definition.
2656
2657         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2658         label if it is not used.
2659
2660         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2661         of gmon_hist_hdr and gmon_hdr structures and use them.
2662         * elf/sprof.c: Likewise.
2663
2664         * elf/dl-load.c (open_verify): Add temporary variable to avoid
2665         warning.
2666
2667         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2668
2669         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2670         to avoid cast.
2671
2672         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2673         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2674         to avoid warnings.
2675         (iruserok_af): Use ss_family instead of casts.
2676
2677         * gmon/gmon.c (write_hist): Define real-type variant of
2678         gmon_hist_hdr structure and use it.
2679         (write_gmon): Likewise for gmon_hdr.
2680
2681         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2682         function if we are not going to define it.
2683         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2684
2685         * inet/inet6_option.c (option_alloc): Add temporary variable to
2686         avoid warning.
2687
2688         * libio/strfile.h (struct _IO_streambuf): Use correct type and
2689         name of VTable element.
2690         * libio/iovsprintf.c: Avoid casts to avoid warnings.
2691         * libio/iovsscanf.c: Likewise.
2692         * libio/vasprintf.c: Likewise.
2693         * libio/vsnprintf.c: Likewise.
2694         * stdio-common/isoc99_vsscanf.c: Likewise.
2695         * stdlib/strfmon_l.c: Likewise.
2696         * debug/vasprintf_chk.c: Likewise.
2697         * debug/vsnprintf_chk.c: Likewise.
2698         * debug/vsprintf_chk.c: Likewise.
2699
2700         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2701         function pointers.
2702
2703 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2704
2705         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2706
2707 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
2708
2709         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2710
2711         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
2712         * sysdeps/i386/fpu/s_tanf.S: Likewise.
2713         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2714         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2715         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2716         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2717         * math/libm-test.inc: Add tests for errno after tan calls with
2718         Â±Inf.
2719
2720         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
2721         errno value vor pow(+-0,neg).
2722         * math/libm-test.inc (pow_test): Add tests for errno value for
2723         pole errors.
2724
2725         * math/w_fmod.c: Also handle x=±Inf as error.
2726         * math/w_fmodf.c: Likewise.
2727         * math/w_fmodl.c: Likewise.
2728         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
2729         x=±Inf or y=0.
2730
2731         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
2732         * sysdeps/i386/fpu/s_cosf.S: Likewise.
2733         * sysdeps/i386/fpu/s_cosl.S: Likewise.
2734         * sysdeps/i386/fpu/s_sin.S: Likewise.
2735         * sysdeps/i386/fpu/s_sinf.S: Likewise.
2736         * sysdeps/i386/fpu/s_sinl.S: Likewise.
2737         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2738         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2739         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2740         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2741         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2742         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
2743         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
2744         * math/libm-test.inc: Add tests for errno after sin/cos calls with
2745         Â±Inf.
2746
2747         * stdlib/strtod_l.c (round_and_return): We have to set errno to
2748         ERANGE for underflows.
2749         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2750
2751         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
2752         the 2001 revision.
2753
2754         * libio/tst-widetext.input: Remove surrogates.
2755
2756         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
2757
2758         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
2759         for lgamma should set errno to ERANGE, not EDOM.
2760         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2761
2762 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2763
2764         [BZ #10093]
2765         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
2766         UTF-16 surrogates.
2767
2768         * locale/programs/locarchive.c (enlarge_archive): Conserve address
2769         space when temporarily mapping the whole content of the old file.
2770
2771         [BZ #10100]
2772         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
2773         not zero.
2774
2775 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2776
2777         * iconvdata/sjis.c (BODY): Don't advance inptr before
2778         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
2779         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2780         two byte chars.
2781
2782 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
2783
2784         * locale/locarchive.h (struct locarhandle): Rename len field to
2785         mmaped and add new reserved field.
2786         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2787         (create_archive): Reserve address space and then map file into it.
2788         (open_archive): Likewise.
2789         (file_data_available_p): New function.
2790         (compare_from_file): New function.
2791         (close_archive): Adjust to member name changes.
2792         (add_locale): Before comparing locale data, check it is mapped.
2793         Otherwise fall back to reading from the file.
2794
2795 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2796
2797         * stdio-common/psiginfo.c: Include <errno.h>.
2798
2799 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2800
2801         [BZ #9920]
2802         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2803         to get consistency between 32 and 64 bit architectures.
2804
2805         [BZ #10052]
2806         * sysdeps/unix/make-syscalls.sh: Add rule to create target
2807         directory for dummy syscall rules.
2808         Patch by Chris Steinbroner <hesh@pobox.com>.
2809
2810 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
2811
2812         [BZ #10092]
2813         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2814         MNT_EXPIRE.
2815
2816 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2817
2818         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
2819         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2820
2821 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2822
2823         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2824         data from vector to temporary buffer and call PWRITEV after it
2825         instead of vice versa.
2826         * sysdeps/posix/preadv.c: Fix up comment.
2827         * misc/preadv.c: Likewise.
2828         * misc/preadv64.c: Likewise.
2829         * misc/pwritev.c: Likewise.
2830         * misc/pwritev64.c: Likewise.
2831         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2832
2833 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2834
2835         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2836
2837         * shadow/Makefile (tests): Add tst-shadow.
2838         * shadow/tst-shadow.c: New file.
2839
2840         [BZ #9955]
2841         * gshadow/Makefile: New file.
2842         * gshadow/Versions: New file.
2843         * gshadow/fgetsgent.c: New file.
2844         * gshadow/fgetsgent_r.c: New file.
2845         * gshadow/getsgent.c: New file.
2846         * gshadow/getsgent_r.c: New file.
2847         * gshadow/getsgnam.c: New file.
2848         * gshadow/getsgnam_r.c: New file.
2849         * gshadow/gshadow.h: New file.
2850         * gshadow/putsgent.c: New file.
2851         * gshadow/sgetsgent.c: New file.
2852         * gshadow/sgetsgent_r.c: New file.
2853         * gshadow/tst-gshadow.c: New file.
2854         * include/gshadow.h: New file.
2855         * Makeconfig (all-subdirs): Add gshadow.
2856         * Makefile (installed-headers): Add gshadow/gshadow.h.
2857         * nss/Makefile (databases): Add sgrp.
2858         * nss/Versions: Add gshadow functions as private exports.
2859         * nss/nsswitch.conf: Add gshadow entry.
2860         * nss/sgrp-lookup.c: New file.
2861         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2862         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2863         * nss/nss_files/files-sgrp.c: New file.
2864         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2865         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2866
2867 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2868
2869         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2870         * stdio-common/reg-modifier.c: Likewise.
2871
2872 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2873
2874         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2875         is no FPU.
2876
2877 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2878
2879         [BZ #10086]
2880         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2881         headers up to 2.6.30.
2882
2883         * po/ca.po: Update from translation team.
2884
2885 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2886
2887         [BZ #10069]
2888         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2889         an object that uses static TLS if the TLS modid is higher than the
2890         reserve we always allocate.  At least for multi-threaded code.
2891
2892 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2893
2894         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2895         Numerically stable check for valid width.
2896
2897         * locale/programs/locarchive.c (open_archive): Map the entire file
2898         and not just the administrative data.
2899         (add_locale): When we find a hash sum match compare the content
2900         to be sure.
2901
2902         * malloc/malloc.c (malloc_info): Output address space information.
2903
2904 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2905
2906         * malloc/malloc.c (malloc_info): Also output system memory information.
2907
2908         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2909         architectures have preadv/pwritev in 2.6.30.
2910
2911         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2912         * sysdeps/posix/readv.c: Likewise.
2913         Reported by Markus Armbruster <armbru@redhat.com>.
2914
2915         * malloc/hooks.c (top_check): Force hook value into register.
2916
2917 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2918
2919         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2920         calls to _dl_relocate_object.
2921
2922 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2923
2924         [BZ #9957]
2925         * malloc/malloc.c (force_reg): Define.
2926         (sYSMALLOc): Load hook variable into variable
2927         before test and force into register.
2928         (sYSTRIm): Likewise.
2929         (public_mALLOc): Force hook value into register.
2930         (public_fREe): Likewise.
2931         (public_rEALLOc): Likewise.
2932         (public_mEMALIGn): Likewise.
2933         (public_vALLOc): Likewise.
2934         (public_pVALLOc): Likewise.
2935         (public_cALLOc): Likewise.
2936         (__posix_memalign): Likewise.
2937         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2938         before test and force into register.
2939         * malloc/hooks.c (top_check): Likewise.
2940         (public_sET_STATe): Pretty printing.
2941
2942         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2943         in case we only receive one reply in single-request mode.
2944
2945 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2946
2947         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2948         are dlopened in statically linked program even for __LM_ID_CALLER.
2949
2950 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2951
2952         * resolv/res_send.c (send_dg): Don't switch into single-request
2953         mode if we already are in it.
2954
2955 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2956
2957         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2958         are always at least 4 bytes in the returned line.
2959
2960 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2961
2962         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2963         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2964         instead of 8K.  Stop searching in /proc/stat after hitting first
2965         line not starting with cpu.
2966         (next_line): Truncate too long
2967         lines at buffer size * 3/4 instead of pretending there were line
2968         breaks inside of large lines.
2969
2970 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2971
2972         * sysdeps/x86_64/mp_clz_tab.c: New file.
2973
2974 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2975             Ulrich Drepper  <drepper@redhat.com>
2976
2977         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2978         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2979         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2980
2981 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2982
2983         * sysdeps/sh/libc-tls.c: New file.
2984
2985         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2986
2987 2009-04-14  Roland McGrath  <roland@redhat.com>
2988
2989         * elf/elf.h: Add various missing ARM constants, to match binutils.
2990
2991 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2992
2993         Optimizations from GMP.
2994         * sysdeps/x86_64/add_n.S: New file.
2995         * sysdeps/x86_64/addmul_1.S: New file.
2996         * sysdeps/x86_64/lshift.S: New file.
2997         * sysdeps/x86_64/mul_1.S: New file.
2998         * sysdeps/x86_64/rshift.S: New file.
2999         * sysdeps/x86_64/sub_n.S: New file.
3000         * sysdeps/x86_64/submul_1.S: New file.
3001
3002 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3003
3004         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3005         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3006         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3007         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3008
3009 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3010
3011         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3012         preadv/pwritev.
3013
3014 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3015
3016         * sysdeps/x86-64/strrchr.S: New file.
3017
3018 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3019
3020         * stdio-common/printf.h (struct printf_info): Add user element.
3021         New types printf_arginfo_size_function, printf_va_arg_function.
3022         Declare register_printf_specifier, register_printf_modifier,
3023         register_printf_type.
3024         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3025         (union printf_arg): Add pa_user element.
3026         Adjust __printf_arginfo_table type.
3027         Add __printf_va_arg_table, __printf_modifier_table,
3028         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3029         declarations.
3030         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3031         If registered arginfo call failed try normal specifier.
3032         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3033         function.
3034         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3035         * stdio-common/Versions: Export register_printf_modifier,
3036         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3037         * stdio-common/reg-modifier.c: New file.
3038         * stdio-common/reg-type.c: New file.
3039         * stdio-common/reg-printf.c (__register_printf_specifier): New
3040         function.  Mostly the old __register_printf_function function but
3041         uses locking and type of third parameter changed.
3042         (__register_printf_function): Implement using
3043         __register_printf_specifier.
3044         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3045         calls to arginfo functions.  Allocate enough memory for user-defined
3046         types.  Call new va_arg functions to get user-defined types.
3047         Try installed handlers even for existing format specifiers first.
3048
3049 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3050
3051         * sysdeps/x86_64/rawmemchr.S: New file.
3052
3053         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3054         Simplified code and possible copy problem fixed.
3055
3056         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3057         function if it is not defined.  Add some necessary casts.
3058         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3059
3060         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3061         have preadv/pwritev in 2.6.30.
3062
3063 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3064
3065         * malloc/malloc.c (malloc_info): New function.
3066         * malloc/malloc.h: Declare it.
3067         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3068
3069         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3070         to avoid PLT slot.
3071
3072         * malloc/malloc.c (_int_realloc): Add parameter with old block
3073         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3074         Adjust all callers.
3075         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3076
3077 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3078
3079         * sysdeps/x86_64/strchrnul.S: New file.
3080
3081         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3082         depending libcrypt on -lfreebl3.
3083
3084         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3085         preadv/pwritev in 2.6.30.
3086
3087         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3088         instead of __strcasecmp.
3089
3090         * string/stratcliff.c (do_test): Add memchr tests..
3091         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3092         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3093         first read quad word.
3094
3095 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3096
3097         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3098         * string/tst-svc.input: Add new test case.
3099         * string/tst-svc.expect: Adjust.
3100         * string/Makefile: Don't ignore tst-svc error.
3101
3102         * sysdeps/x86_64/memchr.S: New file.
3103
3104         * resolv/resolv.h (RES_SNGLKUP): Define.
3105         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3106         * resolv/res_send.c (send_dg): If we sent two requests at once and
3107         only get one reply before timeout switch to mode where we send the
3108         second request only after the first answer has been received.
3109
3110 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3111
3112         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3113         * sysdeps/x86_64/strchr.S: Likewise.
3114
3115 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3116
3117         * configure.in: We need to test for the compiler earlier.
3118
3119         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3120         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3121         GLIBC_2.10.
3122         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3123         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3124         and pwritev.
3125         * misc/preadv.c: New file.
3126         * misc/preadv64.c: New file.
3127         * misc/pwritev.c: New file.
3128         * misc/pwritev64.c: New file.
3129         * sysdeps/posx/preadv.c: New file.
3130         * sysdeps/posx/preadv64.c: New file.
3131         * sysdeps/posx/pwritev.c: New file.
3132         * sysdeps/posx/pwritev64.c: New file.
3133         * sysdeps/unix/sysv/linux/preadv.c: New file.
3134         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3135         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3136         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3137         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3138         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3139
3140         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3141         compatibility code.
3142         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3143
3144         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3145         __ASSUME_COMPLETE_READV_WRITEV.
3146         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3147         with modern kernels.
3148         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3149
3150         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3151         to free a possible malloced buffer in case of cancellation.
3152         * sysdeps/posix/writev.c: Likewise for write.
3153
3154 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3155
3156         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3157
3158         * configure.in: Recognize --enable-nss-crypt.
3159         * config.make.in: Add nss-crypt entry.
3160         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3161         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3162         and include path for NSS directory to compiler for md5-crypt,
3163         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3164         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3165         function implementation, use NSS.  Introduce wrappers around the
3166         hash function calls.  Little code size optimization.
3167         * crypt/sha256-crypt.c: Likewise.
3168         * crypt/sha512-crypt.c: Likewise.
3169         * scripts/check-local-headers.sh: Ignore nss3 directory.
3170
3171         * configure.in: Rename pic_default to libc_cv_pic_default.
3172         * config.make.in: Likewise.
3173
3174 2009-04-01  Roland McGrath  <roland@redhat.com>
3175
3176         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3177         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3178         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3179         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3180         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3181         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3182         (R_SPARC_NUM): Update.
3183         From Dave Miller <davem@davemloft.net>.
3184
3185 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3186
3187         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3188
3189 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3190
3191         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3192         those which are used.
3193         * elf/dl-addr.c: Likewise.
3194         * elf/dl-caller.c: Likewise.
3195         * elf/dl-fini.c: Likewise.
3196         * elf/dl-iteratephdr.c: Likewise.
3197         * elf/dl-libc.c: Likewise.
3198         * elf/dl-load.c: Likewise.
3199         * elf/dl-support.c: Likewise.
3200         * elf/dl-sym.c: Likewise.
3201         * elf/rtld.c: Likewise.
3202         * sysdeps/generic/ldsodefs.h: Likewise.
3203
3204         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3205         * elf/dl-minimal.c: Likewise.
3206         * elf/dl-misc.c: Likewise.
3207         * elf/rtld.c: Likewise.
3208         * sysdeps/generic/ldsodefs.h: Likewise.
3209
3210 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3211
3212         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3213         Avoid reuse of complex expression.
3214
3215         * po/fr.po: Update from translation team.
3216
3217 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3218
3219         * include/dirent.h: Yet more changes to match sort function type
3220         change.
3221         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3222         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3223         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3224
3225 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3226
3227         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3228
3229 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3230
3231         * nscd/connections.c (restart): Try to preserve the process name
3232         by reading the /proc/self/exe symlink and using the return name.
3233         Patch by Jeff Bastian <jbastian@redhat.com>.
3234
3235 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3236
3237         [BZ #9733]
3238         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3239         if we are not loading a new audit library.
3240         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3241         Only use profiling trampoline for auditing if we are not relocating
3242         an audit library.
3243         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3244         * elf/rtld.c: Likewise.
3245         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3246
3247         * elf/rtld.c (dl_main): Extend help message for --audit option.
3248
3249         [BZ #9759]
3250         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3251         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3252         * dirent/alphasort.c: Adjust implementation to type change.
3253         * dirent/alphasort64.c: Likewise.
3254         * dirent/scandir.c: Likewise.
3255         * dirent/versionsort.c: Likewise.
3256         * dirent/versionsort64.c: Likewise.
3257         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3258         declaration.
3259         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3260         declaration.
3261
3262         [BZ #9880]
3263         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3264         correctly.  Set segleft member in output as required.
3265         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3266         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3267
3268         [BZ #9881]
3269         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3270         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3271         * inet/Makefile (tests): Add tst-inet6_rth.
3272         * inet/tst-inet6_rth.c: New file.
3273
3274         [BZ #5807]
3275         * string/strlen.c (strlen): Fix omission in the expression to test
3276         for NUL bytes.
3277
3278 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3279
3280         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3281
3282         * elf/dl-runtime.c (reloc_offset): Define.
3283         (reloc_index): Define.
3284         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3285         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3286         computing index from reloc_offset.
3287         (_dl_call_pltexit): Likewise.
3288         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3289         the relocation index to _dl_fixup.
3290         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3291         _dl_call_pltexit.
3292         * sysdeps/x86_64/dl-runtime.c: New file.
3293
3294         [BZ #9893]
3295         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3296         alignment of La_x86_64_regs.  Store xmm parameters.
3297         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3298
3299         [BZ #9913]
3300         * string/strverscmp.c (__strverscmp): Fix case of different digits
3301         in fractional part of string.
3302         Patch by Jingyu Liu <jyliu@fortinet.com>.
3303         * string/Makefile (tests): Add tst-svc2.
3304         * string/tst-svc2.c: New file.
3305
3306         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3307
3308         * locale/iso-639.def: Add Min Nan.
3309
3310 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3311
3312         [BZ #9948]
3313         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3314
3315 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3316
3317         * elf/dl-sysdep.c (auxvars): Compress data structure.
3318
3319         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3320         STT_GNU_IFUNC handling.
3321         (elf_machine_rela): Likewise.
3322
3323 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3324
3325         * config.h.in (USE_MULTIARCH): Define.
3326         * configure.in: Handle --enable-multi-arch.
3327         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3328         (_dl_fixup_profile): Likewise.
3329         * elf/do-lookup.c (dl_lookup_x): Likewise.
3330         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3331         * elf/elf.h (STT_GNU_IFUNC): Define.
3332         * include/libc-symbols.h (libc_ifunc): Define.
3333         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3334         framework in init-arch.h to get CPUID values.
3335         * sysdeps/x86_64/multiarch/Makefile: New file.
3336         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3337         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3338         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3339
3340         * config.make.in (experimental-malloc): Define.
3341         * configure.in: Handle --enable-experimental-malloc.
3342         * malloc/Makefile: Handle experimental-malloc flag.
3343         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3344         * malloc/arena.c: Likewise.
3345         * malloc/hooks.c: Likewise.
3346         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3347
3348 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3349
3350         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3351         prediction.  A few size optimizations.
3352
3353 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3354
3355         * time/tzset.c: Optimize a bit for size.
3356
3357 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3358
3359         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3360         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3361
3362         * elf/sprof.c: Avoid warning about multi-line comment.
3363
3364 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3365
3366         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3367         DST name.
3368         * time/tst-posixtz.c: Add tests for quoted timezone names.
3369
3370 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3371
3372         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3373         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3374         200809L instead of 200112L.
3375         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3376         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3377
3378         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3379         instead of __quick_exit_funcs to __run_exit_handlers.
3380         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3381         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3382         (__cxa_at_quick_exit): Remove attribute_hidden.
3383         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3384         to __run_exit_handlers.
3385         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3386         attribute_hidden.
3387
3388 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3389
3390         * po/id.po: Update from translation team.
3391
3392 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3393
3394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3395         .machine push; .machine "power6" and .machine pop around mtfsf
3396         insns outside of _ARCH_PWR6 define.
3397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3399         Likewise.
3400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3401         Likewise.
3402         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3403         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3404         relax_fenv_state): Likewise.
3405
3406 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3407
3408         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3409         cxa_at_quick_exit.
3410         (static-only-routines): Add at_quick_exit.
3411         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3412         GLIBC_2.10.
3413         * stdlib/quick_exit.c: New file.
3414         * stdlib/at_quick_exit.c: New file.
3415         * stdlib/cxa_at_quick_exit.c: New file.
3416         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3417         it appropriately.
3418         (__internal_atexit): New function.
3419         (__new_exitfn): Now takes parameter to point to the list to use.
3420         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3421         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3422         (exit): ...here.  Just call __run_exit_handlers appropriately.
3423         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3424         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3425         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3426         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3427
3428         * po/id.po: Update from translation team.
3429
3430 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3431
3432         * po/ru.po: Update from translation team.
3433
3434 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3435
3436         * po/nl.po: Update from translation team.
3437
3438 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3439
3440         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3441         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3442         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3443         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3444         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3445         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3446         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3447
3448         * po/pl.po: Update from translation team.
3449
3450 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3451
3452         [BZ #7083]
3453         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3454         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3455         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3456         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3457         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3458         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3459         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3460         for GLIBC_2.10.
3461         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3462         Add fallocate and fallocate64.
3463
3464         * io/fcntl.h: Pretty printing.
3465
3466 2009-03-02  Richard Guenther  <rguenther@suse.de>
3467
3468         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3469         attribute also for non-C99 inline semantics variant.
3470
3471 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3472
3473         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3474         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3475         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3476         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3478         Likewise.
3479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3480         Likewise.
3481
3482 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3483
3484         * po/cs.po: Update from translation team.
3485
3486 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3487
3488         * po/bg.po: Update from translation team.
3489         * po/sv.po: Likewise.
3490         * po/fi.po: Likewise.
3491         * po/vi.po: Likewise.
3492
3493 2009-02-27  Roland McGrath  <roland@redhat.com>
3494
3495         * Makeconfig (%.v.i): Depend on Makeconfig.
3496         Exclude % lines from initial #-comment removal.
3497
3498 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
3499
3500         * po/ko.po: Update from translation team.
3501
3502 2009-02-26  Roland McGrath  <roland@redhat.com>
3503
3504         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3505         avoids unused warning.
3506
3507 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
3508             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3509
3510         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3511         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
3512         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3513         and asm/user.h.  Include asm/ptrace.h.
3514         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3515         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3516         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3517         Undefine.
3518         (start_thread): Don't undefine.
3519         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3520         Define.
3521
3522 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
3523
3524         * wctype/wctype.h: The *_l functions are in POSIX 2008.
3525         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3526         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3527         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3528         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3529         200112L to 200809L.
3530         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3531         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3532         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3533         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3534         _SC_THREAD_ROBUST_PRIO_PROTECT.
3535         * posix/unistd.h: fexecve is in POSIX 2008.
3536         * time/time.h: strftime_l is in POSIX 2008.
3537         * io/sys/stat.h: futimens is in POSIX 2008.
3538         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3539         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3540         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3541         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3542         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3543         open_memstream, and vdprintf are in POSIX 2008.
3544
3545 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
3546
3547         * include/features.h: Define macros for XPG7/POSIX 2008.
3548         * ctype/ctype.h: The *_l functions are in POSIX 2008.
3549         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3550         POSIX 2008.
3551         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3552         * locale/xlocale.h: Define locale_t type.
3553         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3554         in POSIX 2008.  Don't define locale_t here.
3555         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3556         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3557         UTIME_OMIT only with __USE_ATFILE.
3558         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3559         * stdio-common/psiginfo.c: New file.
3560         * stdio-common/psiginfo-data.h: New file.
3561         * stdio-common/psiginfo-define.h: New file.
3562         * stdio-common/Makefile (routines): Add psiginfo.
3563         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3564         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3565         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3566         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3567         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3568         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3569         * io/sys/stat.h: Move mknodat definition into same conditional as
3570         mknod.
3571         * time/sys/time.h: futimesat is not among the functions accepted
3572         into the POSIX standard.
3573
3574         * include/features.h: If no feature selection given and we select
3575         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3576         * posix/Versions: Export __posix_getopt.
3577         * posix/getopt.c (_getopt_initialize): Take additional parameter.
3578         Use it to alternatively initialize __posixly_correct.
3579         (_getopt_internal_r): Take addition parameter.  Pass on to
3580         _getopt_initialize.
3581         (_getopt_internal): Take addition parameter.  Pass on to
3582         _getopt_internal_r.
3583         (getopt): Pass additional zero to _getopt_internal.
3584         (__posix_getopt): New function.
3585         * posix/getopt.h: Add redirection for getopt.
3586         * posix/getopt1.c (getopt_long): Pass additional zero to
3587         _getopt_internal.
3588         (getopt_long_only): Likewise.
3589         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3590         (_getopt_long_only_r): Likewise.
3591         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3592         _getopt_internal_r.
3593
3594 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3595
3596         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3597         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3598         * sysdeps/posix/sysconf.c (__sysconf): Handle
3599         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3600         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3601
3602 2009-02-24  Roland McGrath  <roland@redhat.com>
3603
3604         [BZ #9895]
3605         * README.template: Reworded not to use substituted version number.
3606         Renamed to ...
3607         * README: ... here (no longer generated).
3608         * Makefile (README): Target removed.
3609
3610 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
3611
3612         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3613         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3614         instead.
3615
3616         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3617
3618         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3619
3620 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
3621
3622         * po/bg.po: Update from translation team.
3623
3624 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3625
3626         * stdlib/monetary.h: Uglify function parameter names.
3627         * sunrpc/rpc/pmap_clnt.h: Likewise.
3628         * sunrpc/rpc/svc.h: Likewise.
3629         * sunrpc/rpc/xdr.h: Likewise.
3630         * sunrpc/rpc/clnt.h: Likewise.
3631         * resolv/netdb.h: Likewise.
3632         * resolv/arpa/nameser.h: Likewise.
3633         * resolv/resolv.h: Likewise.
3634         * argp/argp.h: Likewise.
3635         * locale/langinfo.h: Likewise.
3636         * io/sys/stat.h: Likewise.
3637         * posix/spawn.h: Likewise.
3638         * nis/rpcsvc/nislib.h: Likewise.
3639         * malloc/obstack.h: Likewise.
3640         * sysdeps/ia64/bits/link.h: Likewise.
3641         * sysdeps/i386/bits/link.h: Likewise.
3642         * sysdeps/s390/bits/link.h: Likewise.
3643         * sysdeps/powerpc/bits/link.h: Likewise.
3644         * sysdeps/x86_64/bits/link.h: Likewise.
3645         * sysdeps/sparc/bits/link.h: Likewise.
3646         * sysdeps/sh/bits/link.h: Likewise.
3647         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3648         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3649         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3650         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3651
3652 2008-12-01  Fredrik Unger  <fred@tree.se>
3653
3654         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3655         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3656         _FP_UNPACK_RAW_2, fix up first argument.
3657
3658 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
3659
3660         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3661         (GET_NPROCS_PARSER): Change parameters and use next_line.
3662         (__get_nprocs): Rewrite to not use stdio routines.
3663         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3664         Change parameters and use next_line.
3665
3666 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
3667
3668         [BZ #5381]
3669         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3670         Change mempool_alloc prototype.
3671         * nscd/mem.c (gc): Don't handle mem_in_flight.
3672         (mempool_alloc): Third parameter now only indicates whether this is the
3673         first call (to allocate data) or not.  If it is, get db rdlock.
3674         Release it on error.  Don't handle mem_in_flight.
3675         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3676         Adjust third parameter of mempool_alloc calls.
3677         Nothing to do here in case mempool_alloc fails.
3678         Avoid local variable shadowing parameter.  No need to get db rdlock
3679         before calling cache_add.
3680         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
3681         no mem_in_flight array anymore.
3682         * nscd/connections.c: Remove definition and handling of mem_in_flight.
3683         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3684         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
3685         in case mempool_alloc fails. No need to get db rdlock before calling
3686         cache_add.
3687         * nscd/hstcache.c (cache_addhst): Likewise.
3688         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3689         * nscd/servicescache.c (cache_addserv): Likewise.
3690         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
3691
3692 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
3693
3694         * po/lt.po: Update from translation team.
3695
3696 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3699         defined, allow additional data to be added using the optional
3700         MORE_ELF_HEADER_DATA macro.
3701         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3702         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3703
3704 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
3705
3706         * include/atomic.h: Define catomic_and if not already defined.
3707         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3708         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3709
3710 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
3711
3712         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3713         Change all callers.
3714         (_int_realloc): Likewise.  Third argument is now padded size
3715         All _int_* functions are now static.
3716
3717         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
3718         * malloc/arena.c: Likewise.
3719         * include/malloc.h: Remove now unnecessary declarations of the _int_*
3720         functions.
3721
3722         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
3723         easily.
3724
3725         * malloc/malloc.c: Add branch prediction for use of the hooks.
3726
3727         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
3728
3729 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3730
3731         [BZ #7095]
3732         * bits/confname.h: Add SUSv7 macros for getconf environments.
3733         * bits/environments.h: Likewise.
3734         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
3735         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
3736         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
3737         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
3738         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
3739         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
3740         * posix/getconf.c: Likewise.
3741         * posix/sysconf.c: Likewise.
3742         * sysdeps/posix/sysconf.c: Likewise.
3743         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
3744         environments.
3745
3746 2009-01-16  Petr Baudis  <pasky@suse.cz>
3747
3748         [BZ #9753]
3749         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
3750         even if we currently have zero nscount.
3751
3752 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3753
3754         [BZ #9781]
3755         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
3756         the input line is too long.
3757
3758         * po/Makefile (libc.pot): Add f_print as function taking c-format
3759         parameter.
3760
3761         * debug/xtrace.sh: Unify translatable messages.
3762         * elf/ldd.bash.in: Likewise.
3763         * elf/sprof.c: Likewise.
3764         * locale/programs/locale.c: Likewise.
3765         * malloc/memusage.sh: Likewise.
3766         * nss/getent.c: Likewise.
3767
3768 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
3769
3770         * debug/pcprofiledump.c (print_version,
3771         argp_program_version_hook): New function.
3772         * elf/ldconfig.c (more_help): New function.
3773         (argp): Use it.
3774         * elf/sln.c (usage): New function.
3775         (main): Support --help and --version.
3776         * malloc/memusagestat.c (print_version): New function.
3777         (argp_program_version_hook): New variable.
3778         * nscd/nscd.c (more_help): New function.
3779         (argp): Use it.
3780         * posix/getconf.c (main): Send --version output to stdout.
3781         Support --help.
3782         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3783         arguments.  All callers changed.
3784         (print_version): New function.
3785         (parseargs): Support --help and --version.
3786         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
3787         changed.
3788         (print_version): New function.
3789         (main): Use getopt_long.  Support --help and --version.
3790         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3791         --version.
3792
3793 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
3794
3795         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3796         (update_data): Fix handling of wrapping back
3797         to the beginning of the buffer.
3798
3799         [BZ #9823]
3800         * stdio-common/psignal.c (psignal): Fix test for empty string.
3801
3802 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
3803
3804         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3805         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
3806         move _null_auth to .rodata.
3807
3808         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3809         value of 24.
3810
3811         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3812
3813         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3814         today than when the original code was written.  Use larger
3815         buffers.  This also makes it unnecessary to have stat information,
3816         if this causes extra efforts.
3817         (__opendir): In case O_DIRECTORY works, don't call fstat just for
3818         __alloc_dir.
3819
3820 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3821
3822         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3823         is set.
3824         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3825         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3826         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3827         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3828         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3829         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3830
3831 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3832
3833         * po/ru.po: Update from translation team.
3834
3835 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3836
3837         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3838         Add _tid slot to maintain consistency with kernel.
3839
3840 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3841
3842         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3843         incomplete characters at end of input buffer.
3844         * libio/Makefile (tests): Add tst-fgetwc.
3845         * libio/tst-fgetwc.c: New file.
3846         * libio/tst-fgetwc.input: New file.
3847
3848 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3849
3850         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3851
3852 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3853
3854         [BZ #9793]
3855         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3856         *OUTBUFSTART unless the whole output fit into the buffer.
3857         * iconv/Makefile (tests): Add tst-iconv4.
3858         * iconv/tst-iconv4.c: New file.
3859
3860 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3861
3862         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3864
3865 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3866
3867         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3868         newer linker scripts.
3869
3870 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3871
3872         [BZ #7040]
3873         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3874         inotify_rm_watch should have type int.
3875
3876 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3877
3878         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3879         Make aligned_restore_vmx a local symbol.
3880         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3881         Likewise.
3882
3883 2009-01-30  Andreas Jaeger  <aj@suse.de>
3884
3885         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3886         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3887         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3888         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3889         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3890         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3891         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3892
3893 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3894
3895         [BZ #9726]
3896         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3897         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3898
3899 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3900
3901         [BZ #9726]
3902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3903         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3905         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3906
3907 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3908
3909         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3910         memcpy instead of memcmp.
3911         (_dl_setup_pointer_guard): Likewise.
3912
3913 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3914
3915         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3916         manipulated brk, use malloc_printerr.
3917         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3918         requests.
3919
3920 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3921
3922         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3923         rindex): For C++ add inlines so that they can be recognized as
3924         builtins.
3925         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3926
3927 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3928             Jakub Jelinek  <jakub@redhat.com>
3929
3930         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3931         * wcsmbs/wchar.h: Likewise.
3932
3933 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3934
3935         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3936         (stackinfo_sub_sp): Define.
3937
3938 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3939
3940         [BZ #9750]
3941         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3942         * include/alloca.h (alloca_account): Define.
3943         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3944         (stackinfo_sub_sp): Define.
3945
3946         * nscd/connections.c (nscd_init): If database file access fails
3947         check whether this is due to permission problems and bail in that
3948         case.
3949
3950         [BZ #9741]
3951         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3952         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3953
3954 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3955
3956         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3957         Add "t" to clobber list.
3958         (INTERNAL_SYSCALL_NCS): Likewise.
3959
3960 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3961
3962         * nss/getent.c (print_networks): Don't print comma between aliases.
3963
3964 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3965
3966         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3967
3968         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3969         the hash table.
3970         * misc/Makefile (tests): Add bug-hsearch1.
3971         * misc/bug-hsearch1.c: New file.
3972
3973 2009-01-22  Roland McGrath  <roland@redhat.com>
3974
3975         * Makeconfig (%.v.i): Strip trailing # comments,
3976         not only whole-line comments.
3977
3978 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3979
3980         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3981         one parameter.  If non-NULL use it to initialize return value.
3982         (_dl_setup_pointer_guard): New function.
3983         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3984         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3985         * elf/rtld.c (security_init): Pass _dl_random to
3986         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3987         pointer_chk_guard.
3988         * elf/dl-sysdep.c (_dl_random): New variable.
3989         (_dl_sysdep_start): Handle AT_RANDOM.
3990         (_dl_show_auxv): Likewise.
3991         * elf/dl-support.c (_dl_random): New variable.
3992         (_dl_aux_init): Handle AT_RANDOM.
3993         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3994         to _dl_setup_stack_chk_guard.
3995
3996         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3997
3998 2009-01-10  Roland McGrath  <roland@redhat.com>
3999
4000         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4001
4002 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4005
4006         [BZ #9706]
4007         * nss/nss_files/files-parse.c (strtou32): New function.
4008         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4009         across 32-bit and 64-bit platforms.
4010         (INT_FIELD_MAYBE_NULL): Likewise.
4011
4012 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4013
4014         [BZ #9720]
4015         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4016         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4017         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4018         Likewise.
4019
4020 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4021
4022         [BZ #697]
4023         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4024         being NULL also if there are no backreferences.
4025         * posix/rxspencer/tests: Add testcases.
4026
4027 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4028
4029         [BZ #9697]
4030         * posix/bug-regex17.c: Add testcases.
4031         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4032         handling.
4033
4034 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4035
4036         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4037         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4038         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4039         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4040         for elf subdir.
4041         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4042         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4043         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4044         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4045         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4046         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4047
4048 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4049
4050         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4051         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4052         re_string_skip_chars, re_string_reconstruct): Likewise.
4053         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4054
4055 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4056
4057         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4058         adjust the buffer alignment.
4059
4060 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4061
4062         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4063         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4064         net/route.h.
4065
4066         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4067         flavor to description only when flavor is not NULL.
4068
4069         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4070         mutex after SIGIO/SIGURG lookup loop.
4071
4072 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4073
4074         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4075
4076 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4077
4078         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4079         handling.
4080
4081 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4082
4083         * sysdeps/unix/sysv/linux/kernel-features.h
4084         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4085
4086         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4087         if no output is written.
4088
4089         * version.h: Bump to 2.10 development.
4090
4091         * posix/getconf.c: Update copyright year.
4092         * nss/getent.c: Likewise.
4093         * iconv/iconvconfig.c: Likewise.
4094         * iconv/iconv_prog.c: Likewise.
4095         * elf/ldconfig.c: Likewise.
4096         * catgets/gencat.c: Likewise.
4097         * csu/version.c: Likewise.
4098         * elf/ldd.bash.in: Likewise.
4099         * elf/sprof.c (print_version): Likewise.
4100         * locale/programs/locale.c: Likewise.
4101         * locale/programs/localedef.c: Likewise.
4102         * nscd/nscd.c (print_version): Likewise.
4103         * debug/xtrace.sh: Likewise.
4104         * malloc/memusage.sh: Likewise.
4105         * malloc/mtrace.pl: Likewise.
4106         * debug/catchsegv.sh: Likewise.
4107
4108 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4109
4110         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4111         script.
4112
4113 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4114
4115         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4116         gethostbyname4_r function call succeeded, just leave the loop.
4117
4118         [BZ #9694]
4119         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4120         very end.
4121         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4122         * wctype/Makefile (tests): Add bug-wctypeh.
4123         * wctype/bug-wctypeh.c: New file.
4124
4125         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4126         LOCALDOMAIN is defined.
4127         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4128
4129         * sysdeps/x86_64/bits/select.h: New file.
4130
4131         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4132
4133 2008-12-21  Bruno Haible  <bruno@clisp.org>
4134
4135         [BZ #9677]
4136         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4137         if no output is written.
4138
4139 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4140
4141         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4142         libc internal symbol __dup2 to avoid access through the PLT.
4143
4144 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4145
4146         [BZ #6545]
4147         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4148         available only for __USE_GNU.
4149
4150         * inet/Makefile (tests): Add tst-getni2.
4151         * inet/tst-getni2.c: New file.
4152
4153         [BZ #7080]
4154         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4155         NULL when NI_NAMEREQD is set.
4156         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4157         * inet/Makefile (tests): Add tst-getni1.
4158         * inet/tst-getni1.c: New file.
4159
4160 2008-12-03  Petr Baudis  <pasky@suse.cz>
4161
4162         [BZ #7067]
4163         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4164         instead of prune_lock.
4165         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4166         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4167
4168 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4169
4170         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4171         use.
4172
4173         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4174         handling.
4175
4176         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4177         after reading name server list.
4178
4179         [BZ #7058]
4180         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4181         handling for host name aliases.
4182
4183 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4184
4185         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4186         instead of doing things manually.
4187
4188 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4189
4190         * posix/regex_internal.h (build_wcs_upper_buffer):
4191         Return type is reg_error_t.
4192
4193 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4194
4195         * posix/globtest.sh: Use mktemp to create temporary file and
4196         directory.
4197
4198         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4199         sets correctly.
4200         (__CPU_CLR_S): Likewise.
4201         (__CPU_ISSET_S): Likewise.
4202
4203 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4204             Ulrich Drepper  <drepper@redhat.com>
4205
4206         * scripts/firstversion.awk: Use custom comparison function to compare
4207         version numbers.
4208         * scripts/versions.awk: Use sort invocation which can handle
4209         multi-digit sub-version numbers.
4210
4211 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4212
4213         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4214         * locale/iso-639.def: Add Chhattisgarhi entry.
4215
4216 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4217
4218         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4219         ESRCH return value.
4220         (_nss_dns_gethostbyname4_r): Likewise.
4221         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4222         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4223         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4224         the no_data variable.
4225
4226         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4227         information at the correct index.
4228
4229         * socket/sys/socket.h: Declare accept4.
4230         * socket/accept4.c: New file.
4231         * sysdeps/unix/sysv/linux/accept4.c: New file.
4232         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4233         * socket/Makefile (routines): Add accept4.
4234         * socket/Versions: Export accept4 with version GLIBC_2.10.
4235         * socket/paccept.c: Removed.
4236         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4237         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4238         * Versions.def: Define GLIBC_2.10 for libc.
4239         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4240
4241         * nscd/connections.c: Use accept4.
4242
4243         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4244
4245 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4246
4247         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4248         flag already set.
4249
4250         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4251         not exist.
4252         * stdlib/Makefile (tests): Add tst-unsetenv1.
4253         * stdlib/tst-unsetenv1.c: New file.
4254
4255 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4256
4257         * login/utmp_file.c (file_writable): New variable.
4258         (setutent_file): Don't try to open file for writing.
4259         (pututline_file): Before writing, make descriptor writable if
4260         necessary.
4261
4262 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4263
4264         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4265         to IPv4 or IPv6 if an interface has been found.
4266
4267 2008-11-26  Roland McGrath  <roland@redhat.com>
4268
4269         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4270         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4271
4272         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4273         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4274         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4275
4276         * elf/elf.h (NT_386_IOPERM): New macro.
4277         (NT_PPC_VSX): New macro.
4278
4279 2008-11-25  Roland McGrath  <roland@redhat.com>
4280
4281         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4282         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4283         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4284         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4285         Subdirectories moved to ports repository.
4286         * configure.in (base_machine): Remove alpha case.
4287
4288 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4289
4290         * sysdeps/mach/strerror_l.c: New file.
4291
4292 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4293
4294         [BZ #6411]
4295         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4296         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4297         magic numbers.
4298         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4299         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4300         (relax_fenv_state): Same as above.
4301         (FPSCR_29): Reserve bit in ISA 2.05.
4302         (FPSCR_NI): Provide define for compat.
4303         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4304         magic numbers.
4305         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4306         magic numbers.
4307         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4308         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4309         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4310         access to hwcap to account for hwcap size increase to uint64_t.
4311         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4312         Likewise.
4313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4314         (*setcontext): Likewise.
4315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4316         New file.
4317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4318         New file.
4319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4320         (*setcontext): dynamically select mtfsf insn based on
4321         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4322         increase to uint64_t.
4323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4324         (*swapcontext): dynamically select mtfsf insn based on
4325         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4326         increase to uint64_t.
4327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4328         New file.
4329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4330         New file.
4331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4332         (*setcontext): dynamically select mtfsf insn based on
4333         PPC_FEATURE_HAS_DFP.
4334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4335         (*swapcontext): dynamically select mtfsf insn based on
4336         PPC_FEATURE_HAS_DFP.
4337
4338 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4339
4340         * version.h: Bump for 2.9 release.
4341         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4342
4343         [BZ #7029]
4344         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4345         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4346         all the rounding.
4347
4348 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4349
4350         [BZ #7009]
4351         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4352         unknown request types for now.
4353
4354 2008-11-11  Roland McGrath  <roland@redhat.com>
4355
4356         * sysdeps/x86_64/configure: New file.
4357
4358         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4359         * configure: Regenerated.
4360
4361 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4362
4363         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4364         correct instruction to remove the stack frame.
4365
4366 2008-11-03  Michael Matz  <matz@suse.de>
4367
4368         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4369         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4370
4371 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4372
4373         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4374         Remove.
4375
4376         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4377         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4378         of the thread variable instead of void *.
4379         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4380         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4381         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4382         __libc_tsd_define arguments.
4383         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4384         __libc_tsd_address arguments.  Remove union hack.
4385         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4386         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4387         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4388         Adjust __libc_tsd_{set,get} arguments.
4389         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4390         __libc_tsd_define arguments.
4391         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4392         arguments.
4393         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4394         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4395         (LOCALE): Adjust __libc_tsd_define arguments.
4396         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4397         arguments.
4398         (LOCALE): Adjust __libc_tsd_define arguments.
4399         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4400         arguments.
4401         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4402         arguments.
4403
4404 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4405
4406         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4407         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4408
4409 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4410
4411         [BZ #6966]
4412         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4413
4414 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4415             Ulrich Drepper  <drepper@redhat.com>
4416
4417         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4418         definition for GCC 3.1 and later.
4419
4420 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4421
4422         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4423         refetch dtv, as it might have changed.
4424         * elf/Makefile: Add rules to build and run tst-tls18.
4425         * elf/tst-tls18.c: New test.
4426         * elf/tst-tlsmod18a.c: New file.
4427
4428 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4429
4430         [BZ #6875]
4431         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4432
4433 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4434
4435         [BZ #6867]
4436         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4437
4438         [BZ #6919]
4439         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4440         Fix length of copy operation.
4441
4442 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4443
4444         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4445         and fix its calling convention.
4446
4447 2008-10-07  Andreas Schwab  <schwab@suse.de>
4448
4449         [BZ #6942]
4450         * resolv/res_send.c (send_vc): Fix last change.
4451         (send_dg): Align here as well.
4452
4453 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4454
4455         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4456         return value in case rlimit is RLIM_INFINITY.
4457
4458         [BZ #6947]
4459         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4460         for UL_SETFSIZE.
4461         * resource/Makefile (tests): Add bug-ulimit1.
4462         * resource/bug-ulimit1.c: New file.
4463
4464         [BZ #6974]
4465         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4466         without dot.  Properly terminate the string with a null byte.
4467         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4468
4469         [BZ #6980]
4470         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4471         negative sizees.
4472         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4473         negative __size.
4474
4475         [BZ #6995]
4476         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4477
4478 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4479
4480         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4481         abort if there is no initgroups_dyn function.
4482
4483         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4484         result if any of the queries really provided an answer.
4485
4486 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4487
4488         * po/lt.po: Update from translation team.
4489
4490 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4491
4492         * po/id.po: Update from translation team.
4493
4494 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
4495
4496         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4497         Fix tests for existence of second reply.
4498
4499 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
4500
4501         * po/id.po: New file.
4502         Contributed by the Indonesian translation team.
4503
4504 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
4505
4506         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4507         initialization.
4508
4509 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
4510
4511         * elf/Makefile: Add rules to build and run tst-tls17.
4512         * elf/tst-tls17.c: New test.
4513         * elf/tst-tlsmod17a.c: New file.
4514         * elf/tst-tlsmod17b.c: Likewise.
4515
4516 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
4517
4518         * stdlib/divmod_1.c: Use correct type for dummy variable.
4519         * stdlib/mod_1.c: Likewise.
4520
4521 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
4522
4523         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4524
4525 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
4526
4527         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4528         __nonnull order for C++.
4529         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4530         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4531
4532 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
4533
4534         * stdlib/longlong.h: Update from GCC.
4535
4536 2008-10-09  Jakub Jelinek <jakub@redhat.com>
4537             David S. Miller  <davem@davemloft.net>
4538
4539         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4540         make sure any registers used with 64-bit 'branch-on-register'
4541         instructions have their top 32-bits clear.
4542         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4543         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4544
4545 2008-09-18  Andreas Schwab  <schwab@suse.de>
4546
4547         [BZ #6942]
4548         * resolv/res_send.c (send_vc): Fix use of unaligned address.
4549         Properly handle partial reads.
4550
4551 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
4552
4553         * elf/elf.h (STO_MIPS_PLT): New.
4554         (R_MIPS_COPY): New.
4555         (R_MIPS_JUMP_SLOT): New.
4556         (R_MIPS_NUM): Redefine to 128.
4557         (DT_MIPS_PLTGOT): New.
4558         (DT_MIPS_RWPLT): New.
4559         (DT_MIPS_NUM): Redefine to 0x35.
4560
4561 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
4562
4563         * timezone/africa: Update from tzdata2008f.
4564         * timezone/asia: Likewise.
4565         * timezone/australasia: Likewise.
4566         * timezone/europe: Likewise.
4567         * timezone/leapseconds: Likewise.
4568         * timezone/northamerica: Likewise.
4569         * timezone/southamerica: Likewise.
4570         * timezone/zone.tab: Likewise.
4571
4572 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
4573
4574         * nscd/connections.c: Disable use of paccept for now.
4575
4576 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
4577
4578         * socket/Versions: Remove paccept export for GLIBC_2.9.
4579         * socket/Makefile (routines): Remove paccept.
4580         * socket/sys/socket.h: Remove paccept declaration.
4581
4582         * po/sv.po: Update from translation team.
4583
4584 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
4585
4586         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4587         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4588
4589 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
4590
4591         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4592         Patch by Olivier Fourdan <ofourdan@redhat.com>.
4593
4594 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
4595
4596         * sunrpc/rpc/svc.h: Declare svcfd_create.
4597         Patch by Michael Solberg <msolberg@redhat.com>.
4598
4599 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
4600             Ulrich Drepper  <drepper@redhat.com>
4601
4602         * malloc/malloc.c (public_vALLOc): Try other arenas in case
4603         _int_valloc fails.
4604         (public_pVALLOc): Likewise.
4605
4606 2008-09-02  Andreas Jaeger  <aj@suse.de>
4607
4608         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4609         commit.
4610
4611 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
4612
4613         [BZ #6860]
4614         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4615
4616 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
4617
4618         * Makefile (check-data): Check data directory in add-ons.
4619         * elf/Makefile (check-data): Likewise.
4620
4621 2008-08-18  Roland McGrath  <roland@redhat.com>
4622
4623         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4624         * configure: Regenerated.
4625         * config.make.in (cflags-cpu): New substituted variable.
4626         (with-cpu): Variable removed.
4627         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4628
4629 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
4630
4631         [BZ #6845]
4632         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4633         __signbitl definition and __LONG_DOUBLE_128__ guard from:
4634         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4635         redundant.  Functions which call floating point assembler operations
4636         should go into a sysdeps powerpc/fpu directory.
4637
4638 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
4639
4640         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4641         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4642
4643 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
4644
4645         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4646
4647         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4648         change related to AT_EXECFN.  We cannot use that string.
4649         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4650         _dl_execfn member.
4651         * elf/dl-support.c: Remove _dl_execfn variable.
4652         (_dl_aux_init): Remove handling of AT_EXECFN.
4653         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4654         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4655
4656 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
4657
4658         [BZ #6544]
4659         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
4660         byte gets added to writes and seeks from the end use the length of
4661         the buffer and not the currently terminating NUL byte.
4662
4663         [BZ #6634]
4664         * login/utmp_file.c (getutent_r_file): Take additional parameter.
4665         Set to true if locking failed.
4666         (getutid_r_file): Adjust caller.
4667         (pututline_file): Likewise.  Return NULL in this case.
4668         Patch mostly by halesh.s@gmail.com.
4669
4670 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
4671
4672         [BZ #6589]
4673         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4674         Define.
4675         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4676
4677 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
4678
4679         [BZ #6839]
4680         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4681         macro since it is now available in elf/dynamic-link.h.
4682
4683 2008-08-12  Roland McGrath  <roland@frob.com>
4684
4685         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4686         in case used outside of libc.
4687         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4688
4689 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
4690
4691         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4692         directly instead of going through dn_comp.
4693
4694 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
4695
4696         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4697         Fix asm constraints.
4698
4699 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4700
4701         [BZ #6790]
4702         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4703         (IPV6_PMTUDISC_PROBE): Likewise.
4704
4705 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
4706
4707         [BZ #6791]
4708         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4709
4710 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
4711             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4712
4713         [BZ #6817]
4714         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
4715         Added the members 'vsx' and 'arch_2_06'.
4716         (_dl_powerpc_platforms): Add the member 'power7'.
4717         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
4718         to reflect the changes required by VSX and ISA 2.06.
4719         Modify _DL_PLATFORMS_COUNT to reflect the addition of
4720         'power7'.
4721         Defined PPC_PLATFORM_POWER7.
4722         (_dl_string_platform): Add support for POWER7.
4723         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
4724         capability and ISA 2.06.
4725
4726 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
4727
4728         [BZ #6824]
4729         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
4730         macro to detect use of 128 bit long double.
4731         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
4732
4733 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
4734
4735         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
4736
4737         [BZ #5794]
4738         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
4739         parameters.
4740         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4741         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4742
4743 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
4744
4745         * nscd/connections.c (main_loop_poll): Pass a buffer which is
4746         guaranteed to be large enough to read inotify event.  Ignore
4747         EAGAIN error.  Better error message.  Add branch predicition.
4748         (main_loop_epoll): Likewise.
4749
4750 2008-08-02  Roland McGrath  <roland@frob.com>
4751
4752         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4753         Add memory clobbers.
4754
4755 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
4756
4757         * manual/arith.texi: Avoid @strong{Note:}.
4758         * manual/creature.texi: Likewise.
4759         * manual/filesys.texi: Likewise.
4760         * manual/math.texi: Likewise.
4761         * manual/memory.texi: Likewise.
4762         * manual/resource.texi: Likewise.
4763         * manual/syslog.texi: Likewise.
4764         * manual/time.texi: Likewise.
4765
4766         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
4767         to prevent warning.
4768
4769 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
4770
4771         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
4772         new epoll_create1 interface.
4773         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4774         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4775         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4776
4777         * include/arpa/nameser.h (NS_GET16): Use const pointer.
4778         (NS_GET32): Likewise.
4779
4780         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4781         syscalls, too.
4782
4783         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4784         use the AT_EXECFN value if it is no absolute path.
4785         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4786         __ASSUME_AT_EXECFN.
4787
4788         * Versions.def: Add GLIBC_2.9 to libresolv.
4789         * include/resolv.h: Remove hidden proto declarations for __ns_*
4790         functions.  Add them for __dn_count_labels and __p_secstodate.
4791         * include/arpa/nameser.h: Add a number of hidden proto declarations.
4792         Define ns_msg_getflags macro here.
4793         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4794         and __p_secstodate.
4795         * resolv/Versions: Export functions from <arpa/nameser.h> from
4796         libresolv in version GLIBC_2.9.
4797         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
4798         hidden definitions.
4799         * resolv/ns_netint.c: Likewise.
4800         * resolv/ns_parse.c: Likewise.
4801         * resolv/ns_print.c: Likewise.
4802         * resolv/ns_samedomain.c: Likewise.
4803         * resolv/ns_ttl.c: Likewise.
4804         * resolv/arpa/nameser_compat.h: Likewise.
4805         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
4806         function calls.
4807         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4808         instead of ns_get16.
4809         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4810         __ns_get32 instead of ns_get16 and ns_get32 respectively.
4811         (gaih_getanswer_slice): Likewise.
4812         * resolv/Makefile (libresolv-routines): Add ns_date.
4813         * resolv/ns_date.c: New file.
4814
4815         * elf/Makefile (check-localplt.out): Also check libresolv and
4816         libcrypt.
4817
4818 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
4819
4820         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4821         __ASSUME_O_CLOEXEC.
4822
4823 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4824
4825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4826         buffer passed to NSS functions.
4827
4828         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4829
4830         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4831         Define.
4832
4833         * misc/syslog.c (openlog_internal): Fix compile problem.
4834
4835 2008-07-28  Roland McGrath  <roland@redhat.com>
4836
4837         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4838
4839 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4840
4841         * io/ftw.c (add_object): Remove inline to avoid warning.
4842
4843         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4844
4845         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4846         Use it instead of locally defined resplen2 variable.
4847         (res_nsend): Adjust for __libc_res_nsend interface change.
4848         (send_vc): Initialize *resplen2 if necessary.  Read length of
4849         package into an appropriately aligned variable.  Store converted length
4850         in new variable and use it appropriately.
4851         Add branch prediction help.
4852         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4853         and pass it on to __libc_res_nsend.  Adjust all callers.
4854         (__libc_res_nsearch): Likewise.
4855         (__libc_res_nqeurydomain): Likewise.
4856         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4857         change.
4858         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4859         Define resplen2 variable and pass it to __libc_res_nsearch and then
4860         to gaih_getanswer.
4861         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4862         Add branch prediction.
4863         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4864         (gaih_getanswer): Don't decode second slice if first one failed due
4865         to a too small buffer.  Don't let not found status of second
4866         decoder shadow results of the first.
4867         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4868         and __libc_res_nquery interface changes
4869         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4870         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4871         __libc_res_nsearch, and __libc_res_nsend.
4872         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4873         change.
4874         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4875         __libc_res_nsearch interface changes.
4876
4877 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4878
4879         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4880
4881         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4882         file descriptors with close-on-exec set.
4883         (exec_comm_child): Fix the case where the write end of the pipe is
4884         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4885
4886         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4887         * io/pipe2.c: Likewise.
4888         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4889         instead of __ASSUME_PACCEPT.
4890         * include/unistd.h: Declare __have_pipe2.
4891         * libio/iopopen.c: Implement "e" flag.
4892         * libio/Makefile (tests): Add tst-popen1.
4893         * libio/tst-popen1.c: New file.
4894
4895         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4896         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4897
4898 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4899
4900         [BZ #6771]
4901         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4902         success call of _IO_SEEKOFF or calls which failed because the
4903         descriptor is for a pipe.
4904
4905         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4906         magic number.
4907
4908         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4909
4910         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4911         F_SETFD use if we know fopen set the flag.
4912
4913         * login/utmp_file.c (setutent_file): Minor optimization in case
4914         O_CLOEXEC is available.
4915
4916 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4917
4918         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4919         * elf/Makefile: Use pie-ccflag variable.
4920         * nscd/Makefile: Likewise.
4921         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4922
4923 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4924
4925         [BZ #6724]
4926         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4927         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4928         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4929         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4930         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4931         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4932         utmp32, utmpx32 and login32.
4933         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4934         versions of struct utmp functions to libc and libutil.
4935         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4936         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4937         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4938         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4939         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4940         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4941         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4942         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4943         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4944         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4945         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4946         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4947         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4948         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4949         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4950         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4951         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4952         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4953         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4954         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4955         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4956         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4957
4958 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4959
4960         * scripts/gen-as-const.awk: Generate more widely usable code by
4961         using 64-bit arithmetic.
4962
4963         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4964         the same treatment as narrow output code in last patch.
4965
4966         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4967
4968         [BZ #6763]
4969         * elf/dl-load.c (local_strdup): Remove inline.
4970         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4971         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4972         part of the object.
4973
4974         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4975
4976 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4977
4978         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4979         the new syscalls, too.
4980
4981         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4982         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4983
4984         [BZ #6698]
4985         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4986         parameter for end of buffer.  If temporary copy is too large use
4987         malloc.
4988         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4989         interface change.
4990         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4991         string rewrite when allocating buffer.
4992
4993         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4994         syscalls, too.
4995
4996         * nscd/connections.c (nscd_init): Clean up fcntl call.
4997
4998         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4999         SOCK_NONBLOCK if possible.
5000
5001         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5002         SOCK_CLOEXEC if available.
5003
5004         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5005         __libc_clntudp_bufcreate_internal.
5006         * include/sys/socket.h: Declare __have_sock_cloexec.
5007         * socket/Makefile (aux): Add have_sock_cloexec.
5008         * socket/have_sock_cloexec.c: New file.
5009         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5010         __libc_clntudp_bufcreate.
5011         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5012         which takes an additional parameter.  Create socket with non-blocking
5013         mode and close-on-exec flag set, if wanted.
5014         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5015         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5016         instead of clntudp_create.  The socket has already the close-on-exec
5017         flag set if SOCK_CLOEXEC is defined.
5018
5019 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5020
5021         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5022         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5023         appropriate.
5024         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5025         non-blocking mode by using socket, paccept, and inotify_init1.
5026
5027         * Versions.def (glibc): Add GLIBC_2.9.
5028         * io/Makefile (routines): Add dup3 and pipe2.
5029         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5030         * io/dup3.c: New file.
5031         * io/pipe2.c: New file.
5032         * posix/unistd.h: Declare dup3 and pipe2.
5033         * socket/Makefile (routines): Add paccept.
5034         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5035         * socket/paccept.c: New file.
5036         * socket/sys/socket.h: Declare paccept.
5037         * sysdeps/unix/syscalls.list: Add entry for dup3.
5038         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5039         epoll_create2 and inotify_init1.
5040         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5041         * sysdeps/unix/sysv/linux/paccept.c: New file.
5042         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5043         possible.
5044         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5045         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5046         inotify_init1, and pipe2 entries.
5047         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5048         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5049         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5050         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5051         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5052         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5053         SOCK_NONBLOCK.
5054         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5055         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5056         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5057         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5058         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5059         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5060         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5061         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5062         EPOLL_NONBLOCK.  Declare epoll_create2.
5063         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5064         EFD_NONBLOCK.
5065         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5066         IN_NONBLOCK.  Declare inotify_init1.
5067         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5068         SFD_NONBLOCK.
5069         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5070         TFD_NONBLOCK.
5071
5072         * elf/elf.h: Define AT_EXECFN.
5073         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5074         LD_ORIGIN_PATH.
5075         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5076         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5077         if __ASSUME_AT_EXECFN is defined.
5078         (_dl_aux_init): Handle AT_EXECFN.
5079         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5080         for 2.6.27 and up.
5081         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5082         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5083         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5084         _dl_execfn if available and avoid compatibility code if
5085         __ASSUME_AT_EXECFN is defined.
5086
5087         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5088         _dl_discover_osversion only for older kernels.
5089
5090 2008-07-22  Roland McGrath  <roland@frob.com>
5091
5092         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5093
5094 2008-07-21  Roland McGrath  <roland@frob.com>
5095
5096         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5097         returned too much data out of line.
5098
5099 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5100
5101         * locale/setlocale.c (setname): Remove inline to avoid compiler
5102         warning.
5103
5104         [BZ #6712]
5105         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5106
5107 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5108
5109         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5110         doesn't manage to write anything, fail.
5111
5112         * malloc/hooks.c (__malloc_check_init): Remove printf.
5113
5114 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5115
5116         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5117
5118 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5119
5120         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5121         from inotify.
5122         (main_loop_epoll): Likewise.
5123
5124 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5125
5126         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5127
5128         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5129         if DEBUG is defined.
5130
5131         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5132         query.  Adjust buffer size computation for padding.
5133
5134 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5135
5136         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5137         * stdio-common/tst-setvbuf1.c: New file.
5138         * stdio-common/tst-setvbuf1.expect: New file.
5139
5140         [BZ #6719]
5141         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5142         when selecting fully-buffered stream.
5143         Patch by Wang Xin <wxinee@gmail.com>.
5144
5145 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5146
5147         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5148         (__open_2): New function.
5149         (__open64_2): New alias to __open_2.
5150         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5151         (__openat_2): New function.
5152         (__openat64_2): New alias to __openat_2.
5153
5154 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5155
5156         [BZ #6723]
5157         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5158
5159 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5160
5161         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5162         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5163         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5164         __hurd_dfail.
5165         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5166         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5167         * sysdeps/mach/hurd/send.c (__send): Likewise.
5168         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5169         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5170
5171 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5172
5173         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5174         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5175         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5176         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5177         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5178         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5179
5180 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5181
5182         [BZ #6657]
5183         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5184         of %EY.
5185         Patch by Petr Baudis.
5186
5187 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5188
5189         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5190         Patch by Peter Jones <pjones@redhat.com>.
5191
5192 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5193
5194         [BZ #6654]
5195         * stdlib/canonicalize.c (__realpath): readlink can write too much
5196         into the buffer on platforms without PATH_MAX.
5197
5198 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5199
5200         [BZ #6653]
5201         * posix/tst-regex.c (main): Rename to...
5202         (do_test): ... this. Remove cmdline option processing.
5203         (TIMEOUT): Define.
5204         (TEST_FUNCTION): Define.
5205         (CMDLINE_OPTIONS): Define.
5206
5207 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5208
5209         [BZ #5210]
5210         * configure.in: Add -Werror to -fstack-protector test to catch
5211         unsupported architectures.
5212         Patch by Gilles Esponasse <g.esp@free.fr>.
5213
5214 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5215
5216         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5217         getcontext returns ENOSYS.
5218
5219 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5220
5221         * nscd/connections.c (main_loop_poll): Fix test for read error.
5222         (main_loop_epoll): Likewise.
5223
5224 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5225
5226         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5227         better place so it is not called when nscd is used.
5228
5229         * nscd/connections.c: Also recognize and handle changes to the
5230         resolver configuration file.
5231
5232 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5233
5234         * time/strftime.c: Pass reference to tzset_called around to handle
5235         recursive calls.
5236
5237         [BZ #6612]
5238         * time/strftime.c (__strftime_internal): Call tzset() only
5239         when printing timezone-dependent values.
5240         Based on a patch by Petr Baudis <pasky@suse.cz>.
5241
5242         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5243         unconditionally use second gaih_getanswer_slice result.
5244
5245         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5246         (getaddrinfo): RES must always be non-NULL.
5247
5248 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5249
5250         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5251         cr[34] registers.
5252         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5253         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5254         Likewise.
5255         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5256         register.
5257
5258 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5259
5260         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5261         fields.
5262         * nscd/connections.c (inotify_fd): New variable.
5263         (nscd_init): Try to open an inotify descriptor.
5264         If successful, watch files for databases using inotify instead of
5265         having prune threads stat the files.
5266         (nscd_run_prune): Recognize clear_cache flag being set and call
5267         prune_cache appropriately.
5268         (main_loop_poll): Add inotify descriptor to wait set and handle the
5269         reported changes.
5270         (main_loop_epoll): Likewise.
5271         * nscd/cache.c (prune_cache): Don't stat files for databases if
5272         inotify is used.
5273         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5274         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5275
5276         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5277         fixed-size portion of the record.
5278         * nscd/servicescache.c (cache_addserv): Likewise.
5279         * nscd/pwdcache.c (cache_addpw): Likewise.
5280         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5281
5282 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5283
5284         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5285         out we don't use uninitialized memory.
5286
5287         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5288         the client.
5289
5290 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5291
5292         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5293         ignore T_DNAME messages.
5294         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5295
5296 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5297
5298         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5299         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5300
5301 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5302
5303         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5304         instead of portstr to nscd_getserv_r.  Patch by
5305         Roman Kagan <rkagan@mail.ru>.
5306
5307 2008-05-26  Jim Meyering  <meyering@redhat.com>
5308
5309         Remove more useless "if" tests before "free".
5310         * include/inline-hashtab.h (htab_delete): Likewise.
5311         * libio/freopen.c (freopen): Likewise.
5312         * libio/freopen64.c (freopen64): Likewise.
5313         * locale/programs/ld-collate.c (collate_read): Likewise.
5314         * misc/fstab.c (libc_freeres_fn): Likewise.
5315         * posix/glob.c (globfree): Likewise.
5316
5317 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5318
5319         * string/Makefile (strop-tests): Add memmem.
5320         * string/test-memmem.c: New file.
5321         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5322         (test_init): Size buf1 according to BUF1PAGES.
5323
5324 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5325
5326         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5327         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5328         (CFLAGS-scanf17.c): New.
5329         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5330         * stdio-common/scanf15.c (main): Likewise.
5331         * stdio-common/scanf16.c: New file.
5332         * stdio-common/scanf17.c: New file.
5333
5334 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5335
5336         * resolv/res_send.c (send_dg): If we already have one of two
5337         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5338         use the one answer insted of failing.
5339
5340 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5341
5342         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5343         being executed on PowerPC as the expected result exceeds IBM
5344         long double 128 __LDBL_MAX__.
5345
5346 2008-05-21  Roland McGrath  <roland@redhat.com>
5347
5348         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5349
5350         * Makefile (check-data): Use $(abi-name) before other guesses.
5351         Look in $(add-ons) dirs before scripts/data/.
5352         * elf/Makefile (check-data): Likewise.
5353
5354         * scripts/soversions.awk: Grok ABI line.
5355         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5356         Emit definition for abi-name variable.
5357
5358 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5359
5360         * string/endian.h: Define new fixed-size hto* and *toh macros only
5361         if [__USE_BSD].
5362
5363         * iconvdata/Depend: Add localedata.
5364
5365 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5366
5367         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5368
5369 2008-05-08  David S. Miller  <davem@davemloft.net>
5370
5371         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5372         HIDDEN_JUMPTARGET.
5373         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5374         (__SYSCALL_CLOBBERS): Remove %g* registers.
5375         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5376         (__SYSCALL_CLOBBERS): Likewise.
5377         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5378         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5379
5380 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5381
5382         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5383         (CALL_ERRNO_LOCATION): Define.
5384         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5385         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5386         (CALL_ERRNO_LOCATION): Define.
5387         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5388         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5389         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5390
5391 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5392
5393         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5394         variable.
5395
5396 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5397
5398         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5399         (FIRST_FRAME_POINTER): Define.
5400
5401 2008-05-09  David S. Miller  <davem@davemloft.net>
5402
5403         * sysdeps/sparc/sparc64/backtrace.c: New file.
5404
5405 2008-05-14  David S. Miller  <davem@davemloft.net>
5406
5407         * sysdeps/sparc/machine-gmon.h: New file.
5408         * sysdeps/sparc/sparc-mcount.S: Likewise.
5409         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5410         sysdep_routines in gmon directory.
5411
5412 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5413
5414         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5415
5416 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5417
5418         * resolv/res_query.c (__libc_res_nquery): In case one of two
5419         answer was too short don't try to read that answer's header.
5420
5421         * resolv/res_send.c (send_dg): In case of timeout and there are
5422         two queries and one has been answered, return value indicating
5423         success.
5424
5425 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5426
5427         * nscd/cache.c (cache_add): Take additional parameter specifying
5428         whether this is in response of a cache refill.  Check alignment
5429         of package data.  Revamp waking of pruning thread.
5430         (prune_cache): Small optimization.
5431         * nscd/nscd.h: Adjust cache_add prototypes.
5432         * nscd/aicache.c: Adjust cache_add calls.
5433         * nscd/grpcache.c: Likewise.
5434         * nscd/hstcache.c: Likewise.
5435         * nscd/initgrcache.c: Likewise.
5436         * nscd/pwdcache.c: Likewise.
5437         * nscd/servicescache.c: Likewise.
5438         * nscd/connections.c (restart): Really disable cache use before
5439         exec attempt.  If it fails, reenable cache.
5440         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5441         time to max to be able to notice concurrent cache additions.  Unlock
5442         prune_lock while performing gc.  Afterwards compute wakeup time with
5443         current wakeup_time value in mind.
5444
5445 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5446
5447         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5448
5449         * nscd/mem.c (gc): Correctly determine highest used array element
5450         in mark.
5451
5452         * nscd/mem.c (markrange): Add assert to check entries are all
5453         aligned.  Small cleanup in bitmap use.
5454
5455         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5456         blockoff of type nscd_ssize_t.
5457         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5458         (mempoll_alloc): Record block offset and not address.
5459
5460         * nscd/mem.c (gc): Fix test for stack overuse.
5461
5462         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5463         more asserts.
5464
5465         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5466         entry is available, believe it.
5467
5468         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5469         no answers return NSS_STATUS_NOTFOUND.
5470         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5471         buffer does not have any content.
5472
5473 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5474
5475         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5476
5477         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5478         lookup, don't assign canon unconditionally.
5479
5480 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5481
5482         * string/Makefile (distribute): Add str-two-way.h.
5483
5484 2008-03-29  Eric Blake  <ebb9@byu.net>
5485
5486         Rewrite string searches to O(n) rather than O(n^2).
5487         * string/str-two-way.h: New file.  For linear fixed-allocation
5488         string searching.
5489         * string/memmem.c: New implementation.
5490         * string/strstr.c: New implementation.
5491         * string/strcasestr.c: New implementation.
5492
5493 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
5494
5495         * posix/regcomp.c (optimize_utf8): Add a note on why we test
5496         opr.ctx_type.
5497         (calc_first): Initialize constraint field.
5498         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5499         Use search_duplicated_node to avoid loops.  Fix grammar.
5500         (duplicate_node): Merge constraint field for all node types.
5501         (calc_eclosure_iter): Look at constraint field for all node types.
5502         * posix/regex_internal.c (create_cd_newstate): Don't look at
5503         create_cd_newstate.
5504
5505 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5506
5507         [BZ #6428]
5508         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5509
5510         [BZ #6442]
5511         * string/endian.h: Add macros for fixed-size endian conversion.
5512         * bits/byteswap.h: Allow inclusion from <endian.h>.
5513         * sysdeps/i386/bits/byteswap.h: Likewise.
5514         * sysdeps/ia64/bits/byteswap.h: Likewise.
5515         * sysdeps/s390/bits/byteswap.h: Likewise.
5516         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5517         * string/Makefile (tests): Add tst-endian.
5518         * string/tst-endian.c: New file.
5519
5520         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5521         Patch by Reuben Thomas.
5522
5523 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
5524
5525         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5526
5527 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5528
5529         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5530
5531         [BZ #6461]
5532         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5533         Add missing braces.
5534         (BODY for __gconv_transform_internal_ascii): Likewise.
5535
5536         [BZ #6472]
5537         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5538         to be treated like link-local addresses.
5539         (match_prefix): Don't treat IPv4 loopback address special when
5540         converting to v4 mapped addressed.
5541
5542         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5543         if necessary.
5544         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5545         * posix/tst-rfc3484-2.c: Likewise.
5546         * posix/tst-rfc3484-3.c: Likewise.
5547
5548         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5549         and SCTP.
5550
5551         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5552
5553         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5554
5555         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5556
5557 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
5558
5559         * po/lt.po: New file.  From Lituanian translation team.
5560
5561 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
5562
5563         Introduce TLS descriptors for i386 and x86_64.
5564         * include/inline-hashtab.h: New file, copied from 2005's
5565         libiberty, with fix for memory leak imported afterwards by
5566         Glauber de Oliveira Costa.
5567         * elf/tlsdeschtab.h: New file.
5568         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5569         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
5570         (CHECK_STATIC_TLS): Move to...
5571         * elf/dynamic-link.h: ... this file.
5572         (TRY_STATIC_TLS): New macro.
5573         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5574         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5575         R_386_TLS_DESC): Define.
5576         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5577         binutils.
5578         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5579         R_X86_64_TLSDESC): Define.
5580         (R_386_NUM, R_X86_64_NUM): Adjust.
5581         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5582         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5583         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5584         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5585         release tlsdesc_table.
5586         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5587         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5588         (elf_machine_rel): Handle R_386_TLS_DESC.
5589         (elf_machine_rela): Likewise.
5590         (elf_machine_lazy_rel): Likewise.
5591         (elf_machine_lazy_rela): Likewise.
5592         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5593         * sysdeps/i386/dl-tlsdesc.S: New file.
5594         * sysdeps/i386/dl-tlsdesc.h: New file.
5595         * sysdeps/i386/tlsdesc.c: New file.
5596         * sysdeps/i386/tlsdesc.sym: New file.
5597         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5598         tlsdesc_table.
5599         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5600         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5601         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5602         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
5603         release tlsdesc_table.
5604         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5605         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5606         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5607         (elf_machine_rel): Handle R_X86_64_TLSDESC.
5608         (elf_machine_rela): Likewise.
5609         (elf_machine_lazy_rel): Likewise.
5610         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5611         (__tls_get_addr): Do not declare for non-shared compiles.
5612         * sysdeps/x86_64/dl-tlsdesc.S: New file.
5613         * sysdeps/x86_64/dl-tlsdesc.h: New file.
5614         * sysdeps/x86_64/tlsdesc.c: New file.
5615         * sysdeps/x86_64/tlsdesc.sym: New file.
5616         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5617         tlsdesc_table for both 32- and 64-bit structs.
5618
5619 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5620
5621         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5622         its own function.  This reduces the frame setup costs and more.
5623
5624 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
5625
5626         [BZ #3406]
5627         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5628         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5629
5630 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
5631
5632         * io/openat.c (__openat_2): Also pass fd to __openat.
5633         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5634         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5635
5636         * string/tester.c (test_memcmp): Add a few more tests.
5637         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5638
5639 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5640
5641         * nscd/cache.c (cache_add): Before returning with failure and this
5642         is the first use of the record, mark it as unusable.
5643         * nscd/aicache.c: Don't touch the dataset after cache_add returns
5644         reporting a failure.
5645         * nscd/grpcache.c: Likewise
5646         * nscd/hstcache.c: Likewise.
5647         * nscd/initgrcache.c: Likewise.
5648         * nscd/pwdcache.c: Likewise.
5649         * nscd/servicescache.c: Likewise.
5650
5651 2008-05-10  Roland McGrath  <roland@redhat.com>
5652
5653         [BZ #6505]
5654         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5655
5656 2008-05-08  David S. Miller  <davem@davemloft.net>
5657
5658         * misc/truncate64.c (truncate64): Use __truncate not truncate.
5659
5660         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5661         (__ieee754_y0l): Likewise.
5662         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5663         (__ieee754_y1l): Likewise.
5664         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5665         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5666         frexpl and ldexpl.  math_private.h provides them and the latter
5667         is not even used.
5668         (__log1pl): Use __frexpl.
5669
5670 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
5671
5672         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5673         prototypes.
5674         * include/arpa/nameser_compat.h: Define T_UNSPEC.
5675         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5676         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5677         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5678         af==AF_UNSPEC.
5679         (_nss_nis_gethostbyname4_r): New function.
5680         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5681         Change to also handle af==AF_UNSPEC.
5682         (get_tablename): New function.  Use it to avoid duplication.
5683         (_nss_nisplus_gethostbyname4_r): New function.
5684         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5685         available.
5686         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5687         * nss/nss.h: Define struct gaih_addrtuple.
5688         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5689         af==AF_UNSPEC.
5690         (_nss_files_gethostbyname4_r): New function.
5691         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5692         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5693         calls.
5694         * resolv/res_query.c (__libc_res_nquery): Take two additional
5695         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
5696         look up IPv4 and IPv6.
5697         Change all callers.
5698         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5699         for an additional query and answer buffer.  Pass to send_vc and
5700         send_dg.
5701         (send_vc): Send possibly two requests and receive two answers.
5702         (send_dg): Likewise.
5703         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5704         __libc_res_nquery.
5705         (_nss_dns_gethostbyname4_r): New function.
5706         (gaih_getanswer_slice): Likewise.
5707         (gaih_getanswer): Likewise.
5708         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5709         __libc_res_nquery call.
5710         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5711         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5712         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
5713         available.
5714
5715 2008-05-05  David S. Miller  <davem@davemloft.net>
5716
5717         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
5718         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
5719
5720 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5721
5722         Fix termios bit macros.
5723         Move *DLY definitions where they belong, in termios.h.
5724         Add *[0-3] definitions.
5725         Fixes confusion between VT and FF.
5726         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
5727         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
5728         are already defined to avoid collision with termios.h.
5729         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
5730         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
5731         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
5732         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
5733         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
5734         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
5735         VTDLY, VT0, VT1): New macros.
5736         [__USE_GNU] (OLCUC): Change value of macro.
5737         [__USE_XOPEN] (OFILL): New macro.
5738         [__USE_BSD] (CRTSCTS): Change value.
5739         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
5740         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
5741         (B7200, B14400, B28800, B76800): New macros.
5742
5743 2008-05-01  David S. Miller  <davem@davemloft.net>
5744
5745         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
5746         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
5747         (gen-as-const-headers): Add it.
5748         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
5749         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5750         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
5751         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
5752
5753         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
5754         six system call parameters.
5755         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
5756
5757 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
5758
5759         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
5760         RUSAGE_LWP.
5761         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5762         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5763
5764 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
5765
5766         * stdlib/tst-setcontext.c: Include unistd.h.
5767
5768 2008-04-25  David S. Miller  <davem@davemloft.net>
5769
5770         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
5771         Pass "union semun" properly in to sys_ipc, it must be passed
5772         by value, not by reference.
5773
5774 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
5775
5776         * nscd/Makefile (nscd-cflags): Set back to -fpie.
5777         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
5778         * nscd/connections.c (mem_in_flight): Likewise.
5779
5780         * nscd/nscd.h (dbs): Make hidden.
5781
5782         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5783         Avoid returning -1, return 0 instead.
5784
5785 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
5786
5787         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5788
5789 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
5790
5791         [BZ #5209]
5792         * sysdeps/unix/sysv/linux/times.c: New file.
5793
5794         [BZ #5381]
5795         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5796         mem_in_flight_list variables.  Add new parameter to mempool_alloc
5797         prototype.
5798         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
5799         appropriate mem_in_flight element.
5800         (gc): Take allocations which have not yet been committed to the
5801         database into account.
5802         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5803         Reset mem_in_flight before returning.
5804         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5805         cue it up in mem_in_flight_list.
5806         * nscd/aicache.c: Adjust mempool_alloc call.
5807         * nscd/grpcache.c: Likewise.
5808         * nscd/hstcache.c: Likewise.
5809         * nscd/initgrcache.c: Likewise.
5810         * nscd/pwdcache.c: Likewise.
5811         * nscd/servicescache.c: Likewise.
5812         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5813         of -fpie.
5814
5815         * nscd/connections.c (handle_request): Provide better error message
5816         in case SELinux forbids the service.
5817
5818         * version.h (VERSION): Bump to 2.8.90.
5819
5820 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5821
5822         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5823
5824 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5825
5826         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5827         Also use for 32-bit.
5828         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5829         __nextafter instead of nextafter to avoid local PLT.
5830         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5831         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5832
5833         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5834
5835         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5836         __fe_nomask_env.
5837         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5838         <fenv_libc.h> instead of <fenv.h>.
5839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5841
5842         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5843
5844         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5845         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5846         function from fegetexcept and make old name weak alias.
5847         * include/fenv.h: Declare __fegetexcept.
5848         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5849         fegetexcept.
5850         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5851         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5852         to fetestexcept.
5853         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5854         instead of frexpl to avoid local PLT.
5855         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5856         ilogbl to avoid local PLT.
5857         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5858         instead of ldexpl to avoid local PLT.
5859         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5860         __roundl not roundl to avoid local PLT.
5861         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5862         local PLTs.  Use __sincosl instead of separate sinl and cosl
5863         calls.
5864         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5865
5866         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5867         version for ppc64 to 2.4.21 since without it makecontext will fail.
5868
5869         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5870         to the ABI in use.
5871         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5872         .__tls_get_addr.
5873         [__powerpc64__] (TLS_GD): Likewise.
5874
5875 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5876
5877         [BZ #4997]
5878         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5879         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5880         mantissa.
5881         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5882         Likewise.  Also account for when x is an odd number between 2^52
5883         and 2^53-1.
5884         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5885         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5886         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5887         detect aforementioned erroneous conditions.
5888
5889 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5890
5891         * configure.in: Check for -fno-section-anchors in addition to
5892         -fno-toplevel-reorder.
5893
5894 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5895
5896         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5897
5898         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5899         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5900         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5901         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5902         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5903         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5904
5905 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5906
5907         [BZ #5443]
5908         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5909         * time/alt_digit.c: Likewise.
5910         * wcsmbs/wcsmbsload.c: Likewise.
5911
5912 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5913
5914         * version.h (VERSION): Bump to 2.8.
5915
5916         * timzeone/asia: Update from tzdata2008b.
5917         * timezone/backward: Likewise.
5918         * timezone/europe: Likewise.
5919         * timezone/northamerica: Likewise.
5920         * timezone/southamerica: Likewise.
5921         * timezone/iso3166.tab: Likewise.
5922         * timezone/leapseconds: Likewise.
5923         * timezone/zone.tab: Likewise.
5924         * timezone/private.h: Update from tzcode2008a.
5925         * timezone/zdump.c: Likewise.
5926         * timezone/zic.c: Likewise.
5927
5928 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5929
5930         [BZ #5741]
5931         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5932         Define additonal Data Cache Block instruction macros.
5933         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5934         Replace dcbst with dcbf and sync with sync/isync.
5935
5936 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5937
5938         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5939         Always set ELF_RTYPE_CLASS_PLT.
5940         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5941
5942 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5943
5944         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5945         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5946         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5947         For ISA 2.01 and later replace mftb with mfspr 268.
5948
5949 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5950
5951         [BZ #5768]
5952         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5953         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5954
5955 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5956
5957         [BZ #5768]
5958         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5959         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5960         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5961         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5962
5963 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5964
5965         * stdlib/tst-makecontext.c (othervar): New variable.
5966         (cf): Test sign extending the argument to long.
5967
5968 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5969
5970         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5971         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5972         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5973         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5974         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5975         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5976         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5977
5978 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5979
5980         * elf/Makefile (tests): Substitute tests-vis-yes here.
5981         (tests-vis-yes): Delete.
5982         (modules-name, modules-vis-yes): Similarly.
5983
5984 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5985
5986         [BZ #4407]
5987         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5988         Preserve sign in signgamp when x is zero.
5989
5990 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5991
5992         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5993         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5994         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5995         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5996         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5997         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5998
5999 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6000
6001         [BZ #4314]
6002         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6003         buffers.
6004
6005         [BZ #5209]
6006         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6007         a reserved error value.
6008
6009         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6010         value to check for correct sign extension.
6011
6012         [BZ #5436]
6013         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6014         Copy 64-bit parameter values even though this is not required in
6015         the standard.
6016
6017         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6018         PC save.
6019
6020 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6021
6022         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6023         PC save.
6024
6025 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6026
6027         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6028
6029 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6030
6031         [BZ #5998]
6032         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6033         in line-buffered stream failed.
6034         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6035
6036 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6037
6038         [BZ #6024]
6039         * scripts/abi-versions.awk: If the version specified by
6040         --enable-oldest-abi is older than the first version for this
6041         architecture, use the default version.
6042
6043         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6044         as well when ignoring the whole category.
6045
6046 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6047
6048         [BZ #6042]
6049         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6050         ETHERTYPE_* definitions.
6051         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6052
6053 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6054
6055         * stdlib/mbtowc.c (__no_r_state): Remove.
6056         (mbtowc): New static state variable.  Use it instead of
6057         __no_r_state.
6058         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6059         (__wctomb_state): New hidden variable.
6060         (wctomb): Use __wctomb_state instead of __no_r_state.
6061         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6062         (__wctomb_state): New extern decl.
6063         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6064
6065 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6066
6067         [BZ #5475]
6068         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6069
6070 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6071
6072         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6073
6074 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6075
6076         * po/nl.po: Update from translation team.
6077
6078 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6079
6080         [BZ #6007]
6081         * string/strfry.c: Handle empty strings again.
6082
6083 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6084
6085         [BZ #5443]
6086         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6087         before looking for translation.
6088         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6089         * locale/freelocale.c: Likewise.
6090         * locale/newlocale.c: Likewise.
6091         * locale/setlocale.c: Likewise.
6092         Based partially on a patch by ryo@np.css.fujitsu.com.
6093
6094 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6095
6096         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6097         acquiring wrlock.  Do conv_tab allocation while holding lock.
6098         * intl/Makefile: Add rules to build and run tst-gettext6.
6099         * intl/tst-gettext6.c: New test.
6100         * intl/tst-gettext6.sh: New file.
6101
6102 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6103
6104         * po/nl.po: Update from translation team.
6105
6106         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6107         provided through st_blksize, try the default size before giving up.
6108
6109 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6110
6111         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6112
6113         [BZ #5939]
6114         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6115
6116         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6117         error message.  POSIX today does not require the messages to be in
6118         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6119
6120         [BZ #5979]
6121         * sunrpc/auth_unix.c: Unify printed strings.
6122         * sunrpc/clnt_tcp.c: Likewise.
6123         * sunrpc/clnt_udp.c: Likewise.
6124         * sunrpc/clnt_unix.c: Likewise.
6125         * sunrpc/svc_tcp.c: Likewise.
6126         * sunrpc/svc_udp.c: Likewise.
6127         * sunrpc/svc_unix.c: Likewise.
6128         * sunrpc/xdr.c: Likewise.
6129         * sunrpc/xdr_array.c: Likewise.
6130         * sunrpc/xdr_rec.c: Likewise.
6131         * sunrpc/xdr_ref.c: Likewise.
6132         * locale/programs/ld-time.c (time_finish): Unify messages.
6133         * locale/programs/locfile.c (handle_copy): Fix typo.
6134         * nscd/nscd.c (options): Fix typo.
6135
6136         [BZ #5995]
6137         * stdlib/strtod_l.c: Use correct sign for result in one more
6138         underflow case.
6139         Patch by Eric Blake <ebb9@byu.net>.
6140
6141 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6142
6143         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6144         and creat system calls.
6145         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6146         call.
6147         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6148         system calls.
6149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6150         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6151         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6152
6153 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6154
6155         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6156         <linux/limits.h> has defined it.
6157         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6158         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6159         headers.
6160         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6161         it instead of ARG_MAX.
6162
6163 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6164
6165         * posix/gai.conf: Fix comment for scope nullbits.
6166         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6167         default to 128 bits for v4 mapped addresses.
6168
6169 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6170
6171         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6172         ptrace call to get the ieee_instruction_pointer from the kernel.
6173         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6174         ptrace call to set the ieee_instructtion_pointer.
6175         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6176         Add comment that ieee_instruction_pointer is always 0.
6177
6178 2008-03-09  Andreas Jaeger  <aj@suse.de>
6179
6180         [BZ #5857]
6181         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6182         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6183         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6184
6185         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6186         (rint_test): Likewise.
6187
6188 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6189
6190         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6191         call.
6192         (__nisfind_server): Similar for open readColdStartFile call.
6193         Patch partially by Jim Meyering.
6194         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6195         around internal_setent call.
6196
6197         * po/vi.po: New Vietnamese translation.
6198
6199         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6200         ADJ_OFFSET_SS_READ.
6201
6202         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6203         remove CLONE_STOPPED.
6204
6205 2008-02-10  Jim Meyering  <meyering@redhat.com>
6206
6207         Remove useless "if" before "free":
6208         * elf/ldconfig.c (parse_conf_include): Likewise.
6209         * gmon/gmon.c (weak_alias): Likewise.
6210         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6211         * inet/rcmd.c (__validuser2_sa): Likewise.
6212         * intl/bindtextdom.c (set_binding_values): Likewise.
6213         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6214         * libio/genops.c (save_for_backup): Likewise.
6215         * libio/wgenops.c (save_for_wbackup): Likewise.
6216         * locale/programs/ld-collate.c (collate_read): Likewise.
6217         * locale/programs/linereader.c (get_string): Likewise.
6218         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6219         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6220         * resolv/res_debug.c (do_section): Likewise.
6221         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6222         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6223         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6224         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6225         * time/tzset.c (tzset_internal): Likewise.
6226
6227 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6228
6229         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6230         of ASSEMBLER.
6231
6232 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6233
6234         [BZ #5903]
6235         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6236         not stream for output file.  Open output file here.
6237         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6238         and output file name.
6239         (process_fd): Likewise.
6240         (process_file): Likewise.
6241         (main): Adjust callers of changed functions.
6242         * iconv/iconv_prog.h: Adjust prototype.
6243
6244 2008-03-09  Andreas Jaeger  <aj@suse.de>
6245
6246         [BZ #5753]
6247         * sysdeps/ia64/ieee754.h: Use protected namespace
6248         __BIG_ENDIAN/__LITTLE_ENDIAN.
6249         * sysdeps/ieee754/ieee754.h: Likewise.
6250         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6251
6252 2008-03-08  Roland McGrath  <roland@frob.com>
6253
6254         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6255         ignore a signal that came from a machine exception, treat it as a
6256         fatal core-dump signal instead.
6257         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6258
6259         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6260         Clear DF bit in thread state's eflags.
6261         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6262
6263 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6264
6265         [BZ #5774]
6266         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6267         of NAN(...) sequence.
6268         * stdlib/Makefile (tests): Add tst-strtod6.
6269         * stdlib/tst-strtod6.c: New file.
6270
6271         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6272
6273         [BZ #5762]
6274         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6275         putting offending option character in quotes.  Clean up error
6276         messages.
6277         * po/be.po: Adjust msgstr in translation file.
6278         * po/bg.po: Likewise.
6279         * po/ca.po: Likewise.
6280         * po/cs.po: Likewise.
6281         * po/da.po: Likewise.
6282         * po/de.po: Likewise.
6283         * po/es.po: Likewise.
6284         * po/fr.po: Likewise.
6285         * po/hr.po: Likewise.
6286         * po/ko.po: Likewise.
6287         * po/nl.po: Likewise.
6288         * po/rw.po: Likewise.
6289         * po/sk.po: Likewise.
6290         * po/sv.po: Likewise.
6291         * po/tr.po: Likewise.
6292         * po/zh_CN.po: Likewise.
6293         * po/zh_TW.po: Likewise.
6294
6295         [BZ #5760]
6296         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6297         Patch by Roland Bless <roland@bless.de>.
6298
6299         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6300         .o file.
6301         * elf/Makefile (routines): Add dl-sysdep.
6302         (elide-routines.os): Likewise.
6303
6304 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6305
6306         [BZ #5786]
6307         * elf/dl-sysdep.c: Undefine ROUND after use.
6308         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6309         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6310         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6311         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6312         to ...
6313         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6314         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6315         if necessary.
6316         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6317
6318         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6319         _dl_tls_get_addr_soft element.
6320         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6321         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6322         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6323         GLRO.
6324         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6325         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6326         of internal_function.
6327
6328         * stdlib/Makefile (aux): Add tens_in_limb.
6329         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6330         * stdlib/tens_in_limb.c: ...here.  New file.
6331
6332         [BZ #5778]
6333         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6334         __statfs_chown_restricted.
6335         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6336         for _PC_CHOWN_RESTRICTED.
6337         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6338         Implement __statfs_chown_restricted.
6339         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6340         _POSIX_CHOWN_RESTRICTED value to zero.
6341         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6342         defined to zero.
6343
6344         * sysdeps/x86_64/rtld-memset.c: New file.
6345
6346 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6347
6348         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6349
6350         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6351         Barcelona machine.  Make default fall through branch of
6352         __x86_64_preferred_memory_instruction check as the integer code path.
6353
6354 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6355
6356         * sysdeps/x86_64/cacheinfo.c
6357         (__x86_64_preferred_memory_instruction): New variable.
6358         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6359
6360         * sysdeps/x86_64/memset.S: Rewrite.
6361
6362 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6363
6364         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6365         __obstack_printf_chk): New prototypes.
6366         (__vasprintf_chk, __vdprintf_chk,
6367         __obstack_vprintf_chk): Likewise.
6368         Add libc_hidden_proto.
6369         * libio/obprintf.c
6370         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6371         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6372         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6373         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6374         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6375         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6376         __obstack_vprintf_chk): New prototypes.
6377         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6378         obstack_vprintf): New inlines.
6379         * debug/dprintf_chk.c: New file.
6380         * debug/vdprintf_chk.c: New file.
6381         * debug/asprintf_chk.c: New file.
6382         * debug/vasprintf_chk.c: New file.
6383         * debug/obprintf_chk.c: New file.
6384         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6385         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6386         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6387         @@GLIBC_2.8.
6388         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6389         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6390         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6391         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6392         libc_hidden_proto.
6393         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6394         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6395         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6396         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6397         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6398         @@GLIBC_2.8.
6399         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6400         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6401         obstack_vprintf_chk.
6402         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6403         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6404         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6405         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6406         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6407         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6408
6409 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6410
6411         [BZ #5779]
6412         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6413         Patch by Roy Marples <roy@marples.name>.
6414
6415         [BZ #5736]
6416         * malloc/malloc.c: Fix typo in comment.
6417
6418         [BZ #5627]
6419         * locale/iso-639.def: Add Shuswap.
6420
6421 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6422
6423         [BZ #5790]
6424         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6425         overwrite *h_errnop/*errnop values from getanswer_r in case of
6426         failure.
6427
6428 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6429
6430         [BZ #5818]
6431         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6432         (verify_persistent_db): Remove one unnecessary test and add a new one
6433         for bad configuration.
6434         (nscd_init): Improve error reported when persistent database cannot
6435         be reused.
6436         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6437         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6438         .suggested_module and .max_db_size and case config file says the
6439         values are zero.
6440         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6441
6442         [BZ #5854]
6443         * nis/ypclnt.c (yp_order): Fix handling of return value of
6444         do_ypcall_tr call.
6445         Patch by Jeff Moyer <jmoyer@redhat.com>.
6446
6447         * po/fr.po: Update from translation team.
6448
6449 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6450             Carlos O'Donell <carlos@systemhalted.org>
6451
6452         [BZ #5012]
6453         * FAQ.in: Describe why glibc needs to be compiled with
6454         optimization.
6455
6456 2008-02-19  Roland McGrath  <roland@redhat.com>
6457
6458         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6459
6460 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6461
6462         [BZ #5737]
6463         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6464         __USE_MISC is defined.
6465
6466 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6467
6468         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6469         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6470         sys/timerfd.h.
6471         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6472         timerfd_gettime, timerfd_settime.
6473         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6474         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6475
6476 2008-02-08  Roland McGrath  <roland@redhat.com>
6477
6478         * elf/elf.h (NT_PPC_SPE): New macro.
6479
6480 2008-02-06  Roland McGrath  <roland@redhat.com>
6481
6482         * Makerules ($(common-objpfx)sysd-rules):
6483         Depend on $(sysdep-makeconfigs).
6484
6485 2008-01-31  Roland McGrath  <roland@redhat.com>
6486
6487         [BZ #5442]
6488         * configure.in: Use -print-file-name if it yields a directory,
6489         for each of include and include-fixed.
6490         * configure: Regenerated.
6491
6492         * Makeconfig (sysd-rules-targets): New variable.
6493         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6494         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6495
6496 2008-01-30  Roland McGrath  <roland@redhat.com>
6497
6498         * manual/libc.texinfo: Update back-cover text.
6499
6500         * elf/elf.h (NT_386_TLS): New macro.
6501
6502 2008-01-29  Roland McGrath  <roland@redhat.com>
6503
6504         * Makeconfig (sysd-rules-patterns): New variable.
6505         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6506         (check-inhibit-asm): New canned sequence, replaces ...
6507         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6508         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6509         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6510         (CFLAGS-rtld): Variable removed.
6511
6512 2008-01-24  Roland McGrath  <roland@redhat.com>
6513
6514         * configure.in: Let configure fragments set base_os.
6515         * configure: Regenerated.
6516
6517 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
6518
6519         * po/ko.po: Update from translation team.
6520
6521 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6522
6523         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6524
6525 2008-01-12  Andreas Jaeger  <aj@suse.de>
6526
6527         [BZ #5040]
6528         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6529         Add EPOLLRDHUP.
6530
6531 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6532
6533         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6534         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6535         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6536
6537 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
6538
6539         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6540         * elf/dl-close.c (_dl_close): Check for it.
6541         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6542         (_dl_allocate_static_tls): Likewise.
6543         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6544         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6545         to it.
6546         * elf/tst-tls16.c: New file.
6547         * elf/tst-tlsmod16a.c: New file.
6548         * elf/tst-tlsmod16b.c: New file.
6549         * elf/Makefile: Add rules to build and run tst-tls16.
6550
6551 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
6552
6553         [BZ #5628]
6554         * bits/shm.h: Fix comment describing shmid_ds.
6555         * sysdeps/gnu/bits/shm.h: Likewise.
6556         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6557         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6558         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6559         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6560         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6561         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6562         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6563         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6564         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6565
6566         [BZ #5607]
6567         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6568         prototypes.
6569         * conform/data/limits.h-data: Adjust limits changed in v6 and add
6570         additional suffixes.
6571         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6572         Add optional functions mq_timedreceive and mq_timedsend.
6573         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6574         * conform/data/pthread.h-data: Fix prototype of
6575         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
6576         * conform/data/semaphore.h-data: Allow time.h definitions.
6577         * conform/data/signal.h-data: Likewise.
6578         * conform/data/stdio.h-data: getw and putw are not required in v6.
6579         * conform/data/stdlib.h-data: Change setstate prototype.
6580         * conform/data/string.h-data: Fix strerror_r prototype.
6581         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6582         * conform/data/unistd.h-data: pthread_atfork not required in v6.
6583         Fix readlink prototype.
6584         * conform/data/netinet/in.h-data: Add const to in6addr_any and
6585         in6addr_loopback.
6586         * inet/netinet/in.h: Cleanup namespace.
6587         * posix/regex.h: Likewise.
6588         * resolv/netdb.h: Likewise.
6589         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6590         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6591         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6592         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6593         of names of in in6_addr.
6594         (default_precedence): Likewise.
6595         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6596         NULL definition.
6597
6598 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
6599
6600         * conform/data/fmtmsg.h-data: Add missing allows.
6601         * conform/data/ftw.h-data: Likewise.
6602         * conform/data/inttypes.h-data: Likewise.
6603         * conform/data/math.h-data: Likewise.
6604         * conform/data/signal.h-data: Likewise.
6605         * conform/data/net/if.h-data: Likewise.
6606         * conform/data/netinet/in.h-data: Likewise.
6607         * conform/data/sys/socket.h-data: Likewise.
6608
6609         [BZ #5614]
6610         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6611         (__strtok_r): Simplify.
6612         * string/tester.c (test_strtok_r): Add test case for futile search
6613         with single-character seach string.
6614
6615 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
6616
6617         * po/ko.po: Update from translation team.
6618
6619 2008-01-11  Andreas Jaeger  <aj@suse.de>
6620
6621         [BZ #5600]
6622         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6623         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6624         kernel header.
6625
6626 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
6627
6628         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6629         native interface lookup in all the relevant places.
6630
6631 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
6632             Ulrich Drepper  <drepper@redhat.com>
6633
6634         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6635         field.  Use sockaddr_in6 for source_addr.
6636         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
6637         (match_prefix): Likewise.
6638         (get_label): Likewise.
6639         (get_precedence): Likewise.
6640         (rfc3484_sort): Change to use indirect access to results array.
6641         Adjust to use of sockaddr_in6.  Replace service_order test with
6642         simple index comparison.
6643         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
6644         service_order field.  Adjust qsort_t calls.  Access sorted result
6645         array indirectly through order array.
6646         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6647         * posix/tst-rfc3484-2.c: Likewise.
6648         * posix/tst-rfc3484-3.c: Likewise.
6649
6650 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
6651
6652         [BZ #5541]
6653         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6654         pollfd structures.
6655         Patch by André Cruz.
6656
6657         [BZ #5545]
6658         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6659         (clnt_spcreateerror): Likewise.
6660
6661         [BZ #5553]
6662         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6663         (public_mEMALIGn): Likewise.
6664         Patch mostly by Daniel Jacobowitz.
6665
6666 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
6667
6668         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6669         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6670         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6671         * stdlib/tst-makecontext2.c: New test.
6672
6673 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6674
6675         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6676         defined.
6677         (REINIT_PARAMS): Likewise.  Undefine before end of file.
6678         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6679         transliteration hooks and REINIT_PARAMS afterwards.
6680         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6681         status.
6682         (REINIT_PARAMS): Define.
6683         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6684         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6685         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6686         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6687         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6688         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6689         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6690         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6691         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6692         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6693         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6694         * iconvdata/tst-iconv7.c: New test.
6695
6696 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
6697
6698         * libio/stdio.h (vscanf): Fix definition for loser compilers.
6699
6700 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6701
6702         [BZ #5112]
6703         * nscd/connections.c (restart): Fix condition.
6704
6705 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6706
6707         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6708         __ctype_toupper_loc): Add __THROW.
6709
6710 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
6711
6712         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6713         recognition of interface family.
6714
6715         * posix/getconf.c: Update copyright year.
6716         * nss/getent.c: Likewise.
6717         * iconv/iconvconfig.c: Likewise.
6718         * iconv/iconv_prog.c: Likewise.
6719         * elf/ldconfig.c: Likewise.
6720         * catgets/gencat.c: Likewise.
6721         * csu/version.c: Likewise.
6722         * elf/ldd.bash.in: Likewise.
6723         * elf/sprof.c (print_version): Likewise.
6724         * locale/programs/locale.c: Likewise.
6725         * locale/programs/localedef.c: Likewise.
6726         * nscd/nscd.c (print_version): Likewise.
6727         * debug/xtrace.sh: Likewise.
6728         * malloc/memusage.sh: Likewise.
6729         * malloc/mtrace.pl: Likewise.
6730         * debug/catchsegv.sh: Likewise.
6731
6732 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
6733
6734         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
6735         second lookup.
6736
6737 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
6738
6739         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
6740         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6741
6742 2007-12-17  Roland McGrath  <roland@redhat.com>
6743
6744         * inet/ether_line.c (ether_line): Remove unused variable.
6745
6746 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6747
6748         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
6749         and winp.
6750         * login/openpty.c (openpty): Likewise.
6751         * login/pty.h (openpty, forkpty): Likewise.
6752         * manual/terminal.texi (openpty, forkpty): Likewise.
6753
6754 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
6755
6756         * malloc/malloc.c (public_cALLOc): For arenas other than
6757         main_arena, count all bytes inside the mprotect_size range of the
6758         heap as uninitialized.
6759
6760 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
6761
6762         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
6763         executable stacks.
6764
6765         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
6766         mTRIm for all of them.
6767         (mTRIm): Additionally iterate over all free blocks and use madvise
6768         to free memory for all those blocks which contain at least one
6769         memory page.
6770         * malloc/tst-trim1.c: New file.
6771         * malloc/Makefile (tests): Add tst-trim1.
6772
6773         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
6774
6775 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
6776
6777         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6778         First cast argument to long
6779         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6780         Return long.
6781         (__vdso_clock_gettime): Likewise.
6782         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6783         return long.
6784
6785 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
6786
6787         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6788         * locale/nl_langinfo_l.c: Real implementation, copied from
6789         nl_langinfo.c.
6790         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6791
6792 2007-12-01  Jim Meyering  <meyering@redhat.com>
6793
6794         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6795         that would inhibit utf8-optimization of a regexp containing line-
6796         or buffer-anchors, e.g., `^', `$'.
6797
6798 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6799
6800         * time/bug-getdate1.c (do_test): Don't use century values which
6801         aren't valid on 32-bit systems.
6802
6803 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
6804
6805         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6806         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6807         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6808         __strcat_g, __strncat_g): Add __asm__.
6809
6810 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
6811
6812         [BZ #5477]
6813         * io/fchmodat.c: Fix typo in stub_warning use.
6814         Patch by Petr Salinger.
6815
6816 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
6817
6818         * iconvdata/hp-thai8.c: New file.
6819         * iconvdata/Makefile: Add rules for hp-thai8.c.
6820         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6821         * iconvdata/gconv-modules: Likewise.
6822
6823         [BZ #5464]
6824         * iconvdata/hp-greek8.c: New file.
6825         * iconvdata/Makefile: Add rules for hp-greek8.c.
6826         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6827         * iconvdata/gconv-modules: Likewise.
6828
6829         [BZ #5463]
6830         * iconvdata/hp-turkish8.c: New file.
6831         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6832         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6833         * iconvdata/gconv-modules: Likewise.
6834
6835         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6836         (shrink_heap): ... this new function.
6837         (heap_trim): Call shrink_heap instead of grow_heap.
6838
6839         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6840         case don't call alloc_perturb.
6841
6842 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6843
6844         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6845         possible.
6846         * sysdeps/unix/sysv/linux/kernel-features.h
6847         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6848         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6849
6850 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6851
6852         [BZ #5424]
6853         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6854         * stdio-common/Makefile (tests): Add bug22.
6855         * stdio-common/bug22.c: New file.
6856
6857         [BZ #5451]
6858         * time/getdate.c: Fix filling in default values.
6859         * time/bug-getdate1.c: New file.
6860         * time/Makefile: Add rules to build and run bug-getdate1.
6861
6862         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6863         * iconvdata/ebcdic-es.c: Likewise.
6864         * iconvdata/ebcdic-es-a.c: Likewise.
6865         * iconvdata/ebcdic-uk.c: Likewise.
6866         * iconvdata/iso8859-16.c: Likewise.
6867         * iconvdata/viscii.c: Likewise.
6868         * iconvdata/iso8859-9e.c: Likewise.
6869         * iconvdata/Makefile: Adjust appropriately.
6870
6871         [BZ #5428]
6872         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6873         __need_wint_t.
6874
6875 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6876
6877         [BZ #5427]
6878         * iconvdata/hp-roman9.c: New file.
6879         * iconvdata/Makefile: Add rules for hp-roman9.c.
6880         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6881         * iconvdata/gconv-modules: Likewise.
6882
6883         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6884         * iconvdata/Makefile: Adjust appropriately.
6885
6886         [BZ #5441]
6887         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6888         structure, it's allocated with alloca.
6889         * stdio-common/Makefile (tests): Add bug21.
6890         * stdio-common/bug21.c: New file.
6891
6892 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6893
6894         [BZ #5452]
6895         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6896         keyword for gcc's braced-groups.
6897
6898 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6899
6900         [BZ #5454]
6901         * inet/ether_line.c: Strip hostname of whitespaces.
6902         * inet/Makefile (tests): Add tst-ether_line.
6903         * inet/tst-ether_line.c: New file.
6904
6905 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6906
6907         [BZ #5439]
6908         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6909
6910         [BZ #5435]
6911         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6912
6913         * stdlib/tst-setcontext.c: Catch the case where the links gets
6914         messed up and we do not reach main again.
6915
6916         * po/ca.po: Update from translation team.
6917
6918 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6919
6920         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6921         * posix/regex.h (REG_ENOSYS): Likewise.
6922         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6923
6924 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6925
6926         * nscd/nscd.h (MAX_STACK_USE): Define.
6927         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6928         (gc): Initialize stack_used based on allocation in prune_cache.
6929         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6930         Clear array before use.
6931
6932         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6933         memory allocation failed.
6934         * nscd/hstcache.c (cache_addhst): Likewise.
6935         * nscd/grpcache.c (cache_addgr): Likewise.
6936         * nscd/servicescache.c (cache_addserv): Likewise.
6937         * nscd/pwdcache.c (cache_addpw): Likewise.
6938         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6939
6940 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6941
6942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6943         and creat system calls.
6944
6945         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6946
6947 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6948
6949         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6950         Add netiucv/iucv.h.
6951         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6952         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6953         protocol.
6954         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6955         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6956         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6957
6958 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6959
6960         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6961         strncat): Define as macros to avoid compile errors.
6962
6963         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6964         creat entries.
6965
6966 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6967
6968         [BZ #5382]
6969         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6970         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6971         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6972         overflow it.
6973         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6974
6975         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6976         Return zero in case the thread library is not NPTL.
6977
6978         [BZ #5375]
6979         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6980         initializing interface list.
6981
6982         [BZ #5378]
6983         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6984         use result of nss_getgrgid_r if nothing was found.  For other
6985         error return with a failure.
6986         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6987
6988         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6989         macro name.
6990
6991 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6992
6993         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6994         (get_scope): For IPv4 scope, use scopes table.
6995         (fini): Free scopes table if necessary.
6996         (free_scopelist): New function.
6997         (scopecmp): New function.
6998         (gaiconf_init): Also handle scopev4 entries.
6999         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7000         * posix/tst-rfc3484-2.c (do_test): Likewise.
7001         * posix/gai.conf: Document scopev4 defaults.
7002         * posix/Makefile (tests): Add tst-rfc3484-3.
7003         * posix/tst-rfc3484-3.c: New file.
7004
7005         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7006         Teredo tunnels.
7007         * posix/gai.conf: Update for current default tables.
7008
7009 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7010
7011         * po/tr.po: Update from translation team.
7012
7013 2007-11-18  Roland McGrath  <roland@frob.com>
7014
7015         * manual/arith.texi (Remainder Functions): Spelling fix.
7016         From Shaun Silk <genix@mysoul.com.au>.
7017
7018         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7019
7020 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7021
7022         * po/zh_CN.po: Update from translation team.
7023
7024         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7025         Add sys/signalfd.h and sys/eventfd.h.
7026
7027 2007-11-15  Bruno Haible  <bruno@clisp.org>
7028
7029         [BZ #5346]
7030         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7031         union.
7032         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7033         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7034         it needs only fixed stack space. Delay the initialization of
7035         msgid_len until it is needed.
7036
7037 2007-11-15  Andreas Jaeger  <aj@suse.de>
7038
7039         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7040         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7041
7042 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7043
7044         * po/ko.po: Update from translation team.
7045
7046 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7047
7048         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7049         significantly.  The device type is also part of the ifinfomsg data.
7050
7051         * po/sv.po: Update from translation team.
7052         * po/nl.po: Likewise.
7053
7054         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7055         to wake up in 24 hours.
7056
7057         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7058
7059 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7060
7061         * po/cs.po: Update from translation team.
7062         * po/pl.po: Likewise.
7063
7064         * include/ifaddrs.h: Remove in6ai_temporary.
7065         (struct in6addrinfo): Add index element.
7066         Declare __check_native.
7067         * inet/Makefile (aux): Add check_native.
7068         * sysdeps/unix/sysv/linux/check_native.c: New file.
7069         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7070         IFA_F_TEMPORARY.  Pass back ifa_index.
7071         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7072         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7073         call __check_native if necessary.
7074         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7075         to sort addresses.  Pass information about the results.
7076         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7077         of rfc3484_sort interface.
7078         * posix/tst-rfc3484-2.c: Likewise.
7079
7080         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7081         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7082         for _quicksort.
7083         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7084         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7085         on as third parameter to compare function and _quicksort.
7086         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7087         to the compare function.
7088         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7089         * Versions.def: Add GLIBC_2.8 for libc.
7090
7091         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7092         * posix/tst-rfc3484-2.c: Likewise.
7093
7094         * include/kernel-features.h: Moved to...
7095         * sysdeps/mach/hurd/kernel-features.h: ...here.
7096
7097 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7098
7099         * sysdeps/i386/i586/memcpy_chk.S: New file.
7100         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7101         * sysdeps/i386/i586/memset_chk.S: Likewise.
7102
7103 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7104
7105         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7106         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7107         list of interfaces.  Also store prefix length.
7108         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7109         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7110         prefix if source and destination address are in the same subnet.
7111         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7112         Always look for matching record in in6ai list.
7113         Correct source_addr_len value for IPv6->IPv4 converted records.
7114
7115 2007-11-11  Roland McGrath  <roland@frob.com>
7116
7117         * include/kernel-features.h: New file.
7118
7119 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7120
7121         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7122         complications for 64-bit platforms.
7123
7124         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7125         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7126         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7127         open64_2.
7128         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7129         entries.
7130         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7131         * sysdeps/wordsize-64/alphasort.c: New file.
7132         * sysdeps/wordsize-64/alphasort64.c: New file.
7133         * sysdeps/wordsize-64/fseeko.c: New file.
7134         * sysdeps/wordsize-64/fseeko64.c: New file.
7135         * sysdeps/wordsize-64/ftello.c: New file.
7136         * sysdeps/wordsize-64/ftello64.c: New file.
7137         * sysdeps/wordsize-64/ftw.c: New file.
7138         * sysdeps/wordsize-64/ftw64.c: New file.
7139         * sysdeps/wordsize-64/iofgetpos.c: New file.
7140         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7141         * sysdeps/wordsize-64/iofopen.c: New file.
7142         * sysdeps/wordsize-64/iofopen64.c: New file.
7143         * sysdeps/wordsize-64/iofsetpos.c: New file.
7144         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7145         * sysdeps/wordsize-64/lockf.c: New file.
7146         * sysdeps/wordsize-64/lockf64.c: New file.
7147         * sysdeps/wordsize-64/mkostemp.c: New file.
7148         * sysdeps/wordsize-64/mkostemp64.c: New file.
7149         * sysdeps/wordsize-64/mkstemp.c: New file.
7150         * sysdeps/wordsize-64/mkstemp64.c: New file.
7151         * sysdeps/wordsize-64/scandir.c: New file.
7152         * sysdeps/wordsize-64/scandir64.c: New file.
7153         * sysdeps/wordsize-64/tmpfile.c: New file.
7154         * sysdeps/wordsize-64/tmpfile64.c: New file.
7155         * sysdeps/wordsize-64/versionsort.c: New file.
7156         * sysdeps/wordsize-64/versionsort64.c: New file.
7157         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7158         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7159         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7160         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7161         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7162         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7163         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7164         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7165         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7166         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7167         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7168         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7169
7170         * crypt/sha256-crypt.c: Fix a comment.
7171         * crypt/sha512-crypt.c: Likewise.
7172
7173 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7174
7175         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7176
7177 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7178
7179         [BZ #5277]
7180         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7181         because output buffer is too small break, don't loop.
7182         * iconvdata/Makefile (tests): Add bug-iconv6.
7183         * iconvdata/bug-iconv6.c: New file.
7184
7185 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7186
7187         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7188         with size_t type.
7189         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7190         size_t.  Add casts where needed.
7191
7192         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7193         old headers, don't call avc_has_perm if we don't have the
7194         permission information.
7195
7196 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7197
7198         * elf/rtld.c (dl_main): Use the page size to find the map start.
7199
7200 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7201
7202         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7203         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7204
7205         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7206         when the lookup call failed.
7207
7208         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7209         Add prune_cond and wakeup_time.
7210         (CACHE_PRUNE_INTERNAL): Define.
7211         Update declarations of prune_cache and setup_thread.
7212         * nscd/connections.c (dbs): Update initializers.
7213         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7214         (nscd_init): Default number of threads is now 4.
7215         (invalidate_cache): Take lock before calling prune_cache.
7216         (handle_request): If SELinux forbids the request, say so.
7217         (readylist_cond): Use static initializer.
7218         (nscd_run_prune): New function.  Used only by pruning threads.
7219         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7220         here.
7221         (fd_ready): Update nscd_run reference.
7222         (start_threads): No need to initialize readylist_cond.
7223         Start pruning threads separately.
7224         * nscd/nscd_setup_thread.c: Change return value type to int and always
7225         return 0.
7226         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7227         to int and return nonzero value if we can use the TID address hack.
7228         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7229         the database is later than the new entry's timeout, update the
7230         wakeup time and wake the cleanup thread.
7231         (prune_cache): Return seconds the next entry in the database is still
7232         valid.  Remove locking for pruning here.
7233         * nscd/nscd.conf: Document default number of threads.
7234
7235 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7236
7237         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7238         stack is properly aligned for the target function.
7239         Correct unwind info.
7240
7241         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7242         when using auditing libraries.
7243
7244 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7245
7246         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7247         _nss_dns_getnetbyaddr2_r.
7248         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7249         extra parameter to getanswer_r.
7250         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7251         _nss_dns_getnetbyaddr2_r.
7252
7253         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7254         gethstbynm3_r.
7255         * nscd/gethstbynm2_r.c: Remove.
7256         * nscd/gethstbynm3_r.c: New file.
7257         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7258         __gethostbyaddr_r.
7259         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7260         __gethostbyaddr_r compatibility wrapper.
7261         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7262         determining timeout of entry.
7263         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7264         __gethostbyaddr2_r.
7265         (addhstbyX): Pass reference to variable for TTL to lookup and
7266         cache_addhst.
7267         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7268         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7269         and __nss_next2.  Remove __nss_services_lookup.
7270         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7271         Add compat wrapper.
7272         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7273         __nss_next2.
7274         * nss/getXXent_r.c: Likewise.
7275         * nss/getnssent_r.c: Likewise.
7276         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7277         does not exist in module, try the optional second name.
7278         (__nss_next2): New function.
7279         (__nss_next): Now wrapper around __nss_next2.
7280         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7281         Declare __nss_next2.
7282         Adjust definition of db_lookup_function type.
7283         * nss/service-lookup.c: Define NO_COMPAT.
7284         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7285         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7286         * inet/ether_ntoh.c: Likewise.
7287         * sunrpc/netname.c: Likewise.
7288         * sunrpc/publickey.c: Likewise.
7289         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7290         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7291         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7292         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7293         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7294
7295         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7296
7297         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7298
7299 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7300
7301         [BZ #5204]
7302         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7303         * crypt/sha512c-test.c: Likewise.
7304
7305         [BZ #5225]
7306         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7307         to keep track of end of %[ format string element.
7308         * stdio-common/Makefile (tests): Add bug20.
7309         * stdio-common/bug20.c: New file.
7310
7311         [BZ #5222]
7312         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7313         path elements in counting mode.
7314
7315 2007-10-27  Andreas Jaeger  <aj@suse.de>
7316
7317         [BZ #5040]
7318         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7319
7320         [BZ #3112]
7321         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7322         (__cleanup): Free shared library when exiting.
7323         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7324         (__cleanup): Free shared library when exiting.
7325
7326 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7327
7328         [BZ #2549]
7329         * math/libm-test.inc (check_float_internal): Support
7330         denormalized return.
7331
7332 2007-10-23  Andreas Jaeger  <aj@suse.de>
7333
7334         [BZ #5208]
7335         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7336         __LONG_LONG_PAIR to handle little endian byte order.
7337         Suggested by abhishekrai@google.com
7338
7339 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7340
7341         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7342
7343 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7344
7345         * nscd/cache.c (prune_cache): Move test for modified file outside
7346         of locking.
7347
7348 2007-10-21  Andreas Jaeger  <aj@suse.de>
7349
7350         * manual/texinfo.tex: Update to latest version.
7351
7352         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7353
7354         * manual/arith.texi (Status bit operations): Fix formatting.
7355
7356         * manual/errno.texi (Error Messages): Fix formatting.
7357
7358         * manual/sysinfo.texi (System Parameters): Fix formatting.
7359
7360         * manual/libc.texinfo: Update VERSION and UPDATED.
7361
7362 2007-10-19  Roland McGrath  <roland@redhat.com>
7363
7364         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7365
7366 2007-10-06  David S. Miller  <davem@davemloft.net>
7367
7368         * configure.in: Add sparcv9v2 and sparc64v2.
7369         * scripts/config.sub: Likewise.
7370         * configure: Regenerate.
7371         * elf/elf.h (HWCAP_SPARC_N2): New.
7372         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7373         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7374         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7375         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7376         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7377         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7378         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7379
7380 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7381
7382         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7383         even if the poll result indicates there is data to read.
7384         Patch by Jeff Moyer <jmoyer@redhat.com>.
7385
7386 2007-10-18  Roland McGrath  <roland@redhat.com>
7387
7388         * elf/elf.h (NT_PPC_VMX): New macro.
7389
7390 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7391
7392         * version.h (VERSION): Set to 2.7.90.
7393
7394 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7395
7396         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7397         weak_alias.
7398
7399 2007-10-17  Roland McGrath  <roland@frob.com>
7400
7401         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7402         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7403
7404 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7405
7406         * version.h (VERSION): Bump to 2.7.
7407         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7408
7409         [BZ #5186]
7410         * time/tzset.c (__tz_convert): Don't force testing for a change of
7411         TZ if not called from localtime.  But then also see whether the
7412         file changed, in case __use_tzfile is set.
7413
7414         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7415         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7416         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7417         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7418         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7419         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7420         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7421         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7422
7423 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7424
7425         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7426         and admin selects to be able to replace the gai.conf file, lock
7427         data structures around the qsort call.
7428
7429 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7430
7431         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7432         new memset.
7433         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7434         too high for the improvements.  Implement bzero unconditionally for
7435         use in libc.
7436
7437 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7438             Jakub Jelinek  <jakub@redhat.com>
7439
7440         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7441         even when time_t is 32-bit.
7442         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7443         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7444         always set after the search.
7445
7446 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7447
7448         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7449         unreachable code on 32-bit machines.
7450
7451 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7452
7453         [BZ #5184]
7454         * time/strftime_l.c: Include stdbool.h.
7455         (my_strftime): New wrapper, old function renamed to...
7456         (__strftime_internal): ... new function.  Add tzset_called
7457         argument, pass it down to recursive calls, don't call tzset ()
7458         if already true, set to true after call to tzset ().
7459
7460 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7461
7462         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7463         into account when copying TZ string.
7464
7465 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7466
7467         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7468         num_transition rather than num_transitions - 1.
7469
7470 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7471
7472         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7473         PIC indirect jump.
7474
7475         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7476         a local label rather than HIDDEN_JUMPTARGET.
7477
7478 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7479
7480         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7481         (init_cacheinfo): Initialize it.
7482         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7483         Always define bzero.
7484         Remove non-glibc code.
7485         * sysdeps/x86_64/bzero.S: Make an empty file.
7486
7487 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7488
7489         * sysdeps/x86_64/cacheinfo.c
7490         (__x86_64_preferred_memory_instruction): New.
7491         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7492
7493         * sysdeps/x86_64/memset.S: Rewrite.
7494
7495 2007-10-15  Roland McGrath  <roland@redhat.com>
7496
7497         * po/libc.pot: Regenerated.
7498
7499 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7500
7501         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7502         pointers.
7503
7504         [BZ #3425]
7505         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7506         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7507         address record to T_A/T_AAAA requests.
7508
7509 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7510
7511         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7512
7513         * posix/glob.c: Add some branch prediction throughout.
7514
7515         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7516         read from nscd.
7517
7518         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7519         service_order.
7520         (rfc3484_sort): Make sure that even if qsort doesn't support
7521         stable sorting out sorting here is stable by comparing service_order.
7522         (getaddrinfo): Initialize service_order.
7523         * posix/tst-rfc3484.c (do_test): Adjust for addition of
7524         service_order field to sorting structure.
7525         * posix/tst-rfc3484-2.c (do_test): Likewise.
7526
7527         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7528         * time/tzset.c (tzset_internal): Break TZ string parsing out into
7529         __tzset_parse_tz and updating of daylight, timezone, tzname into
7530         update_vars.
7531         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
7532         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7533         happens in __tz_compute.
7534         * time/tzfile.c (__tzfile_read): Also read TZ string.
7535         (find_transition): Fold into __tzfile_compute.
7536         (__tzfile_compute): For times beyond the last transition try to
7537         use the TZ string.
7538         * timezone/tst-timezone.c: Information in daylight and tzname does
7539         change for Asia/Tokyo timezone with more concrete information.
7540         Remove the test.
7541
7542         * include/stdio.h: Add libc_hidden_proto for ftello.
7543         * libio/ftello.c: Add libc_hidden_def.
7544
7545         [BZ #1140]
7546         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7547         on the specified time and not the last entries in the file.  Move
7548         code to determine tzname[] to...
7549         (find_transition): ...here.  Add ugly guess for times before the
7550         first transition.
7551
7552 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7553
7554         [BZ #3195]
7555         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7556         no entry.
7557         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7558         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7559         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7560         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7561
7562         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7563         read mechanism when there are no group members and avoid no-op
7564         read syscall in this case.
7565
7566         [BZ #3242]
7567         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7568         (__readall): If reading failed due to EAGAIN error wait a bit
7569         and possibly try again.
7570         (__readvall): Likewise.
7571
7572 2007-10-13  Bruno Haible  <bruno@clisp.org>
7573
7574         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7575         when we cannot recode the message.
7576
7577 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
7578
7579         [BZ #4359]
7580         * libio/__freading.c (__freading): Don't return true for
7581         write-only streams.  For read/write streams, check whether we
7582         performed a read operation already.
7583         * libio/Makefile (tests): Add tst-ext2.
7584         * libio/tst-ext2.c: New file.
7585
7586 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7587
7588         * locale/programs/repertoire.c (repertoire_read): Always free
7589         memory for repertoire file name [Coverity CID 270].
7590
7591         * elf/cache.c (save_aux_cache): Free memory allocated for
7592         temporary file name [Coverity CID 267].
7593
7594 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7595
7596         * misc/Makefile (headers): Add bits/error.h.
7597
7598 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
7599
7600         * posix/fnmatch_loop.c: Take rule index returned as part of
7601         findidx return value into account when accessing weights.
7602         * posix/regcomp.c: Likewise.
7603         * posix/regexec.c: Likewise.
7604
7605         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7606         (skip_to): Fix problems with parameter of elifdef/elifndef.
7607
7608 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
7609
7610         * iconv/gconv_simple.c: Add some branch prediction.
7611
7612 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
7613
7614         * locale/programs/ld-collate.c (collate_read): If ignore_content
7615         and nowtok is tok_define, eat any tok_eol tokens.
7616
7617 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
7618
7619         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7620         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7621
7622         * inet/netinet/in.h: Don't include bits/socket.h.
7623         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7624         macro.
7625         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7626
7627 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
7628
7629         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7630         and tok_elifndef.
7631         * locale/programs/locfile-kw.gperf: Likewise.
7632         * locale/programs/ld-collate.c: Implement primitive preprocessor.
7633
7634 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
7635
7636         * stdio-common/printf-parse.h: Include string.h and wchar.h.
7637         (__find_specwc): Change into __extern_always_inline function.
7638         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
7639         (__parse_one_specmb): Remove ps argument.
7640         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7641         Adjust __find_specmb and __parse_one_specmb callers.
7642         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7643         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7644         Removed.
7645         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7646         caller.
7647
7648 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7651         with some Pentium Ds.
7652
7653 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
7654
7655         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7656         __read not read.
7657         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7658         __write not write.
7659
7660 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7661
7662         [BZ #181]
7663         * locale/C-time.c: Set week_1stday data to 19971201.
7664         * locale/programs/ld-time.c (time_finish): Default for
7665         first_workday is Monday.
7666
7667         [BZ #2633]
7668         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7669
7670         [BZ #5103]
7671         * posix/glob.c (glob): Recognize patterns starting \/.
7672         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7673         (main): Add test for pattern starting \/.
7674
7675         * misc/error.h: Use __const instead of const.
7676         * misc/bits/error.h: Likewise.
7677
7678 2007-10-07  Andreas Jaeger  <aj@suse.de>
7679
7680         * include/bits/error.h: New file.
7681
7682         * misc/bits/error.h (error_at_line): Fix prototype.
7683
7684 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
7685
7686         [BZ #3924]
7687         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7688         more little bugs in creating the stack frame when pltexit has to
7689         be called.
7690
7691         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7692         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7693
7694         [BZ #4407]
7695         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7696         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7697         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7698         * math/libm-test.inc: Add test for this case.
7699
7700         [BZ #5010]
7701         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7702         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
7703         map service succeeded.
7704         (svc_is_mapped): New function.
7705         (svc_unregister): Use it before trying to unmap service.
7706
7707 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
7708
7709         * timezone/zic.c: Update from tzcode2007h.
7710
7711         [BZ #5063]
7712         * timezone/africa: Update from tzdata2007h.
7713         * timezone/antarctica: Likewise.
7714         * timezone/asia: Likewise.
7715         * timezone/australasia: Likewise.
7716         * timezone/europe: Likewise.
7717         * timezone/leapseconds: Likewise.
7718         * timezone/northamerica: Likewise.
7719         * timezone/southamerica: Likewise.
7720         * timzeone/zone.tab: Likewise.
7721
7722         [BZ #5104]
7723         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
7724
7725         [BZ #5113]
7726         * string/bits/string2.h (__strdup): Cast parameters to calloc to
7727         avoid warning with -Wconversion.
7728         (__strndup): Likewise.
7729         Half the patch by Christian Iseli <christian.iseli@licr.org>.
7730
7731         [BZ #5112]
7732         * nscd/connections.c (restart): Don't resync if database is
7733         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
7734
7735         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
7736         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
7737
7738         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
7739         evetnfd_read, eventfd_write.
7740         * sysdeps/unix/sysv/linux/eventfd.c: New file.
7741         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
7742         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
7743         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
7744         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
7745         eventfd_write for GLIBC_2.7.
7746
7747         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
7748         * sysdeps/unix/sysv/linux/signalfd.c: New file.
7749         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
7750         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
7751
7752 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
7753
7754         * stdlib/msort.c: Include stdint.h.
7755         (struct msort_param): New type.
7756         (msort_with_tmp): Use struct msort_param pointer for unchanging
7757         parameters.  Add optimized handling for several common sizes
7758         and indirect sorting mode.
7759         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
7760         sorting.
7761         Suggested by Belazougui Djamel .
7762
7763         * stdlib/Makefile (tests): Add tst-qsort2.
7764         * stdlib/tst-qsort2.c: New test.
7765
7766 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
7767
7768         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
7769         for dup2 in case another thread races with the current one.  Retry
7770         in this case.
7771
7772         * misc/error.h: Remove support for use outside of libc.  We have to
7773         include <features.h> now.  Include <bits/error.h> if possible.
7774         * misc/bits/error.h: New file.
7775
7776 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
7777
7778         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
7779         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7780         __extern_always_inline functions unconditionally, drop macros.
7781
7782         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7783         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7784         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7785
7786         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7787         add __artificial__ attribute.
7788
7789 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
7790
7791         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7792         backward to forward direction.
7793
7794         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7795
7796         [BZ #645]
7797         * locale/programs/ld-collate.c (collate_finish): Compare against last
7798         used section which is known to have rules defined.
7799         (collate_read): After order_start, correctly record order of sections
7800         and queue sections up.
7801
7802 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
7803
7804         [BZ #5071]
7805         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7806         the same number of pages.
7807         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7808
7809         * locale/programs/ld-collate.c (collate_read): After initial copy
7810         statement, continue in state 0.
7811
7812         * include/stdio_ext.h (__fsetlocking): Define as macro.
7813
7814 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
7815
7816         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7817         of section order.
7818
7819         * po/pt_BR.po: Fix typo.
7820
7821 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7822
7823         * iconvdata/Makefile (modules): Add ISO8859-9E.
7824         (distribute): Add iso8859-9e.c.
7825         (gen-8bit-gap-modules): Add iso8859-9e.
7826         * iconvdata/iso8859-9e.c: New file.
7827         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7828         * iconvdata/TESTS: Likewise.
7829         * iconvdata/tst-tables.sh: Likewise.
7830
7831         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7832
7833         * locale/iso-639.def: Add several new entries.
7834
7835 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7836
7837         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7838         void * pointers instead of struct link_map **.
7839         (_dl_scope_free): Change argument type to void *.
7840         * include/link.h (struct link_map): Change type of l_reldeps
7841         to struct link_map_reldeps, move l_reldepsact into that
7842         struct too.
7843         * elf/dl-deps.c: Include atomic.h.
7844         (_dl_map_object_deps): Only change l->l_initfini when it is
7845         fully populated, use _dl_scope_free for freeing it.  Optimize
7846         removal of libs from reldeps by using l_reserved flag, when
7847         some removal is needed, allocate a new list instead of
7848         reallocating and free the old with _dl_scope_free.  Adjust
7849         for l_reldeps and l_reldepsact changes.
7850         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7851         searching in l_initfini and l_reldeps without holding dl_load_lock.
7852         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7853         l_reldepsact changes.
7854         * elf/dl-close.c (_dl_close_worker): Likewise.
7855         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7856
7857 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7858
7859         * iconvdata/Makefile (modules): Add KOI8-RU.
7860         (distribute): Add koi8-ru.c.
7861         (gen-8bit-gap-modules): Add koi8-ru.
7862         * iconvdata/koi8-ru.c: New file.
7863         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7864         * iconvdata/TESTS: Likewise.
7865         * iconvdata/tst-tables.sh: Likewise.
7866
7867         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7868
7869 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7870
7871         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7872         with __warning__/__error__ attributes.
7873         (__warnattr): Define.
7874         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7875         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7876         __warnattr.
7877         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7878         of __*_chk if compile time detectable overflow is found.
7879         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7880         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7881         with __warnattr.
7882         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7883         instead of __*_chk if compile time detectable overflow is found.
7884         (__gets_alias): Rename to...
7885         (__gets_warn): ... this.  Add __warnattr.
7886         (gets): Call __gets_warn instead of __gets_alias.
7887         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7888         aliases with __warnattr.
7889         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7890         time detectable overflow is found.
7891         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7892         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7893         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7894         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7895         __getdomainname_chk_warn): New aliases with __warnattr.
7896         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7897         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7898         __*_chk_warn instead of __*_chk if compile time detectable overflow
7899         is found.
7900         (__getgroups_chk): Rename argument to __listlen from listlen.
7901         (__getwd_alias): Rename to...
7902         (__getwd_warn): ... this.  Add __warnattr.
7903         (getwd): Call __getwd_warn instead of __getwd_alias.
7904         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7905         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7906         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7907         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7908         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7909         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7910         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7911         compile time detectable overflow is found.
7912         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7913         to use __*_chk or not.
7914         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7915         in comparisons which function should be called and in __*_chk*
7916         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7917         detectable overflow is found.
7918         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7919         __*_chk argument.
7920         * debug/tst-chk1.c (do_test): Add a few more tests.
7921
7922 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7923
7924         [BZ #5058]
7925         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7926         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7927         (_nl_unload_domain): Finalize conversions_lock.
7928         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7929         handling table of known conversions.
7930
7931 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7932
7933         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7934         close_not_cancel_no_status instead of close.
7935
7936 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7937
7938         [BZ #5028]
7939         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7940         nrules != 0 for multibyte chars.
7941
7942 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7943
7944         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7945         Provide better error message in case the type is unknown.
7946
7947         [BZ #4963]
7948         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7949         * string/stratcliff.c: Make usable to test wide char functions.
7950         * wcsmbs/wcsatcliff.c: New file.
7951         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7952
7953         [BZ #4972]
7954         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7955         (distribute): Add mac-centraleurope.c.
7956         (gen-8bit-gap-modules): Add mac-centraleurope.
7957         * iconvdata/mac-centraleurope.c: New file.
7958         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7959         * iconvdata/TESTS: Likewise.
7960         * iconvdata/tst-tables.sh: Likewise.
7961
7962         [BZ #5043]
7963         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7964
7965 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7966
7967         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7968         from __x86_64_core_cache_size_half.
7969         (init_cacheinfo): Compute shared cache size for AMD processors with
7970         shared L3 correctly.
7971         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7972         name change.
7973         Patch in large parts by Evandro Menezes.
7974
7975 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7976
7977         * elf/dl-lookup.c (add_dependency): Handle failing memory
7978         allocation for dependency list.  Remove unnecessary check.
7979
7980         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7981         open/close when determining source addresses.
7982
7983         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7984         sha512-crypt, and sha512.
7985         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7986         (distribute): Add sha256.h and sha512.h.
7987         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7988         and call the appropriate code.
7989         * crypt/sha256-crypt.c: New file.
7990         * crypt/sha256.c: New file.
7991         * crypt/sha256.h: New file.
7992         * crypt/sha256c-test.c: New file.
7993         * crypt/sha256test.c: New file.
7994         * crypt/sha512-crypt.c: New file.
7995         * crypt/sha512.c: New file.
7996         * crypt/sha512.h: New file.
7997         * crypt/sha512c-test.c: New file.
7998         * crypt/sha512test.c: New file.
7999
8000 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8001
8002         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8003         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8004         __syslog_chk.
8005
8006 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8007
8008         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8009         %as in fscanf format strings.
8010
8011         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8012         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8013         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8014         Likewise.
8015         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8016         Likewise.
8017
8018         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8019         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8020         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8021         * elf/dl-sym.c (do_sym): Likewise.
8022         * include/link.h (struct link_map): Add l_serial field.
8023         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8024         * elf/dl-lookup.c (add_dependency): Add flags argument.
8025         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8026         flags, use THREAD_GSCOPE_RESET_FLAG before and
8027         THREAD_GSCOPE_SET_FLAG after
8028         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8029         Don't dereference map until it has been found on some list.
8030         If map->l_serial changed, return -1.
8031
8032 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8033
8034         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8035         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8036         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8037         libc_hidden_proto.
8038         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8039         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8040         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8041         add libc_hidden_proto.
8042         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8043         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8044         conformance requested.
8045         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8046         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8047         conformance requested.
8048         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8049         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8050         conformance requested.
8051         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8052         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8053         ISO C99 or POSIX conformance requested.
8054         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8055         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8056         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8057         and __isoc99_vsscanf@@GLIBC_2.7.
8058         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8059         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8060         (tests): Add scanf14.
8061         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8062         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8063         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8064         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8065         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8066         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8067         from using internal headers.
8068         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8069         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8070         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8071         and __isoc99_vswscanf@@GLIBC_2.7.
8072         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8073         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8074         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8075         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8076         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8077         * stdio-common/isoc99_scanf.c: New file.
8078         * stdio-common/isoc99_vsscanf.c: New file.
8079         * stdio-common/isoc99_vscanf.c: New file.
8080         * stdio-common/isoc99_vfscanf.c: New file.
8081         * stdio-common/isoc99_fscanf.c: New file.
8082         * stdio-common/isoc99_sscanf.c: New file.
8083         * wcsmbs/isoc99_fwscanf.c: New file.
8084         * wcsmbs/isoc99_vswscanf.c: New file.
8085         * wcsmbs/isoc99_swscanf.c: New file.
8086         * wcsmbs/isoc99_wscanf.c: New file.
8087         * wcsmbs/isoc99_vwscanf.c: New file.
8088         * wcsmbs/isoc99_vfwscanf.c: New file.
8089         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8090         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8091         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8092         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8093         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8094         * stdio-common/scanf14.c: New test.
8095         * stdio-common/scanf15.c: New test.
8096         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8097         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8098         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8099         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8100         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8101         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8102         __nldbl___isoc99_scanf@@GLIBC_2.7,
8103         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8104         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8105         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8106         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8107         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8108         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8109         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8110         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8111         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8112         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8113         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8114         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8115         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8116         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8117         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8118         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8119         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8120         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8121         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8122         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8123         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8124         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8125         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8126         functions.
8127         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8128         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8129         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8130         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8131         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8132         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8133         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8134         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8135         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8136         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8137         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8138         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8139
8140         * stdio-common/Makefile (tests): Add scanf13.
8141         (scanf13-ENV): New.
8142         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8143         m modifier followed by l.
8144         (STRING_ARG): Add width argument.
8145         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8146         <case L_('C')>: Handle %mlc and %mC.
8147         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8148         arguments.
8149         * stdio-common/scanf13.c: New test.
8150
8151         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8152         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8153
8154 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8155
8156         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8157         type and __THROW marker of splice, vmsplice, and tee.
8158         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8159         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8160         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8161         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8162         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8163         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8164         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8165         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8166         as cancellation points.
8167
8168 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8169
8170         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8171         parse more than three parts of the version number.
8172
8173 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8174
8175         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8176         modifier.  Patch by Jakub Jelinek.
8177
8178 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8179
8180         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8181         call_fallocate in misc subdir.
8182         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8183         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8184         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8185         instead of __fallocate64.
8186         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8187
8188 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8189
8190         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8191         * rt/Makefile (headers): Add bits/mqueue2.h.
8192         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8193         optimizing with GCC and __va_arg_pack_len is defined.
8194         * rt/bits/mqueue2.h: New file.
8195         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8196         (mq_open): New strong_alias.
8197         (__mq_open_2): New function.
8198         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8199         (mq_open): New strong_alias.
8200         (__mq_open_2): New function.
8201         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8202         * Versions.def (librt): Add GLIBC_2.7 version.
8203         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8204         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8205
8206         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8207         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8208         is defined rather than when not C++.
8209         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8210         __openat64_alias): New redirects.
8211         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8212         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8213         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8214         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8215         functions instead of function-like macros.
8216
8217 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8220         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8221         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8222
8223 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8224
8225         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8226         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8227
8228 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8229
8230         * inet/tst-network.c: Increment ERRORS for failing tests.
8231
8232 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8233
8234         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8235         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8236         implement as __extern_always_inline function.
8237         (vsyslog): Define as __extern_always_inline function unconditionally.
8238         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8239         When __va_arg_pack is defined, implement as __extern_always_inline
8240         functions.
8241         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8242         __extern_always_inline functions unconditionally.
8243         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8244         bits/stdio2.h will be included.
8245         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8246         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8247         implement as __extern_always_inline functions.
8248         (vswprintf, vwprintf, vfwprintf): Define as
8249         __extern_always_inline functions unconditionally.
8250         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8251
8252 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8253
8254         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8255         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8256         attribute.
8257         * include/features.h (__USE_EXTERN_INLINES): Define only when
8258         __extern_inline is defined.
8259         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8260         is defined instead of when not __cplusplus.
8261         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8262         is defined instead of when not __cplusplus.
8263         * socket/sys/socket.h: Include bits/socket2.h when
8264         __extern_always_inline is defined instead of when not __cplusplus.
8265         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8266         is defined instead of when not __cplusplus.
8267         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8268         is defined instead of when not __cplusplus.
8269         * string/string.h: Include bits/string3.h when __extern_always_inline
8270         is defined instead of when not __cplusplus.
8271         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8272         is defined instead of when not __cplusplus.
8273         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8274         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8275         is not defined.
8276         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8277         defined __extern_always_inline instead of !defined __cplusplus.
8278         * libio/bits/stdio-ldbl.h: Likewise.
8279         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8280         * misc/bits/syslog.h (syslog): Don't define for C++.
8281         (vsyslog): Use __extern_always_inline function for C++ instead of
8282         a macro.
8283         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8284         whenever that macro is defined.
8285         (vprintf): Don't provide the inline for C++.
8286         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8287         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8288         define the macros for C++.
8289         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8290         __extern_always_inline functions for C++.
8291         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8292         stat64, lstat64, fstat64, fstatat64): Don't define if not
8293         __USE_EXTERN_INLINES.
8294         * wcsmbs/bits/wchar2.h: Fix #error message.
8295         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8296         (vswprintf, vwprintf, vfwprintf): Define using
8297         __extern_always_inline functions for C++.
8298         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8299         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8300         strncpy, strcat, strncat): Define as __extern_always_inline
8301         functions instead of macros for C++.
8302         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8303         defined __extern_inline.
8304         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8305         to __extern_inline whenever that macro is defined.
8306         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8307         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8308         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8309         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8310         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8311         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8312         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8313         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8314         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8315         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8316         prototypes.  Only provide __extern_inline routines if
8317         __USE_EXTERN_INLINES.
8318         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8319         tests.
8320         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8321         For now avoid some *printf tests in C++.  Skip all testing
8322         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8323         is not.
8324         * debug/tst-chk4.cc: New file.
8325         * debug/tst-chk5.cc: New file.
8326         * debug/tst-chk6.cc: New file.
8327         * debug/tst-lfschk4.cc: New file.
8328         * debug/tst-lfschk5.cc: New file.
8329         * debug/tst-lfschk6.cc: New file.
8330         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8331         prototypes in C++.
8332         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8333         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8334         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8335
8336 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8337
8338         * po/cs.po: Update from translation team.
8339
8340 2007-09-11  Roland McGrath  <roland@redhat.com>
8341
8342         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8343         compiling.
8344
8345 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8346
8347         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8348
8349 2007-09-05  Roland McGrath  <roland@redhat.com>
8350
8351         * manual/signal.texi (Signaling Another Process): Typo fix.
8352         From Karl Berry <karl@freefriends.org>.
8353
8354 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8355
8356         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8357         zero if not defined.
8358         (make_request): Recognize optimistic addresses and treat them like
8359         deprecated addresses.
8360         Reported by Neil Horman <nhorman@redhat.com>.
8361
8362 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8363
8364         * nscd/connections.c (send_ro_fd): Also transfer file size.
8365         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8366         file size don't call fstat.
8367
8368         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8369         ahead and map the file.  This should always be correct and we can
8370         catch problems later.
8371
8372 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8373
8374         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8375         prototypes.
8376         (__fread_alias, __fread_unlocked_alias): New aliases.
8377         (fread): New extern inline.
8378         (fread_unlocked): Likewise.  Undef macro before definition of
8379         the inline function.
8380         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8381         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8382         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8383         and __fread_unlocked_chk@@GLIBC_2.7.
8384         * debug/fread_chk.c: New file.
8385         * debug/fread_u_chk.c: New file.
8386         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8387
8388 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8389
8390         * sysdeps/unix/sysv/linux/syscalls.list
8391         (personality): Change caller to EXTRA.
8392
8393 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8394
8395         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8396         to keep gcc quiet.
8397         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8398
8399         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8400         NDEBUG is defined.
8401
8402         * Makerules: Use -p option with mkdir.
8403
8404         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8405         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8406         (_xdr_directory_obj): Likewise.
8407         (xdr_entry_obj): Likewise.
8408         (xdr_group_obj): Likewise.
8409         (xdr_link_obj): Likewise.
8410         (xdr_table_obj): Likewise.
8411         (_xdr_nis_result): Likewise.
8412         (_xdr_ns_request): Likewise.
8413         (_xdr_ib_request): Likewise.
8414         (_xdr_nis_taglist): Likewise.
8415         (xdr_cback_data): Likewise.
8416         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8417         (xdr_ypresp_maplist): Likewise.
8418
8419         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8420
8421         * posix/regex_internal.h: Prevent some declarations and definitions
8422         to be seen when used in tests.
8423
8424         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8425         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8426
8427         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8428
8429         * config.make.in (datarootdir): Add to shut up configure.
8430
8431         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8432         associativity for fully-associative caches.
8433
8434         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8435         requests.  Fill on more associativity values for L2.
8436         Patch mostly by Evandro Menezes.
8437
8438 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8439
8440         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8441         (_libc_vdso_platform_setup): Avoid using exported variable by using
8442         alias.
8443
8444         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8445
8446         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8447         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8448         defined.
8449
8450 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8451
8452         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8453         align stack for call if pltexit is to be used.
8454
8455         [BZ #3924]
8456         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8457         align for function call in case pltexit has to be called later.
8458
8459         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8460         implicit atomic operation when storing function pointer.
8461         (_dl_runtime_profile): Likewise.
8462
8463 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8464
8465         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8466         NIS_NOTFOUND.
8467
8468 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8469
8470         [BZ #4566]
8471         * string/strtok.c: Fix typo in comment.
8472
8473         [BZ #4582]
8474         * debug/segfault.c: Fix typos in comments.
8475
8476         [BZ #4588]
8477         * stdio-common/tempnam.c: Fix comment, it is not checked that
8478         TMPDIR points to a writable directory.
8479
8480         [BZ #4726]
8481         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8482         memory allocated for the name server address.
8483
8484         [BZ #4946]
8485         * nscd/connections.c (handle_request): Using sendfile always
8486         requires that mmap is used for the database.
8487         Patch by Petr Baudis <pasky@suse.cz>.
8488
8489         [BZ #4905]
8490         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8491         suddenly has two or more addresses, ignore it and remove the old
8492         entry.
8493
8494         [BZ #4814]
8495         * resolv/res_hconf.c: Prepare for compiling outside libc.
8496         * nscd/res_hconf.c: New file.
8497         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
8498         the new file.
8499         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8500         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8501
8502         * nscd/hstcache.c (cache_addhst): Minimal optimization.
8503
8504         [BZ #4925]
8505         * debug/pcprofiledump.c: Turn on internationalization by calling
8506         setlocale.  Patch mostly by Benno Schulenberg.
8507
8508         [BZ #4936]
8509         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8510         the state.
8511         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8512         * iconvdata/bug-iconv5.c: New file.
8513
8514 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
8515
8516         [BZ #4896]
8517         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8518         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8519         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8520         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8521         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8522         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8523         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8524         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8525
8526 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8527
8528         [BZ #4937]
8529         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8530         lookup loop.  Suggested by John Reiser.
8531
8532 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
8533
8534         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8535
8536 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
8537
8538         * csu/libc-start.c: Don't handle VDSO_SETUP here.
8539         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8540         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8541         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
8542         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8543         to...
8544         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
8545
8546 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
8547
8548         * po/nl.po: Update from translation team.
8549
8550 2007-08-16  Andreas Jaeger  <aj@suse.de>
8551
8552         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8553         Reported by Peter Festner <peter.festner@ewetel.net>.
8554
8555 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8556
8557         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8558
8559 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
8560
8561         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8562         to check for undefined symbols.
8563
8564         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8565         If the syscall fails, set errno to the actual returned error number
8566         rather than EINVAL.
8567         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8568         arguments are incorrect, set errno to EINVAL, if the syscall
8569         fails, set errno to the actual returned error number.
8570
8571         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8572         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8573
8574         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8575         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
8576         file.
8577         (ASI_PNF, ASI_BLK_P): Don't define.
8578         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8579         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
8580         file.
8581         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8582         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
8583         file.
8584
8585 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
8586
8587         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8588         FE_UNDERFLOW on Niagara CPUs.
8589
8590         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8591         exceptions.
8592
8593 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
8594
8595         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8596         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8597         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8598         flush should be used or not inside of the function.
8599         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8600
8601         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8602         __thread_start): Use HIDDEN_JUMPTARGET.
8603         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8604         __thread_start): Likewise.
8605         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8606
8607         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8608         Add libc_hidden_proto.
8609         (STRTOF): Add libc_hidden_proto.
8610         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8611         (strtold_l, wcstold_l): Use them as second argument for
8612         long_double_symbol.
8613
8614 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8615
8616         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
8617
8618 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8619
8620         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
8621
8622 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
8623
8624         * po/bg.po: New file.  From the translation team.
8625
8626 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8627
8628         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8629         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8630         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8631         when each feature was introduced.
8632
8633         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8634         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8635         (CHECK_HASH): New macro.
8636         (PREPARE_VERSION): Use it.
8637
8638         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8639         prototype if not __ASSUME_PSELECT.
8640         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8641         prototype if not __ASSUME_PPOLL.
8642
8643         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8644
8645         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8646         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8647         is defined.
8648
8649 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
8650
8651         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8652         (_libc_vdso_platform_setup): If vDSO is not available point
8653         __vdso_gettimeofday to the vsyscall.
8654         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8655         __vdso_gettimeofday instead of vsyscall.
8656
8657 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
8658
8659         * nscd/servicescache.c: Include kernel-features.h.
8660         * nscd/gai.c: Likewise.
8661         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8662         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8663         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8664         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8665         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8666         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8667         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8668         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8669         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8670
8671 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8672
8673         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8674         and _dl_get_origin defines anymore.
8675
8676         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8677         Build fix for systems which might lack POSIX timer support.
8678
8679         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8680         (_libc_vdso_platform_setup): Mangle function pointers before storing
8681         them.
8682         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8683         Demangle vdso pointer before use.
8684         (INTERNAL_VSYSCALL): Likewise.
8685
8686         * elf/cache.c (primes): Mark as const.
8687         Noted by Roland McGrath.
8688
8689 2007-08-01  Andreas Jaeger  <aj@suse.de>
8690             Jakub Jelinek  <jakub@redhat.com>
8691
8692         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8693         (options): Add option.
8694         (parse_opt): Handle option.
8695         (manual_link): Adjust process_file caller.  Call implicit_soname.
8696         (search_dir): Formatting.  Use and populate auxiliary cache.
8697         (main): Load and save auxiliary cache.
8698         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
8699         stat64 from fstat64 to caller.
8700         (implicit_soname): New function.
8701         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8702         leave *soname as NULL.
8703         * elf/cache.c: Include libgen.h.
8704         (print_entry, print_cache, compare, save_cache, add_to_cache):
8705         Formatting and cleanups.
8706         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8707         aux_cache_file): New structures.
8708         (AUX_CACHEMAGIC): Define.
8709         (primes): New array.
8710         (aux_hash_size, aux_hash): New variables.
8711         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8712         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8713         load_aux_cache, save_aux_cache): New functions.
8714         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
8715         (init_aux_cache, search_aux_cache, add_to_aux_cache,
8716         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
8717         (process_file): Adjust prototype.
8718
8719 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
8720
8721         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
8722         with __need_size_t.
8723
8724 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
8725
8726         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
8727         r_found_version structure as second parameter.
8728         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
8729         (_dl_vdso_vsym): Change type of second parameter accordingly.
8730         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
8731         (_libc_vdso_platform_setup): Adjust.
8732         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8733         (_libc_vdso_platform_setup): Likewise.
8734
8735         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
8736         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
8737         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
8738         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
8739         * csu/libc-start.c: Pretty printing.
8740         Use VDSO_SETUP if defined.
8741         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
8742         and let generic code call into _libc_vdso_platform_setup.
8743         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
8744         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
8745         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
8746         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
8747         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
8748         for GLIBC_PRIVATE.
8749         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
8750         (sysdep_rountines): Add dl-vdso.
8751
8752         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
8753         of routines.
8754
8755         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
8756         attribute_hidden to __vdso_gettimeofday prototype.
8757
8758 2007-08-12  Roland McGrath  <roland@redhat.com>
8759
8760         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
8761         From: Karl Berry <karl@freefriends.org>.
8762
8763 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
8764
8765         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
8766         an atime update for the files we read.
8767
8768 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8769
8770         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
8771
8772         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
8773         instead of mkstemp.
8774
8775         * misc/Makefile (routines): Add mkostemp and mkostemp64.
8776         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
8777         * misc/mkostemp.c: New file.
8778         * misc/mkostemp64.c: New file.
8779         * stdlib/stdlib.h: Declare the new functions.
8780         * sysdeps/posix/tempname.c: Add new parameter which is added to
8781         the flags for open.  Remove __GT_BIGFILE handling.
8782         * stdio-common/tempname.c: Likewise.
8783         * include/stdio.h: Adjust __gen_tempname prototype.
8784         Renumber __GT_* constants.
8785         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8786         * misc/mkdtemp.c: Likewise.
8787         * misc/mkstemp.c: Likewise.
8788         * misc/mkstemp64.c: Likewise.
8789         * misc/mktemp.c: Likewise.
8790         * stdio-common/tempnam.c: Likewise.
8791         * stdio-common/tmpfile.c: Likewise.
8792         * stdio-common/tmpfile64.c: Likewise.
8793         * stdio-common/tmpnam.c: Likewise.
8794         * stdio-common/tmpnam_r.c: Likewise.
8795
8796 2007-08-10  Roland McGrath  <roland@frob.com>
8797
8798         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8799         New macros.
8800         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8801         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8802
8803 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
8804
8805         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8806         possible.
8807         * nss/nss_files/files-alias.c (internal_setent): Likewise.
8808         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8809         * nss/nss_files/files-have_o_cloexec.c: New file.
8810
8811         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8812         available.
8813
8814 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
8815
8816         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8817         ___new_wcstold_l): New weak aliases.
8818         (strtold_l, wcstold_l): Use them as second argument for
8819         long_double_symbol.
8820
8821 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8822
8823         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8824         register in test for error.
8825
8826         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8827         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8828
8829         * po/sv.po: Update from translation team.
8830
8831 2007-08-06  Roland McGrath  <roland@redhat.com>
8832
8833         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8834         Remove __strto*_l inlines.
8835         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8836         * stdlib/strtod.c: Add libc_hidden_def.
8837         * stdlib/strtod_l.c: Likewise.
8838         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8839         for __new_strtold and __new_wcstold.
8840         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8841         __STRTOF, STRTOF.
8842         * stdlib/strtol.c: Add libc_hidden_def.
8843         * stdlib/strtol_l.c: Likewise.
8844         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8845         strtoq.
8846
8847         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8848
8849         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8850         * scripts/data/localplt-generic.data: ... here.
8851         * elf/Makefile (check-data): Get generic file if no other.
8852         ($(objpfx)check-localplt.out): Make target unconditional.
8853
8854         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8855         Use ElfW(Nhdr).
8856
8857 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8858
8859         * po/zh_CN.po: Updated translation from translation team.
8860
8861 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8862
8863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8864         Don't use CGOTSETUP and CGOTRESTORE macros.
8865
8866 2007-08-04  Roland McGrath  <roland@redhat.com>
8867
8868         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8869
8870 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8871
8872         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8873         __extension__ around the whole statement expression.
8874
8875 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8876
8877         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8878         elements during initialization.
8879
8880         * po/pl.po: Updated translation from translation team.
8881         * po/tr.po: Likewise.
8882         * po/nl.po: Likewise.
8883
8884 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8885
8886         * rt/aio.h: Add __nonnull attributes.
8887
8888 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8889
8890         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8891         * stdlib/Makefile (tests): Add tst-strtod5.
8892         (tst-strtod5-ENV): New.
8893         * stdlib/tst-strtod5.c: New file.
8894
8895         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8896         failed.
8897         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8898         on failure.
8899
8900         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8901         allocated.
8902
8903 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8904
8905         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8906         numbers.
8907
8908 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8909
8910         * io/Makefile (aux): Add have_o_cloexec.
8911         * include/fcntl.h: Declare __have_o_cloexec.
8912         * io/have_o_cloexec.c: New file.
8913         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8914         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8915         fcntl call if not necessary.
8916         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8917         of local variable.
8918
8919         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8920         Avoid memset, add explicit initialization.
8921         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8922         to the end and change into zero-sized array.
8923         Move lock member to fill a hole on 64-bit platforms.
8924
8925         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8926         inline functions.
8927         * include/stdlib.h: Add __strto*_internal prototypes here.
8928         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8929         inline functions.
8930         * include/wchar.h: Add __wcsto*_internal prototypes.
8931         * sysdeps/generic/inttypes.h: No need to protect the declaration
8932         of the __strto*_internal and __wcsto*_internal members here.
8933
8934         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8935
8936 2007-08-02  Roland McGrath  <roland@redhat.com>
8937
8938         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8939         $(inst_bindir)/getconf if possible.
8940
8941         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8942         (generated): Add it.
8943         ($(inst_libexecdir)/getconf): Use it.
8944
8945 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8946
8947         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8948         /proc is faster and sufficient.  /sys is still needed for
8949         __get_nprocs_conf.
8950
8951 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8952
8953         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8954         syscall as __fallocate64.
8955         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8956         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8957
8958 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8959
8960         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8961         value.
8962
8963         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8964         if off_t is different rank from size_t.
8965
8966         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8967         uw_frame_state_for): Avoid type punning warnings.
8968         * sysdeps/generic/unwind-dw2-fde-glibc.c
8969         (_Unwind_IteratePhdrCallback): Likewise.
8970         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8971         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8972         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8973         pointers.
8974
8975 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8976
8977         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8978         total processors using sysfs.
8979         (__get_nprocs): Use sysfs to determine which processors are online.
8980
8981 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8982
8983         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8984         syscall arguments count.
8985
8986         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8987
8988 2007-07-30  Roland McGrath  <roland@redhat.com>
8989
8990         * manual/libc.texinfo: Update copyrights, formatting magic, and
8991         @dircategory.  From Karl Berry <karl@freefriends.org>.
8992
8993 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8994
8995         [BZ #4860]
8996         * io/Makefile (headers): Add bits/fcntl2.h.
8997
8998         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8999         using gcc builtin.
9000         (__CPU_EQUAL_S): Likewise.
9001
9002         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9003         (tests): Add tst-cpuset.
9004         * posix/sched_cpualloc.c: New file.
9005         * posix/sched_cpufree.c: New file.
9006         * posix/tst-cpuset.c: New file.
9007         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9008         GLIBC_2.7.
9009         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9010         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9011         macros.  Define CPU_*_S macros.
9012
9013 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9014
9015         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9016         entry.
9017
9018         [BZ #4858]
9019         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9020         #.0g and value rounded to 1.0.
9021         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9022
9023 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9024
9025         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9026         for int_frac_digits and frac_digits.
9027
9028         * login/logout.c (logout): Avoid aliasing violation.
9029         * login/logwtmp.c (logwtmp): Likewise.
9030
9031         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9032
9033         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9034         to avoid warning.
9035         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9036         warning.
9037         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9038         warning.
9039         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9040         to avoid warnings.
9041
9042         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9043         void **.
9044         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9045
9046         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9047         char * to avoid warning.
9048         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9049
9050         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9051
9052         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9053         allocate_arrays): Cast second argument to charmap_find_symbol
9054         to char * to avoid warnings.
9055
9056         * locale/programs/repertoire.c (repertoire_new_char): Change
9057         from_nr, to_nr and cnt to unsigned long, adjust printf format
9058         string.
9059
9060         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9061         Cast second argument to new_element to char * to avoid warnings.
9062
9063         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9064
9065         * intl/gettextP.h (struct loaded_domain): Change plural to const
9066         struct expression *.
9067         * intl/plural-eval.c (plural_eval): Change first argument to
9068         const struct expression *.
9069         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9070         argument to const struct expression **.
9071         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9072         prototypes.
9073         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9074         in call to __gettext_free_exp.
9075
9076         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9077         unitialized wstring/wpattern var warnings.
9078
9079         * posix/runtests.c (struct a_test): Make data field const char *.
9080
9081         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9082         vars if not LDBL_MANT_DIG >= 106.
9083
9084         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9085
9086         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9087         __find_specmb to avoid warning.
9088
9089         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9090
9091         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9092         to avoid warnings.
9093
9094         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9095         initializer.
9096
9097         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9098         tv var when it will be actually used.
9099
9100         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9101         to avoid warnings.
9102
9103         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9104         char array resp. pointer.
9105         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9106         char array.
9107         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9108         to const unsigned char **.
9109         (ucs4_to_cns11643): Change second argument to unsigned char *.
9110         * iconvdata/euc-tw.c (BODY): Change endp type to
9111         const unsigned char *.
9112         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9113         to unsigned char *.
9114         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9115         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9116         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9117         types to unsigned char pointers/arrays instead of char.
9118         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9119         to unsigned char *.
9120         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9121         * iconvdata/jis0212.h: Include assert.h.
9122         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9123         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9124         of trying to handle that.
9125         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9126         shut up a warning.
9127         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9128         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9129         two dimensional const unsigned char arrays.
9130         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9131         Initialize endp to inptr to shut up a warning.
9132
9133 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9134
9135         [BZ #4772]
9136         * time/strptime_l.c (__strptime_internal): Silently ignore
9137         strftime modifiers and field width in recursive calls.
9138
9139         * include/time.h (enum ptime_locale_status): Remove.
9140         (__strptime_internal): Remove decided and era_cnt arguments,
9141         add statep argument.
9142         * time/strptime_l.c (__strptime_internal): Remove decided
9143         and era_cnt arguments, add statep argument.  Don't recompute
9144         any fields in recursive calls, only update caller's tm
9145         and state, if recursive call fails, don't change tm nor
9146         any state.
9147         (get_alt_number): Adjust.
9148         (recursive): Adjust caller.
9149         (strptime): Likewise.
9150         * time/strptime.c (strptime): Likewise.
9151
9152 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9153
9154         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9155         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9156         if from and to charsets are the same.
9157         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9158         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9159         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9160
9161 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9162
9163         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9164         Don't define wint_t when __need_mbstate_t unless it
9165         is necessary.
9166         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9167         in the typedef if possible.
9168         * wctype/wctype.h (wint_t): Define by including
9169         wchar.h with __need_wint_t instead of including stddef.h
9170         with __need_wint_t and as fallback definining it ourselves.
9171         * iconv/gconv.h (__need_wint_t): Define before including
9172         wchar.h.
9173         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9174         or _GLIBCPP_USE_WCHAR_T.
9175         (__need_wchar_t): Don't define
9176         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9177         (__need_wint_t): Don't define before including stddef.h,
9178         define before including wchar.h only if _LIBC or
9179         _GLIBCPP_USE_WCHAR_T.
9180         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9181         * sysdeps/mach/hurd/_G_config.h: Likewise.
9182         * sysdeps/generic/_G_config.h: Likewise.
9183         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9184         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9185         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9186         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9187
9188 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9189
9190         * sysdeps/posix/posix_fallocate64.c: Undefine
9191         __posix_fallocate64_l64 before alias handling.
9192         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9193         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9194         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9195         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9196
9197         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9198
9199 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9200
9201         * locale/programs/ld-collate.c (atwc): New variable.
9202         (add_to_tablewc): New toplevel function, moved from collate_output.
9203         (collate_output): Remove add_to_tablewc nested function.
9204
9205         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9206         (name_insert): New function.
9207         (write_output): Remove hash_table and hash_size vars and name_insert
9208         nested function.
9209
9210 2007-07-24  Roland McGrath  <roland@redhat.com>
9211
9212         * Makerules (install-others-programs-nosubdir): New target.
9213         (install-no-libc.a-nosubdir): Depend on it.
9214
9215         * iconv/Makefile (install-others-programs): Set this instead of
9216         install-others.
9217         * login/Makefile (install-others-programs): Likewise.
9218         * posix/Makefile (install-others-programs): Likewise.
9219
9220         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9221         dependencies.
9222
9223 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9224
9225         * io/Makefile (tests): Add tst-posix_fallocate.
9226         * io/tst-posix_fallocate.c: New file.
9227
9228         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9229         __ASSUME_FALLOCATE.
9230
9231 2007-07-22  Roland McGrath  <roland@frob.com>
9232
9233         * hurd/getdport.c: Add missing copyright year update.
9234
9235         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9236         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9237
9238 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9239
9240         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9241
9242         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9243         O_CLOEXEC is needed.
9244         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9245         Avoid additional fcntl to set O_CLOEXEC if not needed.
9246         * nis/nss_compat/compat-initgroups.c: Likewise.
9247         * nis/nss_compat/compat-pwd.c: Likewise.
9248         * nis/nss_compat/compat-spwd.c: Likewise.
9249
9250 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9251
9252         [BZ #3665]
9253         * manual/errno.texi: Change ECANCELED value to 119.
9254
9255         [BZ #4610]
9256         * mach/lock-intern.h: Include <sys/cdefs.h>.
9257
9258         [BZ #4178]
9259         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9260         reading A.
9261
9262         [BZ #4126]
9263         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9264         to __sigsuspend.
9265
9266         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9267
9268 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9269
9270         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9271         `__ASSEMBLER__'.
9272         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9273
9274 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9275
9276         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9277         descriptor received from nscd.
9278
9279         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9280
9281         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9282         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9283         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9284         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9285         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9286         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9287
9288 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9289
9290         [BZ #4816]
9291         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9292
9293         [BZ #4813]
9294         * login/forkpty.c (forkpty): Close master and slave fds on
9295         fork failure.  Patch by
9296         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9297
9298 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9299
9300         * include/features.h (__USE_ISOC95): New define.
9301         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9302         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9303         for -std=iso9899:199409.
9304         * CONFORMANCE: Remove comments about unsupported AMD1.
9305
9306 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9307
9308         * sysdeps/ia64/sched_cpucount.c: New file.
9309         * sysdeps/powerpc/sched_cpucount.c: New file.
9310
9311         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9312         __BEGIN_DECLS/__END_DECLS around the prototype.
9313         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9314         pointer to const cpu_set_t.
9315
9316         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9317         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9318         __need_size_t and include stddef.h.
9319         * sysvipc/sys/msg.h: Likewise.
9320         * posix/sched.h: Likewise.
9321         * hurd/hurd/signal.h (__need_size_t): Define.
9322
9323         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9324         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9325         no longer defines wint_t or wchar_t.
9326
9327         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9328         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9329         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9330         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9331         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9332         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9333         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9334         * debug/printf_chk.c (__printf_chk): Likewise.
9335         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9336         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9337
9338         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9339         Define.
9340
9341         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9342         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9343
9344 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9345
9346         [BZ #4792]
9347         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9348         * malloc/malloc.h (realloc): Likewise.
9349
9350         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9351         if one of proc_file_chain streams has that fileno.
9352         * stdio-common/Makefile (tests): Add tst-popen2.
9353         * stdio-common/tst-popen2.c: New test.
9354
9355 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9356
9357         * elf/ldconfig.c: Allow GPLv2 or any later version.
9358         * elf/readlib.c: Likewise.
9359         * elf/chroot_canon.c: Likewise.
9360         * elf/cache.c: Likewise.
9361         * nscd/mem.c: Likewise.
9362         * nscd/getpwuid_r.c: Likewise.
9363         * nscd/grpcache.c: Likewise.
9364         * nscd/aicache.c: Likewise.
9365         * nscd/getsrvbynm_r.c: Likewise.
9366         * nscd/nscd.c: Likewise.
9367         * nscd/servicescache.c: Likewise.
9368         * nscd/getsrvbypt_r.c: Likewise.
9369         * nscd/initgrcache.c: Likewise.
9370         * nscd/gethstbyad_r.c: Likewise.
9371         * nscd/gethstbynm2_r.c: Likewise.
9372         * nscd/getgrnam_r.c: Likewise.
9373         * nscd/nscd_setup_thread.c: Likewise.
9374         * nscd/getpwnam_r.c: Likewise.
9375         * nscd/gai.c: Likewise.
9376         * nscd/connections.c: Likewise.
9377         * nscd/dbg_log.c: Likewise.
9378         * nscd/cache.c: Likewise.
9379         * nscd/hstcache.c: Likewise.
9380         * nscd/nscd_conf.c: Likewise.
9381         * nscd/getgrgid_r.c: Likewise.
9382         * nscd/pwdcache.c: Likewise.
9383         * catgets/gencat.c: Likewise.
9384         * locale/programs/linereader.h: Likewise.
9385         * locale/programs/locarchive.c: Likewise.
9386         * locale/programs/ld-paper.c: Likewise.
9387         * locale/programs/locfile-kw.h: Likewise.
9388         * locale/programs/ld-address.c: Likewise.
9389         * locale/programs/xmalloc.c: Likewise.
9390         * locale/programs/ld-time.c: Likewise.
9391         * locale/programs/localedef.c: Likewise.
9392         * locale/programs/simple-hash.c: Likewise.
9393         * locale/programs/xstrdup.c: Likewise.
9394         * locale/programs/ld-numeric.c: Likewise.
9395         * locale/programs/locfile-kw.gperf: Likewise.
9396         * locale/programs/ld-collate.c: Likewise.
9397         * locale/programs/charmap-kw.gperf: Likewise.
9398         * locale/programs/charmap.h: Likewise.
9399         * locale/programs/charmap-kw.h: Likewise.
9400         * locale/programs/config.h: Likewise.
9401         * locale/programs/locfile.c: Likewise.
9402         * locale/programs/ld-ctype.c: Likewise.
9403         * locale/programs/charmap.c: Likewise.
9404         * locale/programs/ld-messages.c: Likewise.
9405         * locale/programs/repertoire.h: Likewise.
9406         * locale/programs/locale.c: Likewise.
9407         * locale/programs/ld-name.c: Likewise.
9408         * locale/programs/linereader.c: Likewise.
9409         * locale/programs/locfile.h: Likewise.
9410         * locale/programs/3level.h: Likewise.
9411         * locale/programs/ld-monetary.c: Likewise.
9412         * locale/programs/ld-measurement.c: Likewise.
9413         * locale/programs/charmap-dir.c: Likewise.
9414         * locale/programs/ld-identification.c: Likewise.
9415         * locale/programs/localedef.h: Likewise.
9416         * locale/programs/charmap-dir.h: Likewise.
9417         * locale/programs/repertoire.c: Likewise.
9418         * locale/programs/simple-hash.h: Likewise.
9419         * locale/programs/ld-telephone.c: Likewise.
9420         * locale/programs/locale-spec.c: Likewise.
9421         * locale/programs/locfile-token.h: Likewise.
9422         * posix/getconf.c: Likewise.
9423         * iconv/dummy-repertoire.c: Likewise.
9424         * iconv/iconv_charmap.c: Likewise.
9425         * iconv/iconvconfig.c: Likewise.
9426         * iconv/iconv_prog.c: Likewise.
9427         * malloc/memusagestat.c: Likewise.
9428         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9429
9430 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9431
9432         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9433         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9434         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9435         check for the first argument.
9436
9437 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9438
9439         [BZ #4775]
9440         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9441         (__tgmath_real_type): Fix if expr is const int or other const
9442         qualified integral type.
9443         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9444         expressions and handle const qualified arguments.
9445         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9446         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9447         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9448         statement expressions.
9449         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9450         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9451         (__TGMATH_UNARY_IMAG): Define.
9452         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9453         * math/Makefile (tests): Add test-tgmath2.
9454         (CFLAGS-test-tgmath2.c): Add.
9455         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9456         count_cfloat, count_cldouble): New variables.
9457         (NCCALLS): Define.
9458         (main): Check number of complex calls as well.
9459         (F(compile_test)): Add complex tests and tests with const qualified
9460         arguments.
9461         (y, z, ccount): Define.
9462         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9463         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9464         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9465         F(cproj)): New functions.
9466         * math/test-tgmath2.c: New test.
9467
9468 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9469
9470         [BZ #4776]
9471         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9472         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9473         instead output ".".
9474         * dlfcn/Makefile (distribute): Add glreflib3.c.
9475         (module-names): Add glreflib3.
9476         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9477         glreflib1.so.
9478         (LDFLAGS_glreflib3.so): New.
9479         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9480         glreflib1.so.
9481         * dlfcn/glreflib3.c: New file.
9482
9483         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9484         returned -1, return NULL.
9485         * intl/explodename.c (_nl_explode_name): Return -1 if
9486         _nl_normalize_codeset failed.
9487
9488 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9489
9490         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9491         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
9492         and avoid branch misspredicts for > 31 bytes memset case.
9493         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9494         Remove toc ref to __cache_line_size.
9495
9496         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9497         to get ISA-V2.0 branch hints.
9498         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9499         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9500         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9501         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9502         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9503         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9504         Remove toc ref to __cache_line_size.
9505
9506         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9507         Include math_ldbl_opt.h.
9508
9509 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
9510
9511         [BZ #4773]
9512         * time/strptime_l.c (__strptime_internal): Implement greedy
9513         matching of weekday and month names.
9514
9515 2007-07-09  Roland McGrath  <roland@redhat.com>
9516
9517         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9518         (ELF_NOTE_ABI): Use it.
9519         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9520
9521 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9524         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9525
9526 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
9527
9528         [BZ #4745]
9529         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9530         in loop to look for conversion specifier to avoid testing of
9531         wrong errno value.
9532         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9533         * stdio-common/bug18.c: New file.
9534         * stdio-common/bug18a.c: New file.
9535         * stdio-common/bug19.c: New file.
9536         * stdio-common/bug19a.c: New file.
9537
9538 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
9539
9540         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9541         running awk script.
9542
9543 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
9544
9545         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9546         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
9547         Return NULL if mmap failed instead of asserting it does not.
9548         (calloc): Check for integer overflow.
9549
9550         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9551         than LONG_MAX / 10.
9552
9553 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
9554
9555         [BZ #4702]
9556         * nis/nss-default.c: Include errno.h.
9557         (init): Preserve errno.
9558
9559 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
9560
9561         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9562
9563 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
9564
9565         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9566
9567 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9568
9569         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9570
9571 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9572
9573         * sysdeps/s390/dl-procinfo.c: New file.
9574         * sysdeps/s390/dl-procinfo.h: New file.
9575         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9576
9577 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
9578
9579         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9580         in PT_NOTE segments with multiple notes.
9581         * elf/readelflib.c (process_elf_file): Likewise.
9582
9583 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
9584
9585         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9586         ISO C compliant.
9587
9588 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9589
9590         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9591
9592 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
9593
9594         * include/link.h: Don't include rtld-lowlevel.h.
9595         (struct link_map): Remove l_scope_lock.
9596         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9597         (_dl_scope_free_list): New field (variable) in _rtld_global.
9598         (DL_LOOKUP_SCOPE_LOCK): Remove.
9599         (_dl_scope_free): New prototype.
9600         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9601         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9602         (_dl_profile_fixup): Likewise.
9603         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
9604         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9605         THREAD_GSCOPE_RESET_FLAG around it.
9606         * elf/dl-close.c (_dl_close_worker): Don't use
9607         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
9608         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
9609         scopes were queued or if l_scope_mem has been abandoned.
9610         * elf/dl-open.c (_dl_scope_free): New function.
9611         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
9612         * elf/dl-support.c (_dl_scope_free_list): New variable.
9613         * elf/dl-lookup.c (add_dependency): Remove flags argument.
9614         Remove DL_LOOKUP_SCOPE_LOCK handling.
9615         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
9616         handling.
9617         * elf/dl-object.c (_dl_new_object): Don't use
9618         __rtld_mrlock_initialize.
9619
9620 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
9621
9622         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9623         to fill in holes
9624         (rtld_global_ro): Likewise.
9625
9626 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9627
9628         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9629         Move PT_LOAD checking to...
9630         (_dl_addr_inside_object): ... here, new function.
9631         * elf/dl-sym.c (do_sym): If not l_contiguous,
9632         call _dl_addr_inside_object.
9633         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9634         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9635         * elf/dl-open.c (dl_open_worker): Likewise.
9636         (_dl_addr_inside_object): New function if IS_IN_rtld.
9637         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9638         holes are present or are PROT_NONE protected.
9639         * include/link.h (struct link_map): Add l_contiguous field.
9640         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9641
9642 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9643             Tomas Janousek  <tjanouse@redhat.com>
9644             Ulrich Drepper  <drepper@redhat.com>
9645
9646         [BZ #4647]
9647         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
9648         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9649         socket.
9650         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
9651         unused member a bitmap.
9652         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9653         servers are configured.
9654
9655 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
9656
9657         * elf/rtld.c (dl_main): Don't call init_tls more than once.
9658
9659 2007-06-17  Andreas Schwab  <schwab@suse.de>
9660
9661         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9662
9663 2007-06-16  Andreas Jaeger  <aj@suse.de>
9664
9665         [BZ #4125]
9666         * sysdeps/unix/sysv/linux/sys/ptrace.h
9667         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9668         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9669         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9670         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9671         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9672         Define.
9673         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9674         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9675         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9676         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9677
9678 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
9679
9680         [BZ #4599]
9681         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9682         determining whether there are IPv4/IPv6 addresses, ignore loopback
9683         addresses.
9684
9685 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9686
9687         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9688         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9689         as the return type.  Change type of "r" variable to CMPtype.
9690         * soft-fp/eqsf2.c (__eqsf2): Likewise.
9691         * soft-fp/eqtf2.c (__eqtf2): Likewise.
9692         * soft-fp/gedf2.c (__gedf2): Likewise.
9693         * soft-fp/gesf2.c (__gesf2): Likewise.
9694         * soft-fp/getf2.c (__getf2): Likewise.
9695         * soft-fp/ledf2.c (__ledf2): Likewise.
9696         * soft-fp/lesf2.c (__lesf2): Likewise.
9697         * soft-fp/letf2.c (__letf2): Likewise.
9698         * soft-fp/unorddf2 (__unorddf2): Likewise.
9699         * soft-fp/unordsf2 (__unordsf2): Likewise.
9700         * soft-fp/unordtf2 (__unordtf2): Likewise.
9701
9702 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
9703
9704         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9705         make sure gcc doesn't mess around with this.
9706
9707 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9708
9709         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9710
9711 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
9712
9713         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9714         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
9715         at most once per _dl_close_worker.
9716
9717 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
9718
9719         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
9720         __sched_cpucount as const.
9721         * posix/sched_cpucount.c: Adjust.
9722
9723         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
9724         instruction for counting bits.
9725         * sysdeps/x86_64/sched_cpucount.c: New file.
9726
9727 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
9728
9729         * configure.in: Avoid variable named BASH.
9730         * config.make.in: Likewise.
9731         Patch in part by Mike Frysinger.
9732
9733 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
9734
9735         [BZ #4586]
9736         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
9737         pseudo-zeros as zero.
9738         * sysdeps/x86_64/ldbl2mpn.c: New file.
9739         * sysdeps/ia64/ldbl2mpn.c: New file.
9740
9741 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9742
9743         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
9744         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
9745         Remove unreachable code at the end.
9746
9747 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9748
9749         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
9750         ldbl-128ibm in comment.
9751         (fpclassifyl): Correct classification of denormals.
9752         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
9753         return value for MIN denormal. Rewrite using long double math too
9754         correctly handle denormals and canonicalize the results.
9755
9756 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
9757
9758         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
9759         (__mpn_construct_long_double): Fix conversion where result ought
9760         to be smaller than __LDBL_MIN__, or the low double should be
9761         denormal.  Fix decision where to negate low double - honor round
9762         to even rules.
9763         * stdio-common/tst-sprintf2.c: Include string.h.
9764         (COMPARE_LDBL): Define.
9765         (TEST): Also test whether a string hexadecimal float representation
9766         can be parsed back to the number.
9767         (main): Add a couple of further tests.
9768
9769 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
9770
9771         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
9772         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
9773         is non-zero, but smaller than 2 * __DBL_MIN__.
9774         * stdio-common/tst-sprintf2.c: New test.
9775         * stdio-common/Makefile (tests): Add tst-sprintf2.
9776
9777         * math/test-misc.c (main): Don't run last batch of tests with
9778         IBM long double format.
9779
9780 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9781
9782         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9783         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9784         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9785         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9786         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9787         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9788         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9789         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9790         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9791         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9794         New file.
9795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9796         New file.
9797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9798         New file.
9799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9800         New file.
9801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9802         New file.
9803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9805         New file.
9806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9807         New file.
9808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9809         New file.
9810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9811         New file.
9812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9813         New file.
9814
9815 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9816
9817         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9818         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9819         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9820         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9821         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9822         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9823         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9824         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9825
9826 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9827
9828         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9829         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9830         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9831         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9832         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9833         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9834         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9835         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9836
9837 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9838
9839         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9840         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9841         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9842         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9843
9844 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9845
9846         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9847         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9848
9849 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9850
9851         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9852         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9853         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9854         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9855
9856 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9857
9858         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9859         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9860
9861 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9862
9863         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9864         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9865
9866         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9867         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9868         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9869         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9870
9871 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9872
9873         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9874         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9875         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9876         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9877
9878 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9879
9880         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9881         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9882         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9883         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9884         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9885         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9886
9887 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9888
9889         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9890         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9891         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9892         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9893
9894 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9895
9896         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9897         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9898         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9899         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9900         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9901         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9902         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9903         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9904         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9905         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9906         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9907         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9908         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9909         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9910         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9911         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9912
9913 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9914
9915         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9916         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9917
9918 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9919
9920         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9921         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9922
9923 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9924
9925         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9926         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9927         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9928         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9929         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9930         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9931         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9932         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9933         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9934         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9935
9936 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9937
9938         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9939
9940 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9941
9942         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9943         branch miss-predicts. Ensure that cache line crossing does not impact
9944         dispatch grouping.
9945
9946 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9947
9948         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9949         "../../powerpc32/power4/memcopy.h".
9950         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9951         "../../powerpc32/power4/wordcopy.c".
9952
9953 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9954
9955         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9956         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9957         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9958         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9959         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9960         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9961
9962 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9963
9964         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9965
9966 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9967
9968         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9969         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9970         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9971         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9972         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9973         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9974         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9975         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9976
9977 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9978
9979         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9980
9981 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9982
9983         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9984         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9985         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9986         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9987         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9988         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9989         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9990
9991 2007-05-29  Roland McGrath  <roland@redhat.com>
9992
9993         * po/Makefile (po-sed-cmd): New variable.
9994         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9995
9996 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9997
9998         * crypt/md5-crypt.c: Fix comment.
9999
10000         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10001         of crashing.  When this is the case or if the reply is malformed,
10002         don't try to close the new file descriptor since it does not
10003         exist.
10004         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10005
10006 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10007
10008         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10009         if __NR_utimensat is not defined.
10010
10011 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10012
10013         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10014
10015 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10016
10017         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10018         (open): Fix comment typos.  Don't call __open_2 if flags
10019         is a compile time constant without O_CREAT.
10020         (__open64_2): Add nonnull attribute.
10021         (open64): Fix comment typos.  Don't call __open64_2 if flags
10022         is a compile time constant without O_CREAT.
10023         (__openat_2): Add nonnull attribute, fix nonnull attribute
10024         on redirect.
10025         (openat): Fix comment typos.  Don't call __openat_2 if flags
10026         is a compile time constant without O_CREAT.
10027         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10028         on redirect.
10029         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10030         is a compile time constant without O_CREAT.
10031
10032 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10033
10034         * Makerules (sysd-rules): Define PTW for ptw-* files.
10035         * Versions: Define GLIBC_2.7 for libc.
10036         * include/stdio.h: Declare __fortify_fail.
10037         * debug/fortify_fail.c: New file.
10038         * debug/Makefile (routines): Add fortify_fail.
10039         * debug/chk_fail.c: Use __fortify_fail.
10040         * debug/stack_chk_fail.c: Likewise.
10041         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10042         __openat64_2 for GLIBC_2.7.
10043         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10044         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10045         and fails if necessary.
10046         * io/open64.c: Likewise.
10047         * io/openat.c: Likewise.
10048         * io/openat64.c: Likewise.
10049         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10050         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10051         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10052         * io/bits/fcntl2.h: New file.
10053         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10054         __openat64_2.
10055         * include/bits/fcntl2.h: New file.
10056         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10057         Add open_2.
10058         * sysdeps/unix/sysv/linux/open_2.c: New file.
10059
10060 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10061
10062         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10063         as second parameter to handle_intel.
10064
10065         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10066         the entry.
10067
10068         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10069         handling to ...
10070         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10071         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10072         cacheinfo.
10073         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10074         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10075         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10076
10077         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10078
10079 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10080
10081         [BZ #4525]
10082         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10083         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10084         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10085
10086         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10087
10088         [BZ #4514]
10089         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10090         reinitialize workend at the start of each do_positional format spec
10091         loop, free workstart before do_positional loops.
10092         (printf_unknown): Fix size of work_buffer.
10093         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10094
10095         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10096         (public_sET_STATe): If ms->version < 3, put all chunks into
10097         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10098         chunks.
10099
10100         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10101         * malloc/hooks.c: Likewise.
10102         * malloc/arena.c: Likewise.
10103         * malloc/malloc.c (do_check_malloc_state): Don't assert
10104         n_mmaps is not greater than n_mmaps_max.  This removes the need
10105         for the previous change.
10106
10107         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10108         2007-05-07 commit.
10109
10110 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10111
10112         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10113         Define for kernel >= 2.6.22.
10114
10115 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10116
10117         * elf/dl-close.c (_dl_close_worker): When removing object from
10118         global scope, wait for all lookups to finish afterwards.
10119         * elf/dl-open.c (add_to_global): When global scope array must
10120         grow, allocate a new one and free old array only after all
10121         lookups finish.
10122         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10123         (_dl_lookup_symbol_x): Likewise.
10124         * elf/dl-support.c: Define _dl_wait_lookup_done.
10125         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10126         _dl_wait_lookup_done.
10127
10128         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10129         not overlapping with arena.
10130
10131         * malloc/mcheck.c (reallochook): If size==0, free the block.
10132
10133         * rt/tst-shm.c: Use fstat64 instead of fstat.
10134
10135         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10136         __NR_sync_file_range is not defined.
10137
10138 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10139
10140         Dummy files to prevent stub versions from being used.
10141         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10142         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10143         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10144         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10145
10146         * version.h (VERSION): Set to 2.6.90.
10147
10148 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10149
10150         * version.h (VERSION): Define to 2.6.
10151         * include/features.h (__GLIBC_MINOR__): Define to 6.
10152
10153         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10154
10155         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10156         sizes.
10157
10158 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10159
10160         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10161         number of mmaps.  n_mmaps_max is the target.
10162         * malloc/hooks.c: Likewise.
10163         * malloc/arena.c: Likewise.
10164
10165 2007-05-12  Andreas Jaeger  <aj@suse.de>
10166
10167         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10168         getpid.
10169
10170 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10171
10172         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10173         adding new variables.
10174
10175         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10176         optimize.  Completely extend global scope array before making the
10177         new entries visible.
10178
10179 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10180
10181         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10182         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10183         tst-getcpu.
10184
10185         * include/link.h: Move l_version and l_nversion members around to
10186         fill gaps.
10187
10188         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10189
10190         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10191         (__sched_setaffinity_new): If syscall was successful and
10192         RESET_VGETCPU_CACHE is defined, use it before returning.
10193         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10194
10195         * io/sys/stat.h: Make sure struct timespec is defined for
10196         __USE_ATFILE.
10197
10198         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10199         UTIME_OMIT.
10200         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10201         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10202         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10203         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10204         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10205         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10206         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10207         * io/sys/stat.h: Declare utimensat, futimens.
10208         * io/utimensat.c: New file.
10209         * io/futimens.c: New file.
10210         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10211         * sysdeps/unix/sysv/linux/futimens.c: New file.
10212         * io/Makefile (routines): Add utimensat, futimens.
10213         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10214         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10215         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10216         available.
10217
10218         * include/sys/cdefs.h: Redefine __nonnull so that test for
10219         incorrect parameters in the libc code itself are not omitted.
10220
10221 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10222
10223         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10224         exception in addition to inexact when asked to raise only FE_INEXACT.
10225
10226         [BZ #3427]
10227         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10228         in *envp.
10229
10230 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10231
10232         [BZ #4403]
10233         * string/strfry.c (strfry): Make result more random.
10234
10235 2007-05-07  Richard Henderson  <rth@redhat.com>
10236
10237         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10238         if __NO_LONG_DOUBLE_MATH.
10239         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10240         available in the compiler, add .arch directive to the assembly.
10241
10242 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10243
10244         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10245         compat_symbol to GLIBC_2_1.
10246         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10247         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10248         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10249         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10250         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10251         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10252         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10253         libc, not libm.
10254         (__isnanl): New compat_symbol.
10255
10256 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10257             Jakub Jelinek  <jakub@redhat.com>
10258
10259         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10260         (new_heap): Initialize mprotect_size.
10261         (grow_heap): When growing, only mprotect from mprotect_size till
10262         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10263         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10264
10265 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10266             Peter Bergner  <bergner@us.ibm.com>
10267
10268         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10269         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10270         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10271         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10272         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10273         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10274         Call __fe_mask_env() if all FP exceptions disabled.
10275         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10276         from old FPSCR to new fenv to propagate DFP rounding modes.
10277         Call __fe_mask_env() if FP exceptions previously enabled.
10278         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10279         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10280         transitioning from all exceptions disabled to any exception enabled
10281         or visa versa.
10282         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10283         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10284         when transitioning from all exceptions disabled to any exception
10285         enabled or visa versa.
10286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10292
10293 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10294
10295         [BZ #4465]
10296         * posix/unistd.h: Remove __THROW from fdatasync.
10297
10298 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10299
10300         [BZ #4465]
10301         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10302
10303 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10304
10305         * stdio-common/vfprintf.c (process_string_arg): Optimize
10306         ridiculous precision in wide char code printing multi-byte string.
10307         Reported by Jim Meyering <jim@meyering.net>.
10308
10309         [BZ #4131]
10310         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10311         boundaries to work around systems with overlapping binary loading.
10312         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10313
10314 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10315
10316         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10317         __mbsnrtowcs after last change.
10318
10319         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10320         (get_ident): Likewise.
10321
10322 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10323
10324         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10325         with setting the sticky bit.
10326         * math/test-misc.c (main): Add more truncation tests.
10327
10328 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10329
10330         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10331         double in the function declaration.
10332         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10333         double in the function declaration.
10334         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10335         float in the function declaration.
10336         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10337         float in the function declaration.
10338
10339         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10340         denormal operands.  Do not generate FP_EX_DENORM exception.
10341         (FP_UNPACK_RAW_EP): Ditto.
10342         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10343         undefined _FP_UNPACK_RAW_E.
10344         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10345         undefined _FP_UNPACK_RAW_EP.
10346         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10347         undefined _FP_PACK_RAW_E.
10348         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10349         undefined _FP_PACK_RAW_EP.
10350
10351         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10352         _FP_FRAC_COPY_2.
10353         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10354         _FP_FRAC_COPY_4.
10355
10356 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10357             Jakub Jelinek  <jakub@redhat.com>
10358
10359         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10360         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10361         this case.
10362         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10363
10364 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10365
10366         * math/test-misc.c (main): Add tests for rounding long double
10367         values close to smallest double denormalized value to double.
10368
10369 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10370
10371         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10372         condition for truncating to 0.  Set sticky bit for such
10373         truncation.
10374
10375 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10376
10377         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10378         fixed length array for ignore.
10379
10380 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10381
10382         [BZ #4438]
10383         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10384         stack for large precisions.
10385         * stdio-common/test-vfprintf.c (main): Add test for large
10386         precision.
10387
10388 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10389
10390         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10391         for exponent 0.
10392         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10393
10394         [BZ #4439]
10395         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10396         account in the size check.
10397         * resolv/tst-inet_ntop.c: New test.
10398         * resolv/Makefile (tests): Add tst-inet_ntop.
10399
10400 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10401             Jakub Jelinek  <jakub@redhat.com>
10402
10403         [BZ #4349]
10404         * malloc/malloc.c: Keep separate list for first blocks on the bin
10405         lists with a given size.  This helps skipping over list elements
10406         we know won't fit in two places.
10407         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10408
10409 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10410
10411         [BZ #4102]
10412         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10413         label to Teredo tunnel addresses 2001://32.
10414
10415 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10416
10417         * locale/programs/ld-collate.c (collate_read): Allow order_start
10418         after copy.
10419
10420         * locale/programs/ld-collate.c (collate_read): Fix printing of
10421         error message.
10422
10423         [BZ #3213]
10424         * locale/C-translit.h.in: Add entry for U2044.
10425
10426         [BZ #4342]
10427         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10428         hexa-decimal floats without exponent.
10429         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10430
10431 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10432
10433         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10434         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10435         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10436         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10437         GLIBC_2.6.
10438         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10439         Add sched_getcpu.
10440
10441 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10442
10443         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10444         of 0 after the out_fail label.
10445
10446 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10447
10448         [BZ #4406]
10449         * iconv/gconv_charset.h (strip): Allow ':'.
10450         * iconv/iconv_open.c (iconv_open): Adjust comment.
10451
10452 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10453
10454         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10455         version.
10456
10457 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10458
10459         [BZ #4381]
10460         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10461         alignment of buffer and tmp_buffer.
10462         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10463         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10464         alignment of buffer.
10465         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10466         bigger than INT_MAX.
10467         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10468         h_errnop arguments.  Fail if buflen is too small.
10469         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10470
10471 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10472
10473         [BZ #4405]
10474         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10475         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10476
10477 2007-04-22  Roland McGrath  <roland@redhat.com>
10478
10479         * elf/elf.h (NT_PRXFPREG): New macro.
10480
10481 2007-04-19  Andreas Jaeger  <aj@suse.de>
10482
10483         [BZ #3905]
10484         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10485         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10486         Added.
10487
10488 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10489
10490         * include/sys/mman.h: Mark madvise hidden.
10491         * misc/madvise.c: Add libc_hidden_def.
10492
10493 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
10494
10495         * nis/nis_domain_of.c (__nis_domain_of): New function.
10496         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10497         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10498         * nis/nis_call.c (rec_dirsearch): Likewise.
10499         (first_shoot): Likewise.  Remove search_parent_first argument.
10500         (struct nis_server_cache): Rename search_parent_first field
10501         to search_parent.
10502         (nis_server_cache_search, nis_server_cache_add): Rename
10503         search_parent_first argument to search_parent.
10504         (__nisfind_server): Likewise.  If search_parent, call
10505         __nis_domain_of.
10506
10507 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
10508
10509         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10510
10511 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
10512
10513         [BZ #4368]
10514         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10515
10516 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
10517
10518         [BZ #4364]
10519         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10520
10521 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
10522
10523         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10524         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10525         current number of locales in SUPPORTED.
10526         (create_archive): Initialize serial.
10527         (enlarge_archive): Preserve aliases rather than duplicating
10528         their locrecs.
10529
10530 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10531
10532         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10533         after _IO_un_link, not before it.
10534
10535         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10536         special case handling when wcp == wstartp + 1.  Fix a comment typo.
10537         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10538
10539 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
10540
10541         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10542         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10543         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10544         Remove __THROW.
10545         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10546         _IO_file_xsgetn_maybe_mmap): Likewise.
10547         * libio/oldfileops.c (old_do_write): Likewise.
10548         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10549         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10550         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10551         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10552         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10553         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10554         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10555         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10556         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10557         _IO_file_underflow, _IO_file_underflow_mmap,
10558         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10559         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10560         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10561         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10562         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10563         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10564         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10565         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10566         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10567         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10568         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10569         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10570         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10571         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10572         _IO_adjust_column_internal, _IO_default_uflow_internal,
10573         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10574         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10575         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10576         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10577         _IO_file_close_it_internal, _IO_file_underflow_internal,
10578         _IO_file_overflow_internal, _IO_file_attach_internal,
10579         _IO_file_fopen_internal, _IO_file_sync_internal,
10580         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10581         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10582         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10583         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10584         _IO_seekpos_unlocked): Likewise.
10585         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10586         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10587
10588 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
10589
10590         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10591         argument in xmalloc size computation.
10592
10593 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10594
10595         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10596         math_opt_barrier and math_force_eval macros.
10597
10598 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10599
10600         [BZ #3306]
10601         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10602         * sysdeps/i386/fpu/math_private.h: New file.
10603         * sysdeps/x86_64/fpu/math_private.h: New file.
10604         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10605         math_force_eval macros.  Use "+m" constraint on asm rather than
10606         "=m" and "m".
10607         * math/s_nextafter.c (__nextafter): Likewise.
10608         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10609         Likewise.
10610         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10611         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10612         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10613         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10614         math_opt_barrier and math_force_eval macros.
10615         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10616         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10617         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10618         (__nexttoward): Use math_opt_barrier and
10619         math_force_eval macros.  Use "+m" constraint on asm rather than
10620         "=m" and "m".  Only use asm to force double result if
10621         FLT_EVAL_METHOD is 2.
10622         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10623         (__nexttowardf): Use math_opt_barrier and
10624         math_force_eval macros.  Use "+m" constraint on asm rather than
10625         "=m" and "m".  Only use asm to force double result if
10626         FLT_EVAL_METHOD is not 0.
10627         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10628         (__nexttowardf): Use math_opt_barrier and
10629         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10630         x to float using asm.
10631         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10632         (__nldbl_nexttowardf): Use math_opt_barrier and
10633         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
10634         x to float using asm.
10635         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10636         (__nexttowardf): Use math_opt_barrier and math_force_eval
10637         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
10638         * math/bug-nextafter.c (zero, inf): New variables.
10639         (main): Add new tests.
10640         * math/bug-nexttoward.c (zero, inf): New variables.
10641         (main): Add new tests.
10642
10643 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10644
10645         [BZ #3427]
10646         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10647         exceptions both in SW and MXCSR.
10648         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10649         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10650         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10651         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10652         in MXCSR if SSE is available.
10653         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10654         and ldsodefs.h.
10655         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10656         Fix comment typo.
10657         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10658         Return 0 rather than 1.
10659         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10660         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
10661         * math/test-fenv.c (feholdexcept_tests): New function.
10662         (main): Call it.
10663
10664 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
10665
10666         [BZ #3427]
10667         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10668         in SW.
10669
10670 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
10671
10672         [BZ #4344]
10673         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10674         Reported by David Anderson <davea42@earthlink.net>.
10675
10676 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
10677
10678         * posix/sys/wait.h: Remove unnecessary forward declaration.
10679
10680 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
10681
10682         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10683         with obj->do_servers after first_shoot.
10684
10685 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
10686
10687         * posix/Makefile (routines): Add sched_cpucount.
10688         (tests): Add tst-cpucount.
10689         * posix/sched_cpucount.c: New file.
10690         * posix/tst-cpucount.c: New file.
10691         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10692         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
10693         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10694         * posix/sched.h: Define CPU_COUNT.
10695
10696 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
10697
10698         * posix/fnmatch.c (STRUCT): Define.
10699         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10700         * posix/fnmatch_loop.c (struct STRUCT): New type.
10701         (FCT): Add ends argument.  If ends != NULL and normal * is
10702         seen in the pattern, store current pattern and string pointers
10703         and return.  Adjust recursive calls.
10704         (EXT): Adjust FCT callers.
10705         (STRUCT): Undef at the end of the file.
10706         * posix/Makefile (tests): Add tst-fnmatch2.
10707         * posix/tst-fnmatch2.c: New test.
10708
10709 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
10710
10711         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10712         and 1 on failure.
10713
10714         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
10715         Change last argument to unsigned int.
10716
10717 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
10718
10719         * scripts/check-local-headers.sh: Filter out sys/capability.h.
10720
10721 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
10722
10723         * config.h.in (HAVE_LIBCAP): Add.
10724         * nscd/selinux.h: Include sys/capability.h rather than non-existent
10725         sys/capabilities.h.
10726         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
10727         free_caps.  Cast away const from 4th cap_set_flag argument.
10728
10729 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
10730
10731         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
10732         GLIBC_2.6.
10733         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10734         Add sync_file_range.
10735         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
10736
10737 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
10738
10739         * sysdeps/powerpc/bits/atomic.h
10740         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
10741         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
10742         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10743         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
10744         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10745         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
10746         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
10747         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10748         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10749         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10750         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
10751         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
10752         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
10753         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
10754         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10755         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
10756         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10757         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
10758         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
10759         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
10760
10761 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10762
10763         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
10764         (__cache_line_size): Define the variable here.  Add
10765         attribute_hidden, remove weak_extern.
10766         (__libc_start_main): Set __cache_line_size
10767         unconditionally.
10768         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10769         (__cache_line_size): Define the variable here.  Add
10770         attribute_hidden, remove weak_extern.
10771         (DL_PLATFORM_AUXV): Set __cache_line_size
10772         unconditionally.
10773         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
10774         weak_extern, add attribute_hidden.
10775         (__elf_machine_runtime_setup): Assume __cache_line_size is always
10776         defined in ld.so.
10777         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
10778         definition.
10779         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10780
10781 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
10782
10783         [BZ #4276]
10784         * timezone/africa: Update from tzdata2007d.
10785         * timezone/asia: Likewise.
10786         * timezone/australasia: Likewise.
10787         * timezone/backward: Likewise.
10788         * timezone/europe: Likewise.
10789         * timezone/iso3166.tab: Likewise.
10790         * timezone/leapseconds: Likewise.
10791         * timezone/northamerica: Likewise.
10792         * timezone/southamerica: Likewise.
10793         * timezone/zone.tab: Likewise.
10794
10795         * timezone/private.h: Update from tzcode2007d.
10796         * timezone/zdump.c: Likewise.
10797         * timezone/zic.c: Likewise.
10798
10799 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10800
10801         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10802         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10803         variables.
10804         (nis_server_cache_search, nis_server_cache_add): New functions.
10805         (__nisfind_server): Use them.  Add dbp and flags argument, if
10806         call __nisbind_create.
10807         (__nisbind_create): Add server_used and current_ep arguments,
10808         only call __nis_findfastest if server_used is ~0.
10809         (__do_niscall2, __prepare_niscall): Adjust callers.
10810         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10811         ckey_cache_euid, ckey_cache_lock): New variables.
10812         (get_ckey): New function.
10813         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10814         __pmap_getnisport.  Save __pmap_getnisport result in
10815         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
10816         key.
10817         * nis/nis_lookup.c (nis_lookup): Likewise.
10818         * nis/nis_table.c (nis_list): Likewise.
10819         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10820         prototypes.
10821
10822         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10823         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10824         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10825         _nss_nisplus_getservbyport_r): Likewise.
10826         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10827         _nss_nisplus_getnetbyaddr_r): Likewise.
10828         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10829         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10830         _nss_nisplus_getntohost_r): Likewise.
10831         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10832         _nss_nisplus_getrpcbynumber_r): Likewise.
10833
10834 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10835
10836         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10837         * configure: Rebuilt.
10838
10839         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10840         bit-fields.
10841         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10842
10843 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10844
10845         [BZ #2831]
10846         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10847         bit-fields.
10848
10849 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10850
10851         * nscd/gai.c: Include alloca.h.
10852         (__libc_use_alloca): Define.
10853
10854 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10855
10856         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10857         smaller scopes.
10858         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10859         (DL_DST_REQUIRED): Adjust user.
10860
10861         * include/dlfcn.h (struct link_map): New forward decl.
10862
10863         * inet/getnameinfo.c: Include stddef.h.
10864         (getnameinfo): Use offsetof.
10865
10866         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10867
10868         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10869
10870         * string/strerror_l.c: Include stdlib.h.
10871
10872         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10873         * config.make.in (gnu89-inline-CFLAGS): New variable.
10874         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10875         -std=gnu99.
10876         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10877         * argp/argp.h: Use it.
10878         * bits/mathinline.h: Likewise.
10879         * bits/sigset.h: Likewise.
10880         * bits/string.h: Likewise.
10881         * ctype/ctype.h: Likewise.
10882         * hurd/hurd.h: Likewise.
10883         * hurd/hurd/fd.h: Likewise.
10884         * hurd/hurd/port.h: Likewise.
10885         * hurd/hurd/signal.h: Likewise.
10886         * hurd/hurd/threadvar.h: Likewise.
10887         * hurd/hurd/userlink.h: Likewise.
10888         * io/sys/stat.h: Likewise.
10889         * libio/bits/stdio.h: Likewise.
10890         * libio/bits/stdio2.h: Likewise.
10891         * mach/lock-intern.h: Likewise.
10892         * mach/mach/mig_support.h: Likewise.
10893         * math/bits/cmathcalls.h: Likewise.
10894         * posix/bits/unistd.h: Likewise.
10895         * socket/bits/socket2.h: Likewise.
10896         * stdlib/bits/stdlib.h: Likewise.
10897         * stdlib/stdlib.h: Likewise.
10898         * string/argz.h: Likewise.
10899         * string/bits/string2.h: Likewise.
10900         * string/bits/string3.h: Likewise.
10901         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10902         * sysdeps/generic/inttypes.h: Likewise.
10903         * sysdeps/generic/machine-lock.h: Likewise.
10904         * sysdeps/generic/machine-sp.h: Likewise.
10905         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10906         * sysdeps/i386/i486/bits/string.h: Likewise.
10907         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10908         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10909         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10910         * sysdeps/mach/i386/machine-lock.h: Likewise.
10911         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10912         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10913         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10914         * sysdeps/s390/bits/string.h: Likewise.
10915         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10916         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10917         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10918         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10919         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10920         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10921         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10922         * wcsmbs/bits/wchar2.h: Likewise.
10923         * wcsmbs/wchar.h: Likewise.
10924         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10925         __extern_inline definition.
10926
10927 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10928
10929         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10930         NULL.
10931
10932         [BZ #3919]
10933         * math/libm-test.inc (log_test): Test -Inf and NaN.
10934         (log10_test, log1p_test, log2_test): Test -Inf.
10935         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10936         FE_INVALID when argument is qNaN.
10937         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10938         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10939         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10940         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10941         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10942         testb $4, %ah and jump if non-zero.
10943         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10944         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10945
10946         [BZ #4101]
10947         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10948         ancestors with the same depths.
10949         Patch by Niels Moeller <nisse@lysator.liu.se>.
10950         (filter_doc): Don't crash if argp is NULL.
10951         * argp/Makefile (tests): Add tst-argp2.
10952         * argp/tst-argp2.c: New test.
10953
10954         [BZ #4130]
10955         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10956         open_not_cancel_2.
10957         (updwtmp_file): Likewise.
10958
10959         [BZ #4181]
10960         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10961         (inet6_opt_append): Don't check extlen is big enough if extbuf
10962         is NULL.
10963         (inet6_opt_finish): Likewise.
10964         * inet/Makefile (tests): Add test-inet6_opt.
10965         * inet/test-inet6_opt.c: New test.
10966
10967         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10968         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10969         NLMSG_ERR.  Instead use a page sized buffer.
10970         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10971         buffer.
10972
10973 2007-03-14  Richard Henderson  <rth@redhat.com>
10974
10975         * sysdeps/alpha/fpu/s_llround.c: New file.
10976         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10977         * sysdeps/alpha/fpu/s_lround.c: New file.
10978         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10979         * sysdeps/alpha/fpu/s_round.c: New file.
10980         * sysdeps/alpha/fpu/s_roundf.c: New file.
10981         * sysdeps/alpha/fpu/s_trunc.c: New file.
10982         * sysdeps/alpha/fpu/s_truncf.c: New file.
10983
10984         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10985         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10986         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10987         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10988         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10989         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10990
10991         * sysdeps/alpha/fpu/s_fmax.S: New file.
10992         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10993         * sysdeps/alpha/fpu/s_fmin.S: New file.
10994         * sysdeps/alpha/fpu/s_fminf.S: New file.
10995         * sysdeps/alpha/fpu/s_isnan.c: New file.
10996         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10997         * sysdeps/alpha/fpu/s_llrint.c: New file.
10998         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10999         * sysdeps/alpha/fpu/s_lrint.c: New file.
11000         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11001         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11002         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11003
11004         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11005         (__fdimf, fdimf, __fdim, fdim): Remove.
11006         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11007         (__isnanf, __isnan, __isnanl): New.
11008
11009 2007-03-13  Richard Henderson  <rth@redhat.com>
11010
11011         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11012
11013 2007-03-13  Richard Henderson  <rth@redhat.com>
11014
11015         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11016         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11017         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11018         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11019         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11020         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11021
11022 2007-03-13  Richard Henderson  <rth@redhat.com>
11023
11024         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11025         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11026         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11027         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11028         Move to dl-auxv.h; initialize instead of extern weak.
11029         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11030         weak symbol.
11031         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11032         Extern instead of initialized.
11033
11034 2007-03-13  Richard Henderson  <rth@redhat.com>
11035
11036         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11037         __sigsuspend_nocancel.
11038
11039 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11040
11041         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11042         172.16/12 address range.
11043
11044 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11045
11046         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11047         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11048         message.
11049
11050 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11051
11052         [BZ #4069]
11053         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11054         earlier.
11055         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11056
11057         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11058         for x qNaN and y either +-inf or non-integer value.
11059         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11060         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11061         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11062
11063 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11064
11065         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11066         from sysdep_headers.
11067
11068 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11069
11070         * time/tzfile.c (find_transition): Instead of a linear search try to
11071         guess the transition index, use a linear search if the result is at
11072         most 10 transitions away from the guess or binary search otherwise.
11073
11074 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11075
11076         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11077         memory reallocation.
11078
11079 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11080
11081         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11082         and fix some typos.
11083         Optimize use of TOLOWER.
11084
11085         [BZ #3325]
11086         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11087         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11088         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11089
11090         [BZ #3458]
11091         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11092         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11093
11094         [BZ #4076]
11095         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11096         (open_dir_stream): Likewise.
11097         * io/Makefile (tests): Add bug-ftw5.
11098         * io/bug-ftw5.c: New file.
11099
11100         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11101         * nscd/servicescache.c (cache_addserv): Likewise.
11102
11103         * nscd/grpcache.c (cache_addgr): In case a record changed on
11104         refresh, adjust key_copy.
11105
11106         [BZ #4074]
11107         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11108         refresh, adjust key_copy.
11109
11110         [BZ #4070]
11111         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11112         special cases.
11113         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11114
11115 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11116
11117         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11118         optimization.
11119
11120         * stdio-common/vfscanf.c: Small cleanups throughout.
11121
11122 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11123
11124         [BZ #3325]
11125         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11126         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11127         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11128         Patch by Jared Casper <jaredcasper@gmail.com>.
11129
11130         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11131         * sysdeps/unix/opendir.c: Likewise.
11132         * sysdeps/unix/readdir.c: Likewise.
11133
11134         [BZ #2211]
11135         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11136         point numbers.
11137         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11138
11139         * stdio-common/vfscanf.c: Fix problems in width accounting.
11140         * stdio-common/tst-sscanf.c (double_tests): New tests.
11141         (main): Hook them up.
11142
11143         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11144         More simplifications of floating-point reader.
11145
11146         * stdio-common/Makefile (tests): Add tst-swscanf.
11147         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11148         testing.
11149         * stdio-common/tst-swscanf.c: New file.
11150
11151 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11152
11153         [BZ #2633]
11154         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11155         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11156         Remove using for __jmp_buf_tag.
11157         * locale/locale.h (struct lconv): Also define in std namespace.
11158         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11159
11160         [BZ #3842]
11161         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11162         using __libc_enable_secure.
11163
11164         [BZ #3818]
11165         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11166
11167         [BZ #3745]
11168         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11169         of names for ellipsises.
11170
11171         [BZ #3348]
11172         * malloc/memusage.sh: Cleanups.
11173         * debug/xtrace.sh: Quoting and trap changes.
11174
11175 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11176
11177         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11178
11179         * locale/iso-3166.def: Update entry for Serbia.
11180         * locale/iso-4217.def: Define RSD, remove CSD.
11181
11182         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11183         and 64-bit operations.
11184
11185         [BZ #4040]
11186         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11187         16-bit operations.
11188
11189         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11190         of writev.
11191
11192 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11193
11194         [BZ #3991]
11195         * assert/assert.h (assert): Simplify.
11196         (assert_perror): Likewise.
11197         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11198
11199         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11200         reqdata.
11201
11202         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11203         change: don't pass NULL in place of an integer.
11204
11205 2007-02-02  Bruno Haible  <bruno@clisp.org>
11206
11207         [BZ #3954]
11208         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11209         Add mapping for U+327E.
11210         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11211         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11212         mapping of 0xD9 0xE8.
11213         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11214         mapping of U+327E.
11215         Reported by Jungshik Shin <jungshik@google.com>.
11216
11217         [BZ #3955]
11218         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11219         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11220         Reported by Jungshik Shin <jungshik@google.com>.
11221
11222 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11223
11224         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11225         byte variants.
11226
11227         [BZ #4040]
11228         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11229         byte variants.  Patch mostly be tom@tommay.net.
11230
11231 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11232
11233         [BZ #3996]
11234         * posix/glob.c (attribute_hidden): Define if not defined.
11235         (glob): Unescape dirname, filename or username when needed and not
11236         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11237         is NULL.  Handle unescaped [ in pattern without closing ].
11238         Don't pass GLOB_CHECK down to recursive glob for directories.
11239         (__glob_pattern_type): New function.
11240         (__glob_pattern_p): Implement using __glob_pattern_type.
11241         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11242         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11243         Remove unreachable code.
11244         * posix/globtest.sh: Add a couple of new tests.
11245
11246 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11247
11248         * po/ru.po: Update from translation team.
11249
11250 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11251
11252         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11253         to the list of i486+ CPUs.
11254         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11255
11256 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11257
11258         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11259         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11260         references.
11261
11262 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11263
11264         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11265
11266         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11267         * resolv/res_mkquery.c: Define __res_nopt.
11268         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11269         try adding EDNS0 record.
11270         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11271         EDNS0 record was send make sure we don't try it again.
11272         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11273         * include/resolv.h: Declare __res_nopt.
11274
11275 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11276
11277         [BZ #3944]
11278         * time/strptime_l.c (__strptime_internal): Set have_mon for
11279         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11280         have been computed from tm_yday and tm_year.  Don't crash
11281         in day_of_the_week or day_of_the_year if not have_mon
11282         and tm_mon contains bogus value.
11283         * time/Makefile (tests): Add tst-strptime3.
11284         * time/tst-strptime3.c: New test.
11285
11286 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11287
11288         [BZ #3957]
11289         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11290         bit for RE_HAT_LISTS_NOT_NEWLINE.
11291         (build_charclass_op): Remove bogus comment.
11292         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11293         * posix/bug-regex27.c: New test.
11294         * posix/bug-regex28.c: New test.
11295
11296 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11297
11298         * po/sv.po: Update from translation team.
11299
11300 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11301
11302         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11303
11304 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11305
11306         * include/locale.h (__uselocale): Add libc_hidden_proto.
11307         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11308
11309         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11310         gettimeofday.
11311
11312 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11313
11314         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11315         returning.
11316         (PTR_DEMANGLE): Real definition now that it's not the same as
11317         PRT_MANGLE anymore.
11318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11319
11320         * string/strerror_l.c: New file.
11321         * string/Makefile (routines): Add strerror_l.
11322         * string/string.h: Declare strerror_l.
11323         * string/Versions: Export strerror_l for GLIBC_2.6.
11324
11325 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11326
11327         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11328         as parameter.  Construct request record.  Try sending request
11329         before the first poll use, it usually succeeds.  Adjust all
11330         callers.
11331         * nscd/nscd-client.h: Define MAXKEYLEN.
11332         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11333
11334 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11335
11336         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11337         from return value.
11338         * nscd/nscd_helper.c: Include string.h.
11339         (__nscd_cache_search): Remove const qualifier from return value.
11340         On strict alignment architectures check hash entry and data head
11341         alignment.
11342         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11343         mmapped data during GC cycle contains garbage.  If
11344         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11345         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11346         dropped to 0.
11347         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11348         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11349         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11350         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11351         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11352
11353 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11354
11355         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11356
11357 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11358
11359         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11360         names not numbers in cfi_*.
11361
11362 2007-01-26  Andreas Jaeger  <aj@suse.de>
11363
11364         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11365         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11366         Correct values of PER_HPUX and PER_OSF4.
11367
11368 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11369
11370         * elf/dl-minimal.c: Undefine _itoa first.
11371         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11372         * malloc/mtrace.c: Revert last change.
11373         * posix/wordexp.c: Likewise.
11374
11375 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11376
11377         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11378         and __geode__ to the list of i486+ CPUs.
11379         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11380
11381 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11382
11383         * stdio-common/_itoa.c: Include <limits.h>.
11384         * stdio-common/_itowa.c: Likewise.
11385
11386 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11387
11388         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11389         platforms.
11390         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11391         64-bit platforms.
11392         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11393         possible.
11394         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11395         if possible.
11396
11397         [BZ #3902]
11398         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11399         * stdio-common/Makefile (tests): Add bug17.
11400         * stdio-common/bug17.c: New file.
11401
11402 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11403
11404         * iconvdata/brf.c: New file.
11405         * iconvdata/testdata/BRF: New file.
11406         * iconvdata/testdata/BRF..UTF8: New file.
11407         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11408         * iconvdata/Makefile: Add rules to build BRF.
11409         * iconvdata/TESTS: Add BRF entry.
11410         * iconvdata/gconv-modules: Likewise.
11411         * iconvdata/tst-tables.sh: Likewise.
11412
11413 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11414
11415         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11416         type `long long int', not `long int'.
11417         (wcstoq): Likewise.
11418
11419 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11420
11421         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11422         of values on 64-bit platforms which are too large.
11423
11424 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11425             Joe Kerian  <jkerian@us.us.ibm.com>
11426
11427         [BZ #2749]
11428         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11429         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11430         (__copysignl): Use signbit() for comparison.
11431         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11432         SET_LDOUBLE_WORDS64.
11433
11434         [BZ #2423, #2749]
11435         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11436         (__ceill): Remove calls to fegetround(), fesetround().
11437         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11440
11441 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11442
11443         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11444
11445         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11446
11447 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11448
11449         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11450         demangle pointer.
11451         * csu/libc-start.c: Likewise.
11452
11453 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11454
11455         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11456         really work anyway.
11457
11458 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11459
11460         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11461         users.
11462         (handle_request): Remove unnecessary tests.
11463
11464         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11465
11466 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11467
11468         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11469         workbits in semi-raw fraction.
11470
11471         * math/test-misc.c: Add new tests.
11472
11473 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11474
11475         * math/basic-test.c: Include test-skeleton.c.
11476         (TEST_TRUNC): Define.
11477         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11478         (main): Rename to ...
11479         (do_test): ...this.  Run new tests.
11480         (TEST_FUNCTION): Define.
11481
11482 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11483             Joe Kerian  <jkerian@us.us.ibm.com>
11484
11485         [BZ #2749]
11486         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11487         handling for high words.
11488         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11489         and overflow for infinity.
11490
11491 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11492
11493         * nscd/connections.c (handle_request): Add a __builtin_expect.
11494
11495         * nscd/connections.c (serv2db): Change type into structure which
11496         also says whether this is a request for data.  Renamed to
11497         servinfo.  All users changed.
11498         (handle_request): Much simpler test whether we should search the cache.
11499
11500         * nscd/connections.c (handle_request): Fix thinko in selinux test
11501         invocation.
11502
11503         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11504         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11505         it before getting dl_load_lock and then relock.
11506         (_dl_lookup_symbol_x): Pass flags to add_dependency.
11507         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11508         case we unlocked the scope.
11509         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11510         _dl_lookup_symbol_x in case we locked the scope.
11511         (_dl_profile_fixup): Likewise.
11512         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11513         set DL_LOOKUP_SCOPE_LOCK.
11514
11515 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
11516
11517         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11518         CFLAGS-getsrvbynpt_r.c.
11519         * nscd/getsrvbynm_r.c: New file.
11520         * nscd/getsrvbypt_r.c: New file.
11521         * nscd/nscd_getserv_r.c: New file.
11522         * nscd/servicescache.c: New file.
11523         * nscd/Makefile (routines): Add nscd_getserv_r.
11524         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11525         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11526         CFLAGS-getsrvbypt_r.c.
11527         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11528         table.  Add entries for services database.
11529         * nscd/connections.c (serv2str): Mark as const.  Add entries for
11530         services database.
11531         (dbs): Add .reset_res and servdb initialization.
11532         (serv2db): Add entries for services database.
11533         (verify_persistent_db): Accept dbnr == servdb.
11534         (invalidate_cache): Rewrite database name recognition to use a table.
11535         Call res_init() if .reset_res is set for database.
11536         (handle_request): Add code to handle services database.
11537         * nscd/gai.c: Don't define __getservbyname_r.
11538         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11539         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11540         (serv_response_header): Define.
11541         (struct datahead): Add serv_response_header member.
11542         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11543         using table.
11544         * nscd/nscd.conf: Add entries for services database.
11545         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11546         Declare serv_iov_disabled.
11547         Declare addservbyname, readdservbyname, addservbyport, and
11548         readdservbyport.
11549         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
11550         (find_db): Fix error message.
11551         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11552         __nscd_getservbyname_r, and __nscd_getservbyport_r.
11553         * nscd/selinux.c (perms): Add entries for services database.
11554         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11555         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11556
11557         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
11558         * nscd/hstcache.c: Likewise.
11559         * nscd/pwdcache.c: Likewise.
11560
11561         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11562         computation of keylen.
11563
11564         * include/string.h: Only redefine strndupa if this is really for
11565         libc code.
11566
11567 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
11568
11569         * nscd/nscd_gethst_r.c: Minor cleanups.
11570
11571         * nscd/connections.c (handle_request): Check selinux permissions
11572         for all non-admin commands.
11573
11574         * sysdeps/i386/i486/bits/atomic.h: Define
11575         atomic_compare_and_exchange_val_acq,
11576         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11577         using __sync_* built-ins for gcc >= 4.1.
11578         * sysdeps/x86_64/bits/atomic.h: Likewise.
11579
11580         [BZ #3840]
11581         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11582         and .oS.d files.
11583
11584 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
11585
11586         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
11587         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
11588         (do_test): Check errno and exit(0) if ENOSYS.
11589
11590 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11591
11592         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11593         thousands separators.
11594         * stdlib/Makefile: Add rules to build and run tst-strtod4.
11595         * stdlib/tst-strtod4.c: New test.
11596
11597         [BZ #3855]
11598         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11599         hexadecimal digit should accept just the initial 0.
11600         * stdlib/tst-strtod2.c (tests): New variable.
11601         (do_test): Run several tests rather than just one.
11602
11603 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
11604
11605         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11606         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11607
11608 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
11609
11610         * io/fts.c: Make sure fts_cur is always valid after return from
11611         fts_read.
11612         Patch by Miloslav Trmac <mitr@redhat.com>.
11613
11614 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
11615
11616         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11617         (R_MIPS_NUM): Bump by 1.
11618
11619 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
11620
11621         * posix/execvp.c: Include alloca.h.
11622         (allocate_scripts_argv): Renamed to...
11623         (scripts_argv): ... this.  Don't allocate buffer here nor count
11624         arguments.
11625         (execvp): Use alloca if possible.
11626         * posix/Makefile: Add rules to build and run tst-vfork3 test.
11627         * posix/tst-vfork3.c: New test.
11628
11629 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
11630
11631         * string/Makefile (tst-strxfrm2-ENV): Define.
11632         * stdlib/Makefile (tst-strtod3-ENV): Define.
11633
11634 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
11635
11636         * posix/getconf.c: Update copyright year.
11637         * nss/getent.c: Likewise.
11638         * iconv/iconvconfig.c: Likewise.
11639         * iconv/iconv_prog.c: Likewise.
11640         * elf/ldconfig.c: Likewise.
11641         * catgets/gencat.c: Likewise.
11642         * csu/version.c: Likewise.
11643         * elf/ldd.bash.in: Likewise.
11644         * elf/sprof.c (print_version): Likewise.
11645         * locale/programs/locale.c: Likewise.
11646         * locale/programs/localedef.c: Likewise.
11647         * nscd/nscd.c (print_version): Likewise.
11648         * debug/xtrace.sh: Likewise.
11649         * malloc/memusage.sh: Likewise.
11650         * malloc/mtrace.pl: Likewise.
11651         * debug/catchsegv.sh: Likewise.
11652
11653 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
11654
11655         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11656         attempts.
11657
11658 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
11659
11660         * posix/wordexp.c: Remove some unnecessary tests.
11661
11662 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
11663
11664         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11665         blacklist the group till after we look it up.
11666
11667 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
11668
11669         * include/atomic.h (atomic_forced_read): New macro.
11670
11671 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11672
11673         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11674
11675 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
11676
11677         * nss/getXXbyYY_r.c: Include atomic.h.
11678         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11679         add atomic_write_barrier () in between.
11680
11681         * stdlib/Makefile (tests): Add tst-makecontext.
11682         * stdlib/tst-makecontext.c: New test.
11683
11684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11685         (__makecontext): Don't realign uc_mcontext.uc_regs.
11686
11687 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
11688
11689         * elf/dl-support.c: Include dl-procinfo.h.
11690         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11691         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11692         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11693         Define.
11694         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11695         hardcoded constants.
11696         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11697         PPC_PLATFORM_* macros for array designators.
11698
11699 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
11700
11701         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11702         names to the beginning.
11703         (_dl_powerpc_platforms): Add "power6x".
11704         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11705         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11706         (_DL_PLATFORMS_COUNT): Increase.
11707         (_dl_string_platform): Handle power6x case.
11708         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11709         PPC_FEATURE_POWER6_EXT): Define.
11710         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11711
11712 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
11713
11714         [BZ #3747]
11715         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11716         [-2^31 .. 2^31) range.
11717         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
11718         targets.
11719         * stdlib/tst-rand48-2.c: New test.
11720         * stdlib/Makefile (tests): Add tst-rand48-2.
11721
11722 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
11723
11724         * misc/tst-pselect.c (do_test): Fix sigblock argument.
11725
11726 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
11727
11728         * misc/tst-pselect.c (do_test): Make sure the helper process is
11729         terminating when the test is aborted.
11730
11731 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
11732
11733         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
11734         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11735         Handle relatime mount option.
11736
11737         [BZ #2337]
11738         * libio/Makefile (tests): Add tst-setvbuf1.
11739         * libio/tst-setvbuf1.c: New file.
11740
11741 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
11742
11743         [BZ #2337]
11744         * libio/genops.c (__uflow): Fix a typo.
11745         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
11746         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
11747         the narrow buffer size.
11748
11749 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
11750
11751         [BZ #2337]
11752         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
11753         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
11754         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
11755         in _flags.
11756         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
11757         _IO_wstr_finish): Likewise.
11758         * libio/wmemstream.c (open_wmemstream): Likewise.
11759         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
11760         even for wide streams.
11761
11762 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
11763
11764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
11765         kernel-features.h.
11766
11767 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
11768
11769         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
11770         separators also if no non-zero digits found.
11771         * stdlib/Makefile (tests): Add tst-strtod3.
11772
11773 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
11774
11775         [BZ #3632]
11776         * include/features.h: Fix comment about default value for
11777         _POSIX_C_SOURCE.
11778
11779         [BZ #3664]
11780         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11781         empty parsed strings.
11782         * stdlib/Makefile (tests): Add tst-strtod2.
11783         * stdlib/tst-strtod2.c: New file.
11784
11785         [BZ #3673]
11786         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11787         computation.
11788         * stdlib/Makefile (tests): Add tst-atof2.
11789         * stdlib/tst-atof2.c: New file.
11790
11791         [BZ #3674]
11792         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11793         correctly if removing trailing zero of hex-float.
11794         * stdlib/Makefile (tests): Add tst-atof1.
11795         * stdlib/tst-atof1.c: New file.
11796
11797 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
11798
11799         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11800         Start searching for next comma at p rather than rest.
11801         * misc/Makefile (tests): Add tst-mntent2.
11802         * misc/tst-mntent2.c: New test.
11803
11804         * misc/getusershell.c (initshells): Check for integer overflows.
11805         Make strings buffer one bigger as fgets always succeeds when second
11806         argument is 1.  Don't use calloc for shells array.  Disallow
11807         / as shell.
11808
11809 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
11810
11811         * malloc/memusage.c: Handle realloc with new size of zero and
11812         non-NULL pointer correctly.
11813         (me): Really write first record twice.
11814         (struct entry): Make format bi-arch safe.
11815         (dest): Write out more realloc statistics.
11816         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11817
11818 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
11819
11820         * nis/nis_subr.c (nis_getnames): Revert last change.
11821
11822 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11823
11824         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11825         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11826         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11827         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11828         ENOTTY.
11829         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11830         * io/tst-ttyname_r.c: New test.
11831
11832 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11833
11834         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11835
11836 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11839         jump table entries.
11840
11841 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11842
11843         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11844         `clone' function to ensure proper unwinding stop of gdb.
11845         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11846
11847 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11848
11849         * nscd/nscd.init: Remove obsolete and commented-out -S option
11850         handling.
11851
11852 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11853
11854         [BZ #3514]
11855         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11856
11857         [BZ #3515]
11858         * manual/string.texi (strtok): Remove duplicate paragraph.
11859
11860 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11861
11862         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11863         libgcc not supporting `rflags' unwinding (register # >= 17).
11864
11865 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11866
11867         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11868         succeeded.
11869
11870 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11871             Jakub Jelinek  <jakub@redhat.com>
11872             Jan Kratochvil  <jan.kratochvil@redhat.com>
11873
11874         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11875         unwind information.
11876         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11877         'restore_rt' even in the 'signal' directory.
11878         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11879
11880 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11881
11882         [BZ #3559]
11883         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11884         malloc crashed.  Don't allocate memory unnecessarily in each
11885         loop.
11886
11887 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11888
11889         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11890
11891 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11892
11893         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11894
11895 2006-11-18  Bruno Haible  <bruno@clisp.org>
11896
11897         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11898         __sysconf only after having tried to call getgroups32.
11899
11900 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11901
11902         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11903         addresses for IPv4 queries if they can be mapped.
11904
11905 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11906
11907         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11908         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11909         (signmask): Add .size directive.
11910         (othermask): Add .type directive.
11911
11912 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11913
11914         * po/nl.po: Update from translation team.
11915
11916         * timezone/zdump.c: Redo fix for BZ #3137.
11917
11918 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11919
11920         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11921         to first_unused after parsing :include: file.
11922
11923 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11924
11925         * timezone/africa: Update from tzdata2006o.
11926         * timezone/antarctica: Likewise.
11927         * timezone/asia: Likewise.
11928         * timezone/australasia: Likewise.
11929         * timezone/backward: Likewise.
11930         * timezone/europe: Likewise.
11931         * timezone/iso3166.tab: Likewise.
11932         * timezone/northamerica: Likewise.
11933         * timezone/southamerica: Likewise.
11934         * timezone/zone.tab: Likewise.
11935
11936         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11937         on machines with 64-bit time_t.
11938
11939         * timezone/checktab.awk: Update from tzcode2006o.
11940         * timezone/ialloc.c: Likewise.
11941         * timezone/private.h: Likewise.
11942         * timezone/scheck.c: Likewise.
11943         * timezone/tzfile.h: Likewise.
11944         * timezone/tzselect.ksh: Likewise.
11945         * timezone/zdump.c: Likewise.
11946         * timezone/zic.c: Likewise.
11947
11948         [BZ #3483]
11949         * elf/ldconfig.c (main): Call setlocale and textdomain.
11950         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11951
11952         [BZ #3480]
11953         * manual/argp.texi: Fix typos.
11954         * manual/charset.texi: Likewise.
11955         * manual/errno.texi: Likewise.
11956         * manual/filesys.texi: Likewise.
11957         * manual/lang.texi: Likewise.
11958         * manual/maint.texi: Likewise.
11959         * manual/memory.texi: Likewise.
11960         * manual/message.texi: Likewise.
11961         * manual/resource.texi: Likewise.
11962         * manual/search.texi: Likewise.
11963         * manual/signal.texi: Likewise.
11964         * manual/startup.texi: Likewise.
11965         * manual/stdio.texi: Likewise.
11966         * manual/sysinfo.texi: Likewise.
11967         * manual/syslog.texi: Likewise.
11968         * manual/time.texi: Likewise.
11969         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11970
11971         [BZ #3465]
11972         * sunrpc/clnt_raw.c: Minimal message improvements.
11973         * sunrpc/pm_getmaps.c: Likewise.
11974         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11975         * nis/nis_print_group_entry.c: Likewise.
11976         * locale/programs/repertoire.c: Likewise.
11977         * locale/programs/charmap.c: Likewise.
11978         * malloc/memusage.sh: Likewise.
11979         * elf/dl-deps.c: Likewise.
11980         * locale/programs/ld-collate.c: Likewise.
11981         * libio/vswprintf.c: Likewise.
11982         * malloc/memusagestat.c: Likewise.
11983         * sunrpc/auth_unix.c: Likewise.
11984         * sunrpc/rpc_main.c: Likewise.
11985         * nscd/cache.c: Likewise.
11986         * locale/programs/repertoire.c: Unify output messages.
11987         * locale/programs/charmap.c: Likewise.
11988         * locale/programs/ld-ctype.c: Likewise.
11989         * locale/programs/ld-monetary.c: Likewise.
11990         * locale/programs/ld-numeric.c: Likewise.
11991         * locale/programs/ld-time.c: Likewise.
11992         * elf/ldconfig.c: Likewise.
11993         * nscd/selinux.c: Likewise.
11994         * elf/cache.c: Likewise.
11995         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11996
11997         [BZ #3451]
11998         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11999         change atomic.
12000         (ceil): Likewise.
12001
12002 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12003
12004         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12005         if N is one bigger than return value.
12006         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12007         and l1 last arguments, if buf is defined, verify the return value
12008         equals to strlen (buf) and verify no byte beyond passed length
12009         is modified.
12010
12011 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12012
12013         * po/sv.po: Update from translation team.
12014
12015 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12016
12017         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12018         noinline attribute.
12019
12020 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12021
12022         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12023         noinline attribute.
12024
12025         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12026         Use __new_sys_siglist instead of _sys_siglist_internal as
12027         second macro argument.
12028         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12029         strong_alias.
12030
12031 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12032
12033         [BZ #3493]
12034         * posix/unistd.h (sysconf): Remove const attribute.
12035
12036         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12037         temporary or deprecated addresses.
12038         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12039
12040         * string/Makefile (tests): Add tst-strxfrm2.
12041         * string/tst-strxfrm2.c: New file.
12042
12043 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12044
12045         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12046         rather than r->r_brk.
12047
12048 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12049
12050         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12051         optimization even if needed > n.
12052
12053         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12054         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12055         return false, otherwise return true.
12056         (cache_rpath): Return decompose_rpath return value.
12057
12058 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12059
12060         * include/libc-symbols.h (declare_symbol): Rename to...
12061         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12062         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12063         .size directive.
12064         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12065         changes.
12066         * sysdeps/gnu/siglist.c: Likewise.
12067
12068 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12069
12070         * sysdeps/powerpc/fpu/bits/mathinline.h
12071         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12072         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12073
12074 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12075
12076         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12077         Update handling of cache descriptor 0x49 for new models.
12078         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12079         Likewise.
12080
12081 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12082
12083         * malloc/memusage.c (dest): Reset not_me back to false after
12084         printing statistics.
12085
12086 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12087
12088         * configure.in: Work around ld --help change and avoid -z relro
12089         test completely if the architecture doesn't care about security.
12090
12091 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12092
12093         * po/sv.po: Update from translation team.
12094
12095 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12096
12097         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12098         generate compatibility version.
12099
12100 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12101
12102         * configure.in: Relax -z relro requirement a bit.
12103
12104         * po/sv.po: Update from translation team.
12105
12106 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12107
12108         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12109         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12110         * elf/dl-close.c (_dl_close_worker): Likewise.
12111         * elf/dl-open.c (_dl_open_worker): Likewise.
12112         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12113
12114 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12115
12116         * configure.in: Require assembler support for visibility, compiler
12117         support for visibility and aliases, linker support for various -z
12118         options.
12119         * Makeconfig: Remove conditional code which now is unnecessary.
12120         * config.h.in: Likewise.
12121         * config.make.in: Likewise.
12122         * dlfcn/Makefile: Likewise.
12123         * elf/Makefile: Likewise.
12124         * elf/dl-load.c: Likewise.
12125         * elf/rtld.c: Likewise.
12126         * include/libc-symbols.h: Likewise.
12127         * include/stdio.h: Likewise.
12128         * io/Makefile: Likewise.
12129         * io/fstat.c: Likewise.
12130         * io/fstat64.c: Likewise.
12131         * io/fstatat.c: Likewise.
12132         * io/fstatat64.c: Likewise.
12133         * io/lstat.c: Likewise.
12134         * io/lstat64.c: Likewise.
12135         * io/mknod.c: Likewise.
12136         * io/mknodat.c: Likewise.
12137         * io/stat.c: Likewise.
12138         * io/stat64.c: Likewise.
12139         * libio/stdio.c: Likewise.
12140         * nscd/Makefile: Likewise.
12141         * stdlib/Makefile: Likewise.
12142         * stdlib/atexit.c: Likewise.
12143         * sysdeps/generic/ldsodefs.h: Likewise.
12144         * sysdeps/i386/dl-machine.h: Likewise.
12145         * sysdeps/i386/sysdep.h: Likewise.
12146         * sysdeps/i386/i686/memcmp.S: Likewise.
12147         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12148         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12149         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12150
12151         * Makerules: USE_TLS support is now default.
12152         * tls.make.c: Likewise.
12153         * csu/Versions: Likewise.
12154         * csu/libc-start.c: Likewise.
12155         * csu/libc-tls.c: Likewise.
12156         * csu/version.c: Likewise.
12157         * dlfcn/dlinfo.c: Likewise.
12158         * elf/dl-addr.c: Likewise.
12159         * elf/dl-cache.c: Likewise.
12160         * elf/dl-close.c: Likewise.
12161         * elf/dl-iteratephdr.c: Likewise.
12162         * elf/dl-load.c: Likewise.
12163         * elf/dl-lookup.c: Likewise.
12164         * elf/dl-object.c: Likewise.
12165         * elf/dl-open.c: Likewise.
12166         * elf/dl-reloc.c: Likewise.
12167         * elf/dl-support.c: Likewise.
12168         * elf/dl-sym.c: Likewise.
12169         * elf/dl-sysdep.c: Likewise.
12170         * elf/dl-tls.c: Likewise.
12171         * elf/ldconfig.c: Likewise.
12172         * elf/rtld.c: Likewise.
12173         * elf/tst-tls-dlinfo.c: Likewise.
12174         * elf/tst-tls1.c: Likewise.
12175         * elf/tst-tls10.h: Likewise.
12176         * elf/tst-tls14.c: Likewise.
12177         * elf/tst-tls2.c: Likewise.
12178         * elf/tst-tls3.c: Likewise.
12179         * elf/tst-tls4.c: Likewise.
12180         * elf/tst-tls5.c: Likewise.
12181         * elf/tst-tls6.c: Likewise.
12182         * elf/tst-tls7.c: Likewise.
12183         * elf/tst-tls8.c: Likewise.
12184         * elf/tst-tls9.c: Likewise.
12185         * elf/tst-tlsmod1.c: Likewise.
12186         * elf/tst-tlsmod13.c: Likewise.
12187         * elf/tst-tlsmod13a.c: Likewise.
12188         * elf/tst-tlsmod14a.c: Likewise.
12189         * elf/tst-tlsmod2.c: Likewise.
12190         * elf/tst-tlsmod3.c: Likewise.
12191         * elf/tst-tlsmod4.c: Likewise.
12192         * elf/tst-tlsmod5.c: Likewise.
12193         * elf/tst-tlsmod6.c: Likewise.
12194         * include/errno.h: Likewise.
12195         * include/link.h: Likewise.
12196         * include/tls.h: Likewise.
12197         * locale/global-locale.c: Likewise.
12198         * locale/localeinfo.h: Likewise.
12199         * malloc/arena.c: Likewise.
12200         * malloc/hooks.c: Likewise.
12201         * malloc/malloc.c: Likewise.
12202         * resolv/Versions: Likewise.
12203         * sysdeps/alpha/dl-machine.h: Likewise.
12204         * sysdeps/alpha/libc-tls.c: Likewise.
12205         * sysdeps/generic/ldsodefs.h: Likewise.
12206         * sysdeps/generic/tls.h: Likewise.
12207         * sysdeps/i386/dl-machine.h: Likewise.
12208         * sysdeps/ia64/dl-machine.h: Likewise.
12209         * sysdeps/ia64/libc-tls.c: Likewise.
12210         * sysdeps/mach/hurd/fork.c: Likewise.
12211         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12212         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12213         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12214         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12215         * sysdeps/s390/libc-tls.c: Likewise.
12216         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12217         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12218         * sysdeps/sh/dl-machine.h: Likewise.
12219         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12220         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12221         * sysdeps/x86_64/dl-machine.h: Likewise.
12222
12223         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12224         split out locking and parameter checking.
12225         (_dl_close): Call _dl_close_worker after locking and checking.
12226         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12227         _dl_close.
12228         * elf/Makefile: Add rules to build and run tst-thrlock.
12229         * elf/tst-thrlock.c:  New file.
12230
12231         [BZ #3426]
12232         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12233         reality.
12234
12235         [BZ #3429]
12236         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12237         we are sure we do not need it anymore for _dl_close.  Also move
12238         the asserts inside the lock region.
12239         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12240
12241 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12242
12243         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12244         argument.
12245         (_dl_lookup_symbol_x): Adjust caller.
12246
12247         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12248         _ns_global_scope.
12249         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12250
12251         * elf/dl-libc.c: Revert l_scope name changes.
12252         * elf/dl-load.c: Likewise.
12253         * elf/dl-object.c: Likewise.
12254         * elf/rtld.c: Likewise.
12255         * elf/dl-close.c (_dl_close): Likewise.
12256         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12257         always use __rtld_mrlock_{change,done}.  Always free old scope list
12258         here if not l_scope_mem.
12259         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12260         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12261         the lookup and __rtld_mrlock_unlock it after the lookup.
12262         * elf/dl-sym.c: Likewise.
12263         * include/link.h (struct r_scoperec): Remove.
12264         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12265         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12266
12267 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12268
12269         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12270
12271 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12272
12273         * configure.in: Disable building profile libraries by default.
12274
12275 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12276
12277         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12278         as signed longs, check for x_base + pos overflow.
12279         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12280         * sunrpc/tst-xdrmem2.c: New test.
12281
12282 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12283
12284         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12285         _dl_lookup_symbol_x code.
12286
12287 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12288
12289         * elf/dl-runtime.c: Include sysdep-cancel.h.
12290         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12291         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12292         instead of catomic_* macros.
12293         * elf/dl-sym.c: Include sysdep-cancel.h.
12294         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12295         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12296         * elf/dl-close.c: Include sysdep-cancel.h.
12297         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12298         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12299         * elf/dl-open.c: Include sysdep-cancel.h.
12300         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12301         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12302
12303 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12304
12305         [BZ #3313]
12306         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12307         fastbin rather than end of fastbin array.
12308
12309 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12310
12311         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12312         body macro.
12313         * sysdeps/x86_64/bits/atomic.h
12314         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12315         (catomic_decrement): Use correct body macro.
12316
12317 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12318
12319         * include/atomic.h: Add a unique prefix to all local variables
12320         in macros.
12321         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12322
12323 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12324
12325         [BZ #3369]
12326         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12327         and 7.
12328
12329 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12330
12331         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12332
12333 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12334
12335         [BZ #3313]
12336         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12337         determine highest fast bin to consolidate, always look into all of
12338         them.
12339         (do_check_malloc_state): Only require for empty bins for large
12340         sizes in main arena.
12341
12342         * libio/stdio.h: Add more __wur attributes.
12343
12344         * elf/dl-minimal.c (realloc): Optimize last patch.
12345
12346 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12347
12348         [BZ #3352]
12349         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12350         and use memcpy() if it does.
12351
12352 2006-11-12  Andreas Jaeger  <aj@suse.de>
12353
12354         [BZ #2510]
12355         * manual/search.texi (Hash Search Function): Clarify.
12356         (Array Search Function): Clarify.
12357
12358 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12359
12360         [BZ #2830]
12361         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12362         shifting.
12363         * math/atest-exp2.c (read_mpn_hex): Likewise.
12364         * math/atest-sincos.c (main): Likewise.
12365
12366 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12367
12368         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12369         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12370         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12371         version GLIBC_2.6.
12372         * Versions.def: Add GLIBC_2.6 for libc.
12373
12374         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12375
12376         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12377
12378 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12379
12380         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12381
12382         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12383
12384         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12385         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12386
12387 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12388
12389         * include/atomic.c: Define catomic_* operations.
12390         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12391         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12392         * malloc/memusage.c: Likewise.
12393         * gmon/mcount.c: Likewise.
12394         * elf/dl-close.c: Likewise.
12395         * elf/dl-open.c: Likewise.
12396         * elf/dl-profile.c: Likewise.
12397         * elf/dl-sym.c: Likewise.
12398         * elf/dl-runtime.c: Likewise.
12399         * elf/dl-fptr.c: Likewise.
12400         * resolv/res_libc.c: Likewise.
12401
12402 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12403
12404         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12405         components which lack them.
12406
12407         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12408         at least one entry consisting of the parameter concatenated with
12409         the domain.
12410
12411 2006-10-10  Roland McGrath  <roland@frob.com>
12412
12413         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12414         * sysdeps/mach/hurd/futimes.c: Likewise.
12415         * sysdeps/mach/hurd/lutimes.c: Likewise.
12416
12417 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12418             Jakub Jelinek  <jakub@redhat.com>
12419
12420         Implement reference counting of scope records.
12421         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12422         from the list in objects which remain.  Always allocate new scope
12423         record.
12424         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12425         don't resize, allocate a new one.
12426         * elf/dl-runtime.c: Update reference counters before using a scope
12427         array.
12428         * elf/dl-sym.c: Likewise.
12429         * elf/dl-libc.c: Adjust for l_scope name change.
12430         * elf/dl-load.c: Likewise.
12431         * elf/dl-object.c: Likewise.
12432         * elf/rtld.c: Likewise.
12433         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12434         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12435         Add l_scoperec_lock.
12436         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12437         * sysdeps/generic/rtld-lowlevel.h: New file.
12438
12439         * include/atomic.h: Rename atomic_and to atomic_and_val and
12440         atomic_or to atomic_or_val.  Define new macros atomic_and and
12441         atomic_or which do not return values.
12442         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12443         Various cleanups.
12444         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12445
12446         * po/sv.po: Update from translation team.
12447
12448 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12449
12450         * Versions.def: Add GLIBC_2.6 to libpthread.
12451
12452         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12453         (versioned_symbol): Likewise.
12454         (compat_symbol): Likewise.
12455
12456         * po/tr.po: Update from translation team.
12457
12458 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12459
12460         * nis/Banner: Removed.  It's been integral part forever and the
12461         author info is incomplete anyway.
12462         * libio/Banner: Likewise.
12463
12464         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12465         code, make sure the nis_freeresult call doesn't crash and that the
12466         result is reported correctly.
12467
12468 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12469
12470         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12471         when callback is NULL.
12472
12473         * nis/Versions (libnss_nisplus): Add
12474         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12475         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12476         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12477         _nss_create_tablename): Rename to...
12478         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12479         ... these.  No longer static.
12480         (internal_setgrent): Adjust users.
12481         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12482         Don't use locking around _nss_grp_create_tablename call.
12483         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12484
12485 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12486
12487         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12488
12489 2006-10-06  Andreas Jaeger  <aj@suse.de>
12490
12491         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12492
12493 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12494
12495         * po/pl.po: Update from translation team.
12496
12497         * nscd/nscd.c (main): Fix typo in message.
12498         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12499
12500 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12501
12502         [BZ #3291]
12503         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12504         errno.h, signal.h, unistd.h and sysdep-cancel.h.
12505         (__sigprocmask): Define.
12506
12507 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
12508
12509         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12510         used.
12511
12512 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
12513
12514         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12515         in oldtotal and newtotal calculation.
12516         * nscd/nscd-client.h (struct mapped_database): Add datasize
12517         field.
12518         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12519         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12520         increased.
12521         (__nscd_cache_search): Add checks to make sure we never reference
12522         data beyond the current mapping.
12523
12524 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12525
12526         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12527         variables const to avoid compiler warnings.
12528
12529         * io/fts.c (fts_close): Remove redundant checks.
12530         (fts_build): Likewise.
12531         (fts_palloc): Likewise.
12532
12533         * manual/message.texi (Advanced gettext functions,
12534         Using gettextized software): Fix typos.
12535
12536 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
12537
12538         * posix/glob.c (glob_in_dir): Add some comments and asserts to
12539         explain why there are no leaks.
12540
12541 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
12542
12543         * libio/wmemstream.c: Include <wchar.h>.
12544         * libio/bug-wmemstream1.c: Likewise.
12545         * libio/tst-wmemstream1.c: Likewise.
12546         * libio/tst-wmemstream2.c: Likewise.
12547
12548         * version.h (RELEASE): Bump to 2.5.
12549         * README: Regenerated.
12550
12551         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12552
12553         [BZ #3273]
12554         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12555         found no group members.
12556         Patch by Petr Baudis.
12557
12558 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
12559
12560         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12561         assert bootstrap_map.l_tls_modid is zero.
12562         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12563         if USE___THREAD.
12564
12565 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
12566
12567         * libio/stdio.h: Move open_wmemstream prototype to ...
12568         * wcsmbs/wchar.h: ... here.
12569
12570 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
12571
12572         [BZ #3252]
12573         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12574         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12575         __{,l}chown to handle the rest.
12576         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12577         fchownat syscall and __ASSUME_32BITUIDS case inline, call
12578         __{,l}chown to handle the rest.
12579         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12580         i386/fchownat.c.
12581         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12582         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12583
12584         [BZ #3253]
12585         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12586         time, rather allocate increasingly bigger arrays of pointers, if
12587         possible with alloca, if too large with malloc.
12588
12589 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
12590
12591         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12592
12593         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12594
12595 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
12596
12597         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12598         home addresses.
12599         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12600         IFA_F_HOMEADDRESS flag for interfaces.
12601         * include/ifaddrs.h (struct in6addrinfo): Define
12602         in6ai_homeaddress.
12603
12604 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
12605
12606         [BZ #3225]
12607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12608         PTR_DEMANGLE3): Define.
12609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12610         PTR_DEMANGLE3): Likewise.
12611         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12612         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12613         Likewise.
12614         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12615
12616 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
12617
12618         * po/libc.pot: Regenerated.
12619         * po/be.po: Updated.
12620         * po/ca.po: Likewise.
12621         * po/cs.po: Likewise.
12622         * po/da.po: Likewise.
12623         * po/de.po: Likewise.
12624         * po/el.po: Likewise.
12625         * po/en_GB.po: Likewise.
12626         * po/es.po: Likewise.
12627         * po/fi.po: Likewise.
12628         * po/fr.po: Likewise.
12629         * po/gl.po: Likewise.
12630         * po/hr.po: Likewise.
12631         * po/hu.po: Likewise.
12632         * po/ja.po: Likewise.
12633         * po/ko.po: Likewise.
12634         * po/nb.po: Likewise.
12635         * po/nl.po: Likewise.
12636         * po/pl.po: Likewise.
12637         * po/pt_BR.po: Likewise.
12638         * po/ru.po: Likewise.
12639         * po/rw.po: Likewise.
12640         * po/sk.po: Likewise.
12641         * po/sv.po: Likewise.
12642         * po/tr.po: Likewise.
12643         * po/zh_CN.po: Likewise.
12644         * po/zh_TW.po: Likewise.
12645
12646         [BZ #3137]
12647         * iconv/iconv_prog.c (main): Fix spelling in error message.
12648         * iconv/iconvconfig.c (main): Likewise.
12649         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12650         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12651         * locale/programs/localedef.c (main): Likewise.
12652         * locale/programs/repertoire.c (repertoire_read): Likewise.
12653         * timezone/zdump.c (main): Likewise.
12654         * nscd/connections.c (handle_request): Fix spelling in log message.
12655         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12656
12657 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
12658
12659         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12660         interfaces.
12661
12662 2006-09-20  Andreas Jaeger  <aj@suse.de>
12663
12664         * math/libm-test.inc (lrint_test_upward): Fix typo.
12665
12666 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
12667
12668         [BZ #2592]
12669         * math/libm-test.inc (lrint_test_tonearest): New function.
12670         (lrint_test_towardzero): New function.
12671         (lrint_test_downward): New function.
12672         (lrint_test_upward): New function.
12673         (main): Run these new tests.
12674         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12675         of values near to 0.
12676         (two52): Use double not long double.
12677         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12678         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12679         (two23): Use float not double.
12680         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12681         (two23): Use float not double.
12682         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12683         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12684         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12685         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12686
12687 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12688
12689         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12690         Cast sp to unsigned long to avoid compiler warning.
12691         Use __makecontext_ret function instead of a trampoline on the stack.
12692         (__makecontext_ret): New function.
12693         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12694
12695 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
12696
12697         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12698         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12699         bits.
12700
12701 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
12702
12703         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12704         sure no reference to the unloaded map's search list remains in the
12705         dependency's scope.
12706
12707 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12708
12709         * elf/Makefile: Add rules to build and run unload7 test.
12710         * elf/unload7.c: New test.
12711         * elf/unload7mod1.c: New file.
12712         * elf/unload7mod2.c: New file.
12713
12714 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
12715
12716         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
12717         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
12718         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12719         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
12720         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12721         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
12722         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
12723         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
12724         PTRACE_GETEVENTMSG): Likewise.
12725         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
12726         values.
12727
12728 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
12729
12730         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
12731         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
12732         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
12733         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
12734
12735 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
12736
12737         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
12738         write '\0' to the fd.
12739         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
12740         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
12741         Change regs to unsigned long pointer from unsigned int, fix fscr
12742         offset.
12743
12744 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12745
12746         * io/Makefile (CFLAGS-fstatat.c): Set.
12747         (CFLAGS-fstatat64.c): Likewise.
12748         (CFLAGS-mknodat.c): Likewise.
12749
12750         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
12751         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12752         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
12753         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
12754
12755 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
12756             Steven Munroe  <sjmunroe@us.ibm.com>
12757
12758         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
12759         names to the beginning.  Rename "cell" to "cellbe".
12760         (_dl_powerpc_platforms): New.
12761         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12762         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
12763         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
12764         (_DL_HWCAP_PLATFORM): Define to new mask.
12765         (_dl_platform_string, _dl_string_platform): New functions.
12766         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
12767         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
12768
12769 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
12770
12771         [BZ #2526]
12772         * README.libm: Fix a thinko in sqrt algorithm description.
12773
12774         [BZ #3143]
12775         * manual/string.texi (argz_delete): Fix prototype.
12776         Patch by <alpt@freaknet.org>.
12777
12778 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
12779
12780         [BZ #3138]
12781         * io/test-lfs.c (do_prepare): Give name_len type size_t.
12782         * io/tst-fcntl.c (do_prepare): Likewise.
12783         * posix/tst-exec.c (do_prepare): Likewise.
12784         * posix/tst-preadwrite.c (do_prepare): Likewise.
12785         * posix/tst-spawn.c (do_prepare): Likewise.
12786         * posix/tst-truncate.c (do_prepare): Likewise.
12787         * rt/tst-aio.c (do_prepare): Likewise.
12788         * rt/tst-aio64.c (do_prepare): Likewise.
12789         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12790         size_t.
12791
12792 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
12793
12794         [BZ #2821]
12795         * time/mktime.c (guess_time_tm): Fix overflow detection.
12796         * time/Makefile (tests): Add bug-mktime1.
12797         * time/bug-mktime1.c: New file.
12798
12799         [BZ #3189, #3188]
12800         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12801         (mremap): Likewise.
12802
12803 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
12804
12805         [BZ #1006]
12806         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12807         Ensure relocation doesn't clobber any bits outside of the
12808         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12809         R_SPARC_HI22 and R_SPARC_H44.
12810
12811         [BZ #2775]
12812         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12813         (long) (MINSIZE + nb - old_size) is positive.
12814
12815         * malloc/arena.c (grow_heap): When growing bail even if new_size
12816         is negative.
12817
12818         [BZ #3155]
12819         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12820         stack below r1.
12821
12822 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12823
12824         * posix/regex_internal.c (re_string_reconstruct): Handle
12825         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12826         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12827         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12828         re_string_context_at.
12829         * posix/Makefile: Add rules to build and run bug-regex26 test.
12830         * posix/bug-regex26.c: New test.
12831
12832         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12833         rather than col_sym_free.  Move seqp declaration earlier.
12834
12835         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12836
12837 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12838
12839         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12840         decl before first goto out.
12841
12842 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12843
12844         * Makerules (shlib.lds): If have-hash-style, put .hash section
12845         at the end of the RO segment.
12846
12847 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12848
12849         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12850         style hash table format is used.
12851
12852 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12853
12854         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12855         randomization rather than before.
12856         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12857
12858 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12859
12860         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12861
12862         * malloc/malloc.c (_int_malloc): Use full list insert and not
12863         shortcut which assumes the list is empty for large requests
12864         too.
12865
12866         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12867
12868 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12869
12870         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12871         and offout arguments to the prototype.
12872         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12873         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12874         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12875         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12876         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12877         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12878         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12879         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12880
12881 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12882
12883         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12884
12885         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12886         dlopen parameters.
12887
12888 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12889
12890         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12891         only if herrno is NETDB_INTERNAL.  Handle errors other than
12892         ERANGE outside of the loops, handle TRY_AGAIN.
12893
12894         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12895         if other's ctype category was missing.
12896         * locale/programs/ld-collate.c (collate_read): Return if
12897         copy_locale's collate category is missing.
12898
12899 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12900
12901         [BZ #2684]
12902         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12903         arenas if allocation failed.
12904         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12905
12906 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12907
12908         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12909         waste bins[0..1].
12910         (malloc_state): Reduce bins size by 2.
12911         (_int_malloc): Fix test for large enough buffer for early termination.
12912         When no unsorted block matches perfectly and an exiting block has
12913         to be split, use full list insert and not shortcut which assumes
12914         the list is empty.
12915
12916         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12917         failure.
12918
12919 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12920
12921         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12922         do anything.
12923
12924         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12925         symbol require exact match (these are PLTs).
12926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12927         (_dl_ppc64_addr_sym_match): Likewise.
12928
12929         [BZ #2683]
12930         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12931         If symbol has a value use it.
12932         * elf/tst-dladdr1.c: New file.
12933         * elf/Makefile: Add rules to build and run tst-addr1.
12934
12935 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12936
12937         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12938         keeps failing and heap growth or new heap creation isn't
12939         successful either.
12940         * malloc/tst-malloc.c (main): Add new tests.
12941
12942 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12943
12944         [BZ #2734]
12945         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12946         as in the x86-64 code to use bswap.
12947
12948 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12949
12950         [BZ #2680]
12951         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12952         __USE_UNIX98.
12953         * posix/bits/unistd.h: Likewise.
12954
12955 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12956
12957         [BZ #2751]
12958         * string/strchr.c: Add cast to avoid warning.
12959
12960 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12961
12962         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12963         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12964         limit is needed to avoid the exploding of the address space
12965         requirement for secondary heaps.
12966         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12967         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12968
12969 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12970
12971         [BZ #3018]
12972         * Makerules (depfiles): Handle extra-test-objs the same as
12973         extra-objs.
12974         (common-mostlyclean): Likewise.
12975         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12976         instead.
12977         * elf/Makefile (extra-objs): Likewise.
12978         * stdlib/Makefile (extra-objs): Likewise.
12979
12980 2006-08-14  Eric Blake  <ebb9@byu.net>
12981
12982         [BZ #3044]
12983         * misc/error.h: Assume C89 or better.
12984         * misc/error.c: Likewise.
12985
12986 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12987
12988         [BZ #3040]
12989         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12990         __ASSUME_ATFCTS is defined.
12991
12992 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12993
12994         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12995         to sort in each call.
12996
12997         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12998         is empty simply return and use next service.
12999         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13000
13001         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13002         tells us when not finding a charmap file is an error.
13003         * locale/programs/charmap.h: Adjust charmap_read prototype.
13004         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13005         cannot find a charmap.
13006         * locale/programs/localedef.c (main): Adjust charmap_read call.
13007
13008 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13009
13010         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13011         sysdeps/posix/pause.c implementation instead.
13012
13013 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13014
13015         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13016         to EPERM.
13017
13018 2006-08-13  Andreas Schwab  <schwab@suse.de>
13019
13020         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13021         Don't clobber caller's LRSAVE.
13022         (_dl_prof_resolve): Likewise.
13023
13024 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13025
13026         [BZ #1996]
13027         * libio/memstream.c (open_memstream): Allocate initial buffer with
13028         calloc.
13029         * libio/wmemstream.c (open_wmemstream): Likewise.
13030         * libio/strops.c: Pretty printing.
13031         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13032         (enlarge_userbuf): New function.
13033         (_IO_str_seekoff): Call it if seek position is larger than current
13034         buffer.
13035         * libio/wstrops.c: Likewise.
13036         * libio/vasprintf.c: Add comment as to why we do not have to use
13037         calloc instead of malloc to allocate initial buffer.
13038         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13039         * libio/bug-memstream1.c: New file.
13040         * libio/bug-wmemstream1.c: New file.
13041
13042 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13043
13044         * libio/wstrops.c: Remove dead macro definitions and comments.
13045         * libio/strops.c: Likewise.
13046
13047         [BZ #2764]
13048         * login/utmpname.c (__utmpname): Remove unnecessary test.
13049
13050 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13051
13052         [BZ #2832]
13053         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13054         0s from integers.
13055
13056 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13057
13058         [BZ #2987]
13059         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13060         for CPU clocks.
13061         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13062         setting of CPU clocks.
13063
13064 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         [BZ #2841]
13067         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13068         since C99 requires the result to promote to 'int' when uint_least8_t
13069         and uint_least16_t promote to 'int'.
13070
13071 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13072
13073         [BZ #3013]
13074         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13075         lenght of one output field, correct bitmask creation.
13076         * locale/programs/ld-time.c: Add alignment.
13077
13078         [BZ #2997]
13079         * misc/error.c: Add space between program name and message if file
13080         name is missing.
13081
13082 2006-08-03  Eric Blake  <ebb9@byu.net>
13083
13084         [BZ #2998]
13085         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13086
13087 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13088
13089         * malloc/memusagestat.c: Silence warnings.
13090
13091         * malloc/malloc.c: Dynamically size mmap treshold if the program
13092         frees mmaped blocks.
13093         Patch by Valerie Henson and Arjan van de Ven.
13094
13095 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13096
13097         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13098         __USE_GNU.
13099
13100         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13101         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13102         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13103         Only provide var definitions in strtol_l (or for *ull*
13104         in strtoll_l).
13105
13106         * stdio-common/bug16.c (tests): New array.
13107         (do_tests): Allow the first hexadecimal digit
13108         to be 1, 2, 4 or 8.  Do 3 additional tests.
13109
13110         * sysdeps/s390/fpu/libm-test-ulps: Update.
13111
13112         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13113         fchownat syscall if available.
13114         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13115         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13116         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13117
13118 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13119
13120         * nis/nis_xdr.c: Avoid some function calls.
13121
13122 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13123             Ulrich Drepper  <drepper@redhat.com>
13124
13125         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13126         short cut if only one name component is stripped away.
13127
13128 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13129
13130         * nis/nis_call.c: Minor cleanups throughout.
13131         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13132         (first_shoot): Add search_parent_first parameter.  Only if it is set
13133         search parent server first.
13134         If directory for table found through cold start cache is not the same
13135         as referenced in the cache, don't use it.
13136         (__nisfind_server): Take additional parameter.  Pass it on to
13137         first_shoot.
13138         (__prepare_niscall): Adjust __nisfind_server call.
13139         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13140         * nis/nis_table.c: Adjust __nisfind_server call.
13141         * nis/nis_lookup.c: Likewise.
13142         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13143
13144 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13145
13146         [BZ #2182]
13147         * math/s_cacosh.c: Return values from positive branch.
13148         * math/s_cacoshf.c: Likewise.
13149         * math/s_cacoshl.c: Likewise.
13150
13151         [BZ #2883]
13152         * sysvipc/sys/msg.h: Change return value to ssize_t.
13153         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13154         * sysvipc/msgrcv.c: Likewise.
13155         * include/sys/msg.h: Likewise.
13156
13157         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13158         test introduced in patch for bz #661.
13159         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13160         element for NEWGROUPS.
13161
13162         [BZ #2908]
13163         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13164         'f', use '1' as leading digit not '\1'.
13165         * stdio-common/Makefile (tests): Add bug16.
13166         * stdio-common/bug16.c: New file.
13167
13168         [BZ #2914]
13169         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13170         and don't try to open it.  The patch introducing the macro
13171         contained a bug and used the same file name as the new file
13172         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13173         this out completely.
13174
13175         [BZ #2926]
13176         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13177         Patch by Jerry James <Jerry.James@usu.edu>.
13178
13179         * rt/Makefile (tests): Add tst-clock2.
13180         * rt/tst-clock2.c: New file.
13181
13182         [BZ #2978]
13183         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13184         function and its parameters and pass it to new thread.
13185         (__gai_notify): Add support for alternative waiting for completion.
13186         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13187         waiting for completion.
13188         * resolv/getaddrinfo_a.c: Likewise.
13189         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13190         waiting for completion is used.
13191         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13192         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13193         * resolv/gai_error.c: Likewise.
13194         * resolv/gai_sigqueue.c: Likewise.
13195
13196 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13197
13198         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13199         errno to EBADF and return MACH_PORT_NULL.
13200
13201 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13202
13203         [BZ #2980]
13204         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13205
13206 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13207
13208         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13209         walk them instead of the symbol table.
13210
13211 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13212
13213         [BZ #2098]
13214         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13215         status of NSS calls, not the number of returned entries.
13216
13217         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13218         request_key, keyctl.
13219
13220 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13221
13222         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13223
13224 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13225
13226         * elf/tst-auditmod1.c: Fix typo in #error.
13227
13228 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13229
13230         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13231
13232         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13233
13234 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13235
13236         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13237         that the directory is empty even on non-POSIX filesystems.
13238
13239 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13240
13241         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13242
13243         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13244         the backend NSS module.  If backend setgrent call failed, don't have
13245         internal_setgrent fail.  Just remember this until it is needed.
13246         * nis/nss_compat/compat-pwd.c: Likewise.
13247         * nis/nss_compat/compat-spwd.c: Likewise.
13248
13249 2006-07-30  Roland McGrath  <roland@redhat.com>
13250
13251         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13252         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13253         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13254         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13255
13256         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13257         (nanosleep_not_cancel): New macro.
13258         (sigsuspend_not_cancel): new macro.
13259         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13260         (do_sigsuspend): Define as inline.
13261         (__sigsuspend): Always use do_sigsuspend.
13262         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13263         * include/signal.h: Declare __sigsuspend_nocancel.
13264         * sysdeps/posix/pause.c
13265         [! NO_CANCELLATION] (__pause_nocancel): New function.
13266
13267         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13268         * include/time.h (__nanosleep_nocancel): Likewise.
13269
13270 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13271
13272         * locale/programs/localedef.c (add_to_readlist): Rename local
13273         variables to avoid confusion.
13274
13275         * locale/programs/charmap.c (charmap_read): Emit error message if
13276         charmap couldn't be found or read.
13277
13278 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13279
13280         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13281         __ASSUME_FUTEX_LOCK_PI.
13282         * include/time.h: Declare __nanosleep_nocancel.
13283         * include/unistd.h: Declare __pause_nocancel.
13284
13285         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13286         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13287         get the __stack_chk_fail_local definition when it's needed.
13288
13289 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13290
13291         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13292         * dlfcn/bug-atexit3.c: New file.
13293         * dlfcn/bug-atexit3-lib.cc: New file.
13294
13295         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13296         used when the namespace is not the base namespace.
13297
13298 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13299
13300         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13301         (__new_exitfn): Bump it in every successful call.
13302         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13303         more exit handlers, call them right away.
13304         * stdlib/exit.h: Declare __new_exitfn_called.
13305
13306 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13307
13308         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13309         calling registered handler.
13310
13311         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13312         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13313         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13314         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13315         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13316         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13317         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13318         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13319
13320 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13321
13322         * elf/dl-lookup.c (dl_new_hash): New functions.
13323         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13324         value here.  Compute new-style hash value.  Pass new hash value
13325         and reference to variable with the old value to do_lookup_x.
13326         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13327         old-style hash table.
13328         (_dl_debug_bindings): Pass new hash value and reference to variable
13329         with the old value to do_lookup_x.
13330         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13331         new-style hash value and change old-style hash value parameter to
13332         be a reference.  Reoganize functions to determine whether
13333         new-style hash table is available.  Only fall back on old-style
13334         table.  If old-style hash value is needed, compute it here.
13335         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13336         entry.
13337         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13338         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13339         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13340         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13341         * Makeconfig: If linker supports --hash-style option add it to all
13342         linker command lines to build DSOs.
13343         * config.make.in: Define have-hash-style.
13344         * configure.in: Test whether linker supports --hash-style option.
13345
13346         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13347         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13348
13349 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13350
13351         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13352         auditing.
13353
13354         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13355         RPATH of main map twice.
13356
13357 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13358
13359         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13360         look further, return original strings.
13361         (_nl_find_msg): Do not return found translation if the conversion
13362         failed.  Either signal the string is unusable or that something went
13363         wrong and the original should be used.
13364
13365 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13366
13367         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13368
13369 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13370
13371         [BZ #2766]
13372         * misc/insremque.c (insque): Handle prev == NULL.
13373         * misc/Makefile (tests): Add tst-insremque.
13374         * misc/tst-insremque.c: New test.
13375
13376 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13377
13378         [BZ #2792]
13379         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13380         conflict with DL_DST_REQUIRED.
13381
13382 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13383
13384         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13385         match what Solaris does.
13386
13387 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13388
13389         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13390         local_setegid instead of seteuid and setegid.
13391         * sysdeps/generic/local-setxid.h: New file.
13392         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13393
13394         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13395
13396         * string/Makefile (tests): Add bug-envz1.
13397         * string/bug-envz1.c: New file.
13398
13399 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13400
13401         * posix/regex_internal.c (re_string_skip_chars): If no character has
13402         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13403         to the byte which couldn't be converted.
13404         (re_string_reconstruct): Don't clear valid_raw_len before calling
13405         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13406         tip_context using re_string_context_at.
13407         * posix/Makefile: Add rules to build and run bug-regex25 test.
13408         * posix/bug-regex25.c: New test.
13409
13410 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13411
13412         [BZ #2703]
13413         * string/envz.c (envz_strip): Correct erroneously reversed src
13414         and dest parameters to memmove() invocation.
13415
13416 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13417
13418         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13419         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13420         to make sure the database has been already invalidated.
13421         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13422         after the cache has been invalidated.  Use pthread_mutex_lock rather
13423         than pthread_mutex_trylock if fd != -1.
13424         * nscd/connections.c (invalidate_cache): Add fd argument, write
13425         response to fd if not calling prune_cache, pass fd to prune_cache.
13426         (handle_request): Adjust invalidate_cache caller.
13427         (nscd_run): Pass -1 as fd to prune_cache.
13428
13429 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13430
13431         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13432         the correct place.
13433
13434 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13435
13436         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13437         * nscd/cache.c (prune_cache): Take prunelock before starting the
13438         work.  Just return in case it is already taken.
13439         * nscd/connections.c (dbs): Initialize .prunelock.
13440
13441 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13442
13443         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13444         copying.  No need to allocate new array for group members.  Just
13445         move the pointers and update the size.
13446
13447         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13448         Avoid memory leak in case realloc fails.  Simplification for
13449         better code generation.
13450
13451         Avoid deprecation warning because of libc_hidden_proto for
13452         inet6_option_alloc.
13453         * inet/inet6_option.c (option_alloc): Renamed from
13454         inet6_option_alloc.  Made static.
13455         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13456         (inet6_option_append): Call option_alloc.
13457         * include/netinet/in.h: Remove libc_hidden_proto for
13458         inet6_option_alloc.
13459
13460         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13461         for cleanup when cb!=NULL [Coverity CID 233].
13462
13463 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13464
13465         [BZ #2693]
13466         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13467         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13468         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13469         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13470         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13471         and inet6_rth_getaddr.
13472         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13473         array.
13474         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13475         Mark inet6_option_* interfaces as deprecated.
13476         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13477         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13478         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13479         inet6_rth_segments, and inet6_rth_getaddr.
13480         * inet/inet6_opt.c: New file.
13481         * inet/inet6_rth.c: New file.
13482
13483         * inet/netinet/icmp6.h: Pretty printing.
13484
13485         [BZ #2683]
13486         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13487
13488 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13489
13490         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13491         doing it all here.  When server does not know the answer do not
13492         fail immediate, try parent first.
13493
13494         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13495         overflow test.
13496
13497 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
13498
13499         * nis/nis_call.c (__prepare_niscall): New function.  Split out
13500         from __do_niscall.
13501         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13502         and exported.
13503         (__follow_path): New function.  Split out from nis_list.
13504         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13505         _xdr_nis_result.
13506         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13507         _xdr_nis_result.
13508         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13509         and __follow_path.
13510         * nis/Versions: Export __prepare_niscall, __create_ib_request,
13511         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13512         from libnsl for version GLIBC_PRIVATE.
13513         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13514         Remove entry parameter from _nss_nisplus_parse_pwent and
13515         _nss_nisplus_parse_grent.
13516         * nis/nss_nisplus/nisplus-parser.c: Likewise.
13517         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13518         again.  Rewrite getpwent handling to not use nis_first_entry and
13519         nis_next_entry.  Roll out own niscall handling.
13520         * nis/nss_nisplus/nisplus-grp.c: Likewise.
13521
13522         * sunrpc/xdr_rec.c: Fix typo in comment.
13523
13524 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
13525
13526         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13527         handling.
13528
13529         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13530         to allocate memory for my_pollfd.  Better initialization of
13531         cb_is_running.  Use TEMP_FAILURE_RETRY.
13532
13533         * malloc/memusage.sh (memusageso): Add quotes.
13534         (memusagestat): Likewise.
13535         * debug/xtrace.sh (pcprofileso): Likewise.
13536         (pcprofiledump): Likewise.
13537         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13538         replacement.
13539         * malloc/Makefile ($(objpfx)memusage): Likewise.
13540
13541         * nis/nis_callback.c (__nis_create_callback): Calls to
13542         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
13543         asprintf call fails.
13544
13545         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13546         no uninitialized memory is passed to sendto.
13547
13548 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13549
13550         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13551         of snprintf+strdup.  Handle OOM.
13552         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13553         cb->serv together.  Remove now obsolete free calls.
13554         (__nis_destroy_callback): Remove now obsolete free call.
13555
13556 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
13557
13558         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13559         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13560         and ULA respectively). Set precedence for IPv4 address to 10 as
13561         defined in RFC3484 for preferring IPv6.
13562         * posix/gai.conf: Update to match the new default tables.
13563
13564 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
13565
13566         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13567         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13568         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13569         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13570
13571         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13572         Removed.
13573         (init_nss_interface): Remove initialization of these variables.
13574
13575 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
13576
13577         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13578         nis_free_directory forward to avoid duplication.
13579
13580 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
13581
13582         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13583         rec_dirsearch returning NULL.
13584         (first_shoot): Handle __nis_finddirectory returning NULL.
13585         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13586
13587         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13588         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13589
13590 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
13591
13592         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13593         pid changed.
13594
13595 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
13596
13597         * include/rpc/pmap_prot.h: Mark all functions as hidden.
13598
13599         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13600         * nscd/nscd_getgr_r.c: Likewise.
13601
13602         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13603
13604         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13605         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13606
13607         * stdlib/longlong.h (__clz_tab): Mark as hidden.
13608
13609         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13610
13611         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13612
13613         * include/rpc/auth.h: Mark xdr_des_block_internal and
13614         xdr_opaque_auth_internal as hidden.
13615
13616         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13617         hidden.
13618
13619         * include/rpc/xdr.h: Mark all _internal functions as hidden.
13620
13621         * misc/getusershell.c (okshells): Don't use static initializers,
13622         do it dynamically.
13623
13624         * stdlib/fmtmsg.c (keywords): Change type of len element to
13625         uint32_t to not waste space on 64bit machines.
13626
13627         * locale/setlocale.c: Change _nl_category_names into a string.
13628         Add new _nl_category_name_idxs.  Change all users.
13629         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13630         Declare _nl_category_name_idxs.
13631         * locale/findlocale.c: Adjust for _nl_category_names change.
13632         * locale/loadlocale.c: Likewise.
13633         * locale/newlocale.c: Likewise.
13634         * intl/dcigettext.c: Likewise.
13635
13636         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13637         (add_alias2): ...here.  New function.
13638         (__gconv_read_conf): Simplify builtin alias handling.
13639         (builtin_aliases): Convert to string to avoid relocations.
13640         * iconv/gconv_builtin.h: Add comment about correct formatting.
13641
13642 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13643
13644         * resolv/res_debug.c (loc_ntoa): Make error const.
13645
13646 2006-05-14  Andreas Schwab  <schwab@suse.de>
13647
13648         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13649
13650 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
13651
13652         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13653         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13654         sizeof (cpu_set_t).
13655
13656 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
13657
13658         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13659
13660         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13661
13662         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13663         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13664
13665         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13666         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13667
13668         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13669         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13670         xdr_cback_data.
13671
13672         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13673         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13674         xdr_ypupdate_args.
13675
13676         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13677         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13678
13679         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13680         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13681
13682         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13683         * include/rpcsvc/nis_callback.h: New file.
13684
13685         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13686         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13687
13688         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13689         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13690
13691         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13692         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13693
13694         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13695         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13696
13697         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13698         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13699         xdr_ypdelete_args.
13700
13701         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
13702         __BEGIN_DECLS and __END_DECLS, the header is not installed.
13703
13704         * nis/nis_error.c: Remove table of strings.  Use position
13705         independent mechanism.
13706         * nis/nis_error.h: New file.
13707
13708 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
13709
13710         * locale/programs/ld-time.c (time_finish): If wide era name or
13711         format aren't provided, set both wname and wformat to L"".
13712
13713 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13714
13715         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
13716         results if the call was succesful.
13717
13718         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
13719
13720         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
13721         as hidden.
13722
13723 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
13724
13725         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
13726
13727 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
13728
13729         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
13730         caller makes sure this is not the case.
13731         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
13732
13733 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
13734
13735         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
13736         calls.
13737
13738         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
13739         [Coverity CID 229, 230]
13740
13741         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
13742         DGETTEXT calls.
13743         (hol_help): Likewise.  [Coverity CID 226, 227]
13744
13745         * string/argz-replace.c (__argz_replace): Unconditionally call
13746         free on SRC.  [Coverity CID 225]
13747
13748         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
13749         the return value of __nis_default_owner and __nis_default_group,
13750         it has been especially allocated.  [Coverity CID 224]
13751
13752         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
13753         searchgroup and searchowner.  Significantly simplified.
13754         (__nis_default_owner): Remove duplication.  Do not locally copy the
13755         string before duplicating it.
13756         (__nis_default_group): Likewise.
13757
13758         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
13759         we must clear the variable before calling __nisfind_server.
13760
13761         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
13762         nis_getnames.  [Coverity CID 223]
13763
13764         * locale/programs/locfile.c (locfile_read): Use alloca instead of
13765         xmalloc to allocate local repertoire name.  [Coverity CID 222]
13766
13767         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
13768         allocate memory for the input to add_bytes.  [Coverity CID 221]
13769
13770         * posix/wordexp.c (w_addword): Free word if realloc fails and it
13771         was allocated here.  [Coverity CID 219, 220]
13772
13773         * posix/getconf.c (print_all): Free confstr data after printing.
13774         [Coverity CID 218]
13775
13776         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
13777         list allocation fails.  [Coverity CID 215]
13778
13779         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13780         [Coverity CID 213]
13781
13782         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13783         string is NULL.  [Coverity CID 212]
13784         * argp/Makefile: Add rules to build and run bug-argp1.
13785         * argp/bug-argp1.c: New file.
13786
13787         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13788         end of string.
13789         * stdlib/canonicalize.c (__realpath): Likewise.
13790
13791         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13792         pointer.  [Coverity CID 206]
13793
13794         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13795         in statically linked code.
13796         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13797         statically built code, be prepared to have no link map.
13798         [Coverity CID 205]
13799
13800         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13801         dgettext calls. [Coverity CID 204]
13802
13803         * argp/argp-help.c (struct uparams): Remove valid member.  Change
13804         the one user.
13805         (uparam_names): Reduce size.  Avoid relative relocations.
13806         Moved to read-only segment.
13807         (fill_in_uparams): Update for new layout.
13808
13809         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13810         assumed to always be != NULL. [Coverity CID 202]
13811
13812         * argp/argp-help.c (hol_entry_help): Remove some dead code
13813         [Coverity CID 200].
13814
13815         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13816         away a few more unconditional yperr2nss calls.
13817         (_nss_nis_getservbyname_r): Likewise.
13818
13819 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13820
13821         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13822         architectures.
13823
13824         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13825         that unused memory passed to sendto is nevertheless initialized.
13826
13827         [BZ #2499]
13828         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13829         possibly unaligned memory accesses.
13830
13831         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13832         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13833         and __putlong respectively.  Correct buffer overflow check for
13834         NS_NOTIFY_OP.
13835
13836         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13837
13838         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13839         (send_dg): Rewrite error handling to be more compact and avoid
13840         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13841
13842         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13843
13844         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13845         instead of ns_get16.
13846         (res_queriesmatch): Likewise.  Minor optimization.
13847
13848         [BZ #2499]
13849         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13850         __libc_res_nsend might reallocate the buffer for the answer.  In
13851         this case we have to reload the HP pointer.
13852
13853 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13854
13855         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13856         some branch prediction hints.
13857
13858         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13859         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13860         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13861         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13862         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13863         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13864         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13865         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13866
13867 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13868
13869         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13870         by a GOT relocation to make Scrt1.o position independent.
13871         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13872
13873         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13874         six system call parameters.
13875         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13876
13877 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13878
13879         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13880         malloc&bzero.
13881
13882         * sunrpc/svc_udp.c (BZERO): Remove definition.
13883         (CALLOC): Define.
13884         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13885
13886         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13887         (des_SPtrans): Use uint32_t type.
13888         (des_skb): Likewise.
13889
13890         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13891
13892 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13893
13894         [BZ #2509]
13895         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13896         on 32-bit arches.
13897
13898 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13899
13900         * locale/programs/ld-address.c (address_finish): Fix one more
13901         place where the iso639 array might be accessed beyond the limits.
13902
13903 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13904
13905         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13906         filling it for the first time.
13907
13908         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13909         Adjust all callers.
13910         Free res object content before returning.
13911
13912         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13913
13914         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13915         client->cl_auth.
13916
13917         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13918         cleanup for initial thread, just the free call on TVP.
13919
13920         * nscd/gai.c (__getline): Define.
13921
13922
13923 See ChangeLog.16 for earlier changes.