* sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2005-11-25  Richard Henderson  <rth@redhat.com>
2
3         * sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo.
4         (__fxstatat64): Alias from __fxstatat; remove other cnp errors.
5         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Include sys/cdefs.h
6         and stddef.h.
7         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MREMAP_FIXED): Define.
8
9 2005-11-25  Ulrich Drepper  <drepper@redhat.com>
10
11         * Makeconfig (+cflags): Add -fmerge-all-constants by default.
12
13         [BZ #1912]
14         * nss/function.def: Add entry to use gethostbyname2 for files.
15
16 2005-11-25  Thorsten Kukuk  <kukuk@suse.de>
17
18         * sysdeps/unix/sysv/linux/fxstatat64.c: Include string.h.
19
20 2005-11-25  Ulrich Drepper  <drepper@redhat.com>
21
22         [BZ #1926]
23         * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Change
24         return value type to match expected type.
25
26         [BZ #1925]
27         * nis/ypclnt.c (yp_order): Correct test for invalid parameter.
28
29 2005-11-24  Ulrich Drepper  <drepper@redhat.com>
30
31         * scripts/check-c++-types.sh: Improve comments.
32
33         * scripts/check-local-headers.sh: New file.
34         * Makefile (tests): Run check-local-headers.sh.
35
36 2005-11-23  Thorsten Kukuk  <kukuk@suse.de>
37
38         * include/sys/sendfile.h: New file.
39
40 2005-11-24  Andreas Schwab  <schwab@suse.de>
41
42         * time/sys/time.h: Remove nonnull attribute from futimesat.
43
44 2005-11-22  Ulrich Drepper  <drepper@redhat.com>
45
46         * nscd/connections.c (sendfileall): Define.
47         (handle_request): Use it instead of sendfile call.
48         * nscd/nscd-client.h: Declare sendfileall.
49         * nscd/aicache.c: Use sendfileall instead of sendfile.
50         * nscd/grpcache.c: Likewise.
51         * nscd/hstcache.c: Likewise.
52         * nscd/initgrcache.c: Likewise.
53         * nscd/pwdcache.c: Likewise.
54
55         [BZ #1908]
56         * manual/install.texi (Tools for Compilation): Require gawk.
57
58 2005-11-22  Jakub Jelinek  <jakub@redhat.com>
59
60         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
61         unused is_static field from slotinfo array.
62
63 2005-11-21  Jakub Jelinek  <jakub@redhat.com>
64
65         * sunrpc/bindrsvprt.c (bindresvport): Wrap around to startport
66         in the loop if port is bigger than endport, initially set to
67         ENDPORT.  When changing startport, set endport and port
68         appropriately.
69
70 2005-11-21  Ulrich Drepper  <drepper@redhat.com>
71
72         * Makefile.in: Remove RCS ID line.
73         * config-name.in: Likewise.
74         * config.make.in: Likewise.
75         * malloc/arena.c: Likewise.
76         * malloc/hooks.c: Likewise.
77         * malloc/malloc.c: Likewise.
78         * manual/dir: Likewise.
79         * math/math_private.h: Likewise.
80         * resolv/gethnamaddr.c: Likewise.
81         * scripts/mkinstalldirs: Likewise.
82         * sunrpc/rpc_clntout.c: Likewise.
83         * sunrpc/rpc_cout.c: Likewise.
84         * sunrpc/rpc_hout.c: Likewise.
85         * sunrpc/rpc_main.c: Likewise.
86         * sunrpc/rpc_parse.c: Likewise.
87         * sunrpc/rpc_sample.c: Likewise.
88         * sunrpc/rpc_scan.c: Likewise.
89         * sunrpc/rpc_svcout.c: Likewise.
90         * sunrpc/rpc_tblout.c: Likewise.
91         * sunrpc/rpc_util.c: Likewise.
92         * sysdeps/unix/sysv/linux/sys/quote.h: Likewise.
93
94         * nscd/nscd_helper.c: Pretty printing.
95
96 2005-11-19  Roland McGrath  <roland@redhat.com>
97
98         * elf/elf.h: Revert last change.
99
100 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
101
102         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (shmatt_t): New type.
103         (struct shmid_ds): Use it for shm_nattch field.
104
105 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
106
107         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): If FILE is NULL,
108         set access and modification times of the file referenced by FD.
109         * sysdeps/generic/futimesat.c (futimesat): Don't return EINVAL if
110         FILE is NULL.  Don't check FD if FILE is absolute path.
111
112 2005-11-19  Ulrich Drepper  <drepper@redhat.com>
113
114         * nscd/nscd_gethst_r.c (nscd_gethst_r): Avoid unnecesary read call
115         if there are no aliases.
116
117         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-connections.c,
118         CFLAGS-pwdcache.c, CFLAGS-grpcache.c, CFLAGS-hstcache.c,
119         CFLAGS-aicache.c, CFLAGS-initgrcache.c): Add -DHAVE_SENDFILE.
120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
121         Define.
122         * nscd/pwdcache.c [HAVE_SENDFILE]: Include <sys/sendfile.h> and
123         <kernel-features.h>.
124         [HAVE_SENDFILE] (cache_addpw): Use sendfile to transmit positive
125         result.
126         * nscd/grpcache.c: Likewise.
127         * nscd/hstcache.c: Likewise.
128         * nscd/aicache.c: Likewise.
129         * nscd/initgrcache.c: Likewise.
130         * nscd/connectionc.c: Likewise.
131
132 2005-11-18  Andreas Schwab  <schwab@suse.de>
133
134         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove useless alias.
135
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Handle
137         NO_WEAK_ALIAS.
138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
139
140 2005-11-18  Paul Brook  <paul@codesourcery.com>
141
142         * sysdeps/unix/sysv/linux/m68k/bits/mman.h (MREMAP_FIXED): New macro.
143
144         * nscd/grpcache.c: Include <sys/socket.h>.
145         * nscd/nscd_stat.c: Likewise.
146         * nscd/pwdcache.c: Likewise.
147         * sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.
148
149 2005-11-17  Ulrich Drepper  <drepper@redhat.com>
150
151         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Define SHM_NORESERVE.
152         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
153         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
154         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
155         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
156         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
157         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
158         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
159
160 2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
161
162         [BZ #1877]
163         * string/test-strncmp.c (do_test_limit): Handle zero length and
164         non-zero align values.
165         (test_main): Correct do_test_limit tests for 64-bit.
166
167 2005-11-15  Steven Munroe  <sjmunroe@us.ibm.com>
168
169         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_HAS_SPE,
170         PPC_FEATURE_HAS_EFP_SINGLE, PPC_FEATURE_HAS_EFP_DOUBLE,
171         PPC_FEATURE_NO_TB, PPC_FEATURE_POWER4, PPC_FEATURE_POWER5,
172         PPC_FEATURE_POWER5_PLUS, PPC_FEATURE_CELL, PPC_FEATURE_970):
173         Define to match 2.6.15 kernel.
174
175         * sysdeps/powerpc/fpu/e_sqrt.c: Remove dl-procinfo.h include.
176         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
177         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
178
179 2005-11-17  Roland McGrath  <roland@redhat.com>
180
181         * elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.
182
183 2005-11-17  Jakub Jelinek  <jakub@redhat.com>
184
185         * io/sys/stat.h (fstatat): If __REDIRECT_NTH isn't defined,
186         define fstatat to fstatat64.
187
188 2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
189
190         [BZ #1877]
191         * string/test-strncmp.c (do_test_limit): New function.
192         (do_test) Add cast to eliminate compiler warnings.
193         (do_random_tests) Add cast to eliminate compiler warnings.
194         (test_main) Add do_test_limit tests.
195         * sysdeps/powerpc/powerpc32/strncmp.S: Test length before unaligned
196         load.
197         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
198
199 2005-11-17  Ulrich Drepper  <drepper@redhat.com>
200
201         * include/resolv.h: Include <stdbool.h>.
202         Patch by Paul Brook.
203
204         * io/sys/stat.h: Use __const not const in fstatat prototypes.
205
206 2005-11-08  H.J. Lu  <hongjiu.lu@intel.com>
207
208         * sysdeps/wordsize-32/Makefile (CPPFLAGS-divdi3.c): Set to
209         -Din_divdi3_c.
210         * sysdeps/wordsize-32/symbol-hacks.h: Skip if in_divdi3_c is defined.
211
212 2005-11-16  Jakub Jelinek  <jakub@redhat.com>
213
214         * sysdeps/unix/sysv/linux/fchownat.c: Include string.h.
215         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
216         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
217         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
218         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
219         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
220         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
221         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
222
223 2005-11-16  Ulrich Drepper  <drepper@redhat.com>
224
225         * iconvdata/Makefile (modules): Add ISO_11548-1.
226         (distribute): Add iso_11548-1.c.
227         * iconvdata/gconv-modules: Add entries for ISO 11548-1.
228         * iconvdata/TESTS: Add entry for ISO 11548-1.
229
230         [BZ 1872]
231         * iconvdata/iso_11548-1.c: New file.
232         * iconvdata/testdata/ISO_11548-1: New file.
233         * iconvdata/testdata/ISO_11548-1..UTF8: New file.
234         Patch by Samuel Thibault <samuel.thibault@ens-lyon.org>.
235
236 2005-11-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
237
238         * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Remove incorrect &.
239
240 2005-11-15  Ulrich Drepper  <drepper@redhat.com>
241
242         [BZ 1865]
243         * inet/netinet/icmp6.h: More updates for RFC3542.
244         * inet/netinet/ip6.h: Likewise.
245         * sysdeps/unix/sysv/linux/bits/in.h: Adjust for current kernel sources.
246         Patch by David L Stevens <dlstevens@us.ibm.com>.
247
248         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
249         Return -1 on failure.
250         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
251         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise..
252         * sysdeps/unix/sysv/linux/fxstatat64.c [__ASSUME_STAT64_SYSCALL]
253         (__fxstatat64): Handle errors.
254
255         * io/sys/poll.h: Add comment explaining poll is a cancellation  point.
256
257         * sysdeps/unix/sysv/linux/syscalls.list (epoll_wait): Align with
258         poll, make cancelable.
259         * sysdeps/unix/sysv/linux/sys/epoll.h: Add comment explaining
260         epoll_wait is a cancellation point.
261
262 2005-11-15  Jakub Jelinek  <jakub@redhat.com>
263
264         * io/sys/stat.h (fstatat): Don't use __THROW together with
265         __REDIRECT_NTH.
266
267 2005-11-14  Ulrich Drepper  <drepper@redhat.com>
268
269         * elf/dl-open.c [!SHARED]: Remove _dl_tls_static_size definition.
270         * sysdeps/generic/libc-tls.c: Initialize _dl_tls_static_size here.
271
272 2005-11-11  Ulrich Drepper  <drepper@redhat.com>
273
274         * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64,
275         fchownat, and unlinkat.
276         (static-only-routines): Add fstatat and fstatat64.
277         (tests): Add tst-unlinkat, tst-fstatat, tst-futimesat, tst-renameat,
278         and tst-fchownat.
279         * io/Versions [GLIBC_2.4]: Add fchownat, __fxstatat, __fxstatat64,
280         and unlinkat.
281         * io/fcntl.h: Define AT_FDCWD, AT_SYMLINK_NOFOLLOW, and AT_REMOVEDIR.
282         * io/fstatat.c: New file.
283         * io/fstatat64.c: New file.
284         * io/sys/stat.h: Declare fstatat, fstatat64, __fxstatat, __fxstatat64
285         and define fstatat and fstatat64 inline functions.
286         * libio/stdio.h: Declare renameat.
287         * misc/Makefile (routines): Add futimesat.
288         * misc/Versions [GLIBC_2.4]: Add futimesat.
289         * posix/unistd.h: Declare fchownat and unlinkat.
290         * stdio-common/Makefile (routines): Add renameat.
291         * stdio-common/Versions [GLIBC_2.4]: Add renameat.
292         * sysdeps/generic/fchownat.c: New file.
293         * sysdeps/generic/futimesat.c: New file.
294         * sysdeps/generic/fxstatat.c: New file.
295         * sysdeps/generic/fxstatat64.c: New file.
296         * sysdeps/generic/renameat.c: New file.
297         * sysdeps/generic/unlinkat.c: New file.
298         * sysdeps/unix/sysv/linux/fchownat.c: New file.
299         * sysdeps/unix/sysv/linux/futimesat.c: New file.
300         * sysdeps/unix/sysv/linux/fxstatat.c: New file.
301         * sysdeps/unix/sysv/linux/fxstatat64.c: New file.
302         * sysdeps/unix/sysv/linux/renameat.c: New file.
303         * sysdeps/unix/sysv/linux/unlinkat.c: New file.
304         * sysdeps/unix/sysv/linux/alpha/fxstatat.c: New file.
305         * sysdeps/unix/sysv/linux/i386/fchownat.c: New file.
306         * sysdeps/unix/sysv/linux/i386/fxstatat.c: New file.
307         * sysdeps/unix/sysv/linux/m68k/fchownat.c: New file.
308         * sysdeps/unix/sysv/linux/m68k/fxstatat.c: New file.
309         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: New file.
310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstatat.c: New file.
311         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: New file.
312         * sysdeps/unix/sysv/linux/s390/s390-32/fxstatat.c: New file.
313         * sysdeps/unix/sysv/linux/sh/fchownat.c: New file.
314         * sysdeps/unix/sysv/linux/sh/fxstatat.c: New file.
315         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: New file.
316         * sysdeps/unix/sysv/linux/sparc/sparc32/fxstatat.c: New file.
317         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c: New file.
318         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: New file.
319         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c: New file.
320         * time/sys/time.h: Declare futimesat.
321         * include/fcntl.h: Declare __atfct_seterrno.
322         * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): New function.
323         Split out from openat code and called.
324         (do_test): Allow openat to fail with ENOSYS.  Handle AT_FDCWD.
325         * sysdeps/generic/openat.c: Handle AT_FDCWD.
326         * sysdeps/generic/openat64.c: Likewise.
327         * io/tst-unlinkat.c: New file.
328         * io/tst-fstatat.c: New file.
329         * io/tst-futimesat.c: New file.
330         * io/tst-renameat.c: New file.
331         * io/tst-fchownat.c: New file.
332         * io/tst-openat.c: Don't fail if openat is not implemented.
333
334         * sysdeps/unix/sysv/linux/powerpc/chown.c: Don't provide backward
335         compatibility code if new kernel is guaranteed.
336
337         * time/sys/time.h: Add a few nonnull attributes.
338
339 2005-11-09  Ulrich Drepper  <drepper@redhat.com>
340
341         * io/fcntl.h: Declare openat and openat64.
342         * io/Makefile (routines): Add openat and openat64.
343         (tests): Add tst-openat.
344         * io/Versions: Add openat and openat64 for GLIBC_2.4.
345         * sysdeps/generic/openat.c: New file.
346         * sysdeps/generic/openat64.c: New file.
347         * sysdeps/unix/sysv/linux/openat.c: New file.
348         * sysdeps/unix/sysv/linux/openat64.c: New file.
349         * io/tst-openat.c: New file.
350
351         * sysdeps/generic/check_fds.c (check_one_fd): For writable
352         descriptors, use /dev/full.
353         (__libc_check_standard_fds): Reverse modes so that common operations on
354         the descriptors fail.
355         * sysdeps/unix/sysv/linux/device-nrs.h: Add info for /dev/full.
356
357 2005-11-07  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
358
359         * elf/elf.h (R_M32R_REL32): New macro.
360
361 2005-11-05  Marcus Brinkmann  <marcus@gnu.org>
362
363         * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
364         (S_ISPARE): Unset the S_IMMAP0 flag.
365
366 2005-11-07  Roland McGrath  <roland@redhat.com>
367
368         * configure.in: Grok --with-cpu=CPU option.  If given, search for
369         sysdeps/.../machine/CPU subdirs, and give error if none are found.
370         * configure: Regenerated.
371         * config.make.in (with-cpu): New substituted variable.
372         * Makeconfig (+cflags): Add -mcpu=$(with-cpu) if set.
373
374         * malloc/malloc.c (munmap_chunk): Suppress warnings from last change.
375
376         * sysdeps/unix/bsd/sun: Directory and all subdirectories removed,
377         saved in ports repository.
378         * sysdeps/unix/sysv/linux/tcflush.c: Rewritten.
379         * sysdeps/unix/sysv/linux/tcflow.c: Rewritten.
380
381 2005-11-06  Ulrich Drepper  <drepper@redhat.com>
382
383         * malloc/malloc.c (munmap_chunk): Add sanity checks.
384
385         * sysdeps/pthread/configure: Fix comment.
386
387 2005-11-05  Ulrich Drepper  <drepper@redhat.com>
388
389         * configure.in: Remove gnu_as definition and everything using it.
390         * config.make.in: Remove gnu-as.
391         * config.h.in: Remove HAVE_GNU_AS.
392
393         * configure.in: Remove gnu_ld definition and everything using it.
394         * config.h.in: Remove HAVE_GNU_LD.
395         * config.make.in: Remove gnu-ld.
396         * csu/Makefile: Remove use of gnu-ld.
397         * csu/munch.awk: Removed.
398         * csu/munch-tmpl.c: Removed.
399         * include/libc-symbols.h: Remove use of HAVE_GNU_LD.
400         * posix/execl.c: Likewise.
401         * posix/execv.c: Likewise.
402         * stdio-common/psignal.c: Likewise.
403         * stdlib/exit.c: Likewise.
404         * string/strsignal.c: Likewise.
405         * string/tester.c: Likewise.
406         * sysdeps/generic/errlist.c: Likewise.
407         * sysdeps/generic/getenv.c: Likewise.
408         * sysdeps/generic/getgroups.c: Likewise.
409         * sysdeps/generic/init-posix.c: Likewise.
410         * sysdeps/posix/gettimeofday.c: Likewise.
411         * sysdeps/posix/system.c: Likewise.
412         * sysdeps/unix/bsd/init-posix.c: Likewise.
413         * sysdeps/unix/bsd/ulimit.c: Likewise.
414         * sysdeps/unix/bsd/sun/m68k/brk.S: Likewise.
415         * sysdeps/unix/bsd/sun/m68k/sethostid.S: Likewise.
416         * sysdeps/unix/bsd/sun/sparc/sethostid.S: Likewise.
417         * sysdeps/unix/i386/brk.S: Likewise.
418         * sysdeps/unix/sparc/brk.S: Likewise.
419
420         * configure.in: Remove test for support for subtracting local labels.
421         * config.h.in: Remove HAVE_SUBTRACT_LOCAL_LABELS.
422         * stdio-common/vfprintf.c: Remove test of
423         HAVE_SUBTRACT_LOCAL_LABELS.
424
425         * configure.in: If init_array/fini_array support is not available,
426         bail out.
427         * config.h.in: Remove trace of optional init_array/fini_array support.
428         * config.make.in: Likewise.
429         * csu/elf-init.c: Likewise.
430         * dlfcn/dlfcn.c: Likewise.
431         * elf/soinit.c: Likewise.
432         * sysdeps/ia64/elf/initfinit.c: Likewise.
433
434 2005-11-04  Roland McGrath  <roland@redhat.com>
435
436         * sysdeps/i386/configure.in (libc_mtune_example): Variable removed.
437         * sysdeps/i386/configure: Regenerated.
438
439         [BZ #1089]
440         * configure.in: Change order of add-on sysdeps directories,
441         so they are interleaved with main sysdeps directories.
442         * configure: Regenerated.
443
444 2005-11-03  Roland McGrath  <roland@redhat.com>
445
446         * NEWS: Synch with 2.3 branch updates.
447
448 2005-11-03  Ulrich Drepper  <drepper@redhat.com>
449
450         * sunrpc/svc.c (svc_getreq_poll): Fix inefficient loop test.
451
452 2005-11-03  Roland McGrath  <roland@redhat.com>
453
454         [BZ #1548]
455         * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,
456         make sure constant is long.
457         From Jay Lan <jlan@engr.sgi.com>.
458
459 2005-11-03  Ulrich Drepper  <drepper@redhat.com>
460
461         [BZ #1774]
462         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use simple
463         gethostbyname2 lookup if AI_V4MAPPED|AI_ALL is set.
464
465         * sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid alloca when possible
466         while looking for scope delimiter.
467         Some pretty printing.
468
469 2005-10-31  Steven Munroe  <sjmunroe@us.ibm.com>
470
471         * sysdeps/powerpc/powerpc64/Makefile
472         (sysdep_routines, elide-routines.os): Add hp-timing.
473         * sysdeps/powerpc/powerpc64/hp-timing.c: New file.
474         * sysdeps/powerpc/powerpc64/hp-timing.h: New file.
475         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: New file.
476
477 2005-10-31  Ulrich Drepper  <drepper@redhat.com>
478
479         * resolv/res_init.c (__res_iclose): New function.  Broken out of
480         res_nclose.  Take addition parameter which determines whether
481         addresses should be freed.
482         (res_nclose): Call __res_iclose.
483         (res_thread_freeres): Likewise.
484         * resolv/res_data.c (res_close): Call __res_iclose.
485         * resolv/res_libc.c (res_init): No need to separately free the
486         addresses.
487         (__res_maybe_init): Likewise.
488         * resolv/res_send.c: Use __res_iclose instead of res_nclose.
489         * resolv/Versions [GLIBC_PRIVATE]: Add __res_iclose.
490         * include/resolv.h: Declare __res_iclose.
491         Add libc_hidden_proto for __res_iclose.
492         * hesiod/hesiod.c (__hesiod_res_set): No need to free name server
493         addresses here again.
494
495         [BZ #1579]
496         * debug/execinfo.h: Change backtrace_symbols_fd comment.
497
498 2005-10-24  H.J. Lu  <hongjiu.lu@intel.com>
499
500         * sysdeps/ia64/fpu/libm-symbols.h (WEAK_LIBM_ENTRY): Add "__"
501         prefix to LOCAL_LIBM_ENTRY.
502         (WEAK_LIBM_END): Add "__" prefix to LOCAL_LIBM_END.
503
504 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
505
506         * elf/dl-conflict.c (_dl_resolve_conflicts): Use _dl_debug_printf
507         instead of _dl_printf to print conflict processing debug message.
508         Reported by John Reiser <jreiser@BitWagon.com>.
509
510 2005-10-30  Ulrich Drepper  <drepper@redhat.com>
511
512         * misc/hsearch_r.c (hsearch_r): Remove duplicate test.
513         Patch by Chris Caputo <ccaputo@alt.net>.
514
515 2005-10-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
516
517         * sysdeps/unix/sh/sysdep.S: Remove unnecessary weak_alias.
518         * sysdeps/unix/sysv/linux/sh/socket.S: Honor NO_WEAK_ALIAS.
519
520 2005-10-28  Thorsten Kukuk  <kukuk@suse.de>
521
522         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Fix off
523         by one error.
524
525 2005-10-24  Roland McGrath  <roland@redhat.com>
526
527         [BZ #1534]
528         * include/string.h: Use libc_hidden_proto for strnlen,
529         not libc_hidden_builtin_proto.
530
531 2005-10-23  Ulrich Drepper  <drepper@redhat.com>
532
533         * rt/mqueue.h: Cleanups.
534
535 2005-10-22  Roland McGrath  <roland@redhat.com>
536
537         [BZ #1254]
538         * sysdeps/mach/hurd/getpeername.c (__getpeername): Fix last change.
539         From Samuel Thibault <samuel.thibault@ens-lyon.org>.
540
541 2005-10-17  Thomas Schwinge  <tschwinge@gnu.org>
542
543         [BZ #1252]
544         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Don't use ?: as lvalue.
545         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
546
547 2005-10-20  Ulrich Drepper  <drepper@redhat.com>
548
549         * iconvdata/ibm1364.h (__ucs4_to_ibm1364sb): Fix one mapping.
550         * iconvdata/ibm1388.h (__ucs4_to_ibm1388sb): Likewise.
551         * iconvdata/testdata/IBM1364: Add missing valid input.
552         * iconvdata/testdata/IBM1388: Likewise.
553         * iconvdata/testdata/IBM1364..UTF8: Adjust appropriately.
554         * iconvdata/testdata/IBM1388..UTF8: Likewise.
555         Patch by Masahide Washizawa <washi@jp.ibm.com>.
556
557 2005-08-23  GOTO Masanori  <gotom@debian.or.jp>
558
559         [BZ #1498]
560         * sysdeps/alpha/remqu.S: Return the correct result when the same
561         dividend and divisor are provided, and they're negative numbers.
562         * sysdeps/alpha/divqu.S: Likewise.
563
564 2005-10-18  Steven Munroe  <sjmunroe@us.ibm.com>
565
566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
567         Define.
568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h (TESTS):
569         Likewise.
570
571 2005-10-19  Ulrich Drepper  <drepper@redhat.com>
572
573         * iconvdata/Makefile (modules): Add IBM1364, IBM1371, IBM1388, IBM1390,
574         and IBM1399.
575         (distribute): Add ibm1364.c, ibm1364.h, ibm1371.c, ibm1371.h,
576         ibm1388.c, ibm1388.h, ibm1390.c, ibm1390.h, ibm1399.c, and ibm1399.h.
577         * iconvdata/TESTS: Add entries for IBM1364, IBM1371, IBM1388, IBM1390,
578         and IBM1399.
579         * iconvdata/gconv-modules: Likewise.
580         * iconvdata/ibm1364.c: New file.
581         * iconvdata/ibm1364.h: New file.
582         * iconvdata/ibm1371.c: New file.
583         * iconvdata/ibm1371.h: New file.
584         * iconvdata/ibm1388.c: New file.
585         * iconvdata/ibm1388.h: New file.
586         * iconvdata/ibm1390.c: New file.
587         * iconvdata/ibm1390.h: New file.
588         * iconvdata/ibm1399.c: New file.
589         * iconvdata/ibm1399.h: New file.
590         * iconvdata/testdata/IBM1364: New file.
591         * iconvdata/testdata/IBM1364..UTF8: New file.
592         * iconvdata/testdata/IBM1371: New file.
593         * iconvdata/testdata/IBM1371..UTF8: New file.
594         * iconvdata/testdata/IBM1388: New file.
595         * iconvdata/testdata/IBM1388..UTF8: New file
596         * iconvdata/testdata/IBM1390: New file.
597         * iconvdata/testdata/IBM1390..UTF8: New file.
598         * iconvdata/testdata/IBM1399: New file.
599         * iconvdata/testdata/IBM1399..UTF8: New file.
600         Original patch by Masahide Washizawa <washi@jp.ibm.com>.
601
602 2005-10-17  Roland McGrath  <roland@redhat.com>
603
604         * elf/dl-load.c (MAP_COPY): When undefined, define to
605         MAP_PRIVATE|MAP_DENYWRITE instead of just MAP_PRIVATE.
606         (_dl_map_object_from_fd): Don't use MAP_DENYWRITE explicitly.
607
608 2005-10-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
609
610         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):
611         Define.
612         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS):
613         Likewise.
614
615 2005-10-17  Ulrich Drepper  <drepper@redhat.com>
616
617         * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.
618         Return EOF not 0.
619
620         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Also
621         allow EACCES errors when opening /proc for now.
622
623         * wctype/wcfuncs.c: Don't use expensive wide char lookups in isw*
624         functions if character is in ASCII range.
625         * wctype/wcfuncs_l.c: Likewise.
626
627 2005-05-03  Robert Millan  <robertmh@gnu.org>
628
629         * abi-tags (.*-.*-knetbsd.*-gnu.*): New match, with ABI value 4.
630         * elf/cache.c (print_entry): Match the kNetBSD ABI tag.
631
632 2005-10-16  Alfred M. Szmidt  <ams@gnu.org>
633
634         * sysdeps/generic/bits/mman.h
635         [__USE_GNU] (MREMAP_MAYMOVE, REMAP_FIXED): New macros.
636
637 2005-10-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
638
639         * sysdeps/unix/sysv/linux/sh/makecontext.S: New file.
640         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: New file.
641         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: New file.
642         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: New file.
643         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: New file.
644         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: New file.
645         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: New file.
646         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: New file.
647         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: New file.
648         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Removed.
649         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: New file.
650         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: New file.
651
652 2005-09-13  Jakub Jelinek  <jakub@redhat.com>
653
654         [BZ #1228]
655         * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Make sure these
656         are defined for -D_GNU_SOURCE or -D_ISOC99_SOURCE even when not
657         -std=c99.
658
659 2005-10-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
660
661         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MREMAP_FIXED.
662
663 2005-08-05  Alfred M. Szmidt  <ams@gnu.org>
664
665         [BZ #1252]
666         * sysdeps/mach/hurd/setitimer.c (restart_itimer): Move static fn
667         forward decl out of function body.
668         * sysdeps/mach/hurd/profil.c: Likewise.
669
670 2005-10-16  Roland McGrath  <roland@frob.com>
671
672         [BZ #1254]
673         * sysdeps/mach/hurd/getpeername.c (__getpeername): Respect *LEN
674         byte limit when setting ADDR->sa_family.
675         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
676
677         [BZ #1253]
678         * sysdeps/mach/hurd/dl-sysdep.h
679         [SHARED] (DL_ARGV_NOT_RELRO): New macro.
680
681         [BZ #1253]
682         * sysdeps/mach/hurd/i386/init-first.c (init): Make cast kosher.
683         (_hurd_stack_setup): Don't declare with arguments and ellipsis.
684         Use __builtin_frame_address and __builtin_return_address.
685         (_dl_init_first): Likewise.
686
687         [BZ #1249]
688         * sysdeps/mach/hurd/i386/init-first.c (_cthread_init_routine): Declare
689         as weak extern.
690         (init): Check for it being undefined.
691
692 2005-10-16  Daniel Jacobowitz  <dan@codesourcery.com>
693             Roland McGrath  <roland@redhat.com>
694
695         * Makerules [module-names] (extra-modules-build): New variable.
696         ($(extra-modules-build:%=$(objpfx)%.so)): New static pattern rule.
697         Depend on libc.so and libc_nonshared.a.
698         * dlfcn/Makefile ($(test-modules)): Remove static pattern rule.
699         * elf/Makefile (modules-names-nobuild): New variable, add filtmod1.
700         ($(test-modules)): Remove static pattern rule.
701
702 2005-10-15  Thomas Schwinge  <tschwinge@gnu.org>
703
704         * include/dirent.h: Include <stdbool.h>.
705         * sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
706         (fdopendir): Correct argument to _hurd_fd_get().
707         * sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
708
709 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
710
711         [BZ #1224]
712         * posix/regcomp.c (init_word_char, duplicate_node_closure,
713         fetch_token, peek_token_bracket, build_range_exp,
714         build_collating_symbol): Remove forward decls; no longer needed
715         now that we use prototypes.
716
717 2005-10-15  Ulrich Drepper  <drepper@redhat.com>
718
719         [BZ #1221]
720         * posix/regex_internal.h: Remove last traces of
721         RE_NO_INTERNAL_PROTOTYPES.
722
723         [BZ #968]
724         * string/strxfrm_l.c (STRXFRM): Fix exit conditions of two loops.
725
726         * sysdeps/unix/fdopendir.c (fdopendir): Make sure descriptor
727         allows reading.
728
729         * wcsmbs/tst-mbrtowc2.c: Use de_DE.UTF-8 instead of en_US.UTF-8.
730         * wcsmbs/Makefile: Define tst-mbrtowc2-ENV.
731
732         * posix/regexec.c: Finish prototyping of static functions.
733         * posix/regex_internal.c: Likewise.
734
735 2005-10-14  Roland McGrath  <roland@frob.com>
736
737         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): New function, broken
738         out of ...
739         (__opendir): ... here.  Call it.
740         * sysdeps/mach/hurd/fdopendir.c: New file.
741
742 2005-10-14  Ulrich Drepper  <drepper@redhat.com>
743
744         [BZ #865]
745         * math/tgmath.h: Correctly determine result type for
746         __TGMATH_BINARY_REAL_ONLY,
747         __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
748         __TGMATH_TERNARY_REAL_ONLY, and __TGMATH_BINARY_REAL_IMAG.
749
750 2005-09-17  Andreas Jaeger  <aj@suse.de>
751
752         [BZ #865]
753         * math/test-tgmath-int.c: New file.
754         * math/Makefile (tests): Add test-tgmath-int.
755
756 2005-10-14  Ulrich Drepper  <drepper@redhat.com>
757
758         [BZ #804]
759         * malloc/tst-mtrace.sh: Work around for bootstraping.
760
761         * locale/programs/ld-collate.c (collate_output): Fix counting of
762         elements.  Don't limit table size.  Use correct secondary hash
763         function.
764         * locale/localeinfo.h (LIMAGIC): Change value returned for LC_COLLATE.
765         * posix/fnmatch_loop.c: Adjust for changed secondary hash function.
766         * posix/regcomp.c: Likewise.
767
768         * time/asctime.c (asctime_internal): Use __snprintf instead of
769         snprintf to avoid PLT entry.
770
771         * sysdeps/unix/opendir.c (__opendir): Pass extra argument to
772         __alloc_dir.
773         (__alloc_dir): Only close descriptor on error if new parameter is true.
774         * sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to
775         __alloc_dir.  Don't close fd on error.
776         * include/dirent.h (__alloc_dir): Adjust prototype.
777
778         * stdlib/Makefile (tests): Add tst-ucontext-off.
779         * stdlib/tst-ucontext-off.c: New file.
780         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TESTS): Define.
781         * sysdeps/unix/sysv/linux/i386/ucontext_i.h (TESTS): Likewise.
782
783         [BZ #1468]
784         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Fix values for
785         oFPREGS, oSIGMASK, oFPREGSMEM, and oMXCSR.
786         Patch by Nicholas Miell <nmiell@comcast.net>.
787
788         [BZ #1460]
789         * time/asctime.c (asctime_internal): New function, derived from
790         asctime_r.  Takes additional parameter which is the buffer length.
791         Use snprintf instead sprintf, if it overflows, fail.
792         (asctime_r): Call asctime_internal with 26 as buffer length.
793         (asctime): Call asctime_internal with length of internal buffer.
794         * time/Makefile (tests): Add bug-asctime_r.
795         * time/bug-asctime_r.c: New file.
796
797         [BZ #1459]
798         * time/asctime.c (__asctime_r): Check for tm_year computation to
799         overflow and fail in this case.
800         * time/Makefile (tests): Add bug-asctime.
801         * time/bug-asctime.c: New file.
802
803         [BZ #1458]
804         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MREMAP_FIXED.
805         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
806         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
807         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
808         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
809         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
810         * misc/sys/mman.h: Add ellipsis after last parameter of mremap and
811         adjust leading comment.
812         * sysdeps/unix/sysv/linux/syscalls.list: Add pointer parameter to
813         mremap syscall.
814         * include/sys/mman.h (__mremap): Add ellipsis.
815         * malloc/memusage.c: Adjust mremap wrapper for optional additional
816         parameter.
817
818 2005-10-13  Ulrich Drepper  <drepper@redhat.com>
819
820         [BZ #1405]
821         * libio/iogetdelim.c (_IO_getdelim): Fix truncation of return
822         value.  Avoid overflow in computation.
823
824         [BZ #1373]
825         * argp/argp.h: Remove __NTH for __argp_usage inline function.
826
827 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
828
829         [BZ #1248]
830         * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
831         bitset_mask, re_string_allocate, re_string_construct,
832         re_string_reconstruct, re_string_destruct, re_string_elem_size_at,
833         re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case,
834         re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1,
835         re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect,
836         re_node_set_init_union, re_node_set_merge, re_node_set_insert,
837         re_node_set_insert_last, re_node_set_compare, re_node_set_contains,
838         re_node_set_remove_at, re_dfa_add_node, re_acquire_state,
839         re_acquire_state_context): Remove unnecessary forward decls.
840         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
841         Put __attribute at function definition, now that the function decl
842         has been removed.
843         * posix/regex_internal.c (re_string_peek_byte_case,
844         re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
845         Likewise.
846
847 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
848
849         [BZ #1231]
850         * posix/regex_internal.c (re_string_skip_chars, register_state,
851         calc_state_hash): Remove forward decls.
852         * posix/regexec.c (acquire_init_state_context, check_halt_node_context,
853         proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes,
854         clean_state_log_if_needed): Likewise.
855
856 2005-10-13  Ulrich Drepper  <drepper@redhat.com>
857
858         * posix/regex.c: No need to use K&R definitions for static functions.
859         * posix/regex_internal.c: Likewise.
860         * posix/regcomp.c: Likewise.
861
862         [BZ #1466]
863         * sysdeps/generic/s_csqrt.c (__csqrt): For zero real part, return
864         principal square root.
865         * sysdeps/generic/s_csqrtf.c (__csqrtf): Likewise.
866         * sysdeps/generic/s_csqrtl.c (__csqrtl): Likewise.
867         * math/libm-test.inc (csqrt_test): Add test for returning
868         principal value.
869
870         * include/features.h: Define _POSIX_C_SOURCE to 200112 for
871         _XOPEN_SOURCE == 600.
872
873 2005-10-12  Ulrich Drepper  <drepper@redhat.com>
874
875         * malloc/malloc.c (_int_free): Fail if block size is obviously wrong.
876
877         * include/malloc.h: Remove _int_new_arena prototype.
878         * malloc/arena.c (_int_new_arena): Move definition ahead of
879         arena_get2 and make static.
880
881         Correctly implement M_MXFAST.
882         * malloc/malloc.c (struct malloc_state): Replace max_fast with flags
883         fields.
884         (global_max_fast): New variable.
885         (set_max_fast): Change to not require arena parameter and to modify
886         global_max_fast.  Change all callers.
887         (get_max_fast): New macro.  Use this instead of directly accessing
888         now removed max_fast arena member.
889         (have_fastchunks): Use flags instead of max_fast.
890         (clear_fastchunks): Likewise.
891         (set_fastchunks): Likewise.
892         (contiguous): Likewise.
893         (noncontiguous): Likewise.
894         (set_noncontiguous): Likewise.
895         (set_contiguous): Likewise.
896         (malloc_init_state): Explicitly set FASTCHUNKS_BIT.  Call set_max_fast
897         only for main arena.
898         * malloc/hooks.c (public_sET_STATe): Adjust set_max_fast use.
899
900 2005-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
901
902         * sysdeps/generic/bits/byteswap.h (__bswap_constant_16): New macro.
903         (__bswap_16): Use it.
904         (__bswap_constant_32): New macro.
905         (__bswap_32): Use it.
906
907 2005-10-10  Ulrich Drepper  <drepper@redhat.com>
908
909         * malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_recursive_cntr.
910
911 2005-10-08  Jakub Jelinek  <jakub@redhat.com>
912
913         * nss/getent.c (hosts_keys): Pass INADDRSZ as size rather
914         than IN6ADDRSZ to AF_INET gethostbyaddr.
915
916 2005-10-07  Roland McGrath  <roland@redhat.com>
917
918         [BZ #1438]
919         * include/features.h: Make tests on _FORTIFY_SOURCE and __OPTIMIZE__
920         friendly to -Wundef.
921         (__USE_FORTIFY_LEVEL): Always define it, to 0 if nothing else.
922
923 2005-10-06  Ulrich Drepper  <drepper@redhat.com>
924
925         * sysdeps/unix/sysv/linux/readonly-area.c: Allow fopen to fail because
926         the file does not exist.
927
928 2005-10-05  Simon Josefsson  <jas@extundo.com>
929
930         [BZ #1423]
931         * crypt/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): New macros.
932
933 2005-10-05  Roland McGrath  <roland@redhat.com>
934
935         * crypt/Makefile (distribute): Remove duplicate defn.
936
937         * sysdeps/generic/ldsodefs.h (struct audit_ifaces):
938         Use ARCH_PLTENTER_MEMBERS and ARCH_PLTEXIT_MEMBERS macros if defined.
939         * elf/tst-auditmod1.c: Include <tst-audit.h> to define more
940         architecture-specific code.
941         * sysdeps/generic/tst-audit.h: New file.
942         * elf/Makefile (distribute): Add it.
943
944 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
945
946         * elf/elf.h (R_ARM_TLS_DTPMOD32, R_ARM_TLS_DTPOFF32,
947         R_ARM_TLS_TPOFF32, R_ARM_TLS_GD32, R_ARM_TLS_LDM32,
948         R_ARM_TLS_LDO32, R_ARM_TLS_IE32, R_ARM_TLS_LE32): New macros.
949
950 2005-10-03  Roland McGrath  <roland@redhat.com>
951
952         * sysdeps/powerpc/nofpu: Directory removed, saved in ports repository.
953
954 2005-09-30  Ulrich Drepper  <drepper@redhat.com>
955
956         * posix/regex.h: Pretty printing.
957         Clean up namespace a bit.
958
959 2005-09-30  Jakub Jelinek  <jakub@redhat.com>
960
961         * posix/regexec.c (update_cur_sifted_state, check_arrival,
962         check_arrival_add_next_nodes): Avoid using uninitialized variable.
963
964         * malloc/memusage.c (dest): Fix a bunch of warnings on 32-bit arches.
965
966         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 4.0.x.
967
968 2005-09-29  Ulrich Drepper  <drepper@redhat.com>
969
970         * iconvdata/Makefile (modules): Add IBM803, IBM901, IBM902, IBM921,
971         IBM1008, IBM1008_420, IBM1097, IBM1112, IBM1123, IBM1130, IBM1140,
972         IBM1141, IBM1142, IBM1143, IBM1144, IBM1145, IBM1146, IBM1147, IBM1148,
973         IBM1149, IBM1166, IBM1167, IBM4517, IBM4899, IBM4909, IBM4971,
974         IBM5347, IBM9030, IBM9066, IBM9448, IBM12712, IBM16804.
975         (distribute): Add ibm803.c, ibm803.h, ibm901.c, ibm901.h, ibm902.c,
976         ibm902.h, ibm921.c, ibm921.h, ibm1008.c, ibm1008.h, ibm1008_420.c,
977         ibm1097.c, ibm1097.h, ibm1112.c, ibm1112.h, ibm1123.c, ibm1123.h,
978         ibm1130.c, ibm1130.h, ibm1140.c, ibm1140.h, ibm1141.c, ibm1141.h,
979         ibm1142.c, ibm1142.h, ibm1143.c, ibm1143.h, ibm1144.c, ibm1144.h,
980         ibm1145.c, ibm1145.h, ibm1146.c, ibm1146.h, ibm1147.c, ibm1147.h,
981         ibm1148.c, ibm1148.h, ibm1149.c, ibm1149.h, ibm1166.c, ibm1166.h,
982         ibm1167.c, ibm1167.h, ibm4517.c, ibm4517.h, ibm4899.c, ibm4899.h,
983         ibm4909.c, ibm4909.h, ibm4971.c, ibm4971.h, ibm5347.c, ibm5347.h,
984         ibm9030.c, ibm9030.h, ibm9066.c, ibm9066.h, ibm9448.c, ibm9448.h,
985         ibm12712.c, ibm12712.h, ibm16804.c, ibm16804.h.
986         * iconvdata/TESTS: Add entries for new modules.
987         * iconvdata/gconv-modules: Likewise.
988         * iconvdata/ibm803.c: New file.
989         * iconvdata/ibm803.h: New file.
990         * iconvdata/ibm901.c: New file.
991         * iconvdata/ibm901.h: New file.
992         * iconvdata/ibm902.c: New file.
993         * iconvdata/ibm902.h: New file.
994         * iconvdata/ibm921.c: New file.
995         * iconvdata/ibm921.h: New file.
996         * iconvdata/ibm1008.c: New file.
997         * iconvdata/ibm1008.h: New file.
998         * iconvdata/ibm1008_420.c: New file.
999         * iconvdata/ibm1097.c: New file.
1000         * iconvdata/ibm1097.h: New file.
1001         * iconvdata/ibm1112.c: New file.
1002         * iconvdata/ibm1112.h: New file.
1003         * iconvdata/ibm1123.c: New file.
1004         * iconvdata/ibm1123.h: New file.
1005         * iconvdata/ibm1130.c: New file.
1006         * iconvdata/ibm1130.h: New file.
1007         * iconvdata/ibm1140.c: New file.
1008         * iconvdata/ibm1140.h: New file.
1009         * iconvdata/ibm1141.c: New file.
1010         * iconvdata/ibm1141.h: New file.
1011         * iconvdata/ibm1142.c: New file.
1012         * iconvdata/ibm1142.h: New file.
1013         * iconvdata/ibm1143.c: New file.
1014         * iconvdata/ibm1143.h: New file.
1015         * iconvdata/ibm1144.c: New file.
1016         * iconvdata/ibm1144.h: New file.
1017         * iconvdata/ibm1145.c: New file.
1018         * iconvdata/ibm1145.h: New file.
1019         * iconvdata/ibm1146.c: New file.
1020         * iconvdata/ibm1146.h: New file.
1021         * iconvdata/ibm1147.c: New file.
1022         * iconvdata/ibm1147.h: New file.
1023         * iconvdata/ibm1148.c: New file.
1024         * iconvdata/ibm1148.h: New file.
1025         * iconvdata/ibm1149.c: New file.
1026         * iconvdata/ibm1149.h: New file.
1027         * iconvdata/ibm1166.c: New file.
1028         * iconvdata/ibm1166.h: New file.
1029         * iconvdata/ibm1167.c: New file.
1030         * iconvdata/ibm1167.h: New file.
1031         * iconvdata/ibm4517.c: New file.
1032         * iconvdata/ibm4517.h: New file.
1033         * iconvdata/ibm4899.c: New file.
1034         * iconvdata/ibm4899.h: New file.
1035         * iconvdata/ibm4909.c: New file.
1036         * iconvdata/ibm4909.h: New file.
1037         * iconvdata/ibm4971.c: New file.
1038         * iconvdata/ibm4971.h: New file.
1039         * iconvdata/ibm5347.c: New file.
1040         * iconvdata/ibm5347.h: New file.
1041         * iconvdata/ibm9030.c: New file.
1042         * iconvdata/ibm9030.h: New file.
1043         * iconvdata/ibm9066.c: New file.
1044         * iconvdata/ibm9066.h: New file.
1045         * iconvdata/ibm9448.c: New file.
1046         * iconvdata/ibm9448.h: New file.
1047         * iconvdata/ibm12712.c: New file.
1048         * iconvdata/ibm12712.h: New file.
1049         * iconvdata/ibm16804.c: New file.
1050         * iconvdata/ibm16804.h: New file.
1051         * iconvdata/testdata/IBM803: New file.
1052         * iconvdata/testdata/IBM803..UTF8: New file.
1053         * iconvdata/testdata/IBM901: New file.
1054         * iconvdata/testdata/IBM901..UTF8: New file.
1055         * iconvdata/testdata/IBM902: New file.
1056         * iconvdata/testdata/IBM902..UTF8: New file.
1057         * iconvdata/testdata/IBM921: New file.
1058         * iconvdata/testdata/IBM921..UTF8: New file.
1059         * iconvdata/testdata/IBM1008: New file.
1060         * iconvdata/testdata/IBM1008..UTF8: New file.
1061         * iconvdata/testdata/IBM1097: New file.
1062         * iconvdata/testdata/IBM1097..UTF8: New file.
1063         * iconvdata/testdata/IBM1112: New file.
1064         * iconvdata/testdata/IBM1112..UTF8: New file.
1065         * iconvdata/testdata/IBM1123: New file.
1066         * iconvdata/testdata/IBM1123..UTF8: New file.
1067         * iconvdata/testdata/IBM1130: New file.
1068         * iconvdata/testdata/IBM1130..UTF8: New file.
1069         * iconvdata/testdata/IBM1140: New file.
1070         * iconvdata/testdata/IBM1140..UTF8: New file.
1071         * iconvdata/testdata/IBM1141: New file.
1072         * iconvdata/testdata/IBM1141..UTF8: New file.
1073         * iconvdata/testdata/IBM1142: New file.
1074         * iconvdata/testdata/IBM1142..UTF8: New file.
1075         * iconvdata/testdata/IBM1143: New file.
1076         * iconvdata/testdata/IBM1143..UTF8: New file.
1077         * iconvdata/testdata/IBM1144: New file.
1078         * iconvdata/testdata/IBM1144..UTF8: New file.
1079         * iconvdata/testdata/IBM1145: New file.
1080         * iconvdata/testdata/IBM1145..UTF8: New file.
1081         * iconvdata/testdata/IBM1146: New file.
1082         * iconvdata/testdata/IBM1146..UTF8: New file.
1083         * iconvdata/testdata/IBM1147: New file.
1084         * iconvdata/testdata/IBM1147..UTF8: New file.
1085         * iconvdata/testdata/IBM1148: New file.
1086         * iconvdata/testdata/IBM1148..UTF8: New file.
1087         * iconvdata/testdata/IBM1149: New file.
1088         * iconvdata/testdata/IBM1149..UTF8: New file.
1089         * iconvdata/testdata/IBM1166: New file.
1090         * iconvdata/testdata/IBM1166..UTF8: New file.
1091         * iconvdata/testdata/IBM1167: New file.
1092         * iconvdata/testdata/IBM1167..UTF8: New file.
1093         * iconvdata/testdata/IBM4517: New file.
1094         * iconvdata/testdata/IBM4517..UTF8: New file.
1095         * iconvdata/testdata/IBM4899: New file.
1096         * iconvdata/testdata/IBM4899..UTF8: New file.
1097         * iconvdata/testdata/IBM4909: New file.
1098         * iconvdata/testdata/IBM4909..UTF8: New file.
1099         * iconvdata/testdata/IBM4971: New file.
1100         * iconvdata/testdata/IBM4971..UTF8: New file.
1101         * iconvdata/testdata/IBM5347: New file.
1102         * iconvdata/testdata/IBM5347..UTF8: New file.
1103         * iconvdata/testdata/IBM9030: New file.
1104         * iconvdata/testdata/IBM9030..UTF8: New file.
1105         * iconvdata/testdata/IBM9066: New file.
1106         * iconvdata/testdata/IBM9066..UTF8: New file.
1107         * iconvdata/testdata/IBM9448: New file.
1108         * iconvdata/testdata/IBM9448..UTF8: New file.
1109         * iconvdata/testdata/IBM12712: New file.
1110         * iconvdata/testdata/IBM12712..UTF8: New file.
1111         * iconvdata/testdata/IBM16804: New file.
1112         * iconvdata/testdata/IBM16804..UTF8: New file.
1113         Patch by Masahide WASHIZAWA <washi@jp.ibm.com>.
1114
1115         * iconvdata/run-iconv-test.sh: Run ASCII->encoding->ASCII suntzus
1116         test only if $subset is N.
1117
1118 2005-09-29  Roland McGrath  <roland@redhat.com>
1119
1120         [BZ #1392]
1121         * posix/sys/wait.h [!__GNUC__ || __cplusplus] (__WAIT_INT): Use const.
1122
1123 2005-09-29  Alfred M. Szmidt  <ams@gnu.org>
1124
1125         * elf/rtld.c [DL_ARGV_NOT_RELRO] (_dl_argc, _dl_skip_args):
1126         Don't use attribute_relro.
1127
1128 2005-09-29  Roland McGrath  <roland@redhat.com>
1129
1130         [BZ #1392]
1131         * posix/sys/wait.h (__WAIT_INT): Rewrite using an initializer,
1132         in case __typeof yields a const-qualified type.
1133
1134 2005-09-28  Ulrich Drepper  <drepper@redhat.com>
1135
1136         * dirent/dirent.h: Declare fdopendir.
1137         * dirent/Versions: Export fdopendir for GLIBC_2.4.
1138         * dirent/Makefile (routines): Add fdopendir.
1139         (tests): Add tst-fdopendir.
1140         * dirent/tst-fdopendir.c: New file.
1141         * include/dirent.h: Declare __alloc_dir.
1142         * sysdeps/generic/fdopendir.c: New file.
1143         * sysdeps/unix/fdopendir.c: New file.
1144         * sysdeps/unix/opendir.c: Split off back part of opendir into new
1145         function __alloc_dir.
1146
1147 2005-09-26  Steven Munroe  <sjmunroe@us.ibm.com>
1148
1149         [BZ #1384]
1150         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
1151         ynf results.
1152
1153 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1154             Ulrich Drepper  <drepper@redhat.com>
1155
1156         [BZ #1302]
1157         Change bitset word type from unsigned int to unsigned long int,
1158         as this has better performance on typical 64-bit hosts.  Change
1159         bitset type name to bitset_t.
1160         * posix/regcomp.c (build_equiv_class, build_charclass):
1161         (build_range_exp, build_collating_symbol):
1162         Prefer bitset_t to re_bitset_ptr_t in prototypes, when the actual
1163         argument is a bitset.  This is merely a style issue, but it makes
1164         it clearer that an entire array is expected.
1165         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps,
1166         lower_subexp): Adjust for new bitset_t definition.
1167         (lower_subexp, parse_bracket_exp, built_charclass_op): Likewise.
1168         * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain,
1169         bitset_not, bitset_merge, bitset_set_all, bitset_mask): Likewise.
1170         * posix/regexec.c (check_dst_limits_calc_pos_1,
1171         check_subexp_matching_top, build_trtable, group_nodes_into_DFAstates):
1172         Likewise.
1173         * posix/regcomp.c (utf8_sb_map): Don't assume initializer
1174         == 0xffffffff.
1175         * posix/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
1176         All uses changed.
1177         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
1178         (bitset_word_t): New type, replacing 'unsigned int' for bitset uses.
1179         All uses changed.
1180         (BITSET_WORD_MAX): New macro.
1181         (bitset_set, bitset_clear, bitset_contain, bitset_empty,
1182         (bitset_set_all, bitset_copy):  Adjust for bitset_t change.
1183         (bitset_empty, bitset_copy):
1184         Prefer sizeof (bitset_t) to multiplying it out ourselves.
1185         (bitset_not_merge): Remove; unused.
1186         (bitset_contain): Return bool, not unsigned int with one bit on.
1187         All callers changed.
1188         * posix/regexec.c (build_trtable): Don't assume bitset_t has no
1189         stricter alignment than re_node_set; do this by defining a new
1190         internal type struct dests_alloc and using it to allocate memory.
1191
1192 2005-09-27  Ulrich Drepper  <drepper@redhat.com>
1193
1194         [BZ #1230]
1195         * stdlib/strtod_l.c (STRNCASECMP): Always use C locale object.
1196         (TOLOWER_C): Define.  Use it when recognizing inf and nan.
1197         * stdlib/Makefile (tests): Add bug-strtod2.
1198         * stdlib/bug-strtod2.c: New file.
1199
1200 2005-09-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1201
1202         [BZ #1361]
1203         * argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
1204         * argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
1205         argp/argp-xinl.c: Fix up whitespace.
1206
1207 2005-09-27  Ulrich Drepper  <drepper@redhat.com>
1208
1209         [BZ #1158]
1210         * stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
1211         which the functions were registered.
1212         * dlfcn/Makefile: Add rules to build and run bug-atexit1 and
1213         bug-atexit2.
1214         * dlfcn/bug-atexit1.c: New file.
1215         * dlfcn/bug-atexit1-lib.c: New file.
1216         * dlfcn/bug-atexit2.c: New file.
1217         * dlfcn/bug-atexit2-lib.c: New file.
1218
1219         [BZ #1078]
1220         * libio/fileops.c (_IO_new_file_xsputn): Determine amount of
1221         available space in non-line-buffered buffer correctly.
1222         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
1223         * stdio-common/Makefile (tests): Add tst-fwrite.
1224         * stdio-common/tst-fwrite.c: New file.
1225
1226 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
1227
1228         [BZ #838]
1229         * malloc/arena.c (ptmalloc_lock_all): If global lock already taken
1230         by the same thread, just bump the counter.
1231         (ptmalloc_unlock_all): If counter for recursive locks hasn't reached
1232         zero, don't do anything else.
1233         * malloc/Makefile (tests): Add tst-mallocfork.
1234         * malloc/tst-mallocfork.c: New file.
1235
1236         [BZ #808]
1237         * malloc/malloc.c (_int_realloc): Make error message clearer.
1238
1239         [BZ #713]
1240         * libio/iofgets.c: Treat N==1 correctly.
1241         * libio/iofgets_u.c: Likewise.
1242         * libio/iofgetws.c: Likewise.
1243         * libio/iofgetws_u.c: Likewise.
1244         * stdio-common/Makefile (tests): Add tst-fgets.
1245         * stdio-common/tst-fgets.c: New file.
1246
1247 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
1248
1249         [BZ #652]
1250         * posix/getconf.c: Add new option -a to print the names of
1251         the current system configuration variables to stdout.
1252         Based on patch from Josh Aas <josha@sgi.com>.
1253
1254 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
1255
1256         [BZ #644]
1257         * sysdeps/posix/getaddrinfo.c (fls): New function.
1258         (gaih_inet): Don't use ffs, use fls.  Convert address to native byte
1259         order first.
1260         * posix/Makefile (tests): Add tst-rfc3484.
1261         * posix/tst-rfc3484.c: New file.
1262
1263         [BZ #627]
1264         * libio/iofclose.c (_IO_new_fclose): Unlock the internal lock
1265         before destroying it as part of the _IO_FINISH call.
1266         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1267
1268         [BZ #524]
1269         * sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if
1270         number of bits is multiple of 8.
1271         Patch by Fredrik Tolf <fredrik@dolda2000.com>.
1272
1273         [BZ #516]
1274         * elf/dl-load.c: Report failed loading due to ELF class mismatch
1275         with better words.
1276
1277         [BZ #162]
1278         * manual/llio.texi (Waiting for I/O): Correct description of read
1279         conditions reported by select.
1280
1281 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
1282
1283         * inet/getnetgrent_r.c (innetgr): Call endfct even if result != 0.
1284         Return 1 only if result == 1.  Patch by Benoit Capelle.
1285
1286 2005-09-25  Ulrich Drepper  <drepper@redhat.com>
1287
1288         [BZ #278]
1289         * manual/stdio.texi (Hook Functions): Correct type of position
1290         parameter of seeker and fix fallout of the change in the text.
1291
1292         [BZ #714]
1293         * iconv/loop.c [!STORE_REST] (SINGLE): Correctly record number of
1294         left-over bytes and store them correctly.
1295         * wcsmbs/tst-mbrtowc2.c: New file.
1296         * wcsmbs/Makefile (tests): Add tst-mbrtowc2.
1297
1298 2005-09-24  Roland McGrath  <roland@redhat.com>
1299
1300         * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository.
1301         * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
1302
1303 2005-09-24  Ulrich Drepper  <drepper@redhat.com>
1304
1305         [BZ #545]
1306         * locale/iso-639.def: More updates from the current spec.
1307
1308         * locale/programs/ld-address.c (address_finish): Produce better
1309         error messages for invalid lang_ab use.
1310
1311         * locale/iso-639.def: Add a few updates from current spec.
1312
1313 2005-09-23  Ulrich Drepper  <drepper@redhat.com>
1314
1315         [BZ #704]
1316         * locale/iso-4217.def: Replace MGF with MGA.
1317
1318         * iconvdata/jis0208.c (__jisx0208_from_ucs4_lat1): Reduce size of
1319         array.
1320         * iconvdata/jis0208.h (ucs4_to_jisx0208): Adjust access.
1321
1322 2004-08-13  GOTO Masanori  <gotom@debian.or.jp>
1323
1324         [BZ #395]
1325         * iconvdata/jis0208.c: Remove 0x005C mapping from
1326         __jisx0208_from_ucs4_lat1.
1327         Reported by Fumitoshi UKAI <ukai@debian.or.jp>
1328
1329 2005-09-23  Ulrich Drepper  <drepper@redhat.com>
1330
1331         [BZ #394]
1332         * libio/fmemopen.c (fmemopen_write): Return 0 instead of -1 if
1333         nothing can be written.
1334         * libio/iofopncook.c (_IO_cookie_write): If something went wrong,
1335         set error bit.
1336
1337 2005-09-22  Ulrich Drepper  <drepper@redhat.com>
1338
1339         [BZ #281]
1340         * posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
1341         * posix/regcomp.c: Remove unnecessary uses of
1342         unsigned RE_TRANSLATE_TYPE.
1343         * posix/regex_internal.h: Likewise.
1344         * posix/regex_internal.c: Likewise.
1345         * posix/regexexec.c: Likewise.
1346         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
1347
1348         [BZ #1035]
1349         * locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
1350
1351         [BZ #1363]
1352         * nscd/nscd_getpw_r.c (nscd_getpw_r): Remove incorrectly C&Ped
1353         free call in code handling detection of GC runs.
1354
1355 2005-09-22  Roland McGrath  <roland@redhat.com>
1356
1357         * elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
1358         static __thread variable.
1359         From Alexandre Oliva <aoliva@redhat.com>
1360
1361         * Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
1362         Reported by Alexandre Oliva <aoliva@redhat.com>.
1363
1364 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
1365
1366         * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.
1367
1368 2005-09-20  Roland McGrath  <roland@redhat.com>
1369
1370         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use execv, not execl.
1371
1372         [BZ #1346]
1373         * elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
1374         magic on __stack_prot only if [SHARED].  Skip mprotect if __stack_prot
1375         lies outside the page-rounded-down relro region.
1376
1377 2005-09-19  Richard Henderson  <rth@redhat.com>
1378
1379         [BZ #1358]
1380         * sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s)
1381         to a temporary first.
1382         (inline_syscall2, inline_syscall3, inline_syscall4): Likewise.
1383         (inline_syscall5, inline_syscall6): Likewise.
1384
1385         * sysdeps/alpha/ldiv.S (lldiv): Add alias.
1386
1387 2005-09-17  Ulrich Drepper  <drepper@redhat.com>
1388
1389         [BZ #1010]
1390         * sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
1391
1392         [BZ #1053]
1393         * debug/xtrace.sh: Add missing escape character in -? match.
1394         Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
1395
1396         [BZ #1051]
1397         * wctype/wctype.h: Remove stray __END_NAMESPACE_C99.
1398         * stdlib/stdlib.h: Use __END_NAMESPACE_STD instead of
1399         __END_NAMESPACE_C99 in one place.
1400         * scripts/begin-end-check.pl: New file.
1401         Patch by Ralph Loader <suckfish@ihug.co.nz>.
1402         * Makefile: Add rules to run scripts/begin-end-check.pl.
1403
1404 2005-09-17  Andreas Jaeger  <aj@suse.de>
1405
1406         * timezone/zdump.c: Include ctype.h.
1407
1408 2005-09-16  Andreas Jaeger  <aj@suse.de>
1409
1410         [BZ #1047]
1411         * sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
1412
1413 2005-09-16  Maciej W. Rozycki  <macro@linux-mips.org>
1414
1415         [BZ #933]
1416         * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
1417         the syscall immediately before invocation.
1418         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
1419         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
1420
1421         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
1422         macros to handle GP.
1423         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
1424         Likewise.  Update inaccurate comments.
1425
1426 2005-09-13  Ulrich Drepper  <drepper@redhat.com>
1427
1428         * sysdeps/posix/spawni.c (__spawni): Automatically recognize some
1429         more cases when we can use vfork.
1430
1431 2005-08-29  Thomas Schwinge  <schwinge@nic-nac-project.de>
1432
1433         [BZ #1261]
1434         * manual/memory.texi (Hooks for Malloc): Correct prototype of
1435         my_init_hook and definition of my_free_hook.
1436
1437 2005-09-12  Roland McGrath  <roland@redhat.com>
1438
1439         [BZ #1331]
1440         * malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
1441         macro argument.
1442         Reported by Matej Vela <vela@debian.org>.
1443
1444 2005-09-12  Jakub Jelinek  <jakub@redhat.com>
1445
1446         * malloc/malloc.c (struct malloc_chunk): Fix comment typo.
1447         (public_cALLOc): For mmapped chunks and perturb_byte != 0,
1448         don't clear SIZE_SZ bytes more than should be cleared.
1449
1450 2005-09-09  Jakub Jelinek  <jakub@redhat.com>
1451
1452         * inet/getnetgrent_r.c: Include assert.
1453         (setup): Remove FUNC_NAME and ALL arguments, assume they are always
1454         "setnetgrent" and 1.
1455         (endnetgrent_hook): New function.
1456         (internal_endnetgrent): Use it.
1457         (__internal_setnetgrent_reuse): Use it.  Adjust setup caller.
1458         If status is NSS_STATUS_SUCCESS, yet action is continue, call
1459         endnetgrent hook.
1460         (internal_getnetgrent_r): Use __nss_lookup_function rather than
1461         setup.  Recompute getfct pointer after successful
1462         __internal_setnetgrent_reuse.  Don't use __nss_next.
1463         (innetgr): Use __nss_lookup_function instead of __nss_lookup.
1464         Adjust setup caller.
1465         * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Always clear
1466         data_size and cursor.  Add libnss_files_hidden_proto and
1467         libnss_files_hidden_def.
1468         (_nss_files_setnetgrent): Call _nss_files_endnetgrent on failure.
1469         * nis/nss_nis/nis-netgrp.c (internal_endnetgrent): Always clear
1470         data_size and cursor.
1471         (_nss_nis_setnetgrent): Don't call internal_endnetgrent.
1472         (_nss_nis_getnetgrent_r): Remove result->cursor == NULL handling.
1473         * nis/nss_nisplus/nisplus-netgrp.c (internal_endnetgrent): Always clear
1474         data_size and position.
1475         (_nss_nisplus_setnetgrent): Don't call internal_endnetgrent.
1476
1477 2005-09-09  Ulrich Drepper  <drepper@redhat.com>
1478
1479         * nss/getent.c (netgroup_keys): Call endnetgrent.
1480         (main): Call mtrace.
1481
1482         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): We don't
1483         need locking for the stream.  Use feof_unlocked.
1484
1485 2005-09-09  Jakub Jelinek  <jakub@redhat.com>
1486
1487         [BZ #1318]
1488         * locale/loadarchive.c (_nl_load_locale_from_archive): Free
1489         normalized_codeset even if p was already normalized.
1490         Reported by Jaroslav Snajdr <jsnajdr@kerio.com>.
1491
1492 2005-09-08  Roland McGrath  <roland@redhat.com>
1493
1494         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
1495         properly, first byte is bit number in mask.  Skip disabled caps.
1496
1497 2005-07-11  Derek R. Price  <derek@ximbiot.com>
1498
1499         [BZ #1061]
1500         * sysdeps/generic/glob.c (glob): Only a 0 return from
1501         getlogin_r means success, according to POSIX 1003.2.
1502
1503 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1504
1505         [BZ #1033]
1506         * time/mktime.c: Import from gnulib.
1507         The following macros are now consistent with other gnulib code.
1508         This does not change mktime's behavior.
1509         (TYPE_IS_INTEGER): New macro.
1510         (time_t_is_integer): Use it.
1511         (TYPE_TWOS_COMPLEMENT): New macro.
1512         (twos_complement_arithmetic): Use it.
1513         (TYPE_ONES_COMPLEMENT): New macro.
1514         (TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
1515         mktime doesn't use this, but the code now matches other gnulib code.
1516         (ranged_convert): Pacify GCC 4.0 in a different way, which
1517         generates a few bytes less code.
1518         (ranged_convert, __mktime_internal): When calling a function via a
1519         pointer P, use P () rather than (*P) (), as we now assume C89 or
1520         better.
1521
1522 2005-09-07  Alexandre Oliva  <aoliva@redhat.com>
1523
1524         * timezone/test-tz.c: Update to match tzdata2005m.
1525         * timezone/tst-timezone.c: Likewise.
1526
1527 2005-09-07  Ulrich Drepper  <drepper@redhat.com>
1528
1529         * posix/regexec.c (find_recover_state): Remove unnecessary
1530         initialization.
1531         (transit_state_bkref): Make DFA a const pointer.
1532         (get_subexp): Likewise.
1533         (check_arrival): Likewise.
1534         (update_cur_sifted_state): Likewise.
1535         (re_search_internal): Likewise.
1536         (prune_impossible_nodes): Likewise.
1537         (acquire_init_state_context): Likewise.
1538         (proceed_next_node): Likewise.
1539         (set_regs): Likewise.
1540         (free_fail_stack_return): Likewise.
1541         (check_arrival_expand_ecl): Mark DFA parameter as const.
1542         (check_arrival_expand_ecl_sub): Likewise.
1543         (check_subexp_limits): Likewise.
1544         (sub_epsilon_src_nodes):  Likewise.
1545         (add_epsilon_src_nodes):  Likewise.
1546         (merge_state_array): Likewise.
1547         (update_regs): Likewise.
1548         (build_trtable): Likewise.
1549         (sift_states_backward): Mark MCTX parameter as const.
1550         (build_sifted_states): Likewise.
1551         (update_cur_sifted_state): Likewise.
1552         (sift_states_mkref): Likewise.
1553         (check_arrival_expand_ecl): Mark eclosure as const.
1554         (check_dst_limits_calc_pos_1): Likewise.
1555         * posix/regex_internal.h (re_match_context_t): Make dfa a const
1556         pointer.
1557
1558 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1559
1560         * timezone/africa: Update from tzdata2005m.
1561         * timezone/asia: Likewise.
1562         * timezone/australasia: Likewise.
1563         * timezone/backward: Likewise.
1564         * timezone/europe: Likewise.
1565         * timezone/northamerica: Likewise.
1566         * timezone/southamerica: Likewise.
1567         * timezone/zone.tab: Likewise.
1568         * timezone/zdump.c: Update from tzcode2005m.
1569
1570         * posix/regexec.c (merge_state_with_log): Define dfa as const pointer.
1571         (transit_state_sb): Likewise.
1572         (transit_state_mb): Likewise.
1573         (sift_states_iter_mb): Likewise.
1574         (check_arrival_add_next_nodes): Likewise.
1575         (check_node_accept_bytes): Change first parameter to pointer-to-const.
1576         [_LIBC] (re_search_2_stub): Use mempcpy.
1577
1578         * posix/regex_internal.c (re_string_reconstruct): Avoid calling
1579         mbrtowc for very simple UTF-8 case.
1580
1581 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         * posix/regex_internal.c (build_wcs_upper_buffer): Fix portability
1584         bugs in int versus size_t comparisons.
1585
1586 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1587
1588         * posix/regex_internal.c (re_acquire_state): Make DFA pointer arg
1589         a pointer-to-const.
1590         (re_acquire_state_context): Likewise.
1591         * posix/regex_internal.h: Adjust prototypes.
1592
1593 2005-08-31  Jim Meyering  <jim@meyering.net>
1594
1595         * posix/regcomp.c (search_duplicated_node): Make first pointer arg
1596         a pointer-to-const.
1597         * posix/regex_internal.c (create_ci_newstate, create_cd_newstate,
1598         register_state): Likewise.
1599         * posix/regexec.c (search_cur_bkref_entry, check_dst_limits):
1600         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
1601         (group_nodes_into_DFAstates): Likewise.
1602
1603 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1604
1605         * posix/regexec.c (re_search_internal): Simplify update of
1606         rm_so and rm_eo by replacing "if (A == B) A += C - B;"
1607         with the equivalent of "if (A == B) A = C;".
1608
1609 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1610
1611         * posix/regcomp.c (re_compile_internal): Change third parameter type
1612         to size_t.
1613         (init_dfa): Likewise.  Make sure that arithmetic on pat_len doesn't
1614         overflow.
1615         * posix/regex_internal.h (struct re_dfa_t): Change type of nodes_alloc
1616         and nodes_len to size_t.
1617         * posix/regex_internal.c (re_dfa_add_node): Use size_t as type for
1618         new_nodes_alloc.  Check for overflow.
1619
1620 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         * posix/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
1623         (optimize_subexps, lower_subexp):
1624         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
1625         since the signed shift might overflow.  Use 1u<<31 instead.
1626         * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
1627         Likewise.
1628         * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise.
1629         (check_subexp_matching_top): Likewise.
1630         * posix/regcomp.c (optimize_subexps, lower_subexp):
1631         Use CHAR_BIT rather than 8, for clarity.
1632         * posix/regexec.c (check_dst_limits_calc_pos_1):
1633         (check_subexp_matching_top): Likewise.
1634         * posix/regcomp.c (init_dfa): Make table_size unsigned, so that we
1635         don't have to worry about portability issues when shifting it left.
1636         Remove no-longer-needed test for table_size > 0.
1637         * posix/regcomp.c (parse_sub_exp): Do not shift more bits than there
1638         are in a word, as the resulting behavior is undefined.
1639         * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise;
1640         in one case, a <= should have been an <, and in another case the
1641         whole test was missing.
1642         * posix/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
1643         the standard name CHAR_BIT.
1644
1645         * posix/regex_internal.h (re_sub_match_top_t): Remove unused member
1646         next_last_offset.
1647         (struct re_dfa_t): Remove unused member states_alloc.
1648         * posix/regcomp.c (init_dfa): Don't initialize unused members.
1649
1650 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         * posix/regexec.c (set_regs): Don't alloca with an unbounded size.
1653
1654         alloca modernization/simplification for regex.
1655         * posix/regex.c: Remove portability cruft for alloca.  This no longer
1656         needs to be at the start of the file, and can be moved into
1657         regex_internal.h and simplified.
1658         * posix/regex_internal.h: Include <alloca.h>.
1659         (__libc_use_alloca) [!defined _LIBC]: New macro.
1660         * posix/regexec.c (build_trtable): Remove "#ifdef _LIBC",
1661         since the code now works outside glibc.
1662
1663 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1664
1665         * include/regex.h: Remove use of _RE_ARGS.
1666
1667 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         * posix/regexec.c (find_recover_state): Change "err" to "*err".
1670
1671 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1672
1673         * posix/regcomp.c (regerror): Pointer args are 'restrict',
1674         as per POSIX.
1675         * posix/regex.h (regerror): Likewise.
1676         * manual/pattern.texi (POSIX Regexp Compilation): Likewise.
1677         Similarly for regcomp and regexec.  Also, first 2 args of regexec
1678         and 2nd arg of regerror are const.
1679
1680         * posix/regex.c: Do not include <sys/types.h>, as POSIX no longer
1681         requires this.  (The code never needed it.)
1682
1683 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1684
1685         * posix/regexec.c (sift_states_bkref): re_node_set_insert returns
1686         int, not reg_errcode_t.
1687
1688         * posix/regex_internal.c (calc_state_hash): Put 'inline' before type,
1689         since some broken compilers warn about it otherwise.
1690
1691         * posix/regcomp.c (create_initial_state): Remove duplicate decl.
1692
1693 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1694
1695         * posix/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
1696         C89 or better.  All uses removed.
1697
1698 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1699
1700         * posix/regex.c: Prevent using C++ compilers.
1701
1702 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1703
1704         * posix/regcomp.c (duplicate_node): Return new index, not an error
1705         code, and let the caller return REG_ESPACE if out of space.  This
1706         removes an uninitialied-variable warning with GCC 4.0.1, and also
1707         avoids taking the address of a local variable.  All callers
1708         changed.
1709
1710 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1711
1712         * include/time.h (__strptime_internal): Rename parameter to avoid
1713         bogus compiler warning.
1714
1715 2005-08-19  Jim Meyering  <jim@meyering.net>
1716
1717         * posix/regexec.c (proceed_next_node): Redo local variables to
1718         avoid GCC shadowing warnings.
1719
1720 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
1721
1722         * posix/regex_internal.c (re_acquire_state): Minor code rearrangement.
1723         (re_acquire_state_context): Likewise.
1724
1725 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1726
1727         * posix/regex_internal.c (re_string_realloc_buffers):
1728         (re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
1729         Rename local variables to avoid GCC shadowing warnings.
1730
1731 2005-07-08  Eric Blake  <ebb9@byu.net>
1732             Paul Eggert  <eggert@cs.ucla.edu>
1733
1734         * posix/regcomp.c (init_dfa): Store __btowc value in wint_t, not
1735         wchar_t.  Remove now-unnecessary cast.
1736         (build_range_exp): Likewise.
1737
1738 2005-08-31  Bob Wilson  <bob.wilson@acm.org>
1739
1740         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf):  Remove the
1741         exponent bias from the increment value for scaling by 2^60.
1742
1743 2005-09-05  Alexandre Oliva  <aoliva@redhat.com>
1744
1745         * configure.in: Compile source test file with -fPIC for -shared.
1746
1747 2005-09-04  Ulrich Drepper  <drepper@redhat.com>
1748
1749         * iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
1750         it wasn't used.  Remove use of from_object and to_object variable,
1751         replace with some constants.  Adjust users.
1752
1753         * sysdeps/i386/bits/string.h: Removed.
1754
1755         * stdio-common/Makefile (tests): Add tst-put-error.
1756         * stdio-common/tst-put-error.c: New file.
1757         * libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
1758         data would have to be written signal error.
1759         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
1760
1761         * libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
1762
1763 2005-09-02  Ulrich Drepper  <drepper@redhat.com>
1764
1765         * elf/dl-load.c (_dl_map_object_from_fd): No need to change
1766         protection of memory used for the last segment.
1767
1768 2005-08-22  Robert Millan  <robertmh@gnu.org>
1769
1770         * sysdeps/mach/hurd/nfs/nfs.h: Move to ...
1771         * sysdeps/generic/nfs/nfs.h: ... here.
1772
1773 2005-09-01  Ulrich Drepper  <drepper@redhat.com>
1774
1775         * libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
1776         Add __wur to feof{,_unlocked}, ferror{,_unlocked},
1777         fileno{,_unlocked}, and popen.
1778
1779 2005-08-30  Ulrich Drepper  <drepper@redhat.com>
1780
1781         * sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
1782
1783 2005-08-01  Bob Wilson  <bob.wilson@acm.org>
1784             Richard Sandiford  <richard@codesourcery.com>
1785
1786         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
1787         exponent bias to the value for 2^126.
1788
1789 2005-08-30  Jakub Jelinek  <jakub@redhat.com>
1790             Alan Modra  <amodra@bigpond.net.au>
1791
1792         * elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
1793         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
1794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
1795
1796 2005-08-23  Ulrich Drepper  <drepper@redhat.com>
1797
1798         * nscd/nscd.c (main): Use error while process isn't running in the
1799         background, not dbg_log.
1800         * nscd/nscd_conf.c (nscd_parse_file): Likewise.
1801         Mark messages with _().  Unify testing for database name.
1802
1803         * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
1804         (dbs): Initialize max_db_size fields.
1805         (nscd_init): When mapping the database, use max_db_size as the
1806         mapping size even if it is bigger than the file size.
1807         * nscd/mem.c (mempool_alloc): When resizing the file make sure the
1808         limit in max_db_size is not exceeded.  Don't use mremap, just
1809         posix_fallocate is enough (according to Linus).  Use posix_fallocate
1810         correctly.
1811         * nscd/nscd.conf: Add max-db-size parameters.
1812         * nscd/nscd.h (struct database_dyn): Add max_db_size field.
1813         Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
1814         Temporarily define TEMP_FAILURE_RETRY_VAL here.
1815         * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
1816         and add sanity checks for it.
1817
1818         * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
1819         send reply.
1820         * nscd/connection.c (writeall): Likewise.
1821         (handle_request): Likewise.
1822         * nscd/grpcache.c (cache_addgr): Likewise.
1823         * nscd/hstcache.c (cache_addhst): Likewise.
1824         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1825         * nscd/nscd.c (parse_opt): Likewise.
1826         * nscd/nscd_stat.c (send_stats): Likewise.
1827         (receive_print_stats): Likewise.
1828         * nscd/pwdcache.c (cache_addpw): Likewise.
1829
1830         * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
1831
1832 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
1833
1834         * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
1835         sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
1836         Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
1837         * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
1838         * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
1839         len by sizeof (wchar_t).
1840         * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
1841         * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
1842         Fix type of SRC argument.  Pass &SRC rather than SRC to
1843         __mbsrtowcs.
1844         * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
1845         to __wcsrtombs.
1846         * debug/tst-chk1.c: Include assert.h.
1847         (do_test): Change enough array from VLA into a fixed size array.
1848         Assert that MB_CUR_MAX is <= sizeof (enough).  Use FAIL () macro
1849         instead of print error details.  Add several new tests.
1850         Kill some unused variable warnings.
1851
1852 2005-08-21  Ulrich Drepper  <drepper@redhat.com>
1853
1854         * resolv/res_send.c (Aerror): Fix printing IP address.
1855
1856         * resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
1857
1858 2005-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1859
1860         * sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
1861
1862 2005-08-17  Robert Love  <rml@novell.com>
1863
1864         * sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
1865
1866 2005-08-19  Bruno Haible  <bruno@clisp.org>
1867
1868         * intl/localealias.c (read_alias_file): In case of failure, close the
1869         file descriptor and sort the array before returning.
1870
1871 2005-08-19  Ulrich Drepper  <drepper@redhat.com>
1872
1873         * malloc/Makefile: Link libmemusage.so with ld.so.
1874         * malloc/memusage.c: Use atomic operations for all counter and size
1875          computations.  Handle thread stacks.
1876         * sysdeps/generic/memusage.h: Define memusage_cntr_t and
1877         memusage_size_t.
1878         * sysdeps/i386/i686/memusage.h: New file.
1879         * include/atomic.h: Define atomic_max and atomic_min.
1880
1881         * debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
1882
1883 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1884
1885         [BZ #1207]
1886         * posix/regex.h: Remove spurious space-before-tab.  From gnulib.
1887
1888 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
1889
1890         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1891         sys/inotify.h.
1892         * sysdeps/unix/sysv/linux/sys/inotify.h: New file.
1893         * sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
1894
1895         * nscd/cache.c (prune_cache): Add more debug output.  Only for
1896         debug level 3 and higher and very verbose.
1897
1898         * nscd/cache.c (prune_cache): Use stat64 not stat.
1899         * nscd/connections.c (nscd_init): Likewise.
1900
1901 2005-08-10  Sergio Gelato  <Sergio.Gelato@astro.su.se>
1902
1903         [BZ #1188]
1904         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
1905         from (len > 0) to (len >= 0).
1906
1907 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
1908
1909         * nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
1910         Reported by Thomas Schwinge.
1911
1912 2005-08-15  Jakub Jelinek  <jakub@redhat.com>
1913
1914         * nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
1915
1916 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
1917
1918         * nss/getent.c (more_help): Use open_memstream instead of handling
1919         memory allocation ourselves.
1920
1921 2005-08-16  Jay Fenlason  <fenlason@redhat.com>
1922
1923         * nss/getent.c (parse_options): change the -s option to support
1924         {database}:{search} to override /etc/resolv.conf for only the
1925         specified database.
1926
1927 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
1928
1929         * nscd/connections.c (main_loop_epoll): Pass NULL as event
1930         argument for epoll_ctl(EPOLL_CTL_DEL) calls.
1931
1932         * nscd/nscd_stat.c (receive_print_stats): Really print values of
1933         thread number, paranoia, and restart interval the server is using.
1934
1935         * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
1936         * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
1937         * debug/vfprintf_chk.c: Add libc_hidden_def.
1938
1939 2005-08-08  Roland McGrath  <roland@redhat.com>
1940
1941         * argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
1942         (__argp_failure): Likewise.
1943
1944 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
1945
1946         * nscd/cache.c (cache_add): Commit hash table and header to disk.
1947
1948         * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
1949         * nscd/connections.c (nscd_init): Likewise.
1950
1951 2005-08-08  Jakub Jelinek  <jakub@redhat.com>
1952
1953         * stdio-common/fxprintf.c: Include libioP.h.
1954
1955         * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
1956         getdomainname): Add __NTH.
1957         * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
1958         Likewise.
1959         (realpath): Likewise.  Use __const instead of const.  Add __restrict
1960         keywords.
1961         * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
1962         * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
1963         wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
1964         mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
1965         * string/bits/string3.h (__memset_ichk): Likewise.
1966         (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
1967         __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
1968         __strncat_ichk): Likewise.  Use __const instead of const.
1969         (__stpncpy_chk): Use __const instead of const.
1970         (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
1971
1972 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
1973             Jakub Jelinek  <jakub@redhat.com>
1974
1975         * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
1976         definitions to...
1977         * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
1978         * nscd/connections.c (usekey): New enum.
1979         (check_use, verify_persistent_db): New functions.
1980         (nscd_init): If persistent database is corrupted, unlink it and
1981         recreate rather than falling back to non-persistent database.
1982         Call verify_persistent_db.  Avoid overflows in total computation.
1983
1984 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
1985
1986         * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
1987         better readable.  Avoid passing var to loop function, it's not
1988         necessary at all.
1989
1990 2005-08-07  Ulrich Drepper  <drepper@redhat.com>
1991
1992         * elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
1993         definition.
1994
1995 2005-08-05  Ulrich Drepper  <drepper@redhat.com>
1996
1997         * timezone/checktab.awk: Update from tzcode2005k.
1998         * timezone/private.h: Likewise.
1999         * timezone/scheck.c: Likewise.
2000         * timezone/tzselect.ksh: Likewise.
2001         * timezone/zdump.c: Likewise.
2002         * timezone/zic.c: Likewise.
2003         * timezone/africa: Update from tzdata2005k.
2004         * timezone/antarctica: Likewise.
2005         * timezone/asia: Likewise.
2006         * timezone/australasia: Likewise.
2007         * timezone/europe: Likewise.
2008         * timezone/iso3166.tab: Likewise.
2009         * timezone/leapseconds: Likewise.
2010         * timezone/northamerica: Likewise.
2011         * timezone/solar87: Likewise.
2012         * timezone/solar88: Likewise.
2013         * timezone/solar89: Likewise.
2014         * timezone/southamerica: Likewise.
2015         * timezone/zone.tab: Likewise.
2016
2017 2005-08-05  Roland McGrath  <roland@frob.com>
2018
2019         [BZ #1251]
2020         * mach/shortcut.awk: Ignore `weak_alias' lines.
2021         Reported by Alfred M. Szmidt <ams@gnu.org>.
2022
2023         [BZ #1250]
2024         * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
2025         Reported by Alfred M. Szmidt <ams@gnu.org>.
2026
2027 2005-08-03  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2028
2029         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
2030         Use +=, not =, to append.  Remove duplicate flags.
2031         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
2032         Likewise.  Fix comments.
2033
2034 2005-08-01  Ulrich Drepper  <drepper@redhat.com>
2035
2036         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
2037         call if it returned EINTR.
2038
2039 2005-07-31  Ulrich Drepper  <drepper@redhat.com>
2040
2041         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
2042         helper variable into .data.rel.ro.  Simplify the code.  Extend
2043         comment to explain prelinking.
2044
2045 2005-07-31  Andreas Jaeger  <aj@suse.de>
2046
2047         * include/bits/syslog.h: New file.
2048
2049 2005-07-30  Ulrich Drepper  <drepper@redhat.com>
2050
2051         * elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
2052         up.  We have more program header entries now and the note section
2053         was normally not loaded.
2054
2055         * nis/nis_subr.c: Some minor code cleanups.
2056
2057 2005-07-29  Ulrich Drepper  <drepper@redhat.com>
2058
2059         * misc/bits/syslog.h: New file.
2060         * misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
2061         * misc/Makefile (headers): Add bits/syslog.h.
2062         * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
2063         * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
2064         Call __vfprintf_chk if necessary.  Make vsyslog a wrapper.  Add
2065         __syslog_chk.
2066         * misc/Versions: Export __syslog_chk and __vsyslog_chk.
2067
2068 2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>
2069
2070         [BZ #1137]
2071         * misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.
2072
2073 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
2074
2075         * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
2076         functions.
2077
2078 2005-07-28  Jakub Jelinek  <jakub@redhat.com>
2079
2080         * stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
2081         call.
2082         * gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.
2083
2084 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
2085
2086         * nis/nis_file.c: Rewrite the two pairs of functions into wrappers
2087         around a pair of new, generalized functions.  22% size reduction.
2088
2089 2005-07-27  Ulrich Drepper  <drepper@redhat.com>
2090
2091         * nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
2092         Rearrange code.  This reduces the code size 10%.
2093
2094 2005-07-26  Jakub Jelinek  <jakub@redhat.com>
2095
2096         * misc/error.c (error_tail): Fix a comment typo.
2097
2098 2005-07-25  Ulrich Drepper  <drepper@redhat.com>
2099
2100         * po/zh_TW.po: Update from translation team.
2101
2102         * debug/mbstowcs_chk.c: New file.
2103         * debug/wcstombs_chk.c: New file.
2104         * debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
2105         * debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
2106         * stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.
2107
2108         * wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.
2109
2110 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
2111
2112         * string/test-memset.c (test_main): Use negative byte value in
2113         test.
2114
2115         * string/test-memset.c (do_one_test): Compare effect of call, not
2116         only return value.
2117         Add a few casts to avoid warnings.
2118
2119 2005-07-24  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2120
2121         * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
2122
2123 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
2124
2125         [BZ #1125]
2126         * posix/Makefile (tests): Add tst-execvp4.
2127         * posix/tst-execvp4.c: New file.
2128
2129 2005-07-24  Jakub Jelinek  <jakub@redhat.com>
2130
2131         [BZ #1125]
2132         * posix/execvp.c (execvp): Change path_malloc to
2133         char *, free that pointer on failure.
2134
2135 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
2136
2137         * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
2138         * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
2139         * wcsmbs/tst-wchar-h.c: New file.
2140
2141 2005-07-22  Ulrich Drepper  <drepper@redhat.com>
2142
2143         * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
2144
2145 2005-07-22  Jakub Jelinek  <jakub@redhat.com>
2146
2147         * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
2148         __gnuc_va_list rather than _G_va_list.
2149
2150 2005-07-22  Roland McGrath  <roland@redhat.com>
2151
2152         [BZ #869]
2153         * Makerules ($(objpfx)stubs): Fix last change.
2154
2155 2005-07-21  Roland McGrath  <roland@redhat.com>
2156
2157         * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
2158
2159         * stdlib/Makefile (headers): Move bits/wchar.h to ...
2160         * wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.
2161
2162 2005-07-21  Jakub Jelinek  <jakub@redhat.com>
2163
2164         * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
2165         * debug/tst-chk1.c (do_test): Add test for swprintf with format
2166         being the last argument.
2167
2168 2005-07-21  Thorsten Kukuk  <kukuk@suse.de>
2169
2170         * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
2171
2172         * stdio-common/fxprintf.c: Include string.h.
2173
2174 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
2175
2176         [BZ #1138]
2177         * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
2178         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2179         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2180
2181 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
2182             Darin Petkov  <darin@tensilica.com>
2183
2184         [BZ #1138]
2185         * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
2186
2187 2005-07-20  Jakub Jelinek  <jakub@redhat.com>
2188
2189         * include/stdio.h (__fxprintf): Remove wfmt argument.
2190         * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
2191         (__fxprintf): Remove wfmt argument, create wfmt format string on
2192         the fly from fmt.
2193         * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
2194         * argp/argp-help.c: Likewise.
2195         * assert/assert-perr.c: Likewise.
2196         * assert/assert.c: Likewise.
2197         * gmon/gmon.c: Likewise.
2198         * inet/rcmd.c: Likewise.
2199         * malloc/obstack.c: Likewise.
2200         * misc/error.c: Likewise.
2201         * misc/getpass.c: Likewise.
2202         * posix/getopt.c: Likewise.
2203         * resolv/res_hconf.c: Likewise.
2204         * stdio-common/perror.c: Likewise.
2205         * stdio-common/psignal.c: Likewise.
2206         * stdlib/fmtmsg.c: Likewise.
2207         * sunrpc/auth_unix.c: Likewise.
2208         * sunrpc/clnt_perr.c: Likewise.
2209         * sunrpc/clnt_tcp.c: Likewise.
2210         * sunrpc/clnt_udp.c: Likewise.
2211         * sunrpc/clnt_unix.c: Likewise.
2212         * sunrpc/svc_simple.c: Likewise.
2213         * sunrpc/svc_tcp.c: Likewise.
2214         * sunrpc/svc_udp.c: Likewise.
2215         * sunrpc/svc_unix.c: Likewise.
2216         * sunrpc/xdr.c: Likewise.
2217         * sunrpc/xdr_array.c: Likewise.
2218         * sunrpc/xdr_rec.c: Likewise.
2219         * sunrpc/xdr_ref.c: Likewise.
2220         * sysdeps/generic/wordexp.c: Likewise.
2221
2222 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
2223
2224         * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
2225         wcsrtombs, mbsnrtowcs, and wcsnrtombs.
2226         * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
2227         wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
2228         * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
2229         __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
2230         * debug/tst-chk1.c: Add tests for new functions.
2231         * debug/mbsnrtowcs_chk.c: New file.
2232         * debug/mbsrtowcs_chk.c: New file.
2233         * debug/wcrtomb_chk.c: New file.
2234         * debug/wcsnrtombs_chk.c: New file.
2235         * debug/wcsrtombs_chk.c: New file.
2236
2237 2005-07-19  Ulrich Drepper  <drepper@redhat.com>
2238
2239         * stdio-common/Makefile (aux): Add fxprintf.
2240         * stdio-common/fxprintf.c: New file.
2241         * include/stdio.h: Add declaration for __fxprintf.
2242         * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
2243         orientation test and two separate function calls.
2244         * argp/argp-help.c: Likewise.
2245         * assert/assert-perr.c: Likewise.
2246         * assert/assert.c: Likewise.
2247         * gmon/gmon.c: Likewise.
2248         * inet/rcmd.c: Likewise.
2249         * malloc/obstack.c: Likewise.
2250         * misc/error.c: Likewise.
2251         * misc/getpass.c: Likewise.
2252         * posix/getopt.c: Likewise.
2253         * resolv/res_hconf.c: Likewise.
2254         * stdio-common/perror.c: Likewise.
2255         * stdio-common/psignal.c: Likewise.
2256         * stdlib/fmtmsg.c: Likewise.
2257         * sunrpc/auth_unix.c: Likewise.
2258         * sunrpc/clnt_perr.c: Likewise.
2259         * sunrpc/clnt_tcp.c: Likewise.
2260         * sunrpc/clnt_udp.c: Likewise.
2261         * sunrpc/clnt_unix.c: Likewise.
2262         * sunrpc/svc_simple.c: Likewise.
2263         * sunrpc/svc_tcp.c: Likewise.
2264         * sunrpc/svc_udp.c: Likewise.
2265         * sunrpc/svc_unix.c: Likewise.
2266         * sunrpc/xdr.c: Likewise.
2267         * sunrpc/xdr_array.c: Likewise.
2268         * sunrpc/xdr_rec.c: Likewise.
2269         * sunrpc/xdr_ref.c: Likewise.
2270         * sysdeps/generic/wordexp.c: Likewise.
2271
2272         [BZ #1137]
2273         * misc/Makefile: Add rules to build and run tst-error1.
2274         * misc/tst-error1.c: New file.
2275         * misc/error.c: Fix memory leak and possibly endless loop.
2276
2277         * configure.in: Check for -fstack-protector gcc option.
2278         * config.make.in (have-ssp): Add template.
2279         * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
2280
2281         * nscd/nscd.c (main): Don't ignore result of chdir call.
2282
2283 2005-07-18  Roland McGrath  <roland@redhat.com>
2284
2285         [BZ #869]
2286         * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
2287         objdump command line.
2288
2289 2005-07-18  Ulrich Drepper  <drepper@redhat.com>
2290
2291         * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
2292
2293         * nscd/connections.c: Fix a few wur warnings.
2294
2295         [BZ #1113]
2296         * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
2297         length.  Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
2298
2299         * debug/confstr_chk.c: New file.
2300         * debug/getdomainname_chk.c: New file.
2301         * debug/getgroups_chk.c: New file.
2302         * debug/gethostname_chk.c: New file.
2303         * debug/getlogin_r_chk.c: New file.
2304         * debug/ttyname_r_chk.c: New file.
2305         * posix/bits/unistd.h: Add definitions for new debug versions.
2306         * debug/tst-chk1.c: Add tests for new functions.
2307         * debug/Versions: Export new functions.
2308         * debug/Makefile (routines): Add new files.
2309
2310         * stdlib/bits/stdlib.h: Fix typo.
2311
2312 2005-07-13  Thorsten Kukuk  <kukuk@suse.de>
2313
2314         * manual/Makefile (libc/index.html): Depend on dir-add.texi.
2315
2316 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
2317
2318         * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
2319         where necessary.
2320         * wcsmbs/bits/wchar2.h: Likewise.
2321
2322 2005-07-15  Andreas Jaeger  <aj@suse.de>
2323
2324         * debug/Makefile (tst-lfschk3-ENV): New, set locale.
2325         (tst-lfschk2-ENV): New.
2326         (tst-lfschk1-ENV): New.
2327         (tst-chk3-ENV): New.
2328         (tst-chk2-ENV): New.
2329         (tst-chk1-ENV): New.
2330
2331         [BZ #1079]
2332         * include/stdlib.h: Remove malloc attribute from __posix_memalign.
2333         * stdlib/stdlib.h: Likewise.
2334
2335 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
2336
2337         * wcsmbs/bits/wchar2.h: New file.
2338         * include/bits/wchar2.h: New file.
2339         * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
2340         requested.
2341         * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
2342         * string/bits/string3.h: Add fortified stpncpy definitions.
2343         * sysdeps/generic/stpncpy_chk.c: New file.
2344         * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
2345         Export _IO_wstrn_jumps.
2346         * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
2347         * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
2348         * debug/fgetws_chk.c: New file.
2349         * debug/fgetws_u_chk.c: New file.
2350         * debug/fwprintf_chk.c: New file.
2351         * debug/swprintf_chk.c: New file.
2352         * debug/vfwprintf_chk.c: New file.
2353         * debug/vswprintf_chk.c: New file.
2354         * debug/vwprintf_chk.c: New file.
2355         * debug/wcpcpy_chk.c: New file.
2356         * debug/wcpncpy_chk.c: New file.
2357         * debug/wcscat_chk.c: New file.
2358         * debug/wcscpy_chk.c: New file.
2359         * debug/wcsncat_chk.c: New file.
2360         * debug/wcsncpy_chk.c: New file.
2361         * debug/wmemcpy_chk.c: New file.
2362         * debug/wmemmove_chk.c: New file.
2363         * debug/wmempcpy_chk.c: New file.
2364         * debug/wmemset_chk.c: New file.
2365         * debug/wprintf_chk.c: New file.
2366         * debug/tst-chk1.c: Add tests for new functions.
2367         * debug/Versions: Export new functions.
2368         * debug/Makefile (routines): Add new functions.
2369
2370 2005-07-13  Ulrich Drepper  <drepper@redhat.com>
2371
2372         * nscd/nscd_helper.c: Add a few __builtin_expect.
2373
2374         [BZ #1080]
2375         * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
2376         * nscd/nscd_helper.c (wait_on_socket): New function.
2377         (get_mapping): Use wait_on_socket instead of poll.  The former handles
2378         EINTR of poll correctly.
2379         (__nscd_open_socket): Likewise.
2380         (get_mapping): Make sure BUF is aligned correctly.
2381         (get_mapping): Use munmap on correct pointer.
2382
2383 2005-07-12  Ulrich Drepper  <drepper@redhat.com>
2384
2385         * include/libc-symbols.h: Define macros for librt hidden symbols.
2386         * include/time.h: Add librt_hidden_proto definition for clock_gettime.
2387         * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
2388         * sysdeps/unix/clock_gettime.c: Likewise.
2389
2390         * stdlib/bits/stdlib.h: New file.
2391         * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
2392         requested.
2393         * Makefile (headers): Add bits/stdlib.h.
2394         * include/bits/stdlib.h: New file.
2395         * debug/Depend: New file.
2396         * debug/ptsname_r_chk.c: New file.
2397         * debug/realpath_chk.c: New file.
2398         * debug/wctomb_chk.c: New file.
2399         * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
2400         wctomb_chk.
2401         * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
2402         __wctomb_chk.
2403         * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
2404         __wctomb_chk.
2405
2406 2005-07-12  Jakub Jelinek  <jakub@redhat.com>
2407
2408         [BZ #1106]
2409         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
2410         (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
2411         instead of read and close_not_cancel_no_status instead of close.
2412
2413         [BZ #1106]
2414         * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
2415         HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
2416
2417 2005-06-27  Carlos O'Donell  <carlos@systemhalted.org>
2418
2419         * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
2420         after init_dfa.
2421
2422 2005-07-08  Ulrich Drepper  <drepper@redhat.com>
2423
2424         * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret.  Remove
2425         alignment.
2426         * sysdeps/x86_64/fpu/s_sincos.S: New file.
2427
2428         * include/fenv.h: Add libm_hidden_proto for fesetround and
2429         feholdexcept.
2430         * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
2431         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2432         * sysdeps/generic/feholdexcpt.c: Likewise.
2433         * sysdeps/generic/fesetround.c: Likewise.
2434         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2435         * sysdeps/i386/fpu/fesetround.c: Likewise.
2436         * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
2437         * sysdeps/ia64/fpu/fesetround.c: Likewise.
2438         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
2439         * sysdeps/powerpc/fpu/fesetround.c: Likewise.
2440         * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
2441         * sysdeps/s390/fpu/fesetround.c: Likewise.
2442         * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
2443         * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
2444         * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
2445         * sysdeps/sparc/fpu/fesetround.c: Likewise.
2446         * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
2447         * sysdeps/x86_64/fpu/fesetround.c: Likewise.
2448         * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
2449         ilogb.
2450         * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
2451         not ilogbf.
2452         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
2453         __cos, not sin and cos.
2454
2455 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
2456
2457         * resolv/res_send.c (send_dg): Recognize referral results and
2458         treat them as server errors.
2459         Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
2460
2461 2005-07-08  Carlos O'Donell  <carlos@systemhalted.org>
2462
2463         * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
2464
2465         * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
2466         * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
2467         * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
2468         * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
2469         * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
2470         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
2471
2472 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
2473
2474         * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
2475         * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
2476         * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
2477         * sysdeps/generic/s_ctan.c (__ctan): Likewise.
2478         * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
2479         * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
2480
2481 2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2482
2483         [BZ #974]
2484         * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
2485         (__preinit_array_end): Likewise.
2486         (__init_array_start): Likewise.
2487         (__init_array_end): Likewise.
2488         (__libc_csu_init): Take int argc, char **argv, char **envp.
2489         Call preinit_array and init_array with argc, argv, envp.
2490         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
2491         INIT_MAIN_ARGS.
2492         * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
2493         * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
2494         tst-array5dep.c, and tst-array5.exp.
2495         (tests): Add tst-array5.
2496         (tests-static): Add tst-array5-static.
2497         ($(objpfx)tst-array5): New target.
2498         ($(objpfx)tst-array5.out): Likewise.
2499         ($(objpfx)tst-array5-static.out): Likewise.
2500         * elf/tst-array5-static.c: New file.
2501         * elf/tst-array5-static.exp: Likewise.
2502         * elf/tst-array5.c: Likewise.
2503         * elf/tst-array5.exp: Likewise.
2504         * elf/tst-array5dep.c: Likewise.
2505
2506 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
2507
2508         * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
2509
2510 2005-07-05  Jakub Jelinek  <jakub@redhat.com>
2511
2512         * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
2513         Reported by Ulrich Weigand <uweigand@de.ibm.com>.
2514
2515         * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
2516
2517 2005-07-06  Ulrich Drepper  <drepper@redhat.com>
2518
2519         * elf/dl-error.c (_dl_signal_error): When testing for executable
2520         being relocated, take into account that nothing might even be loaded.
2521
2522         * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
2523         consider_profiling always to zero.  Don't count of compiler to
2524         remove unreached if block.
2525         * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
2526         Don't compile.
2527         * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
2528         * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
2529         * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
2530         Likewise.
2531         * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
2532         Likewise.
2533         * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
2534         (_dl_profile_resolve): Likewise.
2535         * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
2536         (_dl_profile_resolve): Likewise.
2537         * gmon/Makefile: Add rules to build and run tst-profile-static.
2538         * gmon/tst-profile-static.c: New file.
2539         * Makeconfig (+link-static): Allow passing program-specific flags.
2540
2541 2005-07-05  Thorsten Kukuk  <kukuk@suse.de>
2542
2543         [BZ #1111]
2544         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
2545         module provides getgrgid_r.
2546         (getgrnam_plusgroup): Preserve original return value.
2547         * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
2548         original return value.
2549         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
2550
2551 2005-07-05  Ulrich Drepper  <drepper@redhat.com>
2552
2553         [BZ #1101]
2554         * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
2555         MB_CUR_MAX.
2556         (build_wcs_upper_buffer): Likewise.
2557
2558         * csu/elf-init.c (__libc_csu_fini): Pretty printing.
2559
2560 2005-07-02  Roland McGrath  <roland@redhat.com>
2561
2562         * NEWS: Note LinuxThreads removal.
2563         * manual/install.texi (Installation): Don't mention linuxthreads.
2564         (Configuring and compiling): Don't use linuxthreads as example.
2565
2566         * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
2567         not linuxthreads.
2568         * sysdeps/unix/sysv/linux/configure: Regenerated.
2569         * resolv/Depend: Add nptl.
2570         * rt/Depend: Likewise.
2571
2572         * linuxthreads, linuxthreads_db: Directories removed (preserved in
2573         ports repository).
2574
2575 2005-06-27  Jakub Jelinek  <jj@ultra.linux.cz>
2576
2577         [BZ #1037]
2578         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
2579         use -mcpu=v8.
2580
2581 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
2582
2583         [BZ #1016]
2584         * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
2585
2586 2005-06-23  Thorsten Kukuk  <kukuk@suse.de>
2587
2588         [BZ #1109]
2589         * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
2590         with own translation.
2591
2592 2005-06-25  Jakub Jelinek  <jakub@redhat.com>
2593
2594         [BZ #1097]
2595         * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
2596         t2 to uint32_t instead of ulong.
2597         * sunrpc/Makefile (tests): Add tst-xdrmem.
2598         * sunrpc/tst-xdrmem.c: New test.
2599
2600         * Versions.def (ld): Add GLIBC_2.4.
2601         * configure.in: Add --enable-stackguard-randomization option.
2602         (ENABLE_STACKGUARD_RANDOMIZE): New define.
2603         * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
2604         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
2605         (_dl_setup_stack_chk_guard): New inline function.
2606         * sysdeps/generic/dl-osinfo.h: Include stdint.h.
2607         (_dl_setup_stack_chk_guard): New inline function.
2608         * elf/rtld.c (__stack_chk_guard): New variable.
2609         (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
2610         Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
2611         use THREAD_SET_STACK_GUARD if defined.
2612         * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
2613         * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
2614         (__libc_start_main): Set __stack_chk_guard to
2615         _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
2616         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
2617         traces of TLS_INIT_TP_EXPENSIVE.
2618         * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
2619         * debug/Makefile (routines): Add stack_chk_fail.
2620         (static-only-routines): Add stack_chk_fail_local.
2621         * debug/stack_chk_fail_local.c: New file.
2622         * debug/stack_chk_fail.c: New file.
2623         * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
2624         tests.
2625         * elf/tst-stackguard1.c: New file.
2626         * elf/tst-stackguard1-static.c: New file.
2627         * elf/stackguard-macros.h: New file.
2628
2629 2005-06-21  Ulrich Drepper  <drepper@redhat.com>
2630
2631         * resource/Makefile (tests): Add tst-getrlimit.
2632         * resource/tst-getrlimit.c: New file.
2633
2634         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
2635         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2636         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2637
2638 2005-06-20  Ulrich Drepper  <drepper@redhat.com>
2639
2640         * nscd/nscd.init: Get more in line with lsb3.
2641         * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
2642         * nscd/connections.c: Likewise.
2643
2644 2005-06-20  Jakub Jelinek  <jakub@redhat.com>
2645
2646         [BZ #653]
2647         * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
2648         _LINUX_QUOTA_VERSION >= 2.
2649         (_LINUX_QUOTA_VERSION): Define if not yet defined.
2650
2651         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
2652         RLIMIT_RTPRIO): Add.
2653         (RLIMIT_NLIMITS): Adjust.
2654         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
2655         RLIMIT_RTPRIO): Add.
2656         (RLIMIT_NLIMITS): Adjust.
2657         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
2658         RLIMIT_RTPRIO): Add.
2659         (RLIMIT_NLIMITS): Adjust.
2660         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
2661         RLIMIT_RTPRIO): Add.
2662         (RLIMIT_NLIMITS): Adjust.
2663
2664 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
2665
2666         [BZ #1106]
2667         * time/mktime.c: Always include <string.h> for prototype of
2668         implicitly used memcpy.
2669
2670         [BZ #1104]
2671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
2672         (truncate64): Use __truncate, not truncate.
2673         (__have_no_truncate64): Renamed from have_no_truncate64.
2674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
2675         (__have_no_truncate64): Renamed from have_no_truncate64.
2676
2677         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
2678         float functions for gcc 4.
2679
2680 2005-06-10  Jakub Jelinek  <jakub@redhat.com>
2681
2682         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
2683         Handle prelinked libraries and binaries with new style PLT.
2684
2685 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
2686
2687         * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
2688         R_PPC_REL16_HA): Define.
2689
2690 2005-06-14  Alan Modra  <amodra@bigpond.net.au>
2691
2692         * config.h.in (HAVE_ASM_PPC_REL16): Add.
2693         * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
2694         * elf/tls-macros.h (PowerPC32): Include config.h.  Add variants of
2695         TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
2696         * sysdeps/powerpc/powerpc32/configure.in: New file,
2697         * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
2698         * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
2699         (ppc_got): New inline function.
2700         (elf_machine_dynamic): Use ppc_got.  Add attribute const.
2701         (elf_machine_load_address): Add attribute const.  Don't use int vars.
2702         Use bcl rather than bl to save trashing branch target stack.  Use
2703         elf_machine_dynamic rather than duplicating code here.
2704         (elf_machine_runtime_setup): New inline function replacing define.
2705         Handle new PLT.
2706         (elf_machine_fixup_plt): Handle new PLT.
2707         (elf_machine_rela): Likewise.
2708         * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
2709         (CALL_MCOUNT): Don't set up counter vars.
2710         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
2711         * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
2712         define when HAVE_ASM_PPC_REL16.
2713         (_start): Add HAVE_ASM_PPC_REL16 code.
2714         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
2715         into the GOT when HAVE_ASM_PPC_REL16.
2716         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2717         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
2718         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
2719         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2720         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2721         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2722         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
2723         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
2724         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
2725         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
2726         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
2727         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2728         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2729         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
2730         Likewise.
2731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
2732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2733         (__getcontext): Likewise.
2734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2735         (__setcontext): Likewise.
2736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2737         (__swapcontext): Likewise.
2738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
2739         Comment.
2740         (__socket): Bomb if NARGS >= 7.  Invoke CGOTSETUP and CGOTRESTORE.
2741
2742 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
2743
2744         [BZ #1106]
2745         * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
2746         to use __GI_memset.
2747         * sysdeps/posix/signal.c: Likewise.
2748         * sysdeps/posix/sigset.c: Likewise.
2749         * sysdeps/posix/sysv_signal.c: Likewise.
2750         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2751         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2752         * sysdeps/unix/sysv/linux/system.c: Likewise.
2753
2754 2005-06-15  Jakub Jelinek  <jakub@redhat.com>
2755
2756         [BZ #1088]
2757         * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
2758         or both classes equal here.
2759         (parse_config_file): If both classes are equal, clear the second one.
2760
2761 2005-06-08  Karl Kelley  <kekelley@iastate.edu>
2762
2763         [BZ #1088]
2764         * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
2765         * hesiod/hesiod.c (hesiod_init): Initialize classes.  Fail if no
2766         valid classes were given or if both are equal.
2767         (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
2768         and C_HS order.
2769         (parse_config_file): Handle classes keyword.
2770         * hesiod/README.hesiod: Mention addition of the classes keyword.
2771
2772 2005-06-14  Ulrich Drepper  <drepper@redhat.com>
2773
2774         [BZ #1085]
2775         * configure.in: Add test for availability of libaudit.
2776         * config.h.in: Define HAVE_LIBAUDIT.
2777         * config.make.in: Define have-libaudit.
2778         * nscd/Makefile: If libaudit is available, link nscd with it.
2779         * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
2780         Patch by Steve Grubb <sgrubb@redhat.com>.
2781
2782         * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
2783         * sysdeps/posix/posix_fallocate64.c: Likewise.
2784         * include/string.h: Use libc_hidden_proto for strnlen.
2785         * sysdeps/generic/strnlen.c: Add libc_hidden_def.
2786         * include/libintl.h: Use libc_hidden_proto for __dcgettext.
2787         * intl/dcgettext.c: Add libc_hidden_def.
2788         * include/execinfo.h: Add libc_hidden_proto for __backtrace and
2789         __backtrace_symbols_fd.
2790         * sysdeps/generic/backtrace.c: Add libc_hidden_def.
2791         * sysdeps/generic/backtracesymsfd.c: Likewise.
2792         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2793         * sysdeps/i386/backtrace.c: Likewise.
2794         * sysdeps/ia64/backtrace.c: Likewise.
2795         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
2796         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
2797         * sysdeps/s390/s390-32/backtrace.c: Likewise.
2798         * sysdeps/s390/s390-64/backtrace.c: Likewise.
2799
2800 2005-06-13  Ulrich Drepper  <drepper@redhat.com>
2801
2802         * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
2803         where HANDLED_REALTIME is not defined.  [BZ #966]
2804
2805 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
2806
2807         [BZ #1096]
2808         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
2809         __netlink_receive): Remove prototypes.
2810         (__netlink_request): New prototype.
2811         * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
2812         <stdint.h>.
2813         (__netlink_sendreq): Make static.
2814         (__netlink_receive): Rename to...
2815         (__netlink_request): ... this.  Add type argument, call
2816         __netlink_sendreq.  If MSG_TRUNC is set after recvmsg, retry
2817         with a bigger buffer.  Don't record buffers that contain no
2818         messages we are expecting.
2819         (getifaddrs): Use __netlink_request instead of __netlink_sendreq
2820         and __netlink_receive pairs.  Formatting.
2821         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
2822         __netlink_request instead of __netlink_sendreq and __netlink_receive
2823         pair.
2824
2825 2005-06-13  Thorsten Kukuk  <kukuk@suse.de>
2826
2827         * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
2828         headers, instead copy important structs/defines.
2829
2830 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
2831
2832         * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
2833         _dl_debug_state call.
2834
2835 2005-06-12  Ulrich Drepper  <drepper@redhat.com>
2836
2837         * elf/dl-error.c (_dl_signal_error): Store information about use of
2838         real malloc in the catch object.
2839         (_dl_catch_error): Forward information about malloc use to caller
2840         in new parameter.
2841         (_dl_out_of_memory): Make static.
2842         * elf/dl-deps.c: Adjust callers of _dl_catch_error.
2843         * elf/dl-libc.c: Likewise.
2844         * elf/dl-open.c: Likewise.
2845         * elf/rtld.c: Likewise.
2846         Add new --audit option.
2847         * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
2848         (rtld_global_ro._dl_signal_error): Add new parameter.
2849         * include/dlfcn.h (_dl_catch_error): Add new parameter.
2850         * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
2851         _dl_catch_error.  Only free if the returned newly value says so.
2852
2853 2005-06-01  Roland McGrath  <roland@redhat.com>
2854
2855         [BZ #959]
2856         * posix/tst-mmap.c (main): Fill the test file with enough data for the
2857         page size.
2858
2859 2005-05-30  Jakub Jelinek  <jakub@redhat.com>
2860
2861         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
2862         GLRO(dl_osversion) has been already set to a value smaller than
2863         _dl_discover_osversion (), don't overwrite it here.
2864
2865 2005-05-24  Thomas Schwinge  <schwinge@nic-nac-project.de>
2866
2867         * sysdeps/mach/i386/syscall.S (syscall): Call END.
2868
2869 2005-05-28  Richard Henderson  <rth@redhat.com>
2870
2871         * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
2872         * sysdeps/alpha/dl-dtprocnum.h: New file.
2873         * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
2874         (elf_machine_load_address): Simplify to rely on gprel relocations.
2875         (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
2876         Remove thread safety workaround for binutils 2.6.
2877         (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
2878         * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
2879         (_dl_runtime_profile_new): New.
2880         (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
2881         (_dl_runtime_profile_old): Rename from _dl_runtime_profile.  Fix
2882         typo in _dl_call_pltexit argument loading.
2883
2884         * sysdeps/alpha/div_libc.h (funcnoplt): New.
2885         * sysdeps/alpha/divl.S: Use it.
2886         * sysdeps/alpha/divq.S: Likewise
2887         * sysdeps/alpha/divqu.S: Likewise.
2888         * sysdeps/alpha/reml.S: Likewise.
2889         * sysdeps/alpha/remq.S: Likewise.
2890         * sysdeps/alpha/remqu.S: Likewise.
2891
2892 2005-05-26  Andreas Schwab  <schwab@suse.de>
2893
2894         * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
2895
2896 2005-05-26  Ulrich Drepper  <drepper@redhat.com>
2897
2898         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
2899         Reported by Colin Gibbs <colin@gibbsonline.net>.  [BZ #954]
2900
2901 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
2902
2903         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
2904         _dl_hwcap access in PIC && !SHARED case.
2905         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2906
2907 2005-05-25  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2908
2909         * gmon/gmon.c: Add space in weak_alias use.
2910         * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
2911         * sysdeps/alpha/htonl.S: Likewise.
2912         * sysdeps/alpha/htons.S: Likewise.
2913         * sysdeps/alpha/elf/start.S: Likewise.
2914         * sysdeps/i386/i386-mcount.S: Likewise.
2915         * sysdeps/ia64/strchr.S: Likewise.
2916         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2917         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
2918         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2919         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2920         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2921         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2922         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2923         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2924         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2925         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2926         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2927         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2928         * sysdeps/mach/hurd/readdir64_r.c: Likewise.
2929         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
2930         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2931         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2932         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2933         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
2934         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2935         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2936         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2937         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
2938         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2939         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2940         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2941         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
2942         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
2943         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
2944         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
2945         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2946         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2947         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2948         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2949         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2950         * sysdeps/sparc/sparc32/memset.S: Likewise.
2951         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
2952         * sysdeps/sparc/sparc32/strchr.S: Likewise.
2953         * sysdeps/sparc/sparc32/strchr.S: Likewise.
2954         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
2955         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2956         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2957         * sysdeps/sparc/sparc64/memset.S: Likewise.
2958         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2959         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2960         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2961         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2962         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
2963         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2964         * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
2965         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2966         * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
2967         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2968         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
2969         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2970         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2971         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2972         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
2973         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2974         * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
2975         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2976         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2977         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
2978         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
2979         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2980         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
2981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2982         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
2983         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
2984         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2985         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2986         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2987         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2988         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
2989         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
2990         * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
2991         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
2992         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
2993         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
2994         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
2995         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2996         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
2997         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2998         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2999         * sysdeps/x86_64/_mcount.S: Likewise.
3000
3001 2005-05-24  Roland McGrath  <roland@redhat.com>
3002
3003         * sysdeps/unix/sysv/linux/i386/sysdep.h
3004         (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
3005         * sysdeps/i386/sysdep.h [PIC]: ... to here.
3006
3007 2005-05-23  Roland McGrath  <roland@redhat.com>
3008
3009         * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
3010         Subdirectories moved to ports repository.
3011         * configure.in (base_machine): Remove arm* and thumb* patterns.
3012         * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
3013
3014 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
3015
3016         [BZ #1086]
3017         * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
3018         implementations are broken and don't accept ports < 512.
3019
3020 2005-05-22  Dmitry V. Levin  <ldv@altlinux.org>
3021
3022         [BZ #961]
3023         * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
3024         declarations.
3025
3026 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
3027
3028         [BZ #1086]
3029         * sunrpc/pm_getport.c (__get_socket): New function.
3030         (pmap_getport): Use it to open a non-reserved socket to the portmapper
3031         for TCP.
3032         * include/rpc/pmap_clnt.h (__get_socket): Declare.
3033         * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
3034         non-reserved socket for the portmapper.
3035         Based on a patch by Steve Dickson <steved@redhat.com>.
3036
3037         [BZ #1086]
3038         * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
3039         If we tried looking at the usual range without success extend the
3040         range to even lower ports.
3041
3042         * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
3043
3044 2005-05-22  Andreas Schwab  <schwab@suse.de>
3045
3046         * elf/rtld.c: Include <dl-osinfo.h>.
3047
3048 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
3049
3050         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
3051         JUMPTARGET.  Instead append @local to __syscall_error.
3052         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
3053         of JUMPTARGET.  Instead append @local to labels.
3054         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
3055         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
3056         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
3057         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
3058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
3059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
3061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
3062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
3065
3066         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
3067         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3068         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
3069         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3070         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.  Use one GOT
3071         slot to access both constants.
3072         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3073         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3074
3075         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
3076         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
3077         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
3078         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
3079         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
3080         (NEGZERO.0, POINTFIVE.0): Delete.
3081         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
3082         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
3083         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
3084         (TWO52.0, POINTFIVE.0): Delete.
3085         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
3086         (TWO23.0, POINTFIVE.0): Delete.
3087         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
3088         (TWO52.0): Delete.
3089         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
3090         (TWO23.0): Delete.
3091         * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
3092
3093 2005-05-19  Richard Henderson  <rth@redhat.com>
3094
3095         * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
3096         CLOCK_REALTIME.
3097
3098         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
3099         __arch_compare_and_exchange_bool_64_acq,
3100         __arch_compare_and_exchange_val_32_acq,
3101         __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
3102         Use __sync builtin without _si or _di suffix.
3103
3104 2005-05-19  Jakub Jelinek  <jakub@redhat.com>
3105
3106         [BZ #955]
3107         * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
3108         <UFFFF> and above.
3109
3110 2005-05-17  Andreas Schwab  <schwab@suse.de>
3111
3112         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3113         (clock_getcpuclockid): Always return a defined value.
3114
3115 2005-05-17  Neal H. Walfield  <neal@gnu.org>
3116
3117         [BZ #1350]
3118         * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
3119         instead of [SALEN].
3120         (gaih_inet): Likewise.
3121
3122 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
3123
3124         * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
3125         (Elf64_auxv_t): Likewise.
3126         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
3127         removal of a_ptr element in ElfXX_auxv_t.
3128         * elf/dl-support.c (_dl_aux_init): Likewise.
3129
3130 2005-05-09  Daniel Jacobowitz  <dan@codesourcery.com>
3131
3132         * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
3133         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
3134
3135 2005-05-09  Alan Modra  <amodra@bigpond.net.au>
3136
3137         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
3138         .pushsection/.popsection in place of .section/.previous.
3139
3140 2005-05-08  Ulrich Drepper  <drepper@redhat.com>
3141
3142         * MakeTAGS: Make xgettext not look into test cases.
3143
3144         * MakeTAGS: Make sure translations in error calls are marked with
3145         c-format by xgettext.
3146
3147 2005-05-07  Ulrich Drepper  <drepper@redhat.com>
3148
3149         * intl/libintl.h: Always use __attribute_format_arg__ for gettext
3150         functions since gcc sometimes forgets the attribute for the
3151         standard functions.
3152
3153 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
3154
3155         [BZ #934]
3156         * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
3157         __libc_lock_* macros if not _LIBC.
3158         (struct re_dfa_t): Add lock.
3159         * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
3160         * posix/regexec.c (regexec, re_search_stub): Add locking.
3161
3162 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
3163
3164         * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
3165         as argument to the scripts.
3166         * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
3167         * intl/tst-gettext4.sh: Likewise.  Use run_program_prefix argument.
3168         * intl/tst-gettext5.sh: Likewise.
3169
3170         * intl/tst-translit.sh: Add mkdir -p.
3171
3172         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
3173         .ifndef/.endif to allow use of this macro more than once per .S
3174         file.
3175         (LOAD_PIC_REG): New macro.
3176         * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
3177         information.
3178         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3179         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3180         * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro.  Add call frame
3181         information.
3182         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3183         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3184         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3185         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3186         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
3187         * sysdeps/i386/fpu/s_lrint.S: Likewise.
3188         * sysdeps/i386/fpu/s_llrint.S: Likewise.
3189         * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
3190         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3191         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3192         * sysdeps/i386/fpu/e_log.S: Likewise.
3193         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3194         * sysdeps/i386/fpu/s_lrintl.S: Likewise.
3195         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3196         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3197         * sysdeps/i386/fpu/s_log1p.S: Likewise.
3198         * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
3199         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3200         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
3201         * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
3202         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3203         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
3204         * sysdeps/i386/fpu/s_lrintf.S: Likewise.
3205         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3206         * sysdeps/i386/fpu/s_cexp.S: Likewise.
3207         * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
3208         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3209         * sysdeps/i386/fpu/e_powl.S: Likewise.
3210         * sysdeps/i386/fpu/e_powf.S: Likewise.
3211         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3212         * sysdeps/i386/fpu/e_logl.S: Likewise.
3213         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3214         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3215         * sysdeps/i386/fpu/e_pow.S: Likewise.
3216         * sysdeps/i386/fpu/e_logf.S: Likewise.
3217         * sysdeps/i386/fpu/e_log2.S: Likewise.
3218         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3219         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3220         * sysdeps/i386/fpu/s_llrintf.S: Likewise.
3221         * sysdeps/i386/fpu/s_ilogb.S: Likewise.
3222         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3223         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3224         * sysdeps/i386/fpu/e_log10.S: Likewise.
3225         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3226         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3227         * sysdeps/i386/fpu/s_llrintl.S: Likewise.
3228         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3229         * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
3230         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3231         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3232         * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
3233         * sysdeps/i386/mul_1.S: Likewise.
3234         * sysdeps/i386/strtok.S: Likewise.
3235         * sysdeps/i386/sub_n.S: Likewise.
3236         * sysdeps/i386/submul_1.S: Likewise.
3237         * sysdeps/i386/i586/addmul_1.S: Likewise.
3238         * sysdeps/i386/i586/memcpy.S: Likewise.
3239         * sysdeps/i386/i586/mul_1.S: Likewise.
3240         * sysdeps/i386/i586/rshift.S: Likewise.
3241         * sysdeps/i386/i586/sub_n.S: Likewise.
3242         * sysdeps/i386/i586/submul_1.S: Likewise.
3243         * sysdeps/i386/i686/memcmp.S: Likewise.
3244         * sysdeps/i386/i686/memmove.S: Likewise.
3245         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3246         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3247         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3248         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3249
3250 2005-05-03  Ulrich Drepper  <drepper@redhat.com>
3251
3252         * sysdeps/i386/add_n.S: Add call frame information.
3253         * sysdeps/i386/addmul_1.S: Likewise.
3254         * sysdeps/i386/bsd-setjmp.S: Likewise.
3255         * sysdeps/i386/lshift.S: Likewise.
3256         * sysdeps/i386/memchr.S: Likewise.
3257         * sysdeps/i386/memcmp.S: Likewise.
3258         * sysdeps/i386/mul_1.S: Likewise.
3259         * sysdeps/i386/rawmemchr.S: Likewise.
3260         * sysdeps/i386/rshift.S: Likewise.
3261         * sysdeps/i386/stpncpy.S: Likewise.
3262         * sysdeps/i386/strchr.S: Likewise.
3263         * sysdeps/i386/strchrnul.S: Likewise.
3264         * sysdeps/i386/strcspn.S: Likewise.
3265         * sysdeps/i386/strpbrk.S: Likewise.
3266         * sysdeps/i386/strrchr.S: Likewise.
3267         * sysdeps/i386/strspn.S: Likewise.
3268         * sysdeps/i386/strtok.S: Likewise.
3269         * sysdeps/i386/sub_n.S: Likewise.
3270         * sysdeps/i386/submul_1.S: Likewise.
3271         * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
3272         * sysdeps/i386/i486/strcat.S: Likewise.
3273         * sysdeps/i386/i586/add_n.S: Likewise.
3274         * sysdeps/i386/i586/addmul_1.S: Likewise.
3275         * sysdeps/i386/i586/lshift.S: Likewise.
3276         * sysdeps/i386/i586/memcpy.S: Likewise.
3277         * sysdeps/i386/i586/memset.S: Likewise.
3278         * sysdeps/i386/i586/mul_1.S: Likewise.
3279         * sysdeps/i386/i586/rshift.S: Likewise.
3280         * sysdeps/i386/i586/strchr.S: Likewise.
3281         * sysdeps/i386/i586/strcpy.S: Likewise.
3282         * sysdeps/i386/i586/sub_n.S: Likewise.
3283         * sysdeps/i386/i586/submul_1.S: Likewise.
3284         * sysdeps/i386/i686/add_n.S: Likewise.
3285         * sysdeps/i386/i686/memcmp.S: Likewise.
3286         * sysdeps/i386/i686/memmove.S: Likewise.
3287         * sysdeps/i386/i686/mempcpy.S: Likewise.
3288         * sysdeps/i386/i686/memset.S: Likewise.
3289         * sysdeps/i386/i686/strtok.S: Likewise.
3290         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3291         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3292         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3293         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
3294         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3295         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3296
3297         * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
3298
3299         * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
3300         on ppc in 2.6.12.
3301
3302 2005-04-29  Jakub Jelinek  <jakub@redhat.com>
3303
3304         [BZ #1083]
3305         * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
3306         call ftruncate if offset is bigger than current size.  Make sure
3307         the file is offset + len bytes long if that is more than current size.
3308         Don't overwrite previous content of the file.
3309         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
3310         Likewise.
3311
3312 2005-05-02  Roland McGrath  <roland@redhat.com>
3313
3314         [BZ #924]
3315         * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
3316
3317 2005-04-29  Roland McGrath  <roland@redhat.com>
3318
3319         * timezone/africa: Update from tzdata2005i.
3320         * timezone/asia: Likewise.
3321         * timezone/northamerica: Likewise.
3322         * timezone/yearistype: Likewise.
3323
3324         * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
3325
3326 2005-04-29  Ulrich Drepper  <drepper@redhat.com>
3327
3328         [BZ #1093]
3329         * nis/nis_table.c: Fix realloc handling.
3330         * nis/nis_removemember.c: Likewise.
3331
3332 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
3333
3334         [BZ #798]
3335         * nscd/Makefile: Help losers who use --with-headers.
3336
3337 2005-04-28  Roland McGrath  <roland@redhat.com>
3338
3339         [BZ #796]
3340         * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
3341         Define NEED_DL_SYSINFO_DSO for all platforms.
3342
3343         * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
3344         * sysdeps/alpha/dl-sysdep.h: Likewise.
3345         Use #include_next instead of duplicating generic file's contents.
3346         * sysdeps/ia64/dl-sysdep.h: Likewise.
3347         * sysdeps/sparc/dl-sysdep.h: Likewise.
3348
3349 2005-03-22  Steven Munroe  <sjmunroe@us.ibm.com>
3350
3351         * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
3352
3353 2005-03-07  Steven Munroe  <sjmunroe@us.ibm.com>
3354
3355         [BZ #781]
3356         * sysdeps/unix/sysv/linux/kernel-features.h
3357         (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
3358         (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
3359         (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
3360         with 2.6.1.
3361         (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
3362
3363 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
3364
3365         * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
3366         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3367         * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
3368         cfi_startproc and cfi_endproc.
3369
3370         * configure.in: Remove ultrasparc names.
3371
3372         * sysdeps/i386/i686/memcmp.S: Move misplaced END.
3373
3374 2005-03-27  Bruno Haible  <bruno@clisp.org>
3375
3376         Make it possible for multiple threads to use gettext() in different
3377         locales.
3378         * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
3379         (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
3380         field.
3381         (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
3382         (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
3383         search and newp.
3384
3385         * intl/tst-gettext4.c: New file.
3386         * intl/tst-gettext4.sh: New file.
3387         * intl/tst-gettext4-de.po: New file.
3388         * intl/tst-gettext4-fr.po: New file.
3389         * intl/tst-gettext5.c: New file.
3390         * intl/tst-gettext5.sh: New file.
3391         * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
3392         tst-gettext4-fr.po, tst-gettext5.sh.
3393         (multithread-test-srcs): New variable.
3394         (test-srcs): Add its contents.
3395         (tests): Depend on tst-gettext4.out, tst-gettext5.out.
3396         (tst-gettext4.out, tst-gettext5.out): New rules.
3397         (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
3398         Add rule for linking the multithread-test-srcs with the appropriate
3399         thread-library.
3400
3401 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * po/rw.po: New file.  From translation team.
3404
3405         * scripts/config.guess: Update from upstream.
3406         * scripts/config.sub: Likewise.
3407
3408 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
3409
3410         [BZ #1094]
3411         * nscd/connections.c (nscd_run): Use time() value in prune_cache
3412         call, not timeout value, since the latter might be from another clock.
3413
3414 2005-04-27  Roland McGrath  <roland@redhat.com>
3415
3416         [BZ #877]
3417         * posix/unistd.h: Remove __nonnull from acct decl.
3418
3419         * rt/tst-cpuclock1.c: New file.
3420         * rt/tst-cpuclock2.c: New file.
3421         * rt/tst-cputimer1.c: New file.
3422         * rt/tst-cputimer2.c: New file.
3423         * rt/tst-cputimer3.c: New file.
3424         * rt/Makefile (tests): Add them.
3425
3426         * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
3427         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
3428         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
3429         (HAS_CPUCLOCK): New macro.
3430         (clock_getcpuclockid): Function removed.
3431         #include the new linux file to define it instead.
3432         * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
3433         New function, broken out of ...
3434         (clock_gettime) [HP_TIMING_AVAIL]: ... here.  Call it.
3435         (realtime_gettime): New function, broken out of ...
3436         (clock_gettime) [! HANDLED_REALTIME]: ... here.  Call it.
3437         (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
3438         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
3439         (SYSDEP_GETTIME_CPUTIME): New macro.
3440         (SYSDEP_GETTIME): Use both.
3441         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
3442         out of ...
3443         (SYSDEP_GETTIME): ... here.  Use it.
3444         [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
3445         (SYSDEP_GETTIME_CPUTIME): New macro.  Handle CPU timers by trying
3446         kernel support and falling back to hp-timing code.
3447         * sysdeps/posix/clock_getres.c
3448         [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
3449         (clock_getres) [HP_TIMING_AVAIL]: ... here.  Call it.
3450         (realtime_getres): New function, broken out of ...
3451         (clock_getres) [! HANDLED_REALTIME]: ... here.  Call it.
3452         (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
3453         * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
3454         (SYSDEP_GETRES_CPUTIME): New macro.
3455         (SYSDEP_GETRES): Use both.
3456         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
3457         out of ...
3458         (SYSDEP_GETRES): ... here.  Use it.
3459         [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
3460         (SYSDEP_GETRES_CPUTIME): New macro.  Handle CPU timers by trying
3461         kernel support and falling back to hp-timing code.
3462         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
3463         CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
3464         translating to the kernel clockid_t for our own process/thread clock.
3465
3466 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
3467
3468         * stdlib/test-canon.c: Make doesExist a directory and add more tests
3469         for the new error case.
3470
3471 2004-06-02  Dmitry V. Levin  <ldv@altlinux.org>
3472             Ranjani Murthy <ranmur@gmail.com>
3473
3474         * stdlib/canonicalize.c (__realpath): Change realpath(3) to
3475         return NULL and set errno to ENOTDIR for such pathnames like
3476         "/path/to/existing-non-directory/".
3477
3478 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
3479
3480         [BZ #1105]
3481         * time/strptime_l.c (__strptime_internal): Handle 'z' to set
3482         tm_gmtoff.
3483         * time/Makefile (tests): Add tst-strptime2.
3484         * time/tst-strptime2.c: New file.
3485
3486 2005-04-26  Jakub Jelinek  <jakub@redhat.com>
3487
3488         [BZ #1081]
3489         * elf/dl-close.c: Include stddef.h.
3490         (_dl_close): If called recursively, just remember GC needs to be rerun
3491         and decrease l_direct_opencount.  Avoid GC if l_direct_opencount
3492         decreased to 1.  Rerun GC at the end if any destructor unloaded some
3493         additional libraries.
3494         * elf/Makefile: Add rules to build and run unload6 test.
3495         * elf/unload6.c: New test.
3496         * elf/unload6mod1.c: New file.
3497         * elf/unload6mod2.c: New file.
3498         * elf/unload6mod3.c: New file.
3499
3500         * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
3501         if magic_p is not NULL.
3502         (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
3503         (malloc_check): Fail if sz == -1.
3504         (free_check): Adjust mem2chunk_check caller.
3505         (realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
3506         oldmem != NULL, call free_check and return NULL.  If reallocating
3507         and returning NULL, invert magic byte again to make oldmem valid
3508         region for further checking.
3509         (memalign_check): Fail if bytes == -1.
3510         * malloc/Makefile: Add rules to build and run tst-mcheck.
3511         * malloc/tst-mcheck.c: New test.
3512
3513 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
3514
3515         [BZ #1110]
3516         * stdio-common/vfscanf.c: Correctly account for characters of
3517         decimal points right after +-.
3518
3519 2005-04-26  Roland McGrath  <roland@redhat.com>
3520
3521         * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
3522         ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
3523
3524 2005-04-25  Roland McGrath  <roland@redhat.com>
3525
3526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3527         (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
3528
3529         * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
3530
3531         * elf/dl-load.c: Revert last change.
3532