2bbd6c781bed7ae3281d754c2e61fb0f18b78d24
[platform/upstream/glibc.git] / ChangeLog
1 2006-01-05  Ulrich Drepper  <drepper@redhat.com>
2
3         * rt/tst-aio3.c: The thread is now supposed to be created.
4
5 2006-01-05  Roland McGrath  <roland@redhat.com>
6
7         * include/features.h: Grok _ATFILE_SOURCE and define __USE_ATFILE when
8         it or _GNU_SOURCE is defined.
9         * io/fcntl.h: Protect *at and AT_* with [__USE_ATFILE] instead of
10         [__USE_GNU].
11         * libio/stdio.h: Likewise.
12         * posix/unistd.h: Likewise.
13         * time/sys/time.h: Likewise.
14
15         * io/sys/stat.h [__USE_GNU]: Declare fchmodat.
16         * io/fchmodat.c: New file.
17         * io/Makefile (routines): Add fchmodat.
18         * io/Versions (libc: GLIBC_2.4): Likewise.
19         * sysdeps/unix/sysv/linux/fchmodat.c: New file.
20         * io/tst-fchmodat.c: New file.
21         * io/Makefile (tests): Add it.
22
23 2006-01-03  Steven Munroe  <sjmunroe@us.ibm.com>
24
25         * sysdeps/powerpc/powerpc32/sysdep.h (ENTRY, EALIGN): Add cfi_startproc
26         directive to ENTRY macros.
27         (END): Add cfi_endproc directive to END macro.
28         * sysdeps/powerpc/powerpc64/sysdep.h (ENTRY, EALIGN): Add cfi_startproc
29         directive to ENTRY macros.
30         (END, END_GEN_TB): Add cfi_endproc directive to END macros.
31         * sysdeps/powerpc/powerpc32/dl-start.S: Remove ENTRY()s for
32         _dl_start_user and _dl_main_dispatch.
33         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Use END macro.
34         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Use Likewise.
35         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
36         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
37         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
38         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
39         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Remove redundant
40         cfi_startproc and cfi_endproc.
41         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
42
43 2006-01-04  Ulrich Drepper  <drepper@redhat.com>
44
45         * sysdeps/pthread/aio_misc.h (struct waitlist): Add result member.
46         * sysdeps/pthread/aio_notify.c (__aio_notify): For synchronous waiters,
47         failed I/O, and a result pointer, set value to -1.
48         * sysdeps/pthread/aio_suspend.c: Initialize result pointer to NULL.
49         * sysdeps/pthread/lio_listio.c: For LIO_WAIT, point result pointer in
50         wait list to local variable result.  If nonzero afterwards, set errno
51         to EIO.  For LIO_NOWAIT set result to NULL.
52         * rt/Makefile (tests): Add tst-aio8.
53         * rt/tst-aio8.c: New file.
54
55 2005-12-25  Kristian Van Der Vliet  <vanders@liqwyd.com>
56
57         * abi-tags (*-.*-syllable.*): New match, with ABI value 5.
58         * elf/cache.c (print_entry): Match the Syllable ABI tag.
59
60 2006-01-04  Ulrich Drepper  <drepper@redhat.com>
61
62         * include/stdlib.h: Make even more C++ compliant.
63
64 2006-01-04  Joseph S. Myers  <joseph@codesourcery.com>
65
66         * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Use
67         __SYSCALL_CLOBBERS.
68
69 2006-01-03  H.J. Lu  <hongjiu.lu@intel.com>
70
71         * configure.in (HAVE_LIBAUDIT): Check
72         audit_log_user_avc_message instead of audit_log_avc.
73
74 2006-01-04  Joseph S. Myers  <joseph@codesourcery.com>
75
76         * sysdeps/ieee754/bits/nan.h: Fix typo.
77
78 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
79
80         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Include string.h.
81
82         * sysdeps/sparc/sparc32/dl-machine.h (LD_SO_PRELOAD): Remove unused
83         define.
84
85         * sysdeps/sparc/sparc32/bits/atomic.h: Include stdint.h, add
86         {,u}atomic*_t typedefs.
87         (__sparc32_atomic_do_lock): Add __volatile and memory clobber.
88         (__sparc32_atomic_do_unlock): Add memory barrier.
89         (__sparc32_atomic_do_lock24, __sparc32_atomic_do_unlock24): Define.
90         [!SHARED] (__v9_compare_and_exchange_val_32_acq): Define.
91         (__v7_compare_and_exchange_val_acq, __v7_compare_and_exchange_bool_acq,
92         __v7_exchange_acq, __v7_exchange_and_add, __v7_exchange_24_rel,
93         __v7_compare_and_exchange_val_24_acq, __atomic_is_v9,
94         atomic_exchange_acq, atomic_compare_and_exchange_val_24_acq,
95         atomic_exchange_24_rel): Define.
96         [SHARED] (atomic_exchange_and_add): Define.
97         [!SHARED] (__ATOMIC_HWCAP_SPARC_V9): Define.
98         [!SHARED] (_dl_hwcap): New weak decl.
99         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_exchange_24_rel,
100         atomic_compare_and_exchange_val_24_acq): Define.
101         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_exchange_24_rel,
102         atomic_compare_and_exchange_val_24_acq): Define.
103
104 2006-01-03  Ulrich Drepper  <drepper@redhat.com>
105
106         lio_listio should emit an event for each individual request in
107         addition to the global event.
108         * sysdeps/pthread/lio_listio.c (lio_listio): Renamed to
109         lio_listio_internal.  Remove mode parameter check.  Only set sigevent
110         type to SIGEV_NONE if LIO_NO_INDIVIDUAL_EVENT is set.
111         (__lio_listio_21): New function.  Compatiblity version which sets
112         LIO_NO_INDIVIDUAL_EVENT before calling lio_listio_internal.
113         (__lio_listio_item_notify): New function.
114         * sysdeps/pthread/lio_listio64.c: Define __lio_listio_21 and
115         __lio_listio_item_notify macros.
116         * sysdeps/pthread/Versions: New file.
117         * rt/tst-aio2.c: Adjust test for new semantics of lio_listio.
118         * include/aio.h: Define LIO_NO_INDIVIDUAL_EVENT.
119         * Versions.def: Add GLIBC_2.4 for librt.
120
121         * rt/Versions: Whitespace fix.
122         * sysdeps/pthread/aio_misc.c: Likewise.
123
124         * nscd/connections.c (nscd_init): Remove if block which should
125         have been removed as part of the -S option removal.
126
127 2006-01-03  Andreas Jaeger  <aj@suse.de>
128
129         * scripts/check-local-headers.sh: Allow $includedir/c++.
130
131 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
132
133         * posix/unistd.h (ctermid): Remove __nonnull attribute.
134
135 2006-01-02  Jakub Jelinek  <jakub@redhat.com>
136
137         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PTR_MANGLE,
138         PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Define.
139         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PTR_MANGLE,
140         PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Define.
141         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h [__WORDSIZE == 64]
142         (_JMPBUF_UNWINDS): Don't demangle uc_mcontext.mc_fp.
143         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Mangle %fp, %sp
144         and %o7.
145         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Demangle %fp, %sp
146         and %o7.
147
148 2006-01-02  Jakub Jelinek  <jakub@redhat.com>
149
150         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PTR_MANGLE2):
151         Define.
152         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PTR_MANGLE2):
153         Likewise.
154         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Demangle also %r15.
155         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
156         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Mangle also %r15.
157         * sysdeps/s390/s390-32/elf/setjmp.S (__sigsetjmp): Likewise.
158         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp): Likewise.
159         * sysdeps/s390/s390-64/elf/setjmp.S (__sigsetjmp): Likewise.
160
161         * sysdeps/s390/bits/setjmp.h (__jmp_buf): Add __s390_jmp_buf
162         struct tag to make C++ happy.
163
164 2006-01-02  Ulrich Drepper  <drepper@redhat.com>
165
166         * posix/Makefile ($(objpfx)annexc.out): Move -I.. to the end of
167         the include list.
168
169 2006-01-01  Ulrich Drepper  <drepper@redhat.com>
170
171         * posix/getconf.c: Update copyright year.
172         * nss/getent.c: Likewise.
173         * iconv/iconvconfig.c: Likewise.
174         * iconv/iconv_prog.c: Likewise.
175         * elf/ldconfig.c: Likewise.
176         * catgets/gencat.c: Likewise.
177         * csu/version.c: Likewise.
178         * elf/ldd.bash.in: Likewise.
179         * elf/sprof.c (print_version): Likewise.
180         * locale/programs/locale.c: Likewise.
181         * locale/programs/localedef.c: Likewise.
182         * nscd/nscd.c (print_version): Likewise.
183         * debug/xtrace.sh: Likewise.
184         * malloc/memusage.sh: Likewise.
185         * malloc/mtrace.pl: Likewise.
186         * debug/catchsegv.sh: Likewise.
187
188 2005-12-31  Andreas Jaeger  <aj@suse.de>
189
190         [BZ #1395]
191         * manual/filesys.texi (Symbolic Links): Fix description of
192         canonicalize_file_name based on patch by Oskar Liljeblad
193         <oskar@osk.mine.nu>.
194
195 2005-12-29  Andreas Jaeger  <aj@suse.de>
196
197         * resolv/res_debug.c (latlon2ul): Use ISO C function definition.
198         (precsize_aton): Likewise.
199         (precsize_ntoa): Likewise.
200
201         * resolv/gethnamaddr.c (_gethtbyname): Remove extra prototype.
202         (gethostbyname2): Likewise.
203         (gethostbyaddr): Likewise.
204         (getanswer): Use ISO C function definition.
205
206 2005-12-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
207
208         * sysdeps/sh/sysdep.h: Add cfi instrumentation to asm fragments.
209         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
210         * sysdeps/sh/_mcount.S: Add cfi instrumentation.
211         * sysdeps/unix/sh/sysdep.S: Likewise.
212         * sysdeps/unix/sysv/linux/sh/makecontext.S: Adjust cfi_startproc.
213         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Remove now duplicate
214         cfi_startproc and cfi_endproc.
215         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
216         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
217         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
218         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
219         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
220         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
221         * sysdeps/unix/sysv/linux/sh/sysdep.S: Add cfi_endproc.
222
223 2005-12-30  Ulrich Drepper  <drepper@redhat.com>
224
225         * sysdeps/powerpc/powerpc64/setjmp-common.S: Make sure pointer guard
226         value doesn't survive in a registers when the function returns.
227         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
228         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
229
230 2005-12-30  Jakub Jelinek  <jakub@redhat.com>
231
232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
233         PTR_MANGLE2.
234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
235         PTR_MANGLE2 and PTR_DEMANGLE2.
236         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Use PTR_DEMANGLE2.
237         * sysdeps/powerpc/powerpc64/setjmp-common.S: Use PTR_MANGLE2.
238         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
239         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
240
241 2005-12-30  Ulrich Drepper  <drepper@redhat.com>
242
243         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
244         Don't use _demangle parameter for now.
245
246         [BZ #2080]
247         * libio/iogetwline.c (_IO_getwline_info): Move return to correct
248         location.
249
250         * nscd/connections.c: Remove last remnants of -S option support.
251         * nscd/nscd.c: Likewise.
252         * nscd/nscd.h: Likewise.
253
254 2005-12-30  Andreas Jaeger  <aj@suse.de>
255
256         [BZ #1067]
257         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Fix struct msghdr
258         for 64-bit mips kernel.
259
260 2005-12-08  Steven Munroe  <sjmunroe@us.ibm.com>
261             Tom Gall <tom_gall@vnet.ibm.com>
262
263         * elf/rtld.c (dl_main): Initialize l_local_scope for sysinfo_map.
264         * sysdeps/powerpc/elf/libc-start.c: Move this...
265         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: ...to here.
266         * sysdeps/powerpc/powerpc32/dl-start.S: Add _dl_main_dispatch label.
267         * sysdeps/powerpc/powerpc32/hp-timing.h: New file.
268         * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
269         * sysdeps/unix/sysv/linux/clock_getres.c: If HAVE_CLOCK_GETRES_VSYSCALL
270         is not defined, redefine INTERNAL_VSYSCALL and INLINE_VSYSCALL to
271         INTERNAL_SYSCALL and INLINE_SYSCALL respectively.  Otherwise include
272         <bits/libc-vdso.h>.  Use INLINE_VSYSCALL and INTERNAL_SYSCALL instead
273         of the normal versions throughout the code.
274         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise if
275         HAVE_CLOCK_GETTIME_VSYSCALL is defined.
276         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: New file.
277         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: New file.
278         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: New file.
279         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use vDSO.
280         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: New file.
281         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add dl-vdso to routines.
282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
283         INLINE_VSYSCALL, INTERNAL_VSYSCALL, INTERNAL_SYSCALL_NCS,
284         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK, HAVE_CLOCK_GETRES_VSYSCALL,
285         and HAVE_CLOCK_GETTIME_VSYSCALL.
286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
287
288 2005-12-29  Ulrich Drepper  <drepper@redhat.com>
289
290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h [ASSEMBLER]:
291         Define PTR_DEMANGLE2.
292         * sysdeps/powerpc/powerpc32/setjmp-common.S [PTR_MANGLE]: Also
293         mangle r1.
294         * sysdeps/powerpc/powerpc32/__longjmp-common.S [PTR_DEMANGLE]: Also
295         demangle r1.
296         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [PTR_MANGLE]: Mangle
297         r0 and r1.
298         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [PTR_DEMANGLE]:
299         Demangle r0 and r1.
300
301         * sysdeps/powerpc/powerpc64/setjmp-common.S [PTR_MANGLE]: Also
302         mangle r1.
303         * sysdeps/powerpc/powerpc64/__longjmp-common.S [PTR_DEMANGLE]: Also
304         demangle  r1.
305
306 2005-12-26  Steven Munroe  <sjmunroe@us.ibm.com>
307
308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S:
309         Move common function to...
310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
311         New file.
312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S:
313         Move common function to...
314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
315         New file.
316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S:
317         Move common function to...
318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
319         New file.
320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.sym
321         (_FRAME_BACKCHAIN, _FRAME_LR_SAVE, _FRAME_PARM_SAVE1,
322         _FRAME_PARM_SAVE2, _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4):
323         Remove unrelated stack frame defines.
324
325 2005-12-29  Ulrich Drepper  <drepper@redhat.com>
326
327         * stdio-common/tstdiomisc.c [FLT_EVAL_METHOD!=2] (dbl_max):
328         Defining as macro as before the last change.
329
330         * sysdeps/unix/sysv/linux/sigaction.c: If WRAPPER_INCLUDE is defined,
331         include the named file.
332         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
333         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
334         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
335         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
336         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
337         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
338
339 2005-12-29  Roland McGrath  <roland@frob.com>
340
341         * sysdeps/mach/hurd/errno.c: New file.
342
343         * sysdeps/mach/hurd/ioctl.c (__ioctl): Use a union to avoid a cast.
344
345         * sysdeps/posix/libc_fatal.c (__libc_message): Add a const, a cast.
346
347         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Fix cast.
348         * hurd/report-wait.c (_S_msg_report_wait): Likewise.
349
350         * include/sys/xattr.h: New file.
351
352 2005-12-28  Roland McGrath  <roland@redhat.com>
353
354         * hurd/sigunwind.c: Include <stdint.h>.
355         * sysdeps/mach/hurd/jmp-unwind.c: Likewise.
356
357 2005-12-28  Ulrich Drepper  <drepper@redhat.com>
358
359         * nscd/selinux.c (log_callback): Use audit_log_user_avc_message.
360         Don't do anything if audit_fd is invalid.
361         (audit_init): Don't complain if kernel support is missing.
362         Patch by Steve Grubb <sgrubb@redhat.com>.
363
364         * sysdeps/i386/__longjmp.S [PTR_DEMANGLE]: Also demangle stack
365         pointer.  Add CFI.
366         * sysdeps/i386/bsd-_setjmp.S [PTR_MANGLE]: Also mangle stack pointer.
367         * sysdeps/i386/bsd-setjmp.S: Likewise.
368         * sysdeps/i386/setjmp.S: Likewise.
369
370         * sysdeps/x86_64/__longjmp.S: No need to make sure return value is
371         != 0, the caller did that.
372
373 2005-12-27  Roland McGrath  <roland@redhat.com>
374
375         * sysdeps/x86_64/__longjmp.S: Don't confuse unwinder by loading
376         mangled values in %rbp and %rsp registers and by wrong cfi.
377
378         * config.make.in (c++-sysincludes): New substituted variable.
379         * configure.in (CXX_SYSINCLUDES): New substituted variable.
380         * configure: Regenerated.
381         * Makeconfig (CXXFLAGS): Prepend $(c++-sysincludes) here.
382
383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
384         (PTR_MANGLE): Fix cast.
385
386         * sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Take third argument
387         DEMANGLE, and pass SP value through it.
388         * sysdeps/hppa/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
389         * sysdeps/i386/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
390         * sysdeps/m68k/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
391         * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
392         * sysdeps/powerpc/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
393         * sysdeps/s390/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
394         * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
395         * sysdeps/sparc/sparc32/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
396         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
397         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Likewise.
398         * sysdeps/x86_64/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
399         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Pass inline
400         demangler function to _JMPBUF_UNWINDS.
401         * sysdeps/mach/hurd/jmp-unwind.c (demangle_ptr): New function.
402         (_longjmp_unwind): Pass it to _JMPBUF_UNWINDS.
403
404         * posix/tst-execle1.c (do_test): Add a const.
405         * posix/tst-execle2.c (do_test): Likewise.
406
407         * posix/transbug.c (run_test): Add some casts.
408         * posix/bug-regex22.c (main): Likewise.
409         * posix/bug-regex5.c (main): Likewise.
410         * wcsmbs/tst-mbsrtowcs.c (main): Likewise.
411         * string/test-strspn.c (do_test, do_random_tests): Likewise.
412         * string/test-strrchr.c (do_test, do_random_tests): Likewise.
413         * string/test-strlen.c (do_random_tests): Likewise.
414         * string/test-strpbrk.c (do_test, do_random_tests): Likewise.
415         * string/test-strcmp.c (do_random_tests): Likewise.
416         * string/test-strchr.c (do_test, do_random_tests): Likewise.
417         * string/test-strcat.c (do_test, do_random_tests): Likewise.
418         * string/test-strncpy.c (do_random_tests): Likewise.
419         * string/test-strcpy.c (do_test, do_random_tests): Likewise.
420         * string/test-memccpy.c (do_test): Likewise.
421         * string/test-memmove.c (do_test, do_random_tests): Likewise.
422         * string/test-memcpy.c (do_test, do_random_tests): Likewise.
423         * string/test-memcmp.c (do_test, do_random_tests): Likewise.
424         * string/test-memchr.c (do_test, do_random_tests): Likewise.
425         * dlfcn/bug-atexit1.c (do_test): Fix up prototype in cast.
426         * stdio-common/tst-fgets.c (do_test): Add a cast.
427         * iconvdata/bug-iconv4.c (xiconv): Add a cast.
428
429         * locale/programs/simple-hash.c (insert_entry_2): Remove useless casts.
430
431         * resolv/herror.c (herror): Remove unused extern decl.
432
433         * libio/obprintf.c: Include "strfile.h".
434
435         * elf/order2mod2.c (init): Cast ignored value to void.
436
437 2005-12-27  Ulrich Drepper  <drepper@redhat.com>
438
439         * elf/tst-tls13.c (do_test): Avoid using the library path when
440         looking for tst-tlsmod13a.so.
441
442         * stdio-common/tstdiomisc.c: If FLT_EVAL_METHOD is 2, use long
443         double math to generate NaN results.
444
445         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Define EOWNERDEAD
446         and ENOTRECOVERABLE if not already defined.
447         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: Likewise.
448
449 2005-12-27  Jakub Jelinek  <jakub@redhat.com>
450
451         * sysdeps/unix/sysv/linux/alpha/Versions: Add new errlist-compat
452         entry for up to 138 errnos.
453
454 2005-12-27  Jakub Jelinek  <jakub@redhat.com>
455
456         * iconv/gconv_trans.c (__gconv_transliterate): Demangle step __fct
457         before calling it.
458
459 2005-12-27  David S. Miller  <davem@sunset.davemloft.net>
460
461         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist-compat
462         entry for up to 134 errnos.
463
464 2005-12-26  Ulrich Drepper  <drepper@redhat.com>
465
466         * Versions.def: Add GLIBC_2.4 for libpthread.
467
468 2005-12-25  Ulrich Drepper  <drepper@redhat.com>
469
470         * stdlib/Makefile ($(objpfx)isomac.out): Move -I.. to the end so
471         that $(..)/bits is not found early.
472
473 2005-12-24  Ulrich Drepper  <drepper@redhat.com>
474
475         * manual/errno.texi: Add new Linux errno codes.
476         * sysdeps/unix/sysv/linux/Versions: Add new errlist-compat entry
477         for up to 132 errnos.
478         * sysdeps/unix/sysv/linux/bits/errno.h: Define EOWNERDEAD and
479         ENOTRECOVERABLE if not already defined.
480
481 2005-12-23  Ulrich Drepper  <drepper@redhat.com>
482
483         [BZ #1566]
484         * sysdeps/i386/i586/memusage.h: New file.
485         * sysdeps/i386/memusage.h: Don't define GETTIME.
486
487 2005-12-22  Ulrich Drepper  <drepper@redhat.com>
488
489         [BZ #1499]
490         * misc/syslog.c (SyslogAddr): Use sockaddr_un instead of sockaddr.
491         (openlog_internal): Adjust for this change.
492
493         * Makeconfig: Define CXXFLAGS.  Split out warnings from +gccwarn which
494         are not understood by the C++ compiler.
495         * Makerules: Add rules to build C++ code for test cases.
496         * include/stdlib.h: Protect for inclusion in C++ code.
497         * include/time.h: Likewise.
498
499 2005-12-22  Roland McGrath  <roland@redhat.com>
500
501         * Makerules [gen-as-const-headers] (tests): Add one test per .sym
502         file, not just one.
503         ($(objpfx)test-as-const.c): Target replaced with ...
504         ($(objpfx)test-as-const-%.c): ... this pattern rule.
505         (generated): Add those files.
506
507 2005-12-22  Ulrich Drepper  <drepper@redhat.com>
508
509         * test-skeleton.c (timeout_handler): Rewrite ts initialization for
510         C++ compatibility.
511
512         * sysdeps/x86_64/__longjmp.S: Also protect SP and BP.
513         * sysdeps/x86_64/setjmp.S: Likewise.
514
515 2005-12-21  Roland McGrath  <roland@redhat.com>
516
517         * sysdeps/unix/sysv/linux/i386/ucontext_i.h: File removed.
518         * sysdeps/unix/sysv/linux/i386/ucontext_i.sym: New file.
519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: File removed.
520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.sym: New file.
521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: File removed.
522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym: New file.
523         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: File removed.
524         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: File removed.
525         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: New file.
526         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: File removed.
527         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: New file.
528         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: File removed.
529         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: New file.
530         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: File removed.
531         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: New file.
532         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = stdlib]:
533         (gen-as-const-headers): Add it.
534         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
535         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
536         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
537         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
538         * stdlib/tst-ucontext-off.c: File removed.
539         * stdlib/Makefile (tests): Remove it.
540
541         * scripts/gen-as-const.awk: Support generating a test program.
542         * Makerules [gen-as-const-headers] (tests): Add test-as-const.
543         [gen-as-const-headers] ($(objpfx)test-as-const.c): New target.
544
545         * sysdeps/generic/bits: Subdirectory and all files moved to ...
546         * bits: ... here, new subdirectory.
547         * Makeconfig (+includes): Reordered includes to put build and sysdeps
548         dirs first after $(..)include, $(sysincludes) last.
549
550         [BZ #2066]
551         * intl/l10nflist.c (_nl_make_l10nflist): Free ABS_FILENAME when later
552         malloc fails.
553
554 2005-12-21  Jakub Jelinek  <jakub@redhat.com>
555
556         * sysdeps/powerpc/fpu/libm-test-ulps: Update for GCC 4.1 prerelease.
557
558 2005-12-21  Roland McGrath  <roland@redhat.com>
559
560         * sysdeps/mach/hurd/ifreq.c: Add missing #includes.
561
562         * elf/cache.c: Use <> rather than "" #includes.
563         * elf/chroot_canon.c: Likewise.
564         * elf/dl-lookup.c: Likewise.
565         * elf/ldconfig.c: Likewise.
566         * elf/readlib.c: Likewise.
567         * elf/rtld.c: Likewise.
568         * gmon/mcount.c: Likewise.
569         * hurd/hurdfault.c: Likewise.
570         * hurd/hurdsig.c: Likewise.
571         * hurd/report-wait.c: Likewise.
572         * hurd/sigunwind.c: Likewise.
573         * mach/setup-thread.c: Likewise.
574         * rt/aio_read64.c: Likewise.
575         * rt/aio_sigqueue.c: Likewise.
576         * rt/aio_write64.c: Likewise.
577         * soft-fp/soft-fp.h: Likewise.
578         * stdio-common/tmpfile64.c: Likewise.
579         * sysdeps/mach/hurd/fork.c: Likewise.
580         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
581         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
582         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
583         * sysdeps/mach/hurd/powerpc/trampoline.c: Likewise.
584         * sysdeps/posix/sprofil.c: Likewise.
585         * sysdeps/pthread/aio_cancel.c: Likewise.
586         * sysdeps/pthread/aio_fsync.c: Likewise.
587         * sysdeps/pthread/aio_read64.c: Likewise.
588         * sysdeps/pthread/aio_read.c: Likewise.
589         * sysdeps/pthread/aio_suspend.c: Likewise.
590         * sysdeps/pthread/aio_write64.c: Likewise.
591         * sysdeps/pthread/aio_write.c: Likewise.
592         * sysdeps/pthread/lio_listio64.c: Likewise.
593         * sysdeps/pthread/lio_listio.c: Likewise.
594         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
595         * sysdeps/unix/sysv/tcflow.c: Likewise.
596
597         * sysdeps/generic/unwind-dw2.c (extract_cie_info): Add a cast.
598
599         * elf/dl-error.c (_dl_signal_error): Use .__jmpbuf in __longjmp call.
600
601         * csu/dso_handle.c (__dso_handle): Add const to pointer type too.
602
603 2005-12-21  Ulrich Drepper  <drepper@redhat.com>
604
605         * iconv/gconv_conf.c: Initialize empty_path_elem.
606
607         * sysdeps/ieee754/dbl-64/halfulp.c: Mark tab54 as static and const.
608         * sysdeps/i386/fpu/e_expl.c: Mark c0 and c1 as const.
609         * sysdeps/ieee754/flt-32/s_expm1f.c: Make sure huge and tiny end
610         up in .rodata.
611         * sysdeps/ieee754/flt-32/e_exp2f.c: Make sure TWO127 and TWOM100
612         end up in .rodata.
613         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
614         * sysdeps/ieee754/dbl-64/e_exp2.c: Make sure TWO1023 and TWOM1000
615         end up in .rodata.
616
617 2005-12-21  Thorsten Kukuk  <kukuk@suse.de>
618
619         * elf/readlib.c: Fix include of readelflib.c.
620
621 2005-12-21  Ulrich Drepper  <drepper@redhat.com>
622
623         [BZ #1962]
624         * io/fts.c (fts_open): Change type of len to size_t.
625         (fts_build): Remove cast in call to fts_alloc.
626         (fts_alloc): Change third parameter's type to size_t.
627
628         [BZ #1960]
629         * io/fts.c (fts_open): Avoid function call in MAX macro use.
630
631 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
632
633         * locale/xlocale.c (_nl_C_locobj): Mark as const.
634         * include/locale.h: Define _nl_C_locobj_ptr.
635         * iconv/gconv_charset.h: Use _nl_C_locobj_ptr instead of using pointer
636         to _nl_C_locobj because we also need a cast.
637         * iconv/gconv_conf.c: Likewise.
638         * iconv/gconv_int.h: Likewise.
639         * iconv/gconv_open.c: Likewise.
640         * locale/duplocale.c: Likewise.
641         * locale/freelocale.c: Likewise.
642         * locale/newlocale.c: Likewise.
643         * misc/syslog.c: Likewise.
644         * stdlib/strtod_l.c: Likewise.
645         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
646
647         * csu/dso_handle.c (__dso_handle): Mark as const.
648
649         * intl/plural-exp.c (GERMANIC_PLURAL): Mark as const.
650         * intl/plural-exp.h: Adjust declaration of
651         __gettext_germanic_plural.
652
653         * resolv/herror.c (h_errlist): Mark as const.
654         (h_nerr): Likewise.
655
656 2005-12-15  Thomas Schwinge  <tschwinge@gnu.org>
657
658         [BZ #2061]
659         * sysdeps/mach/hurd/xmknod.c (__xmknod): Handle S_IFREG.
660
661 2005-12-20  Roland McGrath  <roland@redhat.com>
662
663         * sysdeps/unix/sysv/linux/ifreq.h: File removed.
664         * sysdeps/unix/sysv/linux/ifreq.c: #include "kernel-features.h" here.
665
666         * sysdeps/mach/hurd/ifreq.h: File removed.
667         (__ifreq): Function moved to ...
668         * sysdeps/mach/hurd/ifreq.c: ... here, new file.
669
670 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
671
672         * sunrpc/clnt_unix.c (unix_ops): Mark as const.
673         * sunrpc/auth_des.c (authdes_ops): Likewise.
674         * sunrpc/svc_raw.c (server_ops): Likewise.
675         * sunrpc/clnt_udp.c (udp_ops): Likewise.
676         * sunrpc/clnt_tcp.c (tcp_ops): Likewise.
677         * sunrpc/clnt_raw.c (client_ops): Likewise.
678         * sunrpc/auth_unix.c (auth_unix_ops): Likewise.
679         * sunrpc/auth_none.c (ops): Likewise.
680
681         * nss/nsswitch.c (databases): Mark as const.  Change name field
682         into array.
683         * nss/databases.def: Add warning.
684
685         * resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
686         mark const.
687         (cmd): Mark as const.
688         (parse_line): Mark c as pointer to const.
689
690         * misc/getusershell.c (initshells): Remove unnecessary tests.
691         (endusershell): Likewise.
692         (okshells): Mark as const.
693
694         * sysdeps/posix/gai_strerror.c: Complete rewrite. Avoid relocations.
695         * sysdeps/posix/gai_strerror-strs.h: New file.
696         * sysdeps/posix/Dist: New file.
697
698         * sysdeps/posix/getaddrinfo.c (gaih): Mark as const.
699         * locale/loadlocale.c (_nl_value_types): Likewise.
700         * iconv/gconv_conf.c (builtin_aliases): Likewise.
701         * iconv/gconv_open.c (internal_trans_names): Likewise.
702
703 2005-12-19  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
704
705         * sysdeps/unix/sysv/linux/sh/sysdep.h: Include tls.h.
706         (PTR_MANGLE, PTR_DEMANGLE): Define.
707         (SYSCALL_ERROR_HANDLER): Fix typo.
708         * sysdeps/sh/sh4/__longjmp.S: Use PTR_DEMANGLE if defined.
709         * sysdeps/sh/sh3/__longjmp.S: Likewise.
710         * sysdeps/sh/sh4/setjmp.S: Use PTR_MANGLE if defined.
711         * sysdeps/sh/sh3/setjmp.S: Likewise.
712
713 2005-12-20  Jakub Jelinek  <jakub@redhat.com>
714
715         * sysdeps/ia64/fpu/libm-test-ulps: Update for GCC 4.1 prerelease.
716
717         * sysdeps/unix/sysv/linux/time.c: If __NR_time is not defined,
718         use sysdeps/unix/time.c implementation.
719
720 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
721
722         [BZ #1955]
723         * timezone/zic.c (tofile;): Fix typo in symlink creation.
724         Patch by Phil Estes <pestes@us.ibm.com>.
725
726         [BZ #1952]
727         * sysdeps/unix/sysv/linux/time.c: New file.
728         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove time entry.
729
730 2005-12-15  Thomas Schwinge  <tschwinge@gnu.org>
731
732         * io/xmknodat.c: Include <stddef.h>.
733         * misc/futimesat.c: Remove weak_alias and correct stub_warning.
734         * stdio-common/renameat.c (renameat): Fix typo.
735
736 2005-12-16  Thorsten Kukuk  <kukuk@suse.de>
737
738         [BZ #1978]
739         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
740         Map more filesystem types to a string.
741         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add SYSFS_MAGIC.
742
743 2005-12-19  Jakub Jelinek  <jakub@redhat.com>
744
745         * locale/Makefile (programs/%-kw.h): Run $(GPERF) inside of the
746         programs subdirectory.
747
748         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use
749         PTR_DEMANGLE for PC if defined.
750         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
751         Likewise.
752         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): Likewise.
753         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Xor %r14 with
754         THREAD_GET_POINTER_GUARD () if PTR_DEMANGLE is defined.
755         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
756         * sysdeps/powerpc/powerpc32/setjmp-common.S (__sigsetjmp): Use
757         PTR_MANGLE for PC if defined.
758         * sysdeps/powerpc/powerpc64/setjmp-common.S (__sigsetjmp): Likewise.
759         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
760         Avoid call to __sigjmp_save if IS_IN_rtld.
761         * sysdeps/s390/s390-32/elf/setjmp.S (__sigsetjmp): Likewise.
762         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp): Likewise.
763         * sysdeps/s390/s390-64/elf/setjmp.S (__sigsetjmp): Likewise.
764         * sysdeps/unix/sysv/linux/ia64/setjmp.S (__sigsetjmp): Likewise.
765         * sysdeps/unix/sysv/linux/ia64/sysdep.h (PTR_MANGLE, PTR_DEMANGLE):
766         Define.
767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Include tls.h.
768         (PTR_MANGLE, PTR_DEMANGLE): Define.
769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Include tls.h
770         (PTR_MANGLE, PTR_DEMANGLE): Define.
771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include tls.h.
772         (PTR_MANGLE, PTR_DEMANGLE): Define.
773         (SYSCALL_ERROR_HANDLER): Add missing semicolons.
774         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Include tls.h.
775         (PTR_MANGLE, PTR_DEMANGLE): Define.
776         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Add
777         SYSCALL_ERROR_HANDLER.
778
779 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
780
781         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Handle NO_WEAK_ALIAS.
782         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
783         Patch by Clint Adams.
784
785 2005-12-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
786
787         * sysdeps/unix/sysv/linux/s390/sys/user.h: Copy struct user and
788         dependent definitions from the kernel header to sys/user.h and
789         remove the #include of asm/user.h.
790
791 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
792
793         * sysdeps/gnu/Makefile: Make sure the correct errlist.c file is
794         used when generating errlist-compat.c.
795
796 2005-12-18  Ulrich Drepper  <drepper@redhat.com>
797
798         * iconv/gconv.c: Demangle pointers before use if necessary.
799         * iconv/gconv_cache.c: Likewise.
800         * iconv/skeleton.c: Likewise.
801         * libio/iofwide.c: Likewise.
802         * wcsmbs/btowc.c: Likewise.
803         * wcsmbs/mbrtowc.c: Likewise.
804         * wcsmbs/mbsnrtowcs.c: Likewise.
805         * wcsmbs/mbsrtowcs_l.c: Likewise.
806         * wcsmbs/wcrtomb.c: Likewise.
807         * wcsmbs/wcsnrtombs.c: Likewise.
808         * wcsmbs/wcsrtombs.c: Likewise.
809         * wcsmbs/wctob.c: Likewise.
810         * iconv_gconv_db.c: Likewise.  After init functions returns mangle
811         btowc pointer if necessary.
812         * iconv/gconv_dl.c: Mangle function pointers retrieved from dlsym.
813
814         * iconv/gconv_builtin.c (builtin_map): Change type of size
815         information fields to int8_t.
816
817         * libio/iofwide.c (__libio_codecvt): Mark as const.
818         (__libio_translit): Likewise.
819         * libio/libioP.h (__libio_codecvt): Adjust declaraction.
820
821         * wcsmbs/wcsmbsload.c (to_wc): Mark as const.
822         (to_mb): Likewise.
823
824 2005-12-18  Richard Henderson  <rth@redhat.com>
825
826         * sysdeps/alpha/libc-tls.c: Fix directory on include of base file.
827
828 2005-12-18  Ulrich Drepper  <drepper@redhat.com>
829
830         * iconv/gconv_builtin.c: Mark map with attribute_relro.
831
832         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Define C
833         version for inside ld.so.
834
835         * elf/rtld.c (dl_main): Don't use hp timing code unless it's available.
836
837         * sysdeps/powerpc/powerpc32/setjmp-common.S [IS_IN_rtld]: Avoid
838         call to __sigjmp_save.
839         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
840
841         * stdlib/cxa_atexit.c: Use PTR_MANGLE on function pointer.  Fill in
842         flavor field last and protect with memory barrier.
843         * stdlib/on_exit.c: Likewise.
844         * stdlib/cxa_finalize.c: Use PTR_DEMANGLE on function pointer before
845         using it.
846         * stdlib/exit.c: Likewise.
847
848         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PTR_MANGLE and
849         PTR_DEMANGLE for C code in libc.
850         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
851
852 2005-12-17  Ulrich Drepper  <drepper@redhat.com>
853
854         * elf/Versions [GLIBC_PRIVATE]: Export __pointer_chk_guard if defined.
855         * elf/rtld.c: Define __pointer_chk_guard_local and if necessary
856         __pointer_chk_guard.
857         (_rtld_global_ro): Initialize _dl_pointer_guard.
858         (dl_main): Initialize __pointer_chk_guard_local and either
859         __pointer_chk_guard or TLS value if necessary.
860         (process_envvars): Recognize and handle LD_POINTER_GUARD.
861         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_pointer_guard.
862         * sysdeps/i386/__longjmp.S: Use PTR_DEMANGLE for PC if defined.
863         * sysdeps/x86_64/__longjmp.S: Likewise.
864         * sysdeps/i386/bsd-_setjmp.S: Use PTR_MANGLE for PC if defined.
865         * sysdeps/i386/bsd-_setjmp.S: Likewise.
866         * sysdeps/i386/setjmp.S: Likewise.
867         [IS_IN_rtld]: Avoid call to __sigjmp_save.
868         * sysdeps/i386/setjmp.S: Likewise.
869         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PTR_MANGLE and
870         PTR_DEMANGLE.
871         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
872
873         * sysdeps/i386/elf/setjmp.S: Removed.
874         * sysdeps/i386/elf/bsd-setjmp.S: Removed.
875
876         * elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
877         setjmp.
878         * elf/dl-error.c (_dl_signal_error): Use __longjmp instead of longjmp.
879         * elf/dl-minimal.c (longjmp): Remove definition.
880
881         * sysdeps/x86_64/bsd-setjmp.S [PIC] (setjmp): Add missing jmp.
882
883 2005-12-14  Thorsten Kukuk  <kukuk@suse.de>
884
885         * nscd/Makefile: Don't build nscd_nischeck.
886         * nscd/nscd_nischeck.c: Removed.
887
888 2005-12-15  Ulrich Drepper  <drepper@redhat.com>
889
890         * sysdeps/unix/sysv/linux/renameat.c: Move errno setting code in
891         separate function __atfct_seterrno_2.
892         * include/fcntl.h: Declare __atfct_seterrno_2.
893         * posix/unistd.h: Declare linkat, symlinkat, readlinkat.
894         * io/Makefile (routines): Add linkat, symlinkat, readlinkat.
895         * io/Versions [GLIBC_2.4]: Export linkat, symlinkat, readlinkat.
896         * io/linkat.c: New file.
897         * io/readlinkat.c: New file.
898         * io/symlinkat.c: New file.
899         * sysdeps/unix/sysv/linux/linkat.c: New file.
900         * sysdeps/unix/sysv/linux/readlinkat.c: New file.
901         * sysdeps/unix/sysv/linux/symlinkat.c: New file.
902
903 2005-12-15  Roland McGrath  <roland@redhat.com>
904
905         [BZ #1997]
906         * manual/stdio.texi (String Streams): For open_memstream, elaborate a
907         little on malloc reference.
908
909         * sysdeps/alpha/fpu/s_cacosf.c: Don't use sysdeps/generic/.
910         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
911         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
912         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
913         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
914         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
915         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
916         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
917         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
918         * sysdeps/alpha/fpu/s_clog10f.c: Likewise.
919         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
920         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
921         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
922         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
923         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
924         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
925         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
926         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
927         * sysdeps/alpha/libc-tls.c: Likewise.
928         * sysdeps/gnu/glob64.c: Likewise.
929         * sysdeps/gnu/updwtmp.c: Likewise.
930         * sysdeps/gnu/utmp_file.c: Likewise.
931         * sysdeps/i386/bzero.c: Likewise.
932         * sysdeps/i386/ffs.c: Likewise.
933         * sysdeps/i386/i686/ffs.c: Likewise.
934         * sysdeps/i386/memset.c: Likewise.
935         * sysdeps/ia64/fpu/printf_fphex.c: Likewise.
936         * sysdeps/ia64/libc-tls.c: Likewise.
937         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
938         * sysdeps/m68k/ffs.c: Likewise.
939         * sysdeps/mach/hurd/getdents.c: Likewise.
940         * sysdeps/mach/hurd/init-posix.c: Likewise.
941         * sysdeps/mach/msync.c: Likewise.
942         * sysdeps/mips/libc-tls.c: Likewise.
943         * sysdeps/posix/profil.c: Likewise.
944         * sysdeps/posix/shm_open.c: Likewise.
945         * sysdeps/posix/shm_unlink.c: Likewise.
946         * sysdeps/posix/sprofil.c: Likewise.
947         * sysdeps/powerpc/ffs.c: Likewise.
948         * sysdeps/rs6000/ffs.c: Likewise.
949         * sysdeps/s390/libc-tls.c: Likewise.
950         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
951         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
952         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Likewise.
953         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
954         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
955         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
956         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
957         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
958         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
959         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
960         * sysdeps/unix/sysv/linux/i386/readelflib.c: Likewise.
961         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
962         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
963         * sysdeps/unix/sysv/linux/ia64/readelflib.c: Likewise.
964         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
965         * sysdeps/unix/sysv/linux/mips/readelflib.c: Likewise.
966         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
967         * sysdeps/unix/sysv/linux/mq_close.c: Likewise.
968         * sysdeps/unix/sysv/linux/mq_getattr.c: Likewise.
969         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
970         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
971         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
972         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
973         * sysdeps/unix/sysv/linux/mq_unlink.c: Likewise.
974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
976         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: Likewise.
977         * sysdeps/unix/sysv/linux/s390/readelflib.c: Likewise.
978         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise.
979         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
980         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
981         * sysdeps/unix/sysv/linux/sigstack.c: Likewise.
982         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
983         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
984         * sysdeps/unix/sysv/linux/sparc/readelflib.c: Likewise.
985         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
986         * sysdeps/unix/sysv/linux/vfork.c: Likewise.
987         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Likewise.
988
989         * sysdeps/unix/sysv/linux/Makefile (inhibit-siglist): Removed.
990
991 2005-12-13  Ulrich Drepper  <drepper@redhat.com>
992
993         * locale/programs/charmap-kw.h: Regenerated with new gperf.
994         * locale/programs/locfile-kw.h: Likewise.
995
996         * Makeconfig (+includes): Look in current directory late.
997         * Makerules: Add rules from rules before the rules for the current
998         directory.
999         * sysdeps/generic/__longjmp.c: Moved to...
1000         * setjmp/__longjmp.c: ...here.
1001         * sysdeps/generic/_exit.c: Moved to...
1002         * posix/_exit.c: ...here.
1003         * sysdeps/generic/_strerror.c: Moved to...
1004         * string/_strerror.c: ...here.
1005         * sysdeps/generic/abort.c: Moved to...
1006         * stdlib/abort.c: ...here.
1007         * sysdeps/generic/accept.c: Moved to...
1008         * socket/accept.c: ...here.
1009         * sysdeps/generic/access.c: Moved to...
1010         * io/access.c: ...here.
1011         * sysdeps/generic/acct.c: Moved to...
1012         * misc/acct.c: ...here.
1013         * sysdeps/generic/add_n.c: Moved to...
1014         * stdlib/add_n.c: ...here.
1015         * sysdeps/generic/addmul_1.c: Moved to...
1016         * stdlib/addmul_1.c: ...here.
1017         * sysdeps/generic/adjtime.c: Moved to...
1018         * time/adjtime.c: ...here.
1019         * sysdeps/generic/aio_cancel.c: Moved to...
1020         * rt/aio_cancel.c: ...here.
1021         * sysdeps/generic/aio_fsync.c: Moved to...
1022         * rt/aio_fsync.c: ...here.
1023         * sysdeps/generic/aio_misc.c: Moved to...
1024         * rt/aio_misc.c: ...here.
1025         * sysdeps/generic/aio_notify.c: Moved to...
1026         * rt/aio_notify.c: ...here.
1027         * sysdeps/generic/aio_read.c: Moved to...
1028         * rt/aio_read.c: ...here.
1029         * sysdeps/generic/aio_read64.c: Moved to...
1030         * rt/aio_read64.c: ...here.
1031         * sysdeps/generic/aio_sigqueue.c: Moved to...
1032         * rt/aio_sigqueue.c: ...here.
1033         * sysdeps/generic/aio_suspend.c: Moved to...
1034         * rt/aio_suspend.c: ...here.
1035         * sysdeps/generic/aio_write.c: Moved to...
1036         * rt/aio_write.c: ...here.
1037         * sysdeps/generic/aio_write64.c: Moved to...
1038         * rt/aio_write64.c: ...here.
1039         * sysdeps/generic/alarm.c: Moved to...
1040         * posix/alarm.c: ...here.
1041         * sysdeps/generic/allocrtsig.c: Moved to...
1042         * signal/allocrtsig.c: ...here.
1043         * sysdeps/generic/alphasort64.c: Moved to...
1044         * dirent/alphasort64.c: ...here.
1045         * sysdeps/generic/backtrace.c: Moved to...
1046         * debug/backtrace.c: ...here.
1047         * sysdeps/generic/backtracesyms.c: Moved to...
1048         * debug/backtracesyms.c: ...here.
1049         * sysdeps/generic/backtracesymsfd.c: Moved to...
1050         * debug/backtracesymsfd.c: ...here.
1051         * sysdeps/generic/bb_init_func.c: Moved to...
1052         * gmon/bb_init_func.c: ...here.
1053         * sysdeps/generic/bcopy.c: Moved to...
1054         * string/bcopy.c: ...here.
1055         * sysdeps/generic/bind.c: Moved to...
1056         * socket/bind.c: ...here.
1057         * sysdeps/generic/brdinit.c: Moved to...
1058         * bare/brdinit.c: ...here.
1059         * sysdeps/generic/brk.c: Moved to...
1060         * misc/brk.c: ...here.
1061         * sysdeps/generic/bsd-_setjmp.c: Moved to...
1062         * setjmp/bsd-_setjmp.c: ...here.
1063         * sysdeps/generic/bsd-setjmp.c: Moved to...
1064         * setjmp/bsd-setjmp.c: ...here.
1065         * sysdeps/generic/bzero.c: Moved to...
1066         * string/bzero.c: ...here.
1067         * sysdeps/generic/cabsf.c: Moved to...
1068         * math/cabsf.c: ...here.
1069         * sysdeps/generic/cargf.c: Moved to...
1070         * math/cargf.c: ...here.
1071         * sysdeps/generic/chdir.c: Moved to...
1072         * io/chdir.c: ...here.
1073         * sysdeps/generic/check_fds.c: Moved to...
1074         * csu/check_fds.c: ...here.
1075         * sysdeps/generic/check_pf.c: Moved to...
1076         * inet/check_pf.c: ...here.
1077         * sysdeps/generic/chflags.c: Moved to...
1078         * misc/chflags.c: ...here.
1079         * sysdeps/generic/chmod.c: Moved to...
1080         * io/chmod.c: ...here.
1081         * sysdeps/generic/chown.c: Moved to...
1082         * io/chown.c: ...here.
1083         * sysdeps/generic/chroot.c: Moved to...
1084         * misc/chroot.c: ...here.
1085         * sysdeps/generic/cimagf.c: Moved to...
1086         * math/cimagf.c: ...here.
1087         * sysdeps/generic/clock.c: Moved to...
1088         * time/clock.c: ...here.
1089         * sysdeps/generic/clock_getcpuclockid.c: Moved to...
1090         * rt/clock_getcpuclockid.c: ...here.
1091         * sysdeps/generic/clock_getres.c: Moved to...
1092         * rt/clock_getres.c: ...here.
1093         * sysdeps/generic/clock_gettime.c: Moved to...
1094         * rt/clock_gettime.c: ...here.
1095         * sysdeps/generic/clock_nanosleep.c: Moved to...
1096         * rt/clock_nanosleep.c: ...here.
1097         * sysdeps/generic/clock_settime.c: Moved to...
1098         * rt/clock_settime.c: ...here.
1099         * sysdeps/generic/close.c: Moved to...
1100         * io/close.c: ...here.
1101         * sysdeps/generic/closedir.c: Moved to...
1102         * dirent/closedir.c: ...here.
1103         * sysdeps/generic/cmp.c: Moved to...
1104         * stdlib/cmp.c: ...here.
1105         * sysdeps/generic/conjf.c: Moved to...
1106         * math/conjf.c: ...here.
1107         * sysdeps/generic/connect.c: Moved to...
1108         * socket/connect.c: ...here.
1109         * sysdeps/generic/console.c: Moved to...
1110         * bare/console.c: ...here.
1111         * sysdeps/generic/crealf.c: Moved to...
1112         * math/crealf.c: ...here.
1113         * sysdeps/generic/creat.c: Moved to...
1114         * io/creat.c: ...here.
1115         * sysdeps/generic/creat64.c: Moved to...
1116         * io/creat64.c: ...here.
1117         * sysdeps/generic/ctermid.c: Moved to...
1118         * stdio-common/ctermid.c: ...here.
1119         * sysdeps/generic/cuserid.c: Moved to...
1120         * stdio-common/cuserid.c: ...here.
1121         * sysdeps/generic/dbl2mpn.c: Moved to...
1122         * stdlib/dbl2mpn.c: ...here.
1123         * sysdeps/generic/dirfd.c: Moved to...
1124         * dirent/dirfd.c: ...here.
1125         * sysdeps/generic/div.c: Moved to...
1126         * stdlib/div.c: ...here.
1127         * sysdeps/generic/divmod_1.c: Moved to...
1128         * stdlib/divmod_1.c: ...here.
1129         * sysdeps/generic/divrem.c: Moved to...
1130         * stdlib/divrem.c: ...here.
1131         * sysdeps/generic/dl-brk.c: Moved to...
1132         * elf/dl-brk.c: ...here.
1133         * sysdeps/generic/dl-cache.c: Moved to...
1134         * elf/dl-cache.c: ...here.
1135         * sysdeps/generic/dl-environ.c: Moved to...
1136         * elf/dl-environ.c: ...here.
1137         * sysdeps/generic/dl-execstack.c: Moved to...
1138         * elf/dl-execstack.c: ...here.
1139         * sysdeps/generic/dl-fptr.c: Moved to...
1140         * elf/dl-fptr.c: ...here.
1141         * sysdeps/generic/dl-origin.c: Moved to...
1142         * elf/dl-origin.c: ...here.
1143         * sysdeps/generic/dl-sbrk.c: Moved to...
1144         * elf/dl-sbrk.c: ...here.
1145         * sysdeps/generic/dl-symaddr.c: Moved to...
1146         * elf/dl-symaddr.c: ...here.
1147         * sysdeps/generic/dl-sysdep.c: Moved to...
1148         * elf/dl-sysdep.c: ...here.
1149         * sysdeps/generic/dl-tls.c: Moved to...
1150         * elf/dl-tls.c: ...here.
1151         * sysdeps/generic/dl-trampoline.c: Moved to...
1152         * elf/dl-trampoline.c: ...here.
1153         * sysdeps/generic/dup.c: Moved to...
1154         * io/dup.c: ...here.
1155         * sysdeps/generic/dup2.c: Moved to...
1156         * io/dup2.c: ...here.
1157         * sysdeps/generic/e_acoshl.c: Moved to...
1158         * math/e_acoshl.c: ...here.
1159         * sysdeps/generic/e_acosl.c: Moved to...
1160         * math/e_acosl.c: ...here.
1161         * sysdeps/generic/e_asinl.c: Moved to...
1162         * math/e_asinl.c: ...here.
1163         * sysdeps/generic/e_atan2l.c: Moved to...
1164         * math/e_atan2l.c: ...here.
1165         * sysdeps/generic/e_atanhl.c: Moved to...
1166         * math/e_atanhl.c: ...here.
1167         * sysdeps/generic/e_coshl.c: Moved to...
1168         * math/e_coshl.c: ...here.
1169         * sysdeps/generic/e_exp10.c: Moved to...
1170         * math/e_exp10.c: ...here.
1171         * sysdeps/generic/e_exp10f.c: Moved to...
1172         * math/e_exp10f.c: ...here.
1173         * sysdeps/generic/e_exp10l.c: Moved to...
1174         * math/e_exp10l.c: ...here.
1175         * sysdeps/generic/e_exp2l.c: Moved to...
1176         * math/e_exp2l.c: ...here.
1177         * sysdeps/generic/e_expl.c: Moved to...
1178         * math/e_expl.c: ...here.
1179         * sysdeps/generic/e_fmodl.c: Moved to...
1180         * math/e_fmodl.c: ...here.
1181         * sysdeps/generic/e_gammal_r.c: Moved to...
1182         * math/e_gammal_r.c: ...here.
1183         * sysdeps/generic/e_hypotl.c: Moved to...
1184         * math/e_hypotl.c: ...here.
1185         * sysdeps/generic/e_j0l.c: Moved to...
1186         * math/e_j0l.c: ...here.
1187         * sysdeps/generic/e_j1l.c: Moved to...
1188         * math/e_j1l.c: ...here.
1189         * sysdeps/generic/e_jnl.c: Moved to...
1190         * math/e_jnl.c: ...here.
1191         * sysdeps/generic/e_lgammal_r.c: Moved to...
1192         * math/e_lgammal_r.c: ...here.
1193         * sysdeps/generic/e_log10l.c: Moved to...
1194         * math/e_log10l.c: ...here.
1195         * sysdeps/generic/e_log2l.c: Moved to...
1196         * math/e_log2l.c: ...here.
1197         * sysdeps/generic/e_logl.c: Moved to...
1198         * math/e_logl.c: ...here.
1199         * sysdeps/generic/e_powl.c: Moved to...
1200         * math/e_powl.c: ...here.
1201         * sysdeps/generic/e_rem_pio2l.c: Moved to...
1202         * math/e_rem_pio2l.c: ...here.
1203         * sysdeps/generic/e_scalb.c: Moved to...
1204         * math/e_scalb.c: ...here.
1205         * sysdeps/generic/e_scalbf.c: Moved to...
1206         * math/e_scalbf.c: ...here.
1207         * sysdeps/generic/e_scalbl.c: Moved to...
1208         * math/e_scalbl.c: ...here.
1209         * sysdeps/generic/e_sinhl.c: Moved to...
1210         * math/e_sinhl.c: ...here.
1211         * sysdeps/generic/e_sqrtl.c: Moved to...
1212         * math/e_sqrtl.c: ...here.
1213         * sysdeps/generic/enbl-secure.c: Moved to...
1214         * elf/enbl-secure.c: ...here.
1215         * sysdeps/generic/endutxent.c: Moved to...
1216         * login/endutxent.c: ...here.
1217         * sysdeps/generic/environ.c: Moved to...
1218         * posix/environ.c: ...here.
1219         * sysdeps/generic/errlist.c: Moved to...
1220         * stdio-common/errlist.c: ...here.
1221         * sysdeps/generic/errno-loc.c: Moved to...
1222         * csu/errno-loc.c: ...here.
1223         * sysdeps/generic/errno-loc.c: Moved to...
1224         * csu/errno-loc.c: ...here.
1225         * sysdeps/generic/errno.c: Moved to...
1226         * csu/errno.c: ...here.
1227         * sysdeps/generic/euidaccess.c: Moved to...
1228         * io/euidaccess.c: ...here.
1229         * sysdeps/generic/exc2signal.c: Moved to...
1230         * hurd/exc2signal.c: ...here.
1231         * sysdeps/generic/execve.c: Moved to...
1232         * posix/execve.c: ...here.
1233         * sysdeps/generic/fattach.c: Moved to...
1234         * streams/fattach.c: ...here.
1235         * sysdeps/generic/fchdir.c: Moved to...
1236         * io/fchdir.c: ...here.
1237         * sysdeps/generic/fchflags.c: Moved to...
1238         * misc/fchflags.c: ...here.
1239         * sysdeps/generic/fchmod.c: Moved to...
1240         * io/fchmod.c: ...here.
1241         * sysdeps/generic/fchown.c: Moved to...
1242         * io/fchown.c: ...here.
1243         * sysdeps/generic/fchownat.c: Moved to...
1244         * io/fchownat.c: ...here.
1245         * sysdeps/generic/fclrexcpt.c: Moved to...
1246         * math/fclrexcpt.c: ...here.
1247         * sysdeps/generic/fcntl.c: Moved to...
1248         * io/fcntl.c: ...here.
1249         * sysdeps/generic/fdatasync.c: Moved to...
1250         * misc/fdatasync.c: ...here.
1251         * sysdeps/generic/fdetach.c: Moved to...
1252         * streams/fdetach.c: ...here.
1253         * sysdeps/generic/fdopendir.c: Moved to...
1254         * dirent/fdopendir.c: ...here.
1255         * sysdeps/generic/fedisblxcpt.c: Moved to...
1256         * math/fedisblxcpt.c: ...here.
1257         * sysdeps/generic/feenablxcpt.c: Moved to...
1258         * math/feenablxcpt.c: ...here.
1259         * sysdeps/generic/fegetenv.c: Moved to...
1260         * math/fegetenv.c: ...here.
1261         * sysdeps/generic/fegetexcept.c: Moved to...
1262         * math/fegetexcept.c: ...here.
1263         * sysdeps/generic/fegetround.c: Moved to...
1264         * math/fegetround.c: ...here.
1265         * sysdeps/generic/feholdexcpt.c: Moved to...
1266         * math/feholdexcpt.c: ...here.
1267         * sysdeps/generic/fesetenv.c: Moved to...
1268         * math/fesetenv.c: ...here.
1269         * sysdeps/generic/fesetround.c: Moved to...
1270         * math/fesetround.c: ...here.
1271         * sysdeps/generic/feupdateenv.c: Moved to...
1272         * math/feupdateenv.c: ...here.
1273         * sysdeps/generic/fexecve.c: Moved to...
1274         * posix/fexecve.c: ...here.
1275         * sysdeps/generic/ffs.c: Moved to...
1276         * string/ffs.c: ...here.
1277         * sysdeps/generic/ffsll.c: Moved to...
1278         * string/ffsll.c: ...here.
1279         * sysdeps/generic/fgetexcptflg.c: Moved to...
1280         * math/fgetexcptflg.c: ...here.
1281         * sysdeps/generic/fgetxattr.c: Moved to...
1282         * misc/fgetxattr.c: ...here.
1283         * sysdeps/generic/flistxattr.c: Moved to...
1284         * misc/flistxattr.c: ...here.
1285         * sysdeps/generic/flock.c: Moved to...
1286         * io/flock.c: ...here.
1287         * sysdeps/generic/flockfile.c: Moved to...
1288         * stdio-common/flockfile.c: ...here.
1289         * sysdeps/generic/fork.c: Moved to...
1290         * posix/fork.c: ...here.
1291         * sysdeps/generic/fpathconf.c: Moved to...
1292         * posix/fpathconf.c: ...here.
1293         * sysdeps/generic/fpu_control.c: Moved to...
1294         * math/fpu_control.c: ...here.
1295         * sysdeps/generic/fraiseexcpt.c: Moved to...
1296         * math/fraiseexcpt.c: ...here.
1297         * sysdeps/generic/fremovexattr.c: Moved to...
1298         * misc/fremovexattr.c: ...here.
1299         * sysdeps/generic/fsetexcptflg.c: Moved to...
1300         * math/fsetexcptflg.c: ...here.
1301         * sysdeps/generic/fsetxattr.c: Moved to...
1302         * misc/fsetxattr.c: ...here.
1303         * sysdeps/generic/fstatfs.c: Moved to...
1304         * io/fstatfs.c: ...here.
1305         * sysdeps/generic/fstatfs64.c: Moved to...
1306         * io/fstatfs64.c: ...here.
1307         * sysdeps/generic/fstatvfs.c: Moved to...
1308         * io/fstatvfs.c: ...here.
1309         * sysdeps/generic/fstatvfs64.c: Moved to...
1310         * io/fstatvfs64.c: ...here.
1311         * sysdeps/generic/fsync.c: Moved to...
1312         * misc/fsync.c: ...here.
1313         * sysdeps/generic/ftestexcept.c: Moved to...
1314         * math/ftestexcept.c: ...here.
1315         * sysdeps/generic/ftime.c: Moved to...
1316         * time/ftime.c: ...here.
1317         * sysdeps/generic/ftruncate.c: Moved to...
1318         * misc/ftruncate.c: ...here.
1319         * sysdeps/generic/ftruncate64.c: Moved to...
1320         * misc/ftruncate64.c: ...here.
1321         * sysdeps/generic/ftrylockfile.c: Moved to...
1322         * stdio-common/ftrylockfile.c: ...here.
1323         * sysdeps/generic/funlockfile.c: Moved to...
1324         * stdio-common/funlockfile.c: ...here.
1325         * sysdeps/generic/futimes.c: Moved to...
1326         * misc/futimes.c: ...here.
1327         * sysdeps/generic/futimesat.c: Moved to...
1328         * misc/futimesat.c: ...here.
1329         * sysdeps/generic/fxstat.c: Moved to...
1330         * io/fxstat.c: ...here.
1331         * sysdeps/generic/fxstat64.c: Moved to...
1332         * io/fxstat64.c: ...here.
1333         * sysdeps/generic/fxstatat.c: Moved to...
1334         * io/fxstatat.c: ...here.
1335         * sysdeps/generic/fxstatat64.c: Moved to...
1336         * io/fxstatat64.c: ...here.
1337         * sysdeps/generic/gai_sigqueue.c: Moved to...
1338         * resolv/gai_sigqueue.c: ...here.
1339         * sysdeps/generic/gai_strerror.c: Moved to...
1340         * posix/gai_strerror.c: ...here.
1341         * sysdeps/generic/get_clockfreq.c: Moved to...
1342         * rt/get_clockfreq.c: ...here.
1343         * sysdeps/generic/getaddrinfo.c: Moved to...
1344         * posix/getaddrinfo.c: ...here.
1345         * sysdeps/generic/getclktck.c: Moved to...
1346         * misc/getclktck.c: ...here.
1347         * sysdeps/generic/getcontext.c: Moved to...
1348         * stdlib/getcontext.c: ...here.
1349         * sysdeps/generic/getcwd.c: Moved to...
1350         * io/getcwd.c: ...here.
1351         * sysdeps/generic/getdents.c: Moved to...
1352         * dirent/getdents.c: ...here.
1353         * sysdeps/generic/getdents64.c: Moved to...
1354         * dirent/getdents64.c: ...here.
1355         * sysdeps/generic/getdomain.c: Moved to...
1356         * misc/getdomain.c: ...here.
1357         * sysdeps/generic/getdtsz.c: Moved to...
1358         * misc/getdtsz.c: ...here.
1359         * sysdeps/generic/getegid.c: Moved to...
1360         * posix/getegid.c: ...here.
1361         * sysdeps/generic/getenv.c: Moved to...
1362         * stdlib/getenv.c: ...here.
1363         * sysdeps/generic/geteuid.c: Moved to...
1364         * posix/geteuid.c: ...here.
1365         * sysdeps/generic/getgid.c: Moved to...
1366         * posix/getgid.c: ...here.
1367         * sysdeps/generic/getgroups.c: Moved to...
1368         * posix/getgroups.c: ...here.
1369         * sysdeps/generic/gethostid.c: Moved to...
1370         * misc/gethostid.c: ...here.
1371         * sysdeps/generic/gethostname.c: Moved to...
1372         * misc/gethostname.c: ...here.
1373         * sysdeps/generic/getipv4sourcefilter.c: Moved to...
1374         * inet/getipv4sourcefilter.c: ...here.
1375         * sysdeps/generic/getitimer.c: Moved to...
1376         * time/getitimer.c: ...here.
1377         * sysdeps/generic/getloadavg.c: Moved to...
1378         * misc/getloadavg.c: ...here.
1379         * sysdeps/generic/getlogin.c: Moved to...
1380         * posix/getlogin.c: ...here.
1381         * sysdeps/generic/getlogin_r.c: Moved to...
1382         * posix/getlogin_r.c: ...here.
1383         * sysdeps/generic/getmsg.c: Moved to...
1384         * streams/getmsg.c: ...here.
1385         * sysdeps/generic/getpagesize.c: Moved to...
1386         * misc/getpagesize.c: ...here.
1387         * sysdeps/generic/getpeername.c: Moved to...
1388         * socket/getpeername.c: ...here.
1389         * sysdeps/generic/getpgid.c: Moved to...
1390         * posix/getpgid.c: ...here.
1391         * sysdeps/generic/getpgrp.c: Moved to...
1392         * posix/getpgrp.c: ...here.
1393         * sysdeps/generic/getpid.c: Moved to...
1394         * posix/getpid.c: ...here.
1395         * sysdeps/generic/getpmsg.c: Moved to...
1396         * streams/getpmsg.c: ...here.
1397         * sysdeps/generic/getppid.c: Moved to...
1398         * posix/getppid.c: ...here.
1399         * sysdeps/generic/getpriority.c: Moved to...
1400         * resource/getpriority.c: ...here.
1401         * sysdeps/generic/getpt.c: Moved to...
1402         * login/getpt.c: ...here.
1403         * sysdeps/generic/getresgid.c: Moved to...
1404         * posix/getresgid.c: ...here.
1405         * sysdeps/generic/getresuid.c: Moved to...
1406         * posix/getresuid.c: ...here.
1407         * sysdeps/generic/getrlimit.c: Moved to...
1408         * resource/getrlimit.c: ...here.
1409         * sysdeps/generic/getrlimit64.c: Moved to...
1410         * resource/getrlimit64.c: ...here.
1411         * sysdeps/generic/getrusage.c: Moved to...
1412         * resource/getrusage.c: ...here.
1413         * sysdeps/generic/getsid.c: Moved to...
1414         * posix/getsid.c: ...here.
1415         * sysdeps/generic/getsockname.c: Moved to...
1416         * socket/getsockname.c: ...here.
1417         * sysdeps/generic/getsockopt.c: Moved to...
1418         * socket/getsockopt.c: ...here.
1419         * sysdeps/generic/getsourcefilter.c: Moved to...
1420         * inet/getsourcefilter.c: ...here.
1421         * sysdeps/generic/getsysstats.c: Moved to...
1422         * misc/getsysstats.c: ...here.
1423         * sysdeps/generic/gettimeofday.c: Moved to...
1424         * time/gettimeofday.c: ...here.
1425         * sysdeps/generic/getuid.c: Moved to...
1426         * posix/getuid.c: ...here.
1427         * sysdeps/generic/getutmp.c: Moved to...
1428         * login/getutmp.c: ...here.
1429         * sysdeps/generic/getutmpx.c: Moved to...
1430         * login/getutmpx.c: ...here.
1431         * sysdeps/generic/getutxent.c: Moved to...
1432         * login/getutxent.c: ...here.
1433         * sysdeps/generic/getutxid.c: Moved to...
1434         * login/getutxid.c: ...here.
1435         * sysdeps/generic/getutxline.c: Moved to...
1436         * login/getutxline.c: ...here.
1437         * sysdeps/generic/getxattr.c: Moved to...
1438         * misc/getxattr.c: ...here.
1439         * sysdeps/generic/glob.c: Moved to...
1440         * posix/glob.c: ...here.
1441         * sysdeps/generic/glob64.c: Moved to...
1442         * posix/glob64.c: ...here.
1443         * sysdeps/generic/grantpt.c: Moved to...
1444         * login/grantpt.c: ...here.
1445         * sysdeps/generic/group_member.c: Moved to...
1446         * posix/group_member.c: ...here.
1447         * sysdeps/generic/gtty.c: Moved to...
1448         * misc/gtty.c: ...here.
1449         * sysdeps/generic/herrno-loc.c: Moved to...
1450         * inet/herrno-loc.c: ...here.
1451         * sysdeps/generic/htonl.c: Moved to...
1452         * inet/htonl.c: ...here.
1453         * sysdeps/generic/htons.c: Moved to...
1454         * inet/htons.c: ...here.
1455         * sysdeps/generic/if_index.c: Moved to...
1456         * inet/if_index.c: ...here.
1457         * sysdeps/generic/ifaddrs.c: Moved to...
1458         * inet/ifaddrs.c: ...here.
1459         * sysdeps/generic/ifreq.c: Moved to...
1460         * inet/ifreq.c: ...here.
1461         * sysdeps/generic/init-first.c: Moved to...
1462         * csu/init-first.c: ...here.
1463         * sysdeps/generic/init-posix.c: Moved to...
1464         * posix/init-posix.c: ...here.
1465         * sysdeps/generic/inlines.c: Moved to...
1466         * stdlib/inlines.c: ...here.
1467         * sysdeps/generic/ioctl.c: Moved to...
1468         * misc/ioctl.c: ...here.
1469         * sysdeps/generic/isastream.c: Moved to...
1470         * streams/isastream.c: ...here.
1471         * sysdeps/generic/isatty.c: Moved to...
1472         * io/isatty.c: ...here.
1473         * sysdeps/generic/isfdtype.c: Moved to...
1474         * socket/isfdtype.c: ...here.
1475         * sysdeps/generic/jmp-unwind.c: Moved to...
1476         * setjmp/jmp-unwind.c: ...here.
1477         * sysdeps/generic/k_cosl.c: Moved to...
1478         * math/k_cosl.c: ...here.
1479         * sysdeps/generic/k_rem_pio2l.c: Moved to...
1480         * math/k_rem_pio2l.c: ...here.
1481         * sysdeps/generic/k_sincosl.c: Moved to...
1482         * math/k_sincosl.c: ...here.
1483         * sysdeps/generic/k_sinl.c: Moved to...
1484         * math/k_sinl.c: ...here.
1485         * sysdeps/generic/k_tanl.c: Moved to...
1486         * math/k_tanl.c: ...here.
1487         * sysdeps/generic/kill.c: Moved to...
1488         * signal/kill.c: ...here.
1489         * sysdeps/generic/killpg.c: Moved to...
1490         * signal/killpg.c: ...here.
1491         * sysdeps/generic/labs.c: Moved to...
1492         * stdlib/labs.c: ...here.
1493         * sysdeps/generic/lchmod.c: Moved to...
1494         * io/lchmod.c: ...here.
1495         * sysdeps/generic/lchown.c: Moved to...
1496         * io/lchown.c: ...here.
1497         * sysdeps/generic/ldbl2mpn.c: Moved to...
1498         * stdlib/ldbl2mpn.c: ...here.
1499         * sysdeps/generic/ldiv.c: Moved to...
1500         * stdlib/ldiv.c: ...here.
1501         * sysdeps/generic/lgetxattr.c: Moved to...
1502         * misc/lgetxattr.c: ...here.
1503         * sysdeps/generic/libc-start.c: Moved to...
1504         * csu/libc-start.c: ...here.
1505         * sysdeps/generic/libc-tls.c: Moved to...
1506         * csu/libc-tls.c: ...here.
1507         * sysdeps/generic/libc_fatal.c: Moved to...
1508         * libio/libc_fatal.c: ...here.
1509         * sysdeps/generic/link.c: Moved to...
1510         * io/link.c: ...here.
1511         * sysdeps/generic/lio_listio.c: Moved to...
1512         * rt/lio_listio.c: ...here.
1513         * sysdeps/generic/lio_listio64.c: Moved to...
1514         * rt/lio_listio64.c: ...here.
1515         * sysdeps/generic/listen.c: Moved to...
1516         * socket/listen.c: ...here.
1517         * sysdeps/generic/listxattr.c: Moved to...
1518         * misc/listxattr.c: ...here.
1519         * sysdeps/generic/llabs.c: Moved to...
1520         * stdlib/llabs.c: ...here.
1521         * sysdeps/generic/lldiv.c: Moved to...
1522         * stdlib/lldiv.c: ...here.
1523         * sysdeps/generic/llistxattr.c: Moved to...
1524         * misc/llistxattr.c: ...here.
1525         * sysdeps/generic/lockf.c: Moved to...
1526         * io/lockf.c: ...here.
1527         * sysdeps/generic/lockf64.c: Moved to...
1528         * io/lockf64.c: ...here.
1529         * sysdeps/generic/longjmp-ts.c: Moved to...
1530         * hurd/longjmp-ts.c: ...here.
1531         * sysdeps/generic/longjmp.c: Moved to...
1532         * setjmp/longjmp.c: ...here.
1533         * sysdeps/generic/lremovexattr.c: Moved to...
1534         * misc/lremovexattr.c: ...here.
1535         * sysdeps/generic/lseek.c: Moved to...
1536         * misc/lseek.c: ...here.
1537         * sysdeps/generic/lseek64.c: Moved to...
1538         * io/lseek64.c: ...here.
1539         * sysdeps/generic/lsetxattr.c: Moved to...
1540         * misc/lsetxattr.c: ...here.
1541         * sysdeps/generic/lshift.c: Moved to...
1542         * stdlib/lshift.c: ...here.
1543         * sysdeps/generic/lutimes.c: Moved to...
1544         * misc/lutimes.c: ...here.
1545         * sysdeps/generic/lxstat.c: Moved to...
1546         * io/lxstat.c: ...here.
1547         * sysdeps/generic/lxstat64.c: Moved to...
1548         * io/lxstat64.c: ...here.
1549         * sysdeps/generic/madvise.c: Moved to...
1550         * misc/madvise.c: ...here.
1551         * sysdeps/generic/makecontext.c: Moved to...
1552         * stdlib/makecontext.c: ...here.
1553         * sysdeps/generic/memccpy.c: Moved to...
1554         * string/memccpy.c: ...here.
1555         * sysdeps/generic/memchr.c: Moved to...
1556         * string/memchr.c: ...here.
1557         * sysdeps/generic/memcmp.c: Moved to...
1558         * string/memcmp.c: ...here.
1559         * sysdeps/generic/memcpy.c: Moved to...
1560         * string/memcpy.c: ...here.
1561         * sysdeps/generic/memcpy_chk.c: Moved to...
1562         * debug/memcpy_chk.c: ...here.
1563         * sysdeps/generic/memmem.c: Moved to...
1564         * string/memmem.c: ...here.
1565         * sysdeps/generic/memmove.c: Moved to...
1566         * string/memmove.c: ...here.
1567         * sysdeps/generic/memmove_chk.c: Moved to...
1568         * debug/memmove_chk.c: ...here.
1569         * sysdeps/generic/mempcpy.c: Moved to...
1570         * string/mempcpy.c: ...here.
1571         * sysdeps/generic/mempcpy_chk.c: Moved to...
1572         * debug/mempcpy_chk.c: ...here.
1573         * sysdeps/generic/memrchr.c: Moved to...
1574         * string/memrchr.c: ...here.
1575         * sysdeps/generic/memset.c: Moved to...
1576         * string/memset.c: ...here.
1577         * sysdeps/generic/memset_chk.c: Moved to...
1578         * debug/memset_chk.c: ...here.
1579         * sysdeps/generic/mig-reply.c: Moved to...
1580         * mach/mig-reply.c: ...here.
1581         * sysdeps/generic/mincore.c: Moved to...
1582         * misc/mincore.c: ...here.
1583         * sysdeps/generic/mkdir.c: Moved to...
1584         * io/mkdir.c: ...here.
1585         * sysdeps/generic/mkdirat.c: Moved to...
1586         * io/mkdirat.c: ...here.
1587         * sysdeps/generic/mkfifo.c: Moved to...
1588         * io/mkfifo.c: ...here.
1589         * sysdeps/generic/mkfifoat.c: Moved to...
1590         * io/mkfifoat.c: ...here.
1591         * sysdeps/generic/mknod.c: Moved to...
1592         * io/mknod.c: ...here.
1593         * sysdeps/generic/mknodat.c: Moved to...
1594         * io/mknodat.c: ...here.
1595         * sysdeps/generic/mlock.c: Moved to...
1596         * misc/mlock.c: ...here.
1597         * sysdeps/generic/mlockall.c: Moved to...
1598         * misc/mlockall.c: ...here.
1599         * sysdeps/generic/mmap.c: Moved to...
1600         * misc/mmap.c: ...here.
1601         * sysdeps/generic/mmap64.c: Moved to...
1602         * misc/mmap64.c: ...here.
1603         * sysdeps/generic/mod_1.c: Moved to...
1604         * stdlib/mod_1.c: ...here.
1605         * sysdeps/generic/morecore.c: Moved to...
1606         * malloc/morecore.c: ...here.
1607         * sysdeps/generic/mp_clz_tab.c: Moved to...
1608         * stdlib/mp_clz_tab.c: ...here.
1609         * sysdeps/generic/mpn2dbl.c: Moved to...
1610         * stdlib/mpn2dbl.c: ...here.
1611         * sysdeps/generic/mpn2flt.c: Moved to...
1612         * stdlib/mpn2flt.c: ...here.
1613         * sysdeps/generic/mpn2ldbl.c: Moved to...
1614         * stdlib/mpn2ldbl.c: ...here.
1615         * sysdeps/generic/mprotect.c: Moved to...
1616         * misc/mprotect.c: ...here.
1617         * sysdeps/generic/mq_close.c: Moved to...
1618         * rt/mq_close.c: ...here.
1619         * sysdeps/generic/mq_getattr.c: Moved to...
1620         * rt/mq_getattr.c: ...here.
1621         * sysdeps/generic/mq_notify.c: Moved to...
1622         * rt/mq_notify.c: ...here.
1623         * sysdeps/generic/mq_open.c: Moved to...
1624         * rt/mq_open.c: ...here.
1625         * sysdeps/generic/mq_receive.c: Moved to...
1626         * rt/mq_receive.c: ...here.
1627         * sysdeps/generic/mq_send.c: Moved to...
1628         * rt/mq_send.c: ...here.
1629         * sysdeps/generic/mq_setattr.c: Moved to...
1630         * rt/mq_setattr.c: ...here.
1631         * sysdeps/generic/mq_timedreceive.c: Moved to...
1632         * rt/mq_timedreceive.c: ...here.
1633         * sysdeps/generic/mq_timedsend.c: Moved to...
1634         * rt/mq_timedsend.c: ...here.
1635         * sysdeps/generic/mq_unlink.c: Moved to...
1636         * rt/mq_unlink.c: ...here.
1637         * sysdeps/generic/msgctl.c: Moved to...
1638         * sysvipc/msgctl.c: ...here.
1639         * sysdeps/generic/msgget.c: Moved to...
1640         * sysvipc/msgget.c: ...here.
1641         * sysdeps/generic/msgrcv.c: Moved to...
1642         * sysvipc/msgrcv.c: ...here.
1643         * sysdeps/generic/msgsnd.c: Moved to...
1644         * sysvipc/msgsnd.c: ...here.
1645         * sysdeps/generic/msync.c: Moved to...
1646         * misc/msync.c: ...here.
1647         * sysdeps/generic/mul.c: Moved to...
1648         * stdlib/mul.c: ...here.
1649         * sysdeps/generic/mul_1.c: Moved to...
1650         * stdlib/mul_1.c: ...here.
1651         * sysdeps/generic/mul_n.c: Moved to...
1652         * stdlib/mul_n.c: ...here.
1653         * sysdeps/generic/munlock.c: Moved to...
1654         * misc/munlock.c: ...here.
1655         * sysdeps/generic/munlockall.c: Moved to...
1656         * misc/munlockall.c: ...here.
1657         * sysdeps/generic/munmap.c: Moved to...
1658         * misc/munmap.c: ...here.
1659         * sysdeps/generic/nanosleep.c: Moved to...
1660         * posix/nanosleep.c: ...here.
1661         * sysdeps/generic/nice.c: Moved to...
1662         * resource/nice.c: ...here.
1663         * sysdeps/generic/nscd_setup_thread.c: Moved to...
1664         * nscd/nscd_setup_thread.c: ...here.
1665         * sysdeps/generic/open.c: Moved to...
1666         * io/open.c: ...here.
1667         * sysdeps/generic/open64.c: Moved to...
1668         * io/open64.c: ...here.
1669         * sysdeps/generic/openat.c: Moved to...
1670         * io/openat.c: ...here.
1671         * sysdeps/generic/openat64.c: Moved to...
1672         * io/openat64.c: ...here.
1673         * sysdeps/generic/opendir.c: Moved to...
1674         * dirent/opendir.c: ...here.
1675         * sysdeps/generic/opensock.c: Moved to...
1676         * socket/opensock.c: ...here.
1677         * sysdeps/generic/pathconf.c: Moved to...
1678         * posix/pathconf.c: ...here.
1679         * sysdeps/generic/pause.c: Moved to...
1680         * posix/pause.c: ...here.
1681         * sysdeps/generic/pipe.c: Moved to...
1682         * io/pipe.c: ...here.
1683         * sysdeps/generic/poll.c: Moved to...
1684         * io/poll.c: ...here.
1685         * sysdeps/generic/posix_fadvise.c: Moved to...
1686         * io/posix_fadvise.c: ...here.
1687         * sysdeps/generic/posix_fadvise64.c: Moved to...
1688         * io/posix_fadvise64.c: ...here.
1689         * sysdeps/generic/posix_fallocate.c: Moved to...
1690         * io/posix_fallocate.c: ...here.
1691         * sysdeps/generic/posix_fallocate64.c: Moved to...
1692         * io/posix_fallocate64.c: ...here.
1693         * sysdeps/generic/posix_madvise.c: Moved to...
1694         * posix/posix_madvise.c: ...here.
1695         * sysdeps/generic/pread.c: Moved to...
1696         * posix/pread.c: ...here.
1697         * sysdeps/generic/pread64.c: Moved to...
1698         * posix/pread64.c: ...here.
1699         * sysdeps/generic/printf_fphex.c: Moved to...
1700         * stdio-common/printf_fphex.c: ...here.
1701         * sysdeps/generic/prof-freq.c: Moved to...
1702         * gmon/prof-freq.c: ...here.
1703         * sysdeps/generic/profil.c: Moved to...
1704         * gmon/profil.c: ...here.
1705         * sysdeps/generic/pselect.c: Moved to...
1706         * misc/pselect.c: ...here.
1707         * sysdeps/generic/ptrace.c: Moved to...
1708         * misc/ptrace.c: ...here.
1709         * sysdeps/generic/ptsname.c: Moved to...
1710         * login/ptsname.c: ...here.
1711         * sysdeps/generic/putenv.c: Moved to...
1712         * stdlib/putenv.c: ...here.
1713         * sysdeps/generic/putmsg.c: Moved to...
1714         * streams/putmsg.c: ...here.
1715         * sysdeps/generic/putpmsg.c: Moved to...
1716         * streams/putpmsg.c: ...here.
1717         * sysdeps/generic/pututxline.c: Moved to...
1718         * login/pututxline.c: ...here.
1719         * sysdeps/generic/pwrite.c: Moved to...
1720         * posix/pwrite.c: ...here.
1721         * sysdeps/generic/pwrite64.c: Moved to...
1722         * posix/pwrite64.c: ...here.
1723         * sysdeps/generic/raise.c: Moved to...
1724         * signal/raise.c: ...here.
1725         * sysdeps/generic/rawmemchr.c: Moved to...
1726         * string/rawmemchr.c: ...here.
1727         * sysdeps/generic/read.c: Moved to...
1728         * io/read.c: ...here.
1729         * sysdeps/generic/readdir.c: Moved to...
1730         * dirent/readdir.c: ...here.
1731         * sysdeps/generic/readdir64.c: Moved to...
1732         * dirent/readdir64.c: ...here.
1733         * sysdeps/generic/readdir64_r.c: Moved to...
1734         * dirent/readdir64_r.c: ...here.
1735         * sysdeps/generic/readdir_r.c: Moved to...
1736         * dirent/readdir_r.c: ...here.
1737         * sysdeps/generic/readelflib.c: Moved to...
1738         * elf/readelflib.c: ...here.
1739         * sysdeps/generic/readlink.c: Moved to...
1740         * io/readlink.c: ...here.
1741         * sysdeps/generic/readonly-area.c: Moved to...
1742         * debug/readonly-area.c: ...here.
1743         * sysdeps/generic/readv.c: Moved to...
1744         * misc/readv.c: ...here.
1745         * sysdeps/generic/reboot.c: Moved to...
1746         * misc/reboot.c: ...here.
1747         * sysdeps/generic/recv.c: Moved to...
1748         * socket/recv.c: ...here.
1749         * sysdeps/generic/recvfrom.c: Moved to...
1750         * socket/recvfrom.c: ...here.
1751         * sysdeps/generic/recvmsg.c: Moved to...
1752         * socket/recvmsg.c: ...here.
1753         * sysdeps/generic/remap_file_pages.c: Moved to...
1754         * misc/remap_file_pages.c: ...here.
1755         * sysdeps/generic/remove.c: Moved to...
1756         * stdio-common/remove.c: ...here.
1757         * sysdeps/generic/removexattr.c: Moved to...
1758         * misc/removexattr.c: ...here.
1759         * sysdeps/generic/rename.c: Moved to...
1760         * stdio-common/rename.c: ...here.
1761         * sysdeps/generic/renameat.c: Moved to...
1762         * stdio-common/renameat.c: ...here.
1763         * sysdeps/generic/res-state.c: Moved to...
1764         * resolv/res-state.c: ...here.
1765         * sysdeps/generic/revoke.c: Moved to...
1766         * misc/revoke.c: ...here.
1767         * sysdeps/generic/rewinddir.c: Moved to...
1768         * dirent/rewinddir.c: ...here.
1769         * sysdeps/generic/rmdir.c: Moved to...
1770         * io/rmdir.c: ...here.
1771         * sysdeps/generic/rshift.c: Moved to...
1772         * stdlib/rshift.c: ...here.
1773         * sysdeps/generic/s_asinhl.c: Moved to...
1774         * math/s_asinhl.c: ...here.
1775         * sysdeps/generic/s_atanl.c: Moved to...
1776         * math/s_atanl.c: ...here.
1777         * sysdeps/generic/s_cacos.c: Moved to...
1778         * math/s_cacos.c: ...here.
1779         * sysdeps/generic/s_cacosf.c: Moved to...
1780         * math/s_cacosf.c: ...here.
1781         * sysdeps/generic/s_cacosh.c: Moved to...
1782         * math/s_cacosh.c: ...here.
1783         * sysdeps/generic/s_cacoshf.c: Moved to...
1784         * math/s_cacoshf.c: ...here.
1785         * sysdeps/generic/s_cacoshl.c: Moved to...
1786         * math/s_cacoshl.c: ...here.
1787         * sysdeps/generic/s_cacosl.c: Moved to...
1788         * math/s_cacosl.c: ...here.
1789         * sysdeps/generic/s_casin.c: Moved to...
1790         * math/s_casin.c: ...here.
1791         * sysdeps/generic/s_casinf.c: Moved to...
1792         * math/s_casinf.c: ...here.
1793         * sysdeps/generic/s_casinh.c: Moved to...
1794         * math/s_casinh.c: ...here.
1795         * sysdeps/generic/s_casinhf.c: Moved to...
1796         * math/s_casinhf.c: ...here.
1797         * sysdeps/generic/s_casinhl.c: Moved to...
1798         * math/s_casinhl.c: ...here.
1799         * sysdeps/generic/s_casinl.c: Moved to...
1800         * math/s_casinl.c: ...here.
1801         * sysdeps/generic/s_catan.c: Moved to...
1802         * math/s_catan.c: ...here.
1803         * sysdeps/generic/s_catanf.c: Moved to...
1804         * math/s_catanf.c: ...here.
1805         * sysdeps/generic/s_catanh.c: Moved to...
1806         * math/s_catanh.c: ...here.
1807         * sysdeps/generic/s_catanhf.c: Moved to...
1808         * math/s_catanhf.c: ...here.
1809         * sysdeps/generic/s_catanhl.c: Moved to...
1810         * math/s_catanhl.c: ...here.
1811         * sysdeps/generic/s_catanl.c: Moved to...
1812         * math/s_catanl.c: ...here.
1813         * sysdeps/generic/s_cbrtl.c: Moved to...
1814         * math/s_cbrtl.c: ...here.
1815         * sysdeps/generic/s_ccos.c: Moved to...
1816         * math/s_ccos.c: ...here.
1817         * sysdeps/generic/s_ccosf.c: Moved to...
1818         * math/s_ccosf.c: ...here.
1819         * sysdeps/generic/s_ccosh.c: Moved to...
1820         * math/s_ccosh.c: ...here.
1821         * sysdeps/generic/s_ccoshf.c: Moved to...
1822         * math/s_ccoshf.c: ...here.
1823         * sysdeps/generic/s_ccoshl.c: Moved to...
1824         * math/s_ccoshl.c: ...here.
1825         * sysdeps/generic/s_ccosl.c: Moved to...
1826         * math/s_ccosl.c: ...here.
1827         * sysdeps/generic/s_cexp.c: Moved to...
1828         * math/s_cexp.c: ...here.
1829         * sysdeps/generic/s_cexpf.c: Moved to...
1830         * math/s_cexpf.c: ...here.
1831         * sysdeps/generic/s_cexpl.c: Moved to...
1832         * math/s_cexpl.c: ...here.
1833         * sysdeps/generic/s_clog.c: Moved to...
1834         * math/s_clog.c: ...here.
1835         * sysdeps/generic/s_clog10.c: Moved to...
1836         * math/s_clog10.c: ...here.
1837         * sysdeps/generic/s_clog10f.c: Moved to...
1838         * math/s_clog10f.c: ...here.
1839         * sysdeps/generic/s_clog10l.c: Moved to...
1840         * math/s_clog10l.c: ...here.
1841         * sysdeps/generic/s_clogf.c: Moved to...
1842         * math/s_clogf.c: ...here.
1843         * sysdeps/generic/s_clogl.c: Moved to...
1844         * math/s_clogl.c: ...here.
1845         * sysdeps/generic/s_cpow.c: Moved to...
1846         * math/s_cpow.c: ...here.
1847         * sysdeps/generic/s_cpowf.c: Moved to...
1848         * math/s_cpowf.c: ...here.
1849         * sysdeps/generic/s_cpowl.c: Moved to...
1850         * math/s_cpowl.c: ...here.
1851         * sysdeps/generic/s_cproj.c: Moved to...
1852         * math/s_cproj.c: ...here.
1853         * sysdeps/generic/s_cprojf.c: Moved to...
1854         * math/s_cprojf.c: ...here.
1855         * sysdeps/generic/s_cprojl.c: Moved to...
1856         * math/s_cprojl.c: ...here.
1857         * sysdeps/generic/s_csin.c: Moved to...
1858         * math/s_csin.c: ...here.
1859         * sysdeps/generic/s_csinf.c: Moved to...
1860         * math/s_csinf.c: ...here.
1861         * sysdeps/generic/s_csinh.c: Moved to...
1862         * math/s_csinh.c: ...here.
1863         * sysdeps/generic/s_csinhf.c: Moved to...
1864         * math/s_csinhf.c: ...here.
1865         * sysdeps/generic/s_csinhl.c: Moved to...
1866         * math/s_csinhl.c: ...here.
1867         * sysdeps/generic/s_csinl.c: Moved to...
1868         * math/s_csinl.c: ...here.
1869         * sysdeps/generic/s_csqrt.c: Moved to...
1870         * math/s_csqrt.c: ...here.
1871         * sysdeps/generic/s_csqrtf.c: Moved to...
1872         * math/s_csqrtf.c: ...here.
1873         * sysdeps/generic/s_csqrtl.c: Moved to...
1874         * math/s_csqrtl.c: ...here.
1875         * sysdeps/generic/s_ctan.c: Moved to...
1876         * math/s_ctan.c: ...here.
1877         * sysdeps/generic/s_ctanf.c: Moved to...
1878         * math/s_ctanf.c: ...here.
1879         * sysdeps/generic/s_ctanh.c: Moved to...
1880         * math/s_ctanh.c: ...here.
1881         * sysdeps/generic/s_ctanhf.c: Moved to...
1882         * math/s_ctanhf.c: ...here.
1883         * sysdeps/generic/s_ctanhl.c: Moved to...
1884         * math/s_ctanhl.c: ...here.
1885         * sysdeps/generic/s_ctanl.c: Moved to...
1886         * math/s_ctanl.c: ...here.
1887         * sysdeps/generic/s_erfl.c: Moved to...
1888         * math/s_erfl.c: ...here.
1889         * sysdeps/generic/s_expm1l.c: Moved to...
1890         * math/s_expm1l.c: ...here.
1891         * sysdeps/generic/s_fdim.c: Moved to...
1892         * math/s_fdim.c: ...here.
1893         * sysdeps/generic/s_fdimf.c: Moved to...
1894         * math/s_fdimf.c: ...here.
1895         * sysdeps/generic/s_fdiml.c: Moved to...
1896         * math/s_fdiml.c: ...here.
1897         * sysdeps/generic/s_fma.c: Moved to...
1898         * math/s_fma.c: ...here.
1899         * sysdeps/generic/s_fmaf.c: Moved to...
1900         * math/s_fmaf.c: ...here.
1901         * sysdeps/generic/s_fmal.c: Moved to...
1902         * math/s_fmal.c: ...here.
1903         * sysdeps/generic/s_fmax.c: Moved to...
1904         * math/s_fmax.c: ...here.
1905         * sysdeps/generic/s_fmaxf.c: Moved to...
1906         * math/s_fmaxf.c: ...here.
1907         * sysdeps/generic/s_fmaxl.c: Moved to...
1908         * math/s_fmaxl.c: ...here.
1909         * sysdeps/generic/s_fmin.c: Moved to...
1910         * math/s_fmin.c: ...here.
1911         * sysdeps/generic/s_fminf.c: Moved to...
1912         * math/s_fminf.c: ...here.
1913         * sysdeps/generic/s_fminl.c: Moved to...
1914         * math/s_fminl.c: ...here.
1915         * sysdeps/generic/s_ldexp.c: Moved to...
1916         * math/s_ldexp.c: ...here.
1917         * sysdeps/generic/s_ldexpf.c: Moved to...
1918         * math/s_ldexpf.c: ...here.
1919         * sysdeps/generic/s_ldexpl.c: Moved to...
1920         * math/s_ldexpl.c: ...here.
1921         * sysdeps/generic/s_log1pl.c: Moved to...
1922         * math/s_log1pl.c: ...here.
1923         * sysdeps/generic/s_nan.c: Moved to...
1924         * math/s_nan.c: ...here.
1925         * sysdeps/generic/s_nanf.c: Moved to...
1926         * math/s_nanf.c: ...here.
1927         * sysdeps/generic/s_nanl.c: Moved to...
1928         * math/s_nanl.c: ...here.
1929         * sysdeps/generic/s_nextafter.c: Moved to...
1930         * math/s_nextafter.c: ...here.
1931         * sysdeps/generic/s_nexttowardf.c: Moved to...
1932         * math/s_nexttowardf.c: ...here.
1933         * sysdeps/generic/s_nexttowardl.c: Moved to...
1934         * math/s_nexttowardl.c: ...here.
1935         * sysdeps/generic/s_significand.c: Moved to...
1936         * math/s_significand.c: ...here.
1937         * sysdeps/generic/s_significandf.c: Moved to...
1938         * math/s_significandf.c: ...here.
1939         * sysdeps/generic/s_significandl.c: Moved to...
1940         * math/s_significandl.c: ...here.
1941         * sysdeps/generic/s_tanhl.c: Moved to...
1942         * math/s_tanhl.c: ...here.
1943         * sysdeps/generic/sbrk.c: Moved to...
1944         * misc/sbrk.c: ...here.
1945         * sysdeps/generic/scandir64.c: Moved to...
1946         * dirent/scandir64.c: ...here.
1947         * sysdeps/generic/sched_getaffinity.c: Moved to...
1948         * posix/sched_getaffinity.c: ...here.
1949         * sysdeps/generic/sched_getp.c: Moved to...
1950         * posix/sched_getp.c: ...here.
1951         * sysdeps/generic/sched_gets.c: Moved to...
1952         * posix/sched_gets.c: ...here.
1953         * sysdeps/generic/sched_primax.c: Moved to...
1954         * posix/sched_primax.c: ...here.
1955         * sysdeps/generic/sched_primin.c: Moved to...
1956         * posix/sched_primin.c: ...here.
1957         * sysdeps/generic/sched_rr_gi.c: Moved to...
1958         * posix/sched_rr_gi.c: ...here.
1959         * sysdeps/generic/sched_setaffinity.c: Moved to...
1960         * posix/sched_setaffinity.c: ...here.
1961         * sysdeps/generic/sched_setp.c: Moved to...
1962         * posix/sched_setp.c: ...here.
1963         * sysdeps/generic/sched_sets.c: Moved to...
1964         * posix/sched_sets.c: ...here.
1965         * sysdeps/generic/sched_yield.c: Moved to...
1966         * posix/sched_yield.c: ...here.
1967         * sysdeps/generic/seekdir.c: Moved to...
1968         * dirent/seekdir.c: ...here.
1969         * sysdeps/generic/segfault.c: Moved to...
1970         * debug/segfault.c: ...here.
1971         * sysdeps/generic/select.c: Moved to...
1972         * misc/select.c: ...here.
1973         * sysdeps/generic/semctl.c: Moved to...
1974         * sysvipc/semctl.c: ...here.
1975         * sysdeps/generic/semget.c: Moved to...
1976         * sysvipc/semget.c: ...here.
1977         * sysdeps/generic/semop.c: Moved to...
1978         * sysvipc/semop.c: ...here.
1979         * sysdeps/generic/semtimedop.c: Moved to...
1980         * sysvipc/semtimedop.c: ...here.
1981         * sysdeps/generic/send.c: Moved to...
1982         * socket/send.c: ...here.
1983         * sysdeps/generic/sendfile.c: Moved to...
1984         * io/sendfile.c: ...here.
1985         * sysdeps/generic/sendfile64.c: Moved to...
1986         * io/sendfile64.c: ...here.
1987         * sysdeps/generic/sendmsg.c: Moved to...
1988         * socket/sendmsg.c: ...here.
1989         * sysdeps/generic/sendto.c: Moved to...
1990         * socket/sendto.c: ...here.
1991         * sysdeps/generic/setcontext.c: Moved to...
1992         * stdlib/setcontext.c: ...here.
1993         * sysdeps/generic/setdomain.c: Moved to...
1994         * misc/setdomain.c: ...here.
1995         * sysdeps/generic/setegid.c: Moved to...
1996         * misc/setegid.c: ...here.
1997         * sysdeps/generic/setenv.c: Moved to...
1998         * stdlib/setenv.c: ...here.
1999         * sysdeps/generic/seteuid.c: Moved to...
2000         * misc/seteuid.c: ...here.
2001         * sysdeps/generic/setfpucw.c: Moved to...
2002         * math/setfpucw.c: ...here.
2003         * sysdeps/generic/setgid.c: Moved to...
2004         * posix/setgid.c: ...here.
2005         * sysdeps/generic/setgroups.c: Moved to...
2006         * grp/setgroups.c: ...here.
2007         * sysdeps/generic/sethostid.c: Moved to...
2008         * misc/sethostid.c: ...here.
2009         * sysdeps/generic/sethostname.c: Moved to...
2010         * misc/sethostname.c: ...here.
2011         * sysdeps/generic/setipv4sourcefilter.c: Moved to...
2012         * inet/setipv4sourcefilter.c: ...here.
2013         * sysdeps/generic/setitimer.c: Moved to...
2014         * time/setitimer.c: ...here.
2015         * sysdeps/generic/setjmp.c: Moved to...
2016         * setjmp/setjmp.c: ...here.
2017         * sysdeps/generic/setlogin.c: Moved to...
2018         * posix/setlogin.c: ...here.
2019         * sysdeps/generic/setpgid.c: Moved to...
2020         * posix/setpgid.c: ...here.
2021         * sysdeps/generic/setpgrp.c: Moved to...
2022         * posix/setpgrp.c: ...here.
2023         * sysdeps/generic/setpriority.c: Moved to...
2024         * resource/setpriority.c: ...here.
2025         * sysdeps/generic/setregid.c: Moved to...
2026         * misc/setregid.c: ...here.
2027         * sysdeps/generic/setresgid.c: Moved to...
2028         * posix/setresgid.c: ...here.
2029         * sysdeps/generic/setresuid.c: Moved to...
2030         * posix/setresuid.c: ...here.
2031         * sysdeps/generic/setreuid.c: Moved to...
2032         * misc/setreuid.c: ...here.
2033         * sysdeps/generic/setrlimit.c: Moved to...
2034         * resource/setrlimit.c: ...here.
2035         * sysdeps/generic/setrlimit64.c: Moved to...
2036         * resource/setrlimit64.c: ...here.
2037         * sysdeps/generic/setsid.c: Moved to...
2038         * posix/setsid.c: ...here.
2039         * sysdeps/generic/setsockopt.c: Moved to...
2040         * socket/setsockopt.c: ...here.
2041         * sysdeps/generic/setsourcefilter.c: Moved to...
2042         * inet/setsourcefilter.c: ...here.
2043         * sysdeps/generic/settimeofday.c: Moved to...
2044         * time/settimeofday.c: ...here.
2045         * sysdeps/generic/setuid.c: Moved to...
2046         * posix/setuid.c: ...here.
2047         * sysdeps/generic/setutxent.c: Moved to...
2048         * login/setutxent.c: ...here.
2049         * sysdeps/generic/setxattr.c: Moved to...
2050         * misc/setxattr.c: ...here.
2051         * sysdeps/generic/shm_open.c: Moved to...
2052         * rt/shm_open.c: ...here.
2053         * sysdeps/generic/shm_unlink.c: Moved to...
2054         * rt/shm_unlink.c: ...here.
2055         * sysdeps/generic/shmat.c: Moved to...
2056         * sysvipc/shmat.c: ...here.
2057         * sysdeps/generic/shmctl.c: Moved to...
2058         * sysvipc/shmctl.c: ...here.
2059         * sysdeps/generic/shmdt.c: Moved to...
2060         * sysvipc/shmdt.c: ...here.
2061         * sysdeps/generic/shmget.c: Moved to...
2062         * sysvipc/shmget.c: ...here.
2063         * sysdeps/generic/shutdown.c: Moved to...
2064         * socket/shutdown.c: ...here.
2065         * sysdeps/generic/sigaction.c: Moved to...
2066         * signal/sigaction.c: ...here.
2067         * sysdeps/generic/sigaltstack.c: Moved to...
2068         * signal/sigaltstack.c: ...here.
2069         * sysdeps/generic/sigblock.c: Moved to...
2070         * signal/sigblock.c: ...here.
2071         * sysdeps/generic/sigfillset.c: Moved to...
2072         * signal/sigfillset.c: ...here.
2073         * sysdeps/generic/sigignore.c: Moved to...
2074         * signal/sigignore.c: ...here.
2075         * sysdeps/generic/sigintr.c: Moved to...
2076         * signal/sigintr.c: ...here.
2077         * sysdeps/generic/sigjmp.c: Moved to...
2078         * setjmp/sigjmp.c: ...here.
2079         * sysdeps/generic/siglist.c: Moved to...
2080         * stdio-common/siglist.c: ...here.
2081         * sysdeps/generic/signal.c: Moved to...
2082         * signal/signal.c: ...here.
2083         * sysdeps/generic/sigpause.c: Moved to...
2084         * signal/sigpause.c: ...here.
2085         * sysdeps/generic/sigpending.c: Moved to...
2086         * signal/sigpending.c: ...here.
2087         * sysdeps/generic/sigprocmask.c: Moved to...
2088         * signal/sigprocmask.c: ...here.
2089         * sysdeps/generic/sigqueue.c: Moved to...
2090         * signal/sigqueue.c: ...here.
2091         * sysdeps/generic/sigreturn.c: Moved to...
2092         * signal/sigreturn.c: ...here.
2093         * sysdeps/generic/sigset.c: Moved to...
2094         * signal/sigset.c: ...here.
2095         * sysdeps/generic/sigsetmask.c: Moved to...
2096         * signal/sigsetmask.c: ...here.
2097         * sysdeps/generic/sigstack.c: Moved to...
2098         * signal/sigstack.c: ...here.
2099         * sysdeps/generic/sigsuspend.c: Moved to...
2100         * signal/sigsuspend.c: ...here.
2101         * sysdeps/generic/sigtimedwait.c: Moved to...
2102         * signal/sigtimedwait.c: ...here.
2103         * sysdeps/generic/sigvec.c: Moved to...
2104         * signal/sigvec.c: ...here.
2105         * sysdeps/generic/sigwait.c: Moved to...
2106         * signal/sigwait.c: ...here.
2107         * sysdeps/generic/sigwaitinfo.c: Moved to...
2108         * signal/sigwaitinfo.c: ...here.
2109         * sysdeps/generic/sleep.c: Moved to...
2110         * posix/sleep.c: ...here.
2111         * sysdeps/generic/sockatmark.c: Moved to...
2112         * socket/sockatmark.c: ...here.
2113         * sysdeps/generic/socket.c: Moved to...
2114         * socket/socket.c: ...here.
2115         * sysdeps/generic/socketpair.c: Moved to...
2116         * socket/socketpair.c: ...here.
2117         * sysdeps/generic/spawni.c: Moved to...
2118         * posix/spawni.c: ...here.
2119         * sysdeps/generic/speed.c: Moved to...
2120         * termios/speed.c: ...here.
2121         * sysdeps/generic/sprofil.c: Moved to...
2122         * gmon/sprofil.c: ...here.
2123         * sysdeps/generic/sstk.c: Moved to...
2124         * misc/sstk.c: ...here.
2125         * sysdeps/generic/start.c: Moved to...
2126         * csu/start.c: ...here.
2127         * sysdeps/generic/statfs.c: Moved to...
2128         * io/statfs.c: ...here.
2129         * sysdeps/generic/statfs64.c: Moved to...
2130         * io/statfs64.c: ...here.
2131         * sysdeps/generic/statvfs.c: Moved to...
2132         * io/statvfs.c: ...here.
2133         * sysdeps/generic/statvfs64.c: Moved to...
2134         * io/statvfs64.c: ...here.
2135         * sysdeps/generic/stime.c: Moved to...
2136         * time/stime.c: ...here.
2137         * sysdeps/generic/stpcpy.c: Moved to...
2138         * string/stpcpy.c: ...here.
2139         * sysdeps/generic/stpcpy_chk.c: Moved to...
2140         * debug/stpcpy_chk.c: ...here.
2141         * sysdeps/generic/stpncpy.c: Moved to...
2142         * string/stpncpy.c: ...here.
2143         * sysdeps/generic/stpncpy_chk.c: Moved to...
2144         * debug/stpncpy_chk.c: ...here.
2145         * sysdeps/generic/strcasecmp.c: Moved to...
2146         * string/strcasecmp.c: ...here.
2147         * sysdeps/generic/strcasecmp_l.c: Moved to...
2148         * string/strcasecmp_l.c: ...here.
2149         * sysdeps/generic/strcasestr.c: Moved to...
2150         * string/strcasestr.c: ...here.
2151         * sysdeps/generic/strcat.c: Moved to...
2152         * string/strcat.c: ...here.
2153         * sysdeps/generic/strcat_chk.c: Moved to...
2154         * debug/strcat_chk.c: ...here.
2155         * sysdeps/generic/strchr.c: Moved to...
2156         * string/strchr.c: ...here.
2157         * sysdeps/generic/strchrnul.c: Moved to...
2158         * string/strchrnul.c: ...here.
2159         * sysdeps/generic/strcmp.c: Moved to...
2160         * string/strcmp.c: ...here.
2161         * sysdeps/generic/strcpy.c: Moved to...
2162         * string/strcpy.c: ...here.
2163         * sysdeps/generic/strcpy_chk.c: Moved to...
2164         * debug/strcpy_chk.c: ...here.
2165         * sysdeps/generic/strcspn.c: Moved to...
2166         * string/strcspn.c: ...here.
2167         * sysdeps/generic/string-inlines.c: Moved to...
2168         * string/string-inlines.c: ...here.
2169         * sysdeps/generic/strlen.c: Moved to...
2170         * string/strlen.c: ...here.
2171         * sysdeps/generic/strncase.c: Moved to...
2172         * string/strncase.c: ...here.
2173         * sysdeps/generic/strncase_l.c: Moved to...
2174         * string/strncase_l.c: ...here.
2175         * sysdeps/generic/strncat.c: Moved to...
2176         * string/strncat.c: ...here.
2177         * sysdeps/generic/strncat_chk.c: Moved to...
2178         * debug/strncat_chk.c: ...here.
2179         * sysdeps/generic/strncmp.c: Moved to...
2180         * string/strncmp.c: ...here.
2181         * sysdeps/generic/strncpy.c: Moved to...
2182         * string/strncpy.c: ...here.
2183         * sysdeps/generic/strncpy_chk.c: Moved to...
2184         * debug/strncpy_chk.c: ...here.
2185         * sysdeps/generic/strnlen.c: Moved to...
2186         * string/strnlen.c: ...here.
2187         * sysdeps/generic/strpbrk.c: Moved to...
2188         * string/strpbrk.c: ...here.
2189         * sysdeps/generic/strrchr.c: Moved to...
2190         * string/strrchr.c: ...here.
2191         * sysdeps/generic/strsep.c: Moved to...
2192         * string/strsep.c: ...here.
2193         * sysdeps/generic/strspn.c: Moved to...
2194         * string/strspn.c: ...here.
2195         * sysdeps/generic/strstr.c: Moved to...
2196         * string/strstr.c: ...here.
2197         * sysdeps/generic/strtoimax.c: Moved to...
2198         * stdlib/strtoimax.c: ...here.
2199         * sysdeps/generic/strtok.c: Moved to...
2200         * string/strtok.c: ...here.
2201         * sysdeps/generic/strtok_r.c: Moved to...
2202         * string/strtok_r.c: ...here.
2203         * sysdeps/generic/strtol.c: Moved to...
2204         * stdlib/strtol.c: ...here.
2205         * sysdeps/generic/strtol_l.c: Moved to...
2206         * stdlib/strtol_l.c: ...here.
2207         * sysdeps/generic/strtold_l.c: Moved to...
2208         * stdlib/strtold_l.c: ...here.
2209         * sysdeps/generic/strtoll.c: Moved to...
2210         * stdlib/strtoll.c: ...here.
2211         * sysdeps/generic/strtoll_l.c: Moved to...
2212         * stdlib/strtoll_l.c: ...here.
2213         * sysdeps/generic/strtoul.c: Moved to...
2214         * stdlib/strtoul.c: ...here.
2215         * sysdeps/generic/strtoul_l.c: Moved to...
2216         * stdlib/strtoul_l.c: ...here.
2217         * sysdeps/generic/strtoull.c: Moved to...
2218         * stdlib/strtoull.c: ...here.
2219         * sysdeps/generic/strtoull_l.c: Moved to...
2220         * stdlib/strtoull_l.c: ...here.
2221         * sysdeps/generic/strtoumax.c: Moved to...
2222         * stdlib/strtoumax.c: ...here.
2223         * sysdeps/generic/strtsupp.c: Moved to...
2224         * bare/strtsupp.c: ...here.
2225         * sysdeps/generic/stty.c: Moved to...
2226         * misc/stty.c: ...here.
2227         * sysdeps/generic/sub_n.c: Moved to...
2228         * stdlib/sub_n.c: ...here.
2229         * sysdeps/generic/submul_1.c: Moved to...
2230         * stdlib/submul_1.c: ...here.
2231         * sysdeps/generic/swapcontext.c: Moved to...
2232         * stdlib/swapcontext.c: ...here.
2233         * sysdeps/generic/swapoff.c: Moved to...
2234         * misc/swapoff.c: ...here.
2235         * sysdeps/generic/swapon.c: Moved to...
2236         * misc/swapon.c: ...here.
2237         * sysdeps/generic/symlink.c: Moved to...
2238         * io/symlink.c: ...here.
2239         * sysdeps/generic/sync.c: Moved to...
2240         * misc/sync.c: ...here.
2241         * sysdeps/generic/syscall.c: Moved to...
2242         * misc/syscall.c: ...here.
2243         * sysdeps/generic/sysconf.c: Moved to...
2244         * posix/sysconf.c: ...here.
2245         * sysdeps/generic/sysdep.c: Moved to...
2246         * csu/sysdep.c: ...here.
2247         * sysdeps/generic/syslog.c: Moved to...
2248         * misc/syslog.c: ...here.
2249         * sysdeps/generic/system.c: Moved to...
2250         * stdlib/system.c: ...here.
2251         * sysdeps/generic/sysv_signal.c: Moved to...
2252         * signal/sysv_signal.c: ...here.
2253         * sysdeps/generic/t_sincosl.c: Moved to...
2254         * math/t_sincosl.c: ...here.
2255         * sysdeps/generic/tcdrain.c: Moved to...
2256         * termios/tcdrain.c: ...here.
2257         * sysdeps/generic/tcflow.c: Moved to...
2258         * termios/tcflow.c: ...here.
2259         * sysdeps/generic/tcflush.c: Moved to...
2260         * termios/tcflush.c: ...here.
2261         * sysdeps/generic/tcgetattr.c: Moved to...
2262         * termios/tcgetattr.c: ...here.
2263         * sysdeps/generic/tcgetpgrp.c: Moved to...
2264         * termios/tcgetpgrp.c: ...here.
2265         * sysdeps/generic/tcsendbrk.c: Moved to...
2266         * termios/tcsendbrk.c: ...here.
2267         * sysdeps/generic/tcsetattr.c: Moved to...
2268         * termios/tcsetattr.c: ...here.
2269         * sysdeps/generic/tcsetpgrp.c: Moved to...
2270         * termios/tcsetpgrp.c: ...here.
2271         * sysdeps/generic/telldir.c: Moved to...
2272         * dirent/telldir.c: ...here.
2273         * sysdeps/generic/tempname.c: Moved to...
2274         * stdio-common/tempname.c: ...here.
2275         * sysdeps/generic/time.c: Moved to...
2276         * time/time.c: ...here.
2277         * sysdeps/generic/timer_create.c: Moved to...
2278         * rt/timer_create.c: ...here.
2279         * sysdeps/generic/timer_delete.c: Moved to...
2280         * rt/timer_delete.c: ...here.
2281         * sysdeps/generic/timer_getoverr.c: Moved to...
2282         * rt/timer_getoverr.c: ...here.
2283         * sysdeps/generic/timer_gettime.c: Moved to...
2284         * rt/timer_gettime.c: ...here.
2285         * sysdeps/generic/timer_settime.c: Moved to...
2286         * rt/timer_settime.c: ...here.
2287         * sysdeps/generic/times.c: Moved to...
2288         * posix/times.c: ...here.
2289         * sysdeps/generic/tmpfile.c: Moved to...
2290         * stdio-common/tmpfile.c: ...here.
2291         * sysdeps/generic/tmpfile64.c: Moved to...
2292         * stdio-common/tmpfile64.c: ...here.
2293         * sysdeps/generic/trampoline.c: Moved to...
2294         * hurd/trampoline.c: ...here.
2295         * sysdeps/generic/truncate.c: Moved to...
2296         * misc/truncate.c: ...here.
2297         * sysdeps/generic/truncate64.c: Moved to...
2298         * misc/truncate64.c: ...here.
2299         * sysdeps/generic/tst-timer.c: Moved to...
2300         * rt/tst-timer.c: ...here.
2301         * sysdeps/generic/ttyname.c: Moved to...
2302         * io/ttyname.c: ...here.
2303         * sysdeps/generic/ttyname_r.c: Moved to...
2304         * io/ttyname_r.c: ...here.
2305         * sysdeps/generic/ualarm.c: Moved to...
2306         * misc/ualarm.c: ...here.
2307         * sysdeps/generic/udiv_qrnnd.c: Moved to...
2308         * stdlib/udiv_qrnnd.c: ...here.
2309         * sysdeps/generic/ulimit.c: Moved to...
2310         * resource/ulimit.c: ...here.
2311         * sysdeps/generic/umask.c: Moved to...
2312         * io/umask.c: ...here.
2313         * sysdeps/generic/uname.c: Moved to...
2314         * posix/uname.c: ...here.
2315         * sysdeps/generic/unlink.c: Moved to...
2316         * io/unlink.c: ...here.
2317         * sysdeps/generic/unlinkat.c: Moved to...
2318         * io/unlinkat.c: ...here.
2319         * sysdeps/generic/unlockpt.c: Moved to...
2320         * login/unlockpt.c: ...here.
2321         * sysdeps/generic/updwtmp.c: Moved to...
2322         * login/updwtmp.c: ...here.
2323         * sysdeps/generic/updwtmpx.c: Moved to...
2324         * login/updwtmpx.c: ...here.
2325         * sysdeps/generic/usleep.c: Moved to...
2326         * misc/usleep.c: ...here.
2327         * sysdeps/generic/ustat.c: Moved to...
2328         * misc/ustat.c: ...here.
2329         * sysdeps/generic/utime.c: Moved to...
2330         * io/utime.c: ...here.
2331         * sysdeps/generic/utimes.c: Moved to...
2332         * misc/utimes.c: ...here.
2333         * sysdeps/generic/utmp_file.c: Moved to...
2334         * login/utmp_file.c: ...here.
2335         * sysdeps/generic/utmpxname.c: Moved to...
2336         * login/utmpxname.c: ...here.
2337         * sysdeps/generic/versionsort64.c: Moved to...
2338         * dirent/versionsort64.c: ...here.
2339         * sysdeps/generic/vfork.c: Moved to...
2340         * posix/vfork.c: ...here.
2341         * sysdeps/generic/vhangup.c: Moved to...
2342         * misc/vhangup.c: ...here.
2343         * sysdeps/generic/vlimit.c: Moved to...
2344         * resource/vlimit.c: ...here.
2345         * sysdeps/generic/vtimes.c: Moved to...
2346         * resource/vtimes.c: ...here.
2347         * sysdeps/generic/w_acos.c: Moved to...
2348         * math/w_acos.c: ...here.
2349         * sysdeps/generic/w_acosf.c: Moved to...
2350         * math/w_acosf.c: ...here.
2351         * sysdeps/generic/w_acosh.c: Moved to...
2352         * math/w_acosh.c: ...here.
2353         * sysdeps/generic/w_acoshf.c: Moved to...
2354         * math/w_acoshf.c: ...here.
2355         * sysdeps/generic/w_acoshl.c: Moved to...
2356         * math/w_acoshl.c: ...here.
2357         * sysdeps/generic/w_acosl.c: Moved to...
2358         * math/w_acosl.c: ...here.
2359         * sysdeps/generic/w_asin.c: Moved to...
2360         * math/w_asin.c: ...here.
2361         * sysdeps/generic/w_asinf.c: Moved to...
2362         * math/w_asinf.c: ...here.
2363         * sysdeps/generic/w_asinl.c: Moved to...
2364         * math/w_asinl.c: ...here.
2365         * sysdeps/generic/w_atan2.c: Moved to...
2366         * math/w_atan2.c: ...here.
2367         * sysdeps/generic/w_atan2f.c: Moved to...
2368         * math/w_atan2f.c: ...here.
2369         * sysdeps/generic/w_atan2l.c: Moved to...
2370         * math/w_atan2l.c: ...here.
2371         * sysdeps/generic/w_atanh.c: Moved to...
2372         * math/w_atanh.c: ...here.
2373         * sysdeps/generic/w_atanhf.c: Moved to...
2374         * math/w_atanhf.c: ...here.
2375         * sysdeps/generic/w_atanhl.c: Moved to...
2376         * math/w_atanhl.c: ...here.
2377         * sysdeps/generic/w_cosh.c: Moved to...
2378         * math/w_cosh.c: ...here.
2379         * sysdeps/generic/w_coshf.c: Moved to...
2380         * math/w_coshf.c: ...here.
2381         * sysdeps/generic/w_coshl.c: Moved to...
2382         * math/w_coshl.c: ...here.
2383         * sysdeps/generic/w_drem.c: Moved to...
2384         * math/w_drem.c: ...here.
2385         * sysdeps/generic/w_dremf.c: Moved to...
2386         * math/w_dremf.c: ...here.
2387         * sysdeps/generic/w_dreml.c: Moved to...
2388         * math/w_dreml.c: ...here.
2389         * sysdeps/generic/w_exp10.c: Moved to...
2390         * math/w_exp10.c: ...here.
2391         * sysdeps/generic/w_exp10f.c: Moved to...
2392         * math/w_exp10f.c: ...here.
2393         * sysdeps/generic/w_exp10l.c: Moved to...
2394         * math/w_exp10l.c: ...here.
2395         * sysdeps/generic/w_exp2.c: Moved to...
2396         * math/w_exp2.c: ...here.
2397         * sysdeps/generic/w_exp2f.c: Moved to...
2398         * math/w_exp2f.c: ...here.
2399         * sysdeps/generic/w_exp2l.c: Moved to...
2400         * math/w_exp2l.c: ...here.
2401         * sysdeps/generic/w_expl.c: Moved to...
2402         * math/w_expl.c: ...here.
2403         * sysdeps/generic/w_fmod.c: Moved to...
2404         * math/w_fmod.c: ...here.
2405         * sysdeps/generic/w_fmodf.c: Moved to...
2406         * math/w_fmodf.c: ...here.
2407         * sysdeps/generic/w_fmodl.c: Moved to...
2408         * math/w_fmodl.c: ...here.
2409         * sysdeps/generic/w_hypot.c: Moved to...
2410         * math/w_hypot.c: ...here.
2411         * sysdeps/generic/w_hypotf.c: Moved to...
2412         * math/w_hypotf.c: ...here.
2413         * sysdeps/generic/w_hypotl.c: Moved to...
2414         * math/w_hypotl.c: ...here.
2415         * sysdeps/generic/w_j0.c: Moved to...
2416         * math/w_j0.c: ...here.
2417         * sysdeps/generic/w_j0f.c: Moved to...
2418         * math/w_j0f.c: ...here.
2419         * sysdeps/generic/w_j0l.c: Moved to...
2420         * math/w_j0l.c: ...here.
2421         * sysdeps/generic/w_j1.c: Moved to...
2422         * math/w_j1.c: ...here.
2423         * sysdeps/generic/w_j1f.c: Moved to...
2424         * math/w_j1f.c: ...here.
2425         * sysdeps/generic/w_j1l.c: Moved to...
2426         * math/w_j1l.c: ...here.
2427         * sysdeps/generic/w_jn.c: Moved to...
2428         * math/w_jn.c: ...here.
2429         * sysdeps/generic/w_jnf.c: Moved to...
2430         * math/w_jnf.c: ...here.
2431         * sysdeps/generic/w_jnl.c: Moved to...
2432         * math/w_jnl.c: ...here.
2433         * sysdeps/generic/w_lgamma.c: Moved to...
2434         * math/w_lgamma.c: ...here.
2435         * sysdeps/generic/w_lgamma_r.c: Moved to...
2436         * math/w_lgamma_r.c: ...here.
2437         * sysdeps/generic/w_lgammaf.c: Moved to...
2438         * math/w_lgammaf.c: ...here.
2439         * sysdeps/generic/w_lgammaf_r.c: Moved to...
2440         * math/w_lgammaf_r.c: ...here.
2441         * sysdeps/generic/w_lgammal.c: Moved to...
2442         * math/w_lgammal.c: ...here.
2443         * sysdeps/generic/w_lgammal_r.c: Moved to...
2444         * math/w_lgammal_r.c: ...here.
2445         * sysdeps/generic/w_log.c: Moved to...
2446         * math/w_log.c: ...here.
2447         * sysdeps/generic/w_log10.c: Moved to...
2448         * math/w_log10.c: ...here.
2449         * sysdeps/generic/w_log10f.c: Moved to...
2450         * math/w_log10f.c: ...here.
2451         * sysdeps/generic/w_log10l.c: Moved to...
2452         * math/w_log10l.c: ...here.
2453         * sysdeps/generic/w_log2.c: Moved to...
2454         * math/w_log2.c: ...here.
2455         * sysdeps/generic/w_log2f.c: Moved to...
2456         * math/w_log2f.c: ...here.
2457         * sysdeps/generic/w_log2l.c: Moved to...
2458         * math/w_log2l.c: ...here.
2459         * sysdeps/generic/w_logf.c: Moved to...
2460         * math/w_logf.c: ...here.
2461         * sysdeps/generic/w_logl.c: Moved to...
2462         * math/w_logl.c: ...here.
2463         * sysdeps/generic/w_pow.c: Moved to...
2464         * math/w_pow.c: ...here.
2465         * sysdeps/generic/w_powf.c: Moved to...
2466         * math/w_powf.c: ...here.
2467         * sysdeps/generic/w_powl.c: Moved to...
2468         * math/w_powl.c: ...here.
2469         * sysdeps/generic/w_remainder.c: Moved to...
2470         * math/w_remainder.c: ...here.
2471         * sysdeps/generic/w_remainderf.c: Moved to...
2472         * math/w_remainderf.c: ...here.
2473         * sysdeps/generic/w_remainderl.c: Moved to...
2474         * math/w_remainderl.c: ...here.
2475         * sysdeps/generic/w_scalb.c: Moved to...
2476         * math/w_scalb.c: ...here.
2477         * sysdeps/generic/w_scalbf.c: Moved to...
2478         * math/w_scalbf.c: ...here.
2479         * sysdeps/generic/w_scalbl.c: Moved to...
2480         * math/w_scalbl.c: ...here.
2481         * sysdeps/generic/w_sinh.c: Moved to...
2482         * math/w_sinh.c: ...here.
2483         * sysdeps/generic/w_sinhf.c: Moved to...
2484         * math/w_sinhf.c: ...here.
2485         * sysdeps/generic/w_sinhl.c: Moved to...
2486         * math/w_sinhl.c: ...here.
2487         * sysdeps/generic/w_sqrt.c: Moved to...
2488         * math/w_sqrt.c: ...here.
2489         * sysdeps/generic/w_sqrtf.c: Moved to...
2490         * math/w_sqrtf.c: ...here.
2491         * sysdeps/generic/w_sqrtl.c: Moved to...
2492         * math/w_sqrtl.c: ...here.
2493         * sysdeps/generic/w_tgamma.c: Moved to...
2494         * math/w_tgamma.c: ...here.
2495         * sysdeps/generic/w_tgammaf.c: Moved to...
2496         * math/w_tgammaf.c: ...here.
2497         * sysdeps/generic/w_tgammal.c: Moved to...
2498         * math/w_tgammal.c: ...here.
2499         * sysdeps/generic/wait.c: Moved to...
2500         * posix/wait.c: ...here.
2501         * sysdeps/generic/wait3.c: Moved to...
2502         * posix/wait3.c: ...here.
2503         * sysdeps/generic/wait4.c: Moved to...
2504         * posix/wait4.c: ...here.
2505         * sysdeps/generic/waitid.c: Moved to...
2506         * posix/waitid.c: ...here.
2507         * sysdeps/generic/waitpid.c: Moved to...
2508         * posix/waitpid.c: ...here.
2509         * sysdeps/generic/wcstoimax.c: Moved to...
2510         * stdlib/wcstoimax.c: ...here.
2511         * sysdeps/generic/wcstol.c: Moved to...
2512         * wcsmbs/wcstol.c: ...here.
2513         * sysdeps/generic/wcstol_l.c: Moved to...
2514         * wcsmbs/wcstol_l.c: ...here.
2515         * sysdeps/generic/wcstoll.c: Moved to...
2516         * wcsmbs/wcstoll.c: ...here.
2517         * sysdeps/generic/wcstoll_l.c: Moved to...
2518         * wcsmbs/wcstoll_l.c: ...here.
2519         * sysdeps/generic/wcstoul.c: Moved to...
2520         * wcsmbs/wcstoul.c: ...here.
2521         * sysdeps/generic/wcstoul_l.c: Moved to...
2522         * wcsmbs/wcstoul_l.c: ...here.
2523         * sysdeps/generic/wcstoull.c: Moved to...
2524         * wcsmbs/wcstoull.c: ...here.
2525         * sysdeps/generic/wcstoull_l.c: Moved to...
2526         * wcsmbs/wcstoull_l.c: ...here.
2527         * sysdeps/generic/wcstoumax.c: Moved to...
2528         * stdlib/wcstoumax.c: ...here.
2529         * sysdeps/generic/wordcopy.c: Moved to...
2530         * string/wordcopy.c: ...here.
2531         * sysdeps/generic/wordexp.c: Moved to...
2532         * posix/wordexp.c: ...here.
2533         * sysdeps/generic/write.c: Moved to...
2534         * io/write.c: ...here.
2535         * sysdeps/generic/writev.c: Moved to...
2536         * misc/writev.c: ...here.
2537         * sysdeps/generic/xmknod.c: Moved to...
2538         * io/xmknod.c: ...here.
2539         * sysdeps/generic/xmknodat.c: Moved to...
2540         * io/xmknodat.c: ...here.
2541         * sysdeps/generic/xpg-strerror.c: Moved to...
2542         * string/xpg-strerror.c: ...here.
2543         * sysdeps/generic/xstat.c: Moved to...
2544         * io/xstat.c: ...here.
2545         * sysdeps/generic/xstat64.c: Moved to...
2546         * io/xstat64.c: ...here.
2547         * catgets/gencat.c: Use "config.h" to refer to the local config.h file.
2548         * stdlib/stdtod_l.c: Use "..." for gmp-impl.h and longlong.h headers.
2549         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust for files moving
2550         out of sysdeps/generic.
2551         * sysdeps/ieee754/ldbl-96/strtold_l.c: Likewise.
2552         * sysdeps/powerpc/elf/libc-start.c: Likewise.
2553         * sysdeps/unix/sysv/linux/dl-sbrk.c: Likewise.
2554         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
2555         * sysdeps/unix/sysv/linux/segfault.c: Likewise.
2556         * sysdeps/unix/sysv/linux/sigreturn.c: Likewise.
2557         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
2558         * sysdeps/unix/sysv/linux/updwtmp.c: Likewise.
2559         * sysdeps/unix/sysv/linux/utmp_file.c: Likewise.
2560         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
2561         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
2562         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Likewise.
2563         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
2564         * sysdeps/wordsize-32/llabs.c: Likewise.
2565         * sysdeps/wordsize-32/lldiv.c: Likewise.
2566         * sysdeps/wordsize-64/glob.c: Likewise.
2567         * sysdeps/wordsize-64/labs.c: Likewise.
2568         * sysdeps/wordsize-64/ldiv.c: Likewise.
2569         * sysdeps/wordsize-64/strtol.c: Likewise.
2570         * sysdeps/wordsize-64/strtol_l.c: Likewise.
2571         * sysdeps/wordsize-64/strtoul.c: Likewise.
2572         * sysdeps/wordsize-64/strtoul_l.c: Likewise.
2573         * sysdeps/wordsize-64/wcstol.c: Likewise.
2574         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
2575         * sysdeps/wordsize-64/wcstoul.c: Likewise.
2576         * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
2577         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2578         * wcsmbs/Makefile (strtox-CFLAGS): remove -I../stdlib.
2579         (CPPFLAGS-wcstold_l.c): Add -I../stdlib.
2580
2581 2005-12-13  Roland McGrath  <roland@redhat.com>
2582
2583         * sysdeps/generic/Makefile: Remove remaining bits/endian.h cruft.
2584
2585 2005-12-13  Ulrich Drepper  <drepper@redhat.com>
2586
2587         * sysdeps/generic/signame.c: Removed.
2588         * sysdeps/generic/signame.h: Removed.
2589         * sysdeps/generic/configure.in: Removed.
2590         * sysdeps/generic/Dist: Remove these files.
2591
2592         * sysdeps/generic/det_endian.c: Removed.
2593         * sysdeps/generic/Makefile: Remove rule to build it.
2594         * sysdeps/generic/Dist: Don't distribute it.
2595
2596 2005-12-13  Roland McGrath  <roland@redhat.com>
2597
2598         * sysdeps/powerpc/dl-procinfo.c: New file.
2599         * sysdeps/powerpc/dl-procinfo.h: New file.
2600
2601 2005-12-12  Ulrich Drepper  <drepper@redhat.com>
2602
2603         * io/sys/stat.h: Add restrict to fstatat declarations.
2604
2605 2005-12-10  Ulrich Drepper  <drepper@redhat.com>
2606
2607         * posix/regex_internal.h: Include <stdint.h> if available.
2608
2609 2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
2610
2611         * posix/regex_internal.h (SIZE_MAX): Provide a default definition.
2612
2613 2005-12-08  Ulrich Drepper  <drepper@redhat.com>
2614
2615         * nis/nis_call.c (inetstr2int): Optimize.
2616
2617 2005-12-08  Jakub Jelinek  <jakub@redhat.com>
2618
2619         * nis/nis_call.c (__nisbind_create): Remove __nisbind_destroy,
2620         ->clnt cannot be != NULL.
2621         (__do_niscall): No need to use __nisbind_destroy, __nisbind_next
2622         did it.
2623         (__nisbind_connect): use_auth is already TRUE, otherwise we would
2624         not be here.
2625
2626         * nis/nis_lookup.c (nis_lookup): Remove unnecessary
2627         __nisbind_destroy calls.  __nisbind_next does all that.
2628
2629         * nis/ypclnt.c (yp_update): Before trying default authentication,
2630         free DES descriptor.
2631
2632 2005-12-07  Jakub Jelinek  <jakub@redhat.com>
2633
2634         * nis/nis_table.c (nis_list): Fix memory handling in error case.
2635
2636 2005-12-07  Ulrich Drepper  <drepper@redhat.com>
2637
2638         * nis/nis_table.c (nis_list): Remove have_tablepath, just use the
2639         pointer value itself.
2640
2641 2005-12-06  Ulrich Drepper  <drepper@redhat.com>
2642
2643         * catgets/gencat.c: Use GPL, not LGPL.
2644         * elf/cache.c: Likewise.
2645         * elf/chroot_canon.c: Likewise.
2646         * elf/ldconfig.c: Likewise.
2647         * elf/readlib.c: Likewise.
2648         * iconv/dummy-repertoire.c: Likewise.
2649         * iconv/iconv_charmap.c: Likewise.
2650         * iconv/iconv_prog.c: Likewise.
2651         * iconv/iconvconfig.c: Likewise.
2652         * locale/programs/3level.h: Likewise.
2653         * locale/programs/charmap-dir.c: Likewise.
2654         * locale/programs/charmap-dir.h: Likewise.
2655         * locale/programs/charmap-kw.gperf: Likewise.
2656         * locale/programs/charmap.c: Likewise.
2657         * locale/programs/charmap.h: Likewise.
2658         * locale/programs/config.h: Likewise.
2659         * locale/programs/ld-address.c: Likewise.
2660         * locale/programs/ld-collate.c: Likewise.
2661         * locale/programs/ld-ctype.c: Likewise.
2662         * locale/programs/ld-identification.c: Likewise.
2663         * locale/programs/ld-measurement.c: Likewise.
2664         * locale/programs/ld-messages.c: Likewise.
2665         * locale/programs/ld-monetary.c: Likewise.
2666         * locale/programs/ld-name.c: Likewise.
2667         * locale/programs/ld-numeric.c: Likewise.
2668         * locale/programs/ld-paper.c: Likewise.
2669         * locale/programs/ld-telephone.c: Likewise.
2670         * locale/programs/ld-time.c: Likewise.
2671         * locale/programs/linereader.c: Likewise.
2672         * locale/programs/linereader.h: Likewise.
2673         * locale/programs/locale-spec.c: Likewise.
2674         * locale/programs/locale.c: Likewise.
2675         * locale/programs/localedef.c: Likewise.
2676         * locale/programs/localedef.h: Likewise.
2677         * locale/programs/locarchive.c: Likewise.
2678         * locale/programs/locfile-kw.gperf: Likewise.
2679         * locale/programs/locfile-token.h: Likewise.
2680         * locale/programs/locfile.c: Likewise.
2681         * locale/programs/locfile.h: Likewise.
2682         * locale/programs/repertoire.c: Likewise.
2683         * locale/programs/repertoire.h: Likewise.
2684         * locale/programs/simple-hash.c: Likewise.
2685         * locale/programs/simple-hash.h: Likewise.
2686         * locale/programs/xmalloc.c: Likewise.
2687         * locale/programs/xstrdup.c: Likewise.
2688         * malloc/memusagestat.c: Likewise.
2689         * nscd/aicache.c: Likewise.
2690         * nscd/cache.c: Likewise.
2691         * nscd/connections.c: Likewise.
2692         * nscd/dbg_log.c: Likewise.
2693         * nscd/gai.c: Likewise.
2694         * nscd/getgrgid_r.c: Likewise.
2695         * nscd/getgrnam_r.c: Likewise.
2696         * nscd/gethstbyad_r.c: Likewise.
2697         * nscd/gethstbynm2_r.c: Likewise.
2698         * nscd/getpwnam_r.c: Likewise.
2699         * nscd/getpwuid_r.c: Likewise.
2700         * nscd/grpcache.c: Likewise.
2701         * nscd/hstcache.c: Likewise.
2702         * nscd/initgrcache.c: Likewise.
2703         * nscd/mem.c: Likewise.
2704         * nscd/nscd.c: Likewise.
2705         * nscd/nscd_conf.c: Likewise.
2706         * nscd/pwdcache.c: Likewise.
2707         * posix/getconf.c: Likewise.
2708         * sysdeps/generic/nscd_setup_thread.c: Likewise.
2709         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2710
2711         * sunrpc/auth_des.c (authdes_pk_create): If conversation key
2712         cannot be created, free memory.
2713         Reported by rprasad@vmware.com.
2714
2715 2005-11-15  Mike Frysinger  <vapier@gentoo.org>
2716
2717         * sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor
2718         protection and allow pthread.h to include bits/setjmp.h as well as
2719         setjmp.h.
2720         * sysdeps/m68k/bits/setjmp.h: Likewise.
2721         * sysdeps/s390/bits/setjmp.h: Make sure only setjmp.h or pthread.h
2722         are allow to include bits/setjmp.h.
2723         * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Cast rhs to match lhs
2724         cast of address.
2725         * sysdeps/sh/bits/setjmp.h: Likewise.
2726
2727 2005-11-12  Jim Meyering  <jim@meyering.net>
2728
2729         * sysdeps/unix/opendir.c (__alloc_dir): Declare STATP parameter
2730         to be pointer to const.
2731         * include/dirent.h: Update decl.
2732
2733 2005-12-05  Roland McGrath  <roland@redhat.com>
2734
2735         * hurd/hurdmalloc.c: Remove $ tag $ magic.
2736         * mach/err_kern.sub: Likewise.
2737         * mach/err_server.sub: Likewise.
2738         * mach/err_us.sub: Likewise.
2739         * mach/error_compat.c: Likewise.
2740         * mach/errorlib.h: Likewise.
2741         * mach/errstring.c: Likewise.
2742         * mach/mach/error.h: Likewise.
2743         * mach/mach_error.c: Likewise.
2744         * mach/mach_error.h: Likewise.
2745         * mach/msg-destroy.c: Likewise.
2746         * mach/msgserver.c: Likewise.
2747         * sysdeps/mach/sys/reboot.h: Likewise.
2748
2749         * sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.
2750
2751 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2752
2753         * malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
2754         initialized.  Reported by John Reiser <jreiser@BitWagon.com>.
2755
2756 2005-12-05  Daniel Jacobowitz  <dan@codesourcery.com>
2757
2758         * stdlib/longlong.h: Update from GCC.
2759
2760 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2761
2762         * soft-fp/soft-fp.h: Include <stdlib.h>.
2763
2764         * soft-fp/floatdisf.c (__floatdisf): Return float.
2765
2766 2005-12-05  Roland McGrath  <roland@redhat.com>
2767
2768         * sysdeps/unix/sysv/linux/kernel-features.h
2769         (__ASSUME_POSIX_CPU_TIMERS): New macro, for 2.6.12 and later.
2770
2771 2005-12-03  Ulrich Drepper  <drepper@redhat.com>
2772
2773         * nis/nis_table.c (nis_list): Optimize freeing and reallocation of
2774         result record.
2775
2776         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2777         Better sized buffers.  Correct error case handling.
2778         * nis/nis_error.c (nis_sperror_r): Let snprintf determine whether
2779         there is an overflow.
2780         * nis/nss_nisplus/nisplus-service.c: Fix locking to use
2781         _nss_create_tablename.  Avoid unnecessary copying, remove
2782         unnecessary variables, general cleanup.
2783         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2784         * nis/nss_nisplus/nisplus-proto.c: Likewise..
2785         * nis/nss_nisplus/nisplus-network.c: Fix locking to use
2786         _nss_create_tablename.  Avoid unnecessary copying, general cleanup.
2787         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2788         Removed.
2789         Fix locking to use _nss_create_tablename.  Avoid unnecessary copying,
2790         general cleanup.
2791         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_getntohost_r):
2792         Correctly construct request.
2793         Fix locking to use _nss_create_tablename.  Avoid unnecessary copying,
2794         general cleanup.
2795         * nis/nss_nisplus/nisplus-alias.c: Fix locking to use
2796         _nss_create_tablename.  Avoid unnecessary copying, general cleanup.
2797         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_setnetgrent):
2798         Rewrite to use snprintf.
2799         * nis/nss_nisplus/nisplus-publickey.c (_nss_nisplus_netname2user):
2800         Likewise.
2801
2802 2005-12-02  Ulrich Drepper  <drepper@redhat.com>
2803
2804         * nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename):
2805         Renamed from _nss_create_tablename.  Export from file (but not DSO).
2806         (pwd_tablename_val): Renamed from tablename_val, mark hidden.
2807         (pwd_tablename_len): Renamed from tablename_len, mark hidden.
2808         Change all users.
2809         * nis/nss_nisplus/nisplus-spwd.c (_nss_create_tablename): Removed.
2810         Use _nss_pwd_create_tablename now.  Use pwd_tablename_val and
2811         pwd_tablename_len.  Remove unnecessary variables, general cleanup.
2812
2813         * nis/nss_nisplus/nisplus-pwd.c: Fix locking to use
2814         _nss_create_tablename.  Avoid unnecessary copying, remove
2815         unnecessary variables, general cleanup.
2816         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2817
2818         * io/Makefile (routines): Add mknodat, xmknodat, mkdirat, mkfifoat.
2819         (static-only-routines): Add mknodat.
2820         * io/Versions [GLIBC_2.4]: Add mkdirat, mkfifoat, __xmknodat.
2821         * io/sys/stat.h: Declare mkditat, mknodat, mkfifoat, __xmknodat.
2822         Define mknodat inline function.
2823         * include/sys/stat.h: Add hidden proto for __xmknodat.
2824         * sysdeps/generic/mkdirat.c: New file.
2825         * sysdeps/generic/mkfifoat.c: New file.
2826         * sysdeps/generic/mknodat.c: New file.
2827         * sysdeps/generic/xmknodat.c: New file.
2828         * sysdeps/unix/mkfifoat.c: New file.
2829         * sysdeps/unix/sysv/linux/mkdirat.c: New file.
2830         * sysdeps/unix/sysv/linux/xmknodat.c: New file.
2831
2832         * sysdeps/generic/xmknod.c: Add one more parameter check.
2833
2834 2005-11-28  Andreas Jaeger  <aj@suse.de>
2835
2836         * sysdeps/unix/sysv/linux/mips/bits/mman.h (MREMAP_FIXED): Added,
2837         Patch by René Rebe <rene@exactcode.de>.
2838
2839 2005-11-27  Ulrich Drepper  <drepper@redhat.com>
2840
2841         * sysdeps/posix/getaddrinfo.c: Avoid RFC 3484 sorting if there are
2842         multiple return records but only one address.
2843
2844         * sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid some code duplication.
2845
2846 2005-11-27  Roland McGrath  <roland@redhat.com>
2847
2848         * sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.
2849         Reported by René Rebe <rene@exactcode.de>.
2850
2851 2005-11-27  Ulrich Drepper  <drepper@redhat.com>
2852
2853         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Don't cache
2854         euid and egid.
2855
2856         * nis/nis_table.c (nis_list): Add more free calls in error cases.
2857
2858 2005-11-26  Richard Henderson  <rth@redhat.com>
2859
2860         * sysdeps/alpha/strncmp.S: Don't read too much data when pointers
2861         are co-aligned, and count is aligned with the end of the word.
2862
2863 2005-11-26  Ulrich Drepper  <drepper@redhat.com>
2864
2865         * nis/nis_lookup.c (nis_lookup): Mark RPCTIMEOUT as const.  Pretty
2866         printing.
2867
2868         * nis/nis_table.c (__create_ib_request): Use strdupa instead of
2869         variable size array.
2870         (RPCTIMEOUT): Mark as const.
2871
2872         * nis/ypclnt.c (yp_bind_ypbindprog): Initialize clnt_saddr by hand.
2873         (ypdomainname): Renamed from __ypdomainname.  No need for initializer.
2874         (ypbindlist): Renamed from __ypbindlist.
2875         (do_ypcall): Check memory allocation suceeded before calling
2876         yp_bind_ypbindprog.
2877         (yperr_string): Reduce size of function by using only one gettext call.
2878         (ypbinderr_string): Likewise.
2879         (yp_match): Free response in case memory for return value cannot be
2880         allocated.
2881         (yp_first): Likewise.
2882         (yp_next): Likewise.
2883         (do_ypcall_tr): New function which translates error codes as well.
2884         (yp_match, yp_next, yp_master, yp_order, yp_maplist): Use it.
2885         (yp_all): Correct test for invalid parameter.
2886         Pretty printing.
2887         (RPCTIMEOUT, UDPTIMEOUT): Mark as const.
2888
2889 2005-11-25  Richard Henderson  <rth@redhat.com>
2890
2891         * sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo.
2892         (__fxstatat64): Alias from __fxstatat; remove other cnp errors.
2893         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Include sys/cdefs.h
2894         and stddef.h.
2895         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MREMAP_FIXED): Define.
2896
2897 2005-11-25  Ulrich Drepper  <drepper@redhat.com>
2898
2899         * Makeconfig (+cflags): Add -fmerge-all-constants by default.
2900
2901         [BZ #1912]
2902         * nss/function.def: Add entry to use gethostbyname2 for files.
2903
2904 2005-11-25  Thorsten Kukuk  <kukuk@suse.de>
2905
2906         * sysdeps/unix/sysv/linux/fxstatat64.c: Include string.h.
2907
2908 2005-11-25  Ulrich Drepper  <drepper@redhat.com>
2909
2910         [BZ #1926]
2911         * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Change
2912         return value type to match expected type.
2913
2914         [BZ #1925]
2915         * nis/ypclnt.c (yp_order): Correct test for invalid parameter.
2916
2917 2005-11-24  Ulrich Drepper  <drepper@redhat.com>
2918
2919         * scripts/check-c++-types.sh: Improve comments.
2920
2921         * scripts/check-local-headers.sh: New file.
2922         * Makefile (tests): Run check-local-headers.sh.
2923
2924 2005-11-23  Thorsten Kukuk  <kukuk@suse.de>
2925
2926         * include/sys/sendfile.h: New file.
2927
2928 2005-11-24  Andreas Schwab  <schwab@suse.de>
2929
2930         * time/sys/time.h: Remove nonnull attribute from futimesat.
2931
2932 2005-11-22  Ulrich Drepper  <drepper@redhat.com>
2933
2934         * nscd/connections.c (sendfileall): Define.
2935         (handle_request): Use it instead of sendfile call.
2936         * nscd/nscd-client.h: Declare sendfileall.
2937         * nscd/aicache.c: Use sendfileall instead of sendfile.
2938         * nscd/grpcache.c: Likewise.
2939         * nscd/hstcache.c: Likewise.
2940         * nscd/initgrcache.c: Likewise.
2941         * nscd/pwdcache.c: Likewise.
2942
2943         [BZ #1908]
2944         * manual/install.texi (Tools for Compilation): Require gawk.
2945
2946 2005-11-22  Jakub Jelinek  <jakub@redhat.com>
2947
2948         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2949         unused is_static field from slotinfo array.
2950
2951 2005-11-21  Jakub Jelinek  <jakub@redhat.com>
2952
2953         * sunrpc/bindrsvprt.c (bindresvport): Wrap around to startport
2954         in the loop if port is bigger than endport, initially set to
2955         ENDPORT.  When changing startport, set endport and port
2956         appropriately.
2957
2958 2005-11-21  Ulrich Drepper  <drepper@redhat.com>
2959
2960         * Makefile.in: Remove RCS ID line.
2961         * config-name.in: Likewise.
2962         * config.make.in: Likewise.
2963         * malloc/arena.c: Likewise.
2964         * malloc/hooks.c: Likewise.
2965         * malloc/malloc.c: Likewise.
2966         * manual/dir: Likewise.
2967         * math/math_private.h: Likewise.
2968         * resolv/gethnamaddr.c: Likewise.
2969         * scripts/mkinstalldirs: Likewise.
2970         * sunrpc/rpc_clntout.c: Likewise.
2971         * sunrpc/rpc_cout.c: Likewise.
2972         * sunrpc/rpc_hout.c: Likewise.
2973         * sunrpc/rpc_main.c: Likewise.
2974         * sunrpc/rpc_parse.c: Likewise.
2975         * sunrpc/rpc_sample.c: Likewise.
2976         * sunrpc/rpc_scan.c: Likewise.
2977         * sunrpc/rpc_svcout.c: Likewise.
2978         * sunrpc/rpc_tblout.c: Likewise.
2979         * sunrpc/rpc_util.c: Likewise.
2980         * sysdeps/unix/sysv/linux/sys/quote.h: Likewise.
2981
2982         * nscd/nscd_helper.c: Pretty printing.
2983
2984 2005-11-19  Roland McGrath  <roland@redhat.com>
2985
2986         * elf/elf.h: Revert last change.
2987
2988 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
2989
2990         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (shmatt_t): New type.
2991         (struct shmid_ds): Use it for shm_nattch field.
2992
2993 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2994
2995         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): If FILE is NULL,
2996         set access and modification times of the file referenced by FD.
2997         * sysdeps/generic/futimesat.c (futimesat): Don't return EINVAL if
2998         FILE is NULL.  Don't check FD if FILE is absolute path.
2999
3000 2005-11-19  Ulrich Drepper  <drepper@redhat.com>
3001
3002         * nscd/nscd_gethst_r.c (nscd_gethst_r): Avoid unnecesary read call
3003         if there are no aliases.
3004
3005         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-connections.c,
3006         CFLAGS-pwdcache.c, CFLAGS-grpcache.c, CFLAGS-hstcache.c,
3007         CFLAGS-aicache.c, CFLAGS-initgrcache.c): Add -DHAVE_SENDFILE.
3008         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
3009         Define.
3010         * nscd/pwdcache.c [HAVE_SENDFILE]: Include <sys/sendfile.h> and
3011         <kernel-features.h>.
3012         [HAVE_SENDFILE] (cache_addpw): Use sendfile to transmit positive
3013         result.
3014         * nscd/grpcache.c: Likewise.
3015         * nscd/hstcache.c: Likewise.
3016         * nscd/aicache.c: Likewise.
3017         * nscd/initgrcache.c: Likewise.
3018         * nscd/connectionc.c: Likewise.
3019
3020 2005-11-18  Andreas Schwab  <schwab@suse.de>
3021
3022         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove useless alias.
3023
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Handle
3025         NO_WEAK_ALIAS.
3026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
3027
3028 2005-11-18  Paul Brook  <paul@codesourcery.com>
3029
3030         * sysdeps/unix/sysv/linux/m68k/bits/mman.h (MREMAP_FIXED): New macro.
3031
3032         * nscd/grpcache.c: Include <sys/socket.h>.
3033         * nscd/nscd_stat.c: Likewise.
3034         * nscd/pwdcache.c: Likewise.
3035         * sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.
3036
3037 2005-11-17  Ulrich Drepper  <drepper@redhat.com>
3038
3039         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Define SHM_NORESERVE.
3040         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3041         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3042         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
3043         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3044         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3045         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3046         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3047
3048 2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
3049
3050         [BZ #1877]
3051         * string/test-strncmp.c (do_test_limit): Handle zero length and
3052         non-zero align values.
3053         (test_main): Correct do_test_limit tests for 64-bit.
3054
3055 2005-11-15  Steven Munroe  <sjmunroe@us.ibm.com>
3056
3057         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_HAS_SPE,
3058         PPC_FEATURE_HAS_EFP_SINGLE, PPC_FEATURE_HAS_EFP_DOUBLE,
3059         PPC_FEATURE_NO_TB, PPC_FEATURE_POWER4, PPC_FEATURE_POWER5,
3060         PPC_FEATURE_POWER5_PLUS, PPC_FEATURE_CELL, PPC_FEATURE_970):
3061         Define to match 2.6.15 kernel.
3062
3063         * sysdeps/powerpc/fpu/e_sqrt.c: Remove dl-procinfo.h include.
3064         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3065         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
3066
3067 2005-11-17  Roland McGrath  <roland@redhat.com>
3068
3069         * elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.
3070
3071 2005-11-17  Jakub Jelinek  <jakub@redhat.com>
3072
3073         * io/sys/stat.h (fstatat): If __REDIRECT_NTH isn't defined,
3074         define fstatat to fstatat64.
3075
3076 2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
3077
3078         [BZ #1877]
3079         * string/test-strncmp.c (do_test_limit): New function.
3080         (do_test) Add cast to eliminate compiler warnings.
3081         (do_random_tests) Add cast to eliminate compiler warnings.
3082         (test_main) Add do_test_limit tests.
3083         * sysdeps/powerpc/powerpc32/strncmp.S: Test length before unaligned
3084         load.
3085         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3086
3087 2005-11-17  Ulrich Drepper  <drepper@redhat.com>
3088
3089         * include/resolv.h: Include <stdbool.h>.
3090         Patch by Paul Brook.
3091
3092         * io/sys/stat.h: Use __const not const in fstatat prototypes.
3093
3094 2005-11-08  H.J. Lu  <hongjiu.lu@intel.com>
3095
3096         * sysdeps/wordsize-32/Makefile (CPPFLAGS-divdi3.c): Set to
3097         -Din_divdi3_c.
3098         * sysdeps/wordsize-32/symbol-hacks.h: Skip if in_divdi3_c is defined.
3099
3100 2005-11-16  Jakub Jelinek  <jakub@redhat.com>
3101
3102         * sysdeps/unix/sysv/linux/fchownat.c: Include string.h.
3103         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
3104         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
3105         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
3106         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
3107         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
3108         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
3109         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
3110
3111 2005-11-16  Ulrich Drepper  <drepper@redhat.com>
3112
3113         * iconvdata/Makefile (modules): Add ISO_11548-1.
3114         (distribute): Add iso_11548-1.c.
3115         * iconvdata/gconv-modules: Add entries for ISO 11548-1.
3116         * iconvdata/TESTS: Add entry for ISO 11548-1.
3117
3118         [BZ 1872]
3119         * iconvdata/iso_11548-1.c: New file.
3120         * iconvdata/testdata/ISO_11548-1: New file.
3121         * iconvdata/testdata/ISO_11548-1..UTF8: New file.
3122         Patch by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3123
3124 2005-11-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3125
3126         * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Remove incorrect &.
3127
3128 2005-11-15  Ulrich Drepper  <drepper@redhat.com>
3129
3130         [BZ 1865]
3131         * inet/netinet/icmp6.h: More updates for RFC3542.
3132         * inet/netinet/ip6.h: Likewise.
3133         * sysdeps/unix/sysv/linux/bits/in.h: Adjust for current kernel sources.
3134         Patch by David L Stevens <dlstevens@us.ibm.com>.
3135
3136         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
3137         Return -1 on failure.
3138         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
3139         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise..
3140         * sysdeps/unix/sysv/linux/fxstatat64.c [__ASSUME_STAT64_SYSCALL]
3141         (__fxstatat64): Handle errors.
3142
3143         * io/sys/poll.h: Add comment explaining poll is a cancellation  point.
3144
3145         * sysdeps/unix/sysv/linux/syscalls.list (epoll_wait): Align with
3146         poll, make cancelable.
3147         * sysdeps/unix/sysv/linux/sys/epoll.h: Add comment explaining
3148         epoll_wait is a cancellation point.
3149
3150 2005-11-15  Jakub Jelinek  <jakub@redhat.com>
3151
3152         * io/sys/stat.h (fstatat): Don't use __THROW together with
3153         __REDIRECT_NTH.
3154
3155 2005-11-14  Ulrich Drepper  <drepper@redhat.com>
3156
3157         * elf/dl-open.c [!SHARED]: Remove _dl_tls_static_size definition.
3158         * sysdeps/generic/libc-tls.c: Initialize _dl_tls_static_size here.
3159
3160 2005-11-11  Ulrich Drepper  <drepper@redhat.com>
3161
3162         * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64,
3163         fchownat, and unlinkat.
3164         (static-only-routines): Add fstatat and fstatat64.
3165         (tests): Add tst-unlinkat, tst-fstatat, tst-futimesat, tst-renameat,
3166         and tst-fchownat.
3167         * io/Versions [GLIBC_2.4]: Add fchownat, __fxstatat, __fxstatat64,
3168         and unlinkat.
3169         * io/fcntl.h: Define AT_FDCWD, AT_SYMLINK_NOFOLLOW, and AT_REMOVEDIR.
3170         * io/fstatat.c: New file.
3171         * io/fstatat64.c: New file.
3172         * io/sys/stat.h: Declare fstatat, fstatat64, __fxstatat, __fxstatat64
3173         and define fstatat and fstatat64 inline functions.
3174         * libio/stdio.h: Declare renameat.
3175         * misc/Makefile (routines): Add futimesat.
3176         * misc/Versions [GLIBC_2.4]: Add futimesat.
3177         * posix/unistd.h: Declare fchownat and unlinkat.
3178         * stdio-common/Makefile (routines): Add renameat.
3179         * stdio-common/Versions [GLIBC_2.4]: Add renameat.
3180         * sysdeps/generic/fchownat.c: New file.
3181         * sysdeps/generic/futimesat.c: New file.
3182         * sysdeps/generic/fxstatat.c: New file.
3183         * sysdeps/generic/fxstatat64.c: New file.
3184         * sysdeps/generic/renameat.c: New file.
3185         * sysdeps/generic/unlinkat.c: New file.
3186         * sysdeps/unix/sysv/linux/fchownat.c: New file.
3187         * sysdeps/unix/sysv/linux/futimesat.c: New file.
3188         * sysdeps/unix/sysv/linux/fxstatat.c: New file.
3189         * sysdeps/unix/sysv/linux/fxstatat64.c: New file.
3190         * sysdeps/unix/sysv/linux/renameat.c: New file.
3191         * sysdeps/unix/sysv/linux/unlinkat.c: New file.
3192         * sysdeps/unix/sysv/linux/alpha/fxstatat.c: New file.
3193         * sysdeps/unix/sysv/linux/i386/fchownat.c: New file.
3194         * sysdeps/unix/sysv/linux/i386/fxstatat.c: New file.
3195         * sysdeps/unix/sysv/linux/m68k/fchownat.c: New file.
3196         * sysdeps/unix/sysv/linux/m68k/fxstatat.c: New file.
3197         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: New file.
3198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstatat.c: New file.
3199         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: New file.
3200         * sysdeps/unix/sysv/linux/s390/s390-32/fxstatat.c: New file.
3201         * sysdeps/unix/sysv/linux/sh/fchownat.c: New file.
3202         * sysdeps/unix/sysv/linux/sh/fxstatat.c: New file.
3203         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: New file.
3204         * sysdeps/unix/sysv/linux/sparc/sparc32/fxstatat.c: New file.
3205         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c: New file.
3206         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: New file.
3207         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c: New file.
3208         * time/sys/time.h: Declare futimesat.
3209         * include/fcntl.h: Declare __atfct_seterrno.
3210         * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): New function.
3211         Split out from openat code and called.
3212         (do_test): Allow openat to fail with ENOSYS.  Handle AT_FDCWD.
3213         * sysdeps/generic/openat.c: Handle AT_FDCWD.
3214         * sysdeps/generic/openat64.c: Likewise.
3215         * io/tst-unlinkat.c: New file.
3216         * io/tst-fstatat.c: New file.
3217         * io/tst-futimesat.c: New file.
3218         * io/tst-renameat.c: New file.
3219         * io/tst-fchownat.c: New file.
3220         * io/tst-openat.c: Don't fail if openat is not implemented.
3221
3222         * sysdeps/unix/sysv/linux/powerpc/chown.c: Don't provide backward
3223         compatibility code if new kernel is guaranteed.
3224
3225         * time/sys/time.h: Add a few nonnull attributes.
3226
3227 2005-11-09  Ulrich Drepper  <drepper@redhat.com>
3228
3229         * io/fcntl.h: Declare openat and openat64.
3230         * io/Makefile (routines): Add openat and openat64.
3231         (tests): Add tst-openat.
3232         * io/Versions: Add openat and openat64 for GLIBC_2.4.
3233         * sysdeps/generic/openat.c: New file.
3234         * sysdeps/generic/openat64.c: New file.
3235         * sysdeps/unix/sysv/linux/openat.c: New file.
3236         * sysdeps/unix/sysv/linux/openat64.c: New file.
3237         * io/tst-openat.c: New file.
3238
3239         * sysdeps/generic/check_fds.c (check_one_fd): For writable
3240         descriptors, use /dev/full.
3241         (__libc_check_standard_fds): Reverse modes so that common operations on
3242         the descriptors fail.
3243         * sysdeps/unix/sysv/linux/device-nrs.h: Add info for /dev/full.
3244
3245 2005-11-07  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3246
3247         * elf/elf.h (R_M32R_REL32): New macro.
3248
3249 2005-11-05  Marcus Brinkmann  <marcus@gnu.org>
3250
3251         * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
3252         (S_ISPARE): Unset the S_IMMAP0 flag.
3253
3254 2005-11-07  Roland McGrath  <roland@redhat.com>
3255
3256         * configure.in: Grok --with-cpu=CPU option.  If given, search for
3257         sysdeps/.../machine/CPU subdirs, and give error if none are found.
3258         * configure: Regenerated.
3259         * config.make.in (with-cpu): New substituted variable.
3260         * Makeconfig (+cflags): Add -mcpu=$(with-cpu) if set.
3261
3262         * malloc/malloc.c (munmap_chunk): Suppress warnings from last change.
3263
3264         * sysdeps/unix/bsd/sun: Directory and all subdirectories removed,
3265         saved in ports repository.
3266         * sysdeps/unix/sysv/linux/tcflush.c: Rewritten.
3267         * sysdeps/unix/sysv/linux/tcflow.c: Rewritten.
3268
3269 2005-11-06  Ulrich Drepper  <drepper@redhat.com>
3270
3271         * malloc/malloc.c (munmap_chunk): Add sanity checks.
3272
3273         * sysdeps/pthread/configure: Fix comment.
3274
3275 2005-11-05  Ulrich Drepper  <drepper@redhat.com>
3276
3277         * configure.in: Remove gnu_as definition and everything using it.
3278         * config.make.in: Remove gnu-as.
3279         * config.h.in: Remove HAVE_GNU_AS.
3280
3281         * configure.in: Remove gnu_ld definition and everything using it.
3282         * config.h.in: Remove HAVE_GNU_LD.
3283         * config.make.in: Remove gnu-ld.
3284         * csu/Makefile: Remove use of gnu-ld.
3285         * csu/munch.awk: Removed.
3286         * csu/munch-tmpl.c: Removed.
3287         * include/libc-symbols.h: Remove use of HAVE_GNU_LD.
3288         * posix/execl.c: Likewise.
3289         * posix/execv.c: Likewise.
3290         * stdio-common/psignal.c: Likewise.
3291         * stdlib/exit.c: Likewise.
3292         * string/strsignal.c: Likewise.
3293         * string/tester.c: Likewise.
3294         * sysdeps/generic/errlist.c: Likewise.
3295         * sysdeps/generic/getenv.c: Likewise.
3296         * sysdeps/generic/getgroups.c: Likewise.
3297         * sysdeps/generic/init-posix.c: Likewise.
3298         * sysdeps/posix/gettimeofday.c: Likewise.
3299         * sysdeps/posix/system.c: Likewise.
3300         * sysdeps/unix/bsd/init-posix.c: Likewise.
3301         * sysdeps/unix/bsd/ulimit.c: Likewise.
3302         * sysdeps/unix/bsd/sun/m68k/brk.S: Likewise.
3303         * sysdeps/unix/bsd/sun/m68k/sethostid.S: Likewise.
3304         * sysdeps/unix/bsd/sun/sparc/sethostid.S: Likewise.
3305         * sysdeps/unix/i386/brk.S: Likewise.
3306         * sysdeps/unix/sparc/brk.S: Likewise.
3307
3308         * configure.in: Remove test for support for subtracting local labels.
3309         * config.h.in: Remove HAVE_SUBTRACT_LOCAL_LABELS.
3310         * stdio-common/vfprintf.c: Remove test of
3311         HAVE_SUBTRACT_LOCAL_LABELS.
3312
3313         * configure.in: If init_array/fini_array support is not available,
3314         bail out.
3315         * config.h.in: Remove trace of optional init_array/fini_array support.
3316         * config.make.in: Likewise.
3317         * csu/elf-init.c: Likewise.
3318         * dlfcn/dlfcn.c: Likewise.
3319         * elf/soinit.c: Likewise.
3320         * sysdeps/ia64/elf/initfinit.c: Likewise.
3321
3322 2005-11-04  Roland McGrath  <roland@redhat.com>
3323
3324         * sysdeps/i386/configure.in (libc_mtune_example): Variable removed.
3325         * sysdeps/i386/configure: Regenerated.
3326
3327         [BZ #1089]
3328         * configure.in: Change order of add-on sysdeps directories,
3329         so they are interleaved with main sysdeps directories.
3330         * configure: Regenerated.
3331
3332 2005-11-03  Roland McGrath  <roland@redhat.com>
3333
3334         * NEWS: Synch with 2.3 branch updates.
3335
3336 2005-11-03  Ulrich Drepper  <drepper@redhat.com>
3337
3338         * sunrpc/svc.c (svc_getreq_poll): Fix inefficient loop test.
3339
3340 2005-11-03  Roland McGrath  <roland@redhat.com>
3341
3342         [BZ #1548]
3343         * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,
3344         make sure constant is long.
3345         From Jay Lan <jlan@engr.sgi.com>.
3346
3347 2005-11-03  Ulrich Drepper  <drepper@redhat.com>
3348
3349         [BZ #1774]
3350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use simple
3351         gethostbyname2 lookup if AI_V4MAPPED|AI_ALL is set.
3352
3353         * sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid alloca when possible
3354         while looking for scope delimiter.
3355         Some pretty printing.
3356
3357 2005-10-31  Steven Munroe  <sjmunroe@us.ibm.com>
3358
3359         * sysdeps/powerpc/powerpc64/Makefile
3360         (sysdep_routines, elide-routines.os): Add hp-timing.
3361         * sysdeps/powerpc/powerpc64/hp-timing.c: New file.
3362         * sysdeps/powerpc/powerpc64/hp-timing.h: New file.
3363         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: New file.
3364
3365 2005-10-31  Ulrich Drepper  <drepper@redhat.com>
3366
3367         * resolv/res_init.c (__res_iclose): New function.  Broken out of
3368         res_nclose.  Take addition parameter which determines whether
3369         addresses should be freed.
3370         (res_nclose): Call __res_iclose.
3371         (res_thread_freeres): Likewise.
3372         * resolv/res_data.c (res_close): Call __res_iclose.
3373         * resolv/res_libc.c (res_init): No need to separately free the
3374         addresses.
3375         (__res_maybe_init): Likewise.
3376         * resolv/res_send.c: Use __res_iclose instead of res_nclose.
3377         * resolv/Versions [GLIBC_PRIVATE]: Add __res_iclose.
3378         * include/resolv.h: Declare __res_iclose.
3379         Add libc_hidden_proto for __res_iclose.
3380         * hesiod/hesiod.c (__hesiod_res_set): No need to free name server
3381         addresses here again.
3382
3383         [BZ #1579]
3384         * debug/execinfo.h: Change backtrace_symbols_fd comment.
3385
3386 2005-10-24  H.J. Lu  <hongjiu.lu@intel.com>
3387
3388         * sysdeps/ia64/fpu/libm-symbols.h (WEAK_LIBM_ENTRY): Add "__"
3389         prefix to LOCAL_LIBM_ENTRY.
3390         (WEAK_LIBM_END): Add "__" prefix to LOCAL_LIBM_END.
3391
3392 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3393
3394         * elf/dl-conflict.c (_dl_resolve_conflicts): Use _dl_debug_printf
3395         instead of _dl_printf to print conflict processing debug message.
3396         Reported by John Reiser <jreiser@BitWagon.com>.
3397
3398 2005-10-30  Ulrich Drepper  <drepper@redhat.com>
3399
3400         * misc/hsearch_r.c (hsearch_r): Remove duplicate test.
3401         Patch by Chris Caputo <ccaputo@alt.net>.
3402
3403 2005-10-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3404
3405         * sysdeps/unix/sh/sysdep.S: Remove unnecessary weak_alias.
3406         * sysdeps/unix/sysv/linux/sh/socket.S: Honor NO_WEAK_ALIAS.
3407
3408 2005-10-28  Thorsten Kukuk  <kukuk@suse.de>
3409
3410         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Fix off
3411         by one error.
3412
3413 2005-10-24  Roland McGrath  <roland@redhat.com>
3414
3415         [BZ #1534]
3416         * include/string.h: Use libc_hidden_proto for strnlen,
3417         not libc_hidden_builtin_proto.
3418
3419 2005-10-23  Ulrich Drepper  <drepper@redhat.com>
3420
3421         * rt/mqueue.h: Cleanups.
3422
3423 2005-10-22  Roland McGrath  <roland@redhat.com>
3424
3425         [BZ #1254]
3426         * sysdeps/mach/hurd/getpeername.c (__getpeername): Fix last change.
3427         From Samuel Thibault <samuel.thibault@ens-lyon.org>.
3428
3429 2005-10-17  Thomas Schwinge  <tschwinge@gnu.org>
3430
3431         [BZ #1252]
3432         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Don't use ?: as lvalue.
3433         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3434
3435 2005-10-20  Ulrich Drepper  <drepper@redhat.com>
3436
3437         * iconvdata/ibm1364.h (__ucs4_to_ibm1364sb): Fix one mapping.
3438         * iconvdata/ibm1388.h (__ucs4_to_ibm1388sb): Likewise.
3439         * iconvdata/testdata/IBM1364: Add missing valid input.
3440         * iconvdata/testdata/IBM1388: Likewise.
3441         * iconvdata/testdata/IBM1364..UTF8: Adjust appropriately.
3442         * iconvdata/testdata/IBM1388..UTF8: Likewise.
3443         Patch by Masahide Washizawa <washi@jp.ibm.com>.
3444
3445 2005-08-23  GOTO Masanori  <gotom@debian.or.jp>
3446
3447         [BZ #1498]
3448         * sysdeps/alpha/remqu.S: Return the correct result when the same
3449         dividend and divisor are provided, and they're negative numbers.
3450         * sysdeps/alpha/divqu.S: Likewise.
3451
3452 2005-10-18  Steven Munroe  <sjmunroe@us.ibm.com>
3453
3454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
3455         Define.
3456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h (TESTS):
3457         Likewise.
3458
3459 2005-10-19  Ulrich Drepper  <drepper@redhat.com>
3460
3461         * iconvdata/Makefile (modules): Add IBM1364, IBM1371, IBM1388, IBM1390,
3462         and IBM1399.
3463         (distribute): Add ibm1364.c, ibm1364.h, ibm1371.c, ibm1371.h,
3464         ibm1388.c, ibm1388.h, ibm1390.c, ibm1390.h, ibm1399.c, and ibm1399.h.
3465         * iconvdata/TESTS: Add entries for IBM1364, IBM1371, IBM1388, IBM1390,
3466         and IBM1399.
3467         * iconvdata/gconv-modules: Likewise.
3468         * iconvdata/ibm1364.c: New file.
3469         * iconvdata/ibm1364.h: New file.
3470         * iconvdata/ibm1371.c: New file.
3471         * iconvdata/ibm1371.h: New file.
3472         * iconvdata/ibm1388.c: New file.
3473         * iconvdata/ibm1388.h: New file.
3474         * iconvdata/ibm1390.c: New file.
3475         * iconvdata/ibm1390.h: New file.
3476         * iconvdata/ibm1399.c: New file.
3477         * iconvdata/ibm1399.h: New file.
3478         * iconvdata/testdata/IBM1364: New file.
3479         * iconvdata/testdata/IBM1364..UTF8: New file.
3480         * iconvdata/testdata/IBM1371: New file.
3481         * iconvdata/testdata/IBM1371..UTF8: New file.
3482         * iconvdata/testdata/IBM1388: New file.
3483         * iconvdata/testdata/IBM1388..UTF8: New file
3484         * iconvdata/testdata/IBM1390: New file.
3485         * iconvdata/testdata/IBM1390..UTF8: New file.
3486         * iconvdata/testdata/IBM1399: New file.
3487         * iconvdata/testdata/IBM1399..UTF8: New file.
3488         Original patch by Masahide Washizawa <washi@jp.ibm.com>.
3489
3490 2005-10-17  Roland McGrath  <roland@redhat.com>
3491
3492         * elf/dl-load.c (MAP_COPY): When undefined, define to
3493         MAP_PRIVATE|MAP_DENYWRITE instead of just MAP_PRIVATE.
3494         (_dl_map_object_from_fd): Don't use MAP_DENYWRITE explicitly.
3495
3496 2005-10-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3497
3498         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):
3499         Define.
3500         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS):
3501         Likewise.
3502
3503 2005-10-17  Ulrich Drepper  <drepper@redhat.com>
3504
3505         * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.
3506         Return EOF not 0.
3507
3508         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Also
3509         allow EACCES errors when opening /proc for now.
3510
3511         * wctype/wcfuncs.c: Don't use expensive wide char lookups in isw*
3512         functions if character is in ASCII range.
3513         * wctype/wcfuncs_l.c: Likewise.
3514
3515 2005-05-03  Robert Millan  <robertmh@gnu.org>
3516
3517         * abi-tags (.*-.*-knetbsd.*-gnu.*): New match, with ABI value 4.
3518         * elf/cache.c (print_entry): Match the kNetBSD ABI tag.
3519
3520 2005-10-16  Alfred M. Szmidt  <ams@gnu.org>
3521
3522         * sysdeps/generic/bits/mman.h
3523         [__USE_GNU] (MREMAP_MAYMOVE, REMAP_FIXED): New macros.
3524
3525 2005-10-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3526
3527         * sysdeps/unix/sysv/linux/sh/makecontext.S: New file.
3528         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: New file.
3529         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: New file.
3530         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: New file.
3531         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: New file.
3532         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: New file.
3533         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: New file.
3534         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: New file.
3535         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: New file.
3536         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Removed.
3537         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: New file.
3538         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: New file.
3539
3540 2005-09-13  Jakub Jelinek  <jakub@redhat.com>
3541
3542         [BZ #1228]
3543         * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Make sure these
3544         are defined for -D_GNU_SOURCE or -D_ISOC99_SOURCE even when not
3545         -std=c99.
3546
3547 2005-10-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3548
3549         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MREMAP_FIXED.
3550
3551 2005-08-05  Alfred M. Szmidt  <ams@gnu.org>
3552
3553         [BZ #1252]
3554         * sysdeps/mach/hurd/setitimer.c (restart_itimer): Move static fn
3555         forward decl out of function body.
3556         * sysdeps/mach/hurd/profil.c: Likewise.
3557
3558 2005-10-16  Roland McGrath  <roland@frob.com>
3559
3560         [BZ #1254]
3561         * sysdeps/mach/hurd/getpeername.c (__getpeername): Respect *LEN
3562         byte limit when setting ADDR->sa_family.
3563         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3564
3565         [BZ #1253]
3566         * sysdeps/mach/hurd/dl-sysdep.h
3567         [SHARED] (DL_ARGV_NOT_RELRO): New macro.
3568
3569         [BZ #1253]
3570         * sysdeps/mach/hurd/i386/init-first.c (init): Make cast kosher.
3571         (_hurd_stack_setup): Don't declare with arguments and ellipsis.
3572         Use __builtin_frame_address and __builtin_return_address.
3573         (_dl_init_first): Likewise.
3574
3575         [BZ #1249]
3576         * sysdeps/mach/hurd/i386/init-first.c (_cthread_init_routine): Declare
3577         as weak extern.
3578         (init): Check for it being undefined.
3579
3580 2005-10-16  Daniel Jacobowitz  <dan@codesourcery.com>
3581             Roland McGrath  <roland@redhat.com>
3582
3583         * Makerules [module-names] (extra-modules-build): New variable.
3584         ($(extra-modules-build:%=$(objpfx)%.so)): New static pattern rule.
3585         Depend on libc.so and libc_nonshared.a.
3586         * dlfcn/Makefile ($(test-modules)): Remove static pattern rule.
3587         * elf/Makefile (modules-names-nobuild): New variable, add filtmod1.
3588         ($(test-modules)): Remove static pattern rule.
3589
3590 2005-10-15  Thomas Schwinge  <tschwinge@gnu.org>
3591
3592         * include/dirent.h: Include <stdbool.h>.
3593         * sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
3594         (fdopendir): Correct argument to _hurd_fd_get().
3595         * sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
3596
3597 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3598
3599         [BZ #1224]
3600         * posix/regcomp.c (init_word_char, duplicate_node_closure,
3601         fetch_token, peek_token_bracket, build_range_exp,
3602         build_collating_symbol): Remove forward decls; no longer needed
3603         now that we use prototypes.
3604
3605 2005-10-15  Ulrich Drepper  <drepper@redhat.com>
3606
3607         [BZ #1221]
3608         * posix/regex_internal.h: Remove last traces of
3609         RE_NO_INTERNAL_PROTOTYPES.
3610
3611         [BZ #968]
3612         * string/strxfrm_l.c (STRXFRM): Fix exit conditions of two loops.
3613
3614         * sysdeps/unix/fdopendir.c (fdopendir): Make sure descriptor
3615         allows reading.
3616
3617         * wcsmbs/tst-mbrtowc2.c: Use de_DE.UTF-8 instead of en_US.UTF-8.
3618         * wcsmbs/Makefile: Define tst-mbrtowc2-ENV.
3619
3620         * posix/regexec.c: Finish prototyping of static functions.
3621         * posix/regex_internal.c: Likewise.
3622
3623 2005-10-14  Roland McGrath  <roland@frob.com>
3624
3625         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): New function, broken
3626         out of ...
3627         (__opendir): ... here.  Call it.
3628         * sysdeps/mach/hurd/fdopendir.c: New file.
3629
3630 2005-10-14  Ulrich Drepper  <drepper@redhat.com>
3631
3632         [BZ #865]
3633         * math/tgmath.h: Correctly determine result type for
3634         __TGMATH_BINARY_REAL_ONLY,
3635         __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
3636         __TGMATH_TERNARY_REAL_ONLY, and __TGMATH_BINARY_REAL_IMAG.
3637
3638 2005-09-17  Andreas Jaeger  <aj@suse.de>
3639
3640         [BZ #865]
3641         * math/test-tgmath-int.c: New file.
3642         * math/Makefile (tests): Add test-tgmath-int.
3643
3644 2005-10-14  Ulrich Drepper  <drepper@redhat.com>
3645
3646         [BZ #804]
3647         * malloc/tst-mtrace.sh: Work around for bootstraping.
3648
3649         * locale/programs/ld-collate.c (collate_output): Fix counting of
3650         elements.  Don't limit table size.  Use correct secondary hash
3651         function.
3652         * locale/localeinfo.h (LIMAGIC): Change value returned for LC_COLLATE.
3653         * posix/fnmatch_loop.c: Adjust for changed secondary hash function.
3654         * posix/regcomp.c: Likewise.
3655
3656         * time/asctime.c (asctime_internal): Use __snprintf instead of
3657         snprintf to avoid PLT entry.
3658
3659         * sysdeps/unix/opendir.c (__opendir): Pass extra argument to
3660         __alloc_dir.
3661         (__alloc_dir): Only close descriptor on error if new parameter is true.
3662         * sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to
3663         __alloc_dir.  Don't close fd on error.
3664         * include/dirent.h (__alloc_dir): Adjust prototype.
3665
3666         * stdlib/Makefile (tests): Add tst-ucontext-off.
3667         * stdlib/tst-ucontext-off.c: New file.
3668         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TESTS): Define.
3669         * sysdeps/unix/sysv/linux/i386/ucontext_i.h (TESTS): Likewise.
3670
3671         [BZ #1468]
3672         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Fix values for
3673         oFPREGS, oSIGMASK, oFPREGSMEM, and oMXCSR.
3674         Patch by Nicholas Miell <nmiell@comcast.net>.
3675
3676         [BZ #1460]
3677         * time/asctime.c (asctime_internal): New function, derived from
3678         asctime_r.  Takes additional parameter which is the buffer length.
3679         Use snprintf instead sprintf, if it overflows, fail.
3680         (asctime_r): Call asctime_internal with 26 as buffer length.
3681         (asctime): Call asctime_internal with length of internal buffer.
3682         * time/Makefile (tests): Add bug-asctime_r.
3683         * time/bug-asctime_r.c: New file.
3684
3685         [BZ #1459]
3686         * time/asctime.c (__asctime_r): Check for tm_year computation to
3687         overflow and fail in this case.
3688         * time/Makefile (tests): Add bug-asctime.
3689         * time/bug-asctime.c: New file.
3690
3691         [BZ #1458]
3692         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MREMAP_FIXED.
3693         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3694         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3695         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3696         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3697         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
3698         * misc/sys/mman.h: Add ellipsis after last parameter of mremap and
3699         adjust leading comment.
3700         * sysdeps/unix/sysv/linux/syscalls.list: Add pointer parameter to
3701         mremap syscall.
3702         * include/sys/mman.h (__mremap): Add ellipsis.
3703         * malloc/memusage.c: Adjust mremap wrapper for optional additional
3704         parameter.
3705
3706 2005-10-13  Ulrich Drepper  <drepper@redhat.com>
3707
3708         [BZ #1405]
3709         * libio/iogetdelim.c (_IO_getdelim): Fix truncation of return
3710         value.  Avoid overflow in computation.
3711
3712         [BZ #1373]
3713         * argp/argp.h: Remove __NTH for __argp_usage inline function.
3714
3715 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3716
3717         [BZ #1248]
3718         * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
3719         bitset_mask, re_string_allocate, re_string_construct,
3720         re_string_reconstruct, re_string_destruct, re_string_elem_size_at,
3721         re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case,
3722         re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1,
3723         re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect,
3724         re_node_set_init_union, re_node_set_merge, re_node_set_insert,
3725         re_node_set_insert_last, re_node_set_compare, re_node_set_contains,
3726         re_node_set_remove_at, re_dfa_add_node, re_acquire_state,
3727         re_acquire_state_context): Remove unnecessary forward decls.
3728         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
3729         Put __attribute at function definition, now that the function decl
3730         has been removed.
3731         * posix/regex_internal.c (re_string_peek_byte_case,
3732         re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
3733         Likewise.
3734
3735 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3736
3737         [BZ #1231]
3738         * posix/regex_internal.c (re_string_skip_chars, register_state,
3739         calc_state_hash): Remove forward decls.
3740         * posix/regexec.c (acquire_init_state_context, check_halt_node_context,
3741         proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes,
3742         clean_state_log_if_needed): Likewise.
3743
3744 2005-10-13  Ulrich Drepper  <drepper@redhat.com>
3745
3746         * posix/regex.c: No need to use K&R definitions for static functions.
3747         * posix/regex_internal.c: Likewise.
3748         * posix/regcomp.c: Likewise.
3749
3750         [BZ #1466]
3751         * sysdeps/generic/s_csqrt.c (__csqrt): For zero real part, return
3752         principal square root.
3753         * sysdeps/generic/s_csqrtf.c (__csqrtf): Likewise.
3754         * sysdeps/generic/s_csqrtl.c (__csqrtl): Likewise.
3755         * math/libm-test.inc (csqrt_test): Add test for returning
3756         principal value.
3757
3758         * include/features.h: Define _POSIX_C_SOURCE to 200112 for
3759         _XOPEN_SOURCE == 600.
3760
3761 2005-10-12  Ulrich Drepper  <drepper@redhat.com>
3762
3763         * malloc/malloc.c (_int_free): Fail if block size is obviously wrong.
3764
3765         * include/malloc.h: Remove _int_new_arena prototype.
3766         * malloc/arena.c (_int_new_arena): Move definition ahead of
3767         arena_get2 and make static.
3768
3769         Correctly implement M_MXFAST.
3770         * malloc/malloc.c (struct malloc_state): Replace max_fast with flags
3771         fields.
3772         (global_max_fast): New variable.
3773         (set_max_fast): Change to not require arena parameter and to modify
3774         global_max_fast.  Change all callers.
3775         (get_max_fast): New macro.  Use this instead of directly accessing
3776         now removed max_fast arena member.
3777         (have_fastchunks): Use flags instead of max_fast.
3778         (clear_fastchunks): Likewise.
3779         (set_fastchunks): Likewise.
3780         (contiguous): Likewise.
3781         (noncontiguous): Likewise.
3782         (set_noncontiguous): Likewise.
3783         (set_contiguous): Likewise.
3784         (malloc_init_state): Explicitly set FASTCHUNKS_BIT.  Call set_max_fast
3785         only for main arena.
3786         * malloc/hooks.c (public_sET_STATe): Adjust set_max_fast use.
3787
3788 2005-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
3789
3790         * sysdeps/generic/bits/byteswap.h (__bswap_constant_16): New macro.
3791         (__bswap_16): Use it.
3792         (__bswap_constant_32): New macro.
3793         (__bswap_32): Use it.
3794
3795 2005-10-10  Ulrich Drepper  <drepper@redhat.com>
3796
3797         * malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_recursive_cntr.
3798
3799 2005-10-08  Jakub Jelinek  <jakub@redhat.com>
3800
3801         * nss/getent.c (hosts_keys): Pass INADDRSZ as size rather
3802         than IN6ADDRSZ to AF_INET gethostbyaddr.
3803
3804 2005-10-07  Roland McGrath  <roland@redhat.com>
3805
3806         [BZ #1438]
3807         * include/features.h: Make tests on _FORTIFY_SOURCE and __OPTIMIZE__
3808         friendly to -Wundef.
3809         (__USE_FORTIFY_LEVEL): Always define it, to 0 if nothing else.
3810
3811 2005-10-06  Ulrich Drepper  <drepper@redhat.com>
3812
3813         * sysdeps/unix/sysv/linux/readonly-area.c: Allow fopen to fail because
3814         the file does not exist.
3815
3816 2005-10-05  Simon Josefsson  <jas@extundo.com>
3817
3818         [BZ #1423]
3819         * crypt/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): New macros.
3820
3821 2005-10-05  Roland McGrath  <roland@redhat.com>
3822
3823         * crypt/Makefile (distribute): Remove duplicate defn.
3824
3825         * sysdeps/generic/ldsodefs.h (struct audit_ifaces):
3826         Use ARCH_PLTENTER_MEMBERS and ARCH_PLTEXIT_MEMBERS macros if defined.
3827         * elf/tst-auditmod1.c: Include <tst-audit.h> to define more
3828         architecture-specific code.
3829         * sysdeps/generic/tst-audit.h: New file.
3830         * elf/Makefile (distribute): Add it.
3831
3832 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
3833
3834         * elf/elf.h (R_ARM_TLS_DTPMOD32, R_ARM_TLS_DTPOFF32,
3835         R_ARM_TLS_TPOFF32, R_ARM_TLS_GD32, R_ARM_TLS_LDM32,
3836         R_ARM_TLS_LDO32, R_ARM_TLS_IE32, R_ARM_TLS_LE32): New macros.
3837
3838 2005-10-03  Roland McGrath  <roland@redhat.com>
3839
3840         * sysdeps/powerpc/nofpu: Directory removed, saved in ports repository.
3841
3842 2005-09-30  Ulrich Drepper  <drepper@redhat.com>
3843
3844         * posix/regex.h: Pretty printing.
3845         Clean up namespace a bit.
3846
3847 2005-09-30  Jakub Jelinek  <jakub@redhat.com>
3848
3849         * posix/regexec.c (update_cur_sifted_state, check_arrival,
3850         check_arrival_add_next_nodes): Avoid using uninitialized variable.
3851
3852         * malloc/memusage.c (dest): Fix a bunch of warnings on 32-bit arches.
3853
3854         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 4.0.x.
3855
3856 2005-09-29  Ulrich Drepper  <drepper@redhat.com>
3857
3858         * iconvdata/Makefile (modules): Add IBM803, IBM901, IBM902, IBM921,
3859         IBM1008, IBM1008_420, IBM1097, IBM1112, IBM1123, IBM1130, IBM1140,
3860         IBM1141, IBM1142, IBM1143, IBM1144, IBM1145, IBM1146, IBM1147, IBM1148,
3861         IBM1149, IBM1166, IBM1167, IBM4517, IBM4899, IBM4909, IBM4971,
3862         IBM5347, IBM9030, IBM9066, IBM9448, IBM12712, IBM16804.
3863         (distribute): Add ibm803.c, ibm803.h, ibm901.c, ibm901.h, ibm902.c,
3864         ibm902.h, ibm921.c, ibm921.h, ibm1008.c, ibm1008.h, ibm1008_420.c,
3865         ibm1097.c, ibm1097.h, ibm1112.c, ibm1112.h, ibm1123.c, ibm1123.h,
3866         ibm1130.c, ibm1130.h, ibm1140.c, ibm1140.h, ibm1141.c, ibm1141.h,
3867         ibm1142.c, ibm1142.h, ibm1143.c, ibm1143.h, ibm1144.c, ibm1144.h,
3868         ibm1145.c, ibm1145.h, ibm1146.c, ibm1146.h, ibm1147.c, ibm1147.h,
3869         ibm1148.c, ibm1148.h, ibm1149.c, ibm1149.h, ibm1166.c, ibm1166.h,
3870         ibm1167.c, ibm1167.h, ibm4517.c, ibm4517.h, ibm4899.c, ibm4899.h,
3871         ibm4909.c, ibm4909.h, ibm4971.c, ibm4971.h, ibm5347.c, ibm5347.h,
3872         ibm9030.c, ibm9030.h, ibm9066.c, ibm9066.h, ibm9448.c, ibm9448.h,
3873         ibm12712.c, ibm12712.h, ibm16804.c, ibm16804.h.
3874         * iconvdata/TESTS: Add entries for new modules.
3875         * iconvdata/gconv-modules: Likewise.
3876         * iconvdata/ibm803.c: New file.
3877         * iconvdata/ibm803.h: New file.
3878         * iconvdata/ibm901.c: New file.
3879         * iconvdata/ibm901.h: New file.
3880         * iconvdata/ibm902.c: New file.
3881         * iconvdata/ibm902.h: New file.
3882         * iconvdata/ibm921.c: New file.
3883         * iconvdata/ibm921.h: New file.
3884         * iconvdata/ibm1008.c: New file.
3885         * iconvdata/ibm1008.h: New file.
3886         * iconvdata/ibm1008_420.c: New file.
3887         * iconvdata/ibm1097.c: New file.
3888         * iconvdata/ibm1097.h: New file.
3889         * iconvdata/ibm1112.c: New file.
3890         * iconvdata/ibm1112.h: New file.
3891         * iconvdata/ibm1123.c: New file.
3892         * iconvdata/ibm1123.h: New file.
3893         * iconvdata/ibm1130.c: New file.
3894         * iconvdata/ibm1130.h: New file.
3895         * iconvdata/ibm1140.c: New file.
3896         * iconvdata/ibm1140.h: New file.
3897         * iconvdata/ibm1141.c: New file.
3898         * iconvdata/ibm1141.h: New file.
3899         * iconvdata/ibm1142.c: New file.
3900         * iconvdata/ibm1142.h: New file.
3901         * iconvdata/ibm1143.c: New file.
3902         * iconvdata/ibm1143.h: New file.
3903         * iconvdata/ibm1144.c: New file.
3904         * iconvdata/ibm1144.h: New file.
3905         * iconvdata/ibm1145.c: New file.
3906         * iconvdata/ibm1145.h: New file.
3907         * iconvdata/ibm1146.c: New file.
3908         * iconvdata/ibm1146.h: New file.
3909         * iconvdata/ibm1147.c: New file.
3910         * iconvdata/ibm1147.h: New file.
3911         * iconvdata/ibm1148.c: New file.
3912         * iconvdata/ibm1148.h: New file.
3913         * iconvdata/ibm1149.c: New file.
3914         * iconvdata/ibm1149.h: New file.
3915         * iconvdata/ibm1166.c: New file.
3916         * iconvdata/ibm1166.h: New file.
3917         * iconvdata/ibm1167.c: New file.
3918         * iconvdata/ibm1167.h: New file.
3919         * iconvdata/ibm4517.c: New file.
3920         * iconvdata/ibm4517.h: New file.
3921         * iconvdata/ibm4899.c: New file.
3922         * iconvdata/ibm4899.h: New file.
3923         * iconvdata/ibm4909.c: New file.
3924         * iconvdata/ibm4909.h: New file.
3925         * iconvdata/ibm4971.c: New file.
3926         * iconvdata/ibm4971.h: New file.
3927         * iconvdata/ibm5347.c: New file.
3928         * iconvdata/ibm5347.h: New file.
3929         * iconvdata/ibm9030.c: New file.
3930         * iconvdata/ibm9030.h: New file.
3931         * iconvdata/ibm9066.c: New file.
3932         * iconvdata/ibm9066.h: New file.
3933         * iconvdata/ibm9448.c: New file.
3934         * iconvdata/ibm9448.h: New file.
3935         * iconvdata/ibm12712.c: New file.
3936         * iconvdata/ibm12712.h: New file.
3937         * iconvdata/ibm16804.c: New file.
3938         * iconvdata/ibm16804.h: New file.
3939         * iconvdata/testdata/IBM803: New file.
3940         * iconvdata/testdata/IBM803..UTF8: New file.
3941         * iconvdata/testdata/IBM901: New file.
3942         * iconvdata/testdata/IBM901..UTF8: New file.
3943         * iconvdata/testdata/IBM902: New file.
3944         * iconvdata/testdata/IBM902..UTF8: New file.
3945         * iconvdata/testdata/IBM921: New file.
3946         * iconvdata/testdata/IBM921..UTF8: New file.
3947         * iconvdata/testdata/IBM1008: New file.
3948         * iconvdata/testdata/IBM1008..UTF8: New file.
3949         * iconvdata/testdata/IBM1097: New file.
3950         * iconvdata/testdata/IBM1097..UTF8: New file.
3951         * iconvdata/testdata/IBM1112: New file.
3952         * iconvdata/testdata/IBM1112..UTF8: New file.
3953         * iconvdata/testdata/IBM1123: New file.
3954         * iconvdata/testdata/IBM1123..UTF8: New file.
3955         * iconvdata/testdata/IBM1130: New file.
3956         * iconvdata/testdata/IBM1130..UTF8: New file.
3957         * iconvdata/testdata/IBM1140: New file.
3958         * iconvdata/testdata/IBM1140..UTF8: New file.
3959         * iconvdata/testdata/IBM1141: New file.
3960         * iconvdata/testdata/IBM1141..UTF8: New file.
3961         * iconvdata/testdata/IBM1142: New file.
3962         * iconvdata/testdata/IBM1142..UTF8: New file.
3963         * iconvdata/testdata/IBM1143: New file.
3964         * iconvdata/testdata/IBM1143..UTF8: New file.
3965         * iconvdata/testdata/IBM1144: New file.
3966         * iconvdata/testdata/IBM1144..UTF8: New file.
3967         * iconvdata/testdata/IBM1145: New file.
3968         * iconvdata/testdata/IBM1145..UTF8: New file.
3969         * iconvdata/testdata/IBM1146: New file.
3970         * iconvdata/testdata/IBM1146..UTF8: New file.
3971         * iconvdata/testdata/IBM1147: New file.
3972         * iconvdata/testdata/IBM1147..UTF8: New file.
3973         * iconvdata/testdata/IBM1148: New file.
3974         * iconvdata/testdata/IBM1148..UTF8: New file.
3975         * iconvdata/testdata/IBM1149: New file.
3976         * iconvdata/testdata/IBM1149..UTF8: New file.
3977         * iconvdata/testdata/IBM1166: New file.
3978         * iconvdata/testdata/IBM1166..UTF8: New file.
3979         * iconvdata/testdata/IBM1167: New file.
3980         * iconvdata/testdata/IBM1167..UTF8: New file.
3981         * iconvdata/testdata/IBM4517: New file.
3982         * iconvdata/testdata/IBM4517..UTF8: New file.
3983         * iconvdata/testdata/IBM4899: New file.
3984         * iconvdata/testdata/IBM4899..UTF8: New file.
3985         * iconvdata/testdata/IBM4909: New file.
3986         * iconvdata/testdata/IBM4909..UTF8: New file.
3987         * iconvdata/testdata/IBM4971: New file.
3988         * iconvdata/testdata/IBM4971..UTF8: New file.
3989         * iconvdata/testdata/IBM5347: New file.
3990         * iconvdata/testdata/IBM5347..UTF8: New file.
3991         * iconvdata/testdata/IBM9030: New file.
3992         * iconvdata/testdata/IBM9030..UTF8: New file.
3993         * iconvdata/testdata/IBM9066: New file.
3994         * iconvdata/testdata/IBM9066..UTF8: New file.
3995         * iconvdata/testdata/IBM9448: New file.
3996         * iconvdata/testdata/IBM9448..UTF8: New file.
3997         * iconvdata/testdata/IBM12712: New file.
3998         * iconvdata/testdata/IBM12712..UTF8: New file.
3999         * iconvdata/testdata/IBM16804: New file.
4000         * iconvdata/testdata/IBM16804..UTF8: New file.
4001         Patch by Masahide WASHIZAWA <washi@jp.ibm.com>.
4002
4003         * iconvdata/run-iconv-test.sh: Run ASCII->encoding->ASCII suntzus
4004         test only if $subset is N.
4005
4006 2005-09-29  Roland McGrath  <roland@redhat.com>
4007
4008         [BZ #1392]
4009         * posix/sys/wait.h [!__GNUC__ || __cplusplus] (__WAIT_INT): Use const.
4010
4011 2005-09-29  Alfred M. Szmidt  <ams@gnu.org>
4012
4013         * elf/rtld.c [DL_ARGV_NOT_RELRO] (_dl_argc, _dl_skip_args):
4014         Don't use attribute_relro.
4015
4016 2005-09-29  Roland McGrath  <roland@redhat.com>
4017
4018         [BZ #1392]
4019         * posix/sys/wait.h (__WAIT_INT): Rewrite using an initializer,
4020         in case __typeof yields a const-qualified type.
4021
4022 2005-09-28  Ulrich Drepper  <drepper@redhat.com>
4023
4024         * dirent/dirent.h: Declare fdopendir.
4025         * dirent/Versions: Export fdopendir for GLIBC_2.4.
4026         * dirent/Makefile (routines): Add fdopendir.
4027         (tests): Add tst-fdopendir.
4028         * dirent/tst-fdopendir.c: New file.
4029         * include/dirent.h: Declare __alloc_dir.
4030         * sysdeps/generic/fdopendir.c: New file.
4031         * sysdeps/unix/fdopendir.c: New file.
4032         * sysdeps/unix/opendir.c: Split off back part of opendir into new
4033         function __alloc_dir.
4034
4035 2005-09-26  Steven Munroe  <sjmunroe@us.ibm.com>
4036
4037         [BZ #1384]
4038         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
4039         ynf results.
4040
4041 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
4042             Ulrich Drepper  <drepper@redhat.com>
4043
4044         [BZ #1302]
4045         Change bitset word type from unsigned int to unsigned long int,
4046         as this has better performance on typical 64-bit hosts.  Change
4047         bitset type name to bitset_t.
4048         * posix/regcomp.c (build_equiv_class, build_charclass):
4049         (build_range_exp, build_collating_symbol):
4050         Prefer bitset_t to re_bitset_ptr_t in prototypes, when the actual
4051         argument is a bitset.  This is merely a style issue, but it makes
4052         it clearer that an entire array is expected.
4053         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps,
4054         lower_subexp): Adjust for new bitset_t definition.
4055         (lower_subexp, parse_bracket_exp, built_charclass_op): Likewise.
4056         * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain,
4057         bitset_not, bitset_merge, bitset_set_all, bitset_mask): Likewise.
4058         * posix/regexec.c (check_dst_limits_calc_pos_1,
4059         check_subexp_matching_top, build_trtable, group_nodes_into_DFAstates):
4060         Likewise.
4061         * posix/regcomp.c (utf8_sb_map): Don't assume initializer
4062         == 0xffffffff.
4063         * posix/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
4064         All uses changed.
4065         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
4066         (bitset_word_t): New type, replacing 'unsigned int' for bitset uses.
4067         All uses changed.
4068         (BITSET_WORD_MAX): New macro.
4069         (bitset_set, bitset_clear, bitset_contain, bitset_empty,
4070         (bitset_set_all, bitset_copy):  Adjust for bitset_t change.
4071         (bitset_empty, bitset_copy):
4072         Prefer sizeof (bitset_t) to multiplying it out ourselves.
4073         (bitset_not_merge): Remove; unused.
4074         (bitset_contain): Return bool, not unsigned int with one bit on.
4075         All callers changed.
4076         * posix/regexec.c (build_trtable): Don't assume bitset_t has no
4077         stricter alignment than re_node_set; do this by defining a new
4078         internal type struct dests_alloc and using it to allocate memory.
4079
4080 2005-09-27  Ulrich Drepper  <drepper@redhat.com>
4081
4082         [BZ #1230]
4083         * stdlib/strtod_l.c (STRNCASECMP): Always use C locale object.
4084         (TOLOWER_C): Define.  Use it when recognizing inf and nan.
4085         * stdlib/Makefile (tests): Add bug-strtod2.
4086         * stdlib/bug-strtod2.c: New file.
4087
4088 2005-09-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4089
4090         [BZ #1361]
4091         * argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
4092         * argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
4093         argp/argp-xinl.c: Fix up whitespace.
4094
4095 2005-09-27  Ulrich Drepper  <drepper@redhat.com>
4096
4097         [BZ #1158]
4098         * stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
4099         which the functions were registered.
4100         * dlfcn/Makefile: Add rules to build and run bug-atexit1 and
4101         bug-atexit2.
4102         * dlfcn/bug-atexit1.c: New file.
4103         * dlfcn/bug-atexit1-lib.c: New file.
4104         * dlfcn/bug-atexit2.c: New file.
4105         * dlfcn/bug-atexit2-lib.c: New file.
4106
4107         [BZ #1078]
4108         * libio/fileops.c (_IO_new_file_xsputn): Determine amount of
4109         available space in non-line-buffered buffer correctly.
4110         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
4111         * stdio-common/Makefile (tests): Add tst-fwrite.
4112         * stdio-common/tst-fwrite.c: New file.
4113
4114 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
4115
4116         [BZ #838]
4117         * malloc/arena.c (ptmalloc_lock_all): If global lock already taken
4118         by the same thread, just bump the counter.
4119         (ptmalloc_unlock_all): If counter for recursive locks hasn't reached
4120         zero, don't do anything else.
4121         * malloc/Makefile (tests): Add tst-mallocfork.
4122         * malloc/tst-mallocfork.c: New file.
4123
4124         [BZ #808]
4125         * malloc/malloc.c (_int_realloc): Make error message clearer.
4126
4127         [BZ #713]
4128         * libio/iofgets.c: Treat N==1 correctly.
4129         * libio/iofgets_u.c: Likewise.
4130         * libio/iofgetws.c: Likewise.
4131         * libio/iofgetws_u.c: Likewise.
4132         * stdio-common/Makefile (tests): Add tst-fgets.
4133         * stdio-common/tst-fgets.c: New file.
4134
4135 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
4136
4137         [BZ #652]
4138         * posix/getconf.c: Add new option -a to print the names of
4139         the current system configuration variables to stdout.
4140         Based on patch from Josh Aas <josha@sgi.com>.
4141
4142 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
4143
4144         [BZ #644]
4145         * sysdeps/posix/getaddrinfo.c (fls): New function.
4146         (gaih_inet): Don't use ffs, use fls.  Convert address to native byte
4147         order first.
4148         * posix/Makefile (tests): Add tst-rfc3484.
4149         * posix/tst-rfc3484.c: New file.
4150
4151         [BZ #627]
4152         * libio/iofclose.c (_IO_new_fclose): Unlock the internal lock
4153         before destroying it as part of the _IO_FINISH call.
4154         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
4155
4156         [BZ #524]
4157         * sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if
4158         number of bits is multiple of 8.
4159         Patch by Fredrik Tolf <fredrik@dolda2000.com>.
4160
4161         [BZ #516]
4162         * elf/dl-load.c: Report failed loading due to ELF class mismatch
4163         with better words.
4164
4165         [BZ #162]
4166         * manual/llio.texi (Waiting for I/O): Correct description of read
4167         conditions reported by select.
4168
4169 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
4170
4171         * inet/getnetgrent_r.c (innetgr): Call endfct even if result != 0.
4172         Return 1 only if result == 1.  Patch by Benoit Capelle.
4173
4174 2005-09-25  Ulrich Drepper  <drepper@redhat.com>
4175
4176         [BZ #278]
4177         * manual/stdio.texi (Hook Functions): Correct type of position
4178         parameter of seeker and fix fallout of the change in the text.
4179
4180         [BZ #714]
4181         * iconv/loop.c [!STORE_REST] (SINGLE): Correctly record number of
4182         left-over bytes and store them correctly.
4183         * wcsmbs/tst-mbrtowc2.c: New file.
4184         * wcsmbs/Makefile (tests): Add tst-mbrtowc2.
4185
4186 2005-09-24  Roland McGrath  <roland@redhat.com>
4187
4188         * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository.
4189         * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
4190
4191 2005-09-24  Ulrich Drepper  <drepper@redhat.com>
4192
4193         [BZ #545]
4194         * locale/iso-639.def: More updates from the current spec.
4195
4196         * locale/programs/ld-address.c (address_finish): Produce better
4197         error messages for invalid lang_ab use.
4198
4199         * locale/iso-639.def: Add a few updates from current spec.
4200
4201 2005-09-23  Ulrich Drepper  <drepper@redhat.com>
4202
4203         [BZ #704]
4204         * locale/iso-4217.def: Replace MGF with MGA.
4205
4206         * iconvdata/jis0208.c (__jisx0208_from_ucs4_lat1): Reduce size of
4207         array.
4208         * iconvdata/jis0208.h (ucs4_to_jisx0208): Adjust access.
4209
4210 2004-08-13  GOTO Masanori  <gotom@debian.or.jp>
4211
4212         [BZ #395]
4213         * iconvdata/jis0208.c: Remove 0x005C mapping from
4214         __jisx0208_from_ucs4_lat1.
4215         Reported by Fumitoshi UKAI <ukai@debian.or.jp>
4216
4217 2005-09-23  Ulrich Drepper  <drepper@redhat.com>
4218
4219         [BZ #394]
4220         * libio/fmemopen.c (fmemopen_write): Return 0 instead of -1 if
4221         nothing can be written.
4222         * libio/iofopncook.c (_IO_cookie_write): If something went wrong,
4223         set error bit.
4224
4225 2005-09-22  Ulrich Drepper  <drepper@redhat.com>
4226
4227         [BZ #281]
4228         * posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
4229         * posix/regcomp.c: Remove unnecessary uses of
4230         unsigned RE_TRANSLATE_TYPE.
4231         * posix/regex_internal.h: Likewise.
4232         * posix/regex_internal.c: Likewise.
4233         * posix/regexexec.c: Likewise.
4234         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
4235
4236         [BZ #1035]
4237         * locale/iso-4217.def: Replace TRL entry with TRY for new Turkish Lira.
4238
4239         [BZ #1363]
4240         * nscd/nscd_getpw_r.c (nscd_getpw_r): Remove incorrectly C&Ped
4241         free call in code handling detection of GC runs.
4242
4243 2005-09-22  Roland McGrath  <roland@redhat.com>
4244
4245         * elf/dl-tsd.c (__libc_dl_error_tsd): Use attribute_tls_model_ie for
4246         static __thread variable.
4247         From Alexandre Oliva <aoliva@redhat.com>
4248
4249         * Makefile ($(objpfx)c++-types-check.out): Use $<, not $^, in command.
4250         Reported by Alexandre Oliva <aoliva@redhat.com>.
4251
4252 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4253
4254         * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.
4255
4256 2005-09-20  Roland McGrath  <roland@redhat.com>
4257
4258         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use execv, not execl.
4259
4260         [BZ #1346]
4261         * elf/dl-load.c (_dl_map_object_from_fd) [HAVE_Z_RELRO]: Do relro
4262         magic on __stack_prot only if [SHARED].  Skip mprotect if __stack_prot
4263         lies outside the page-rounded-down relro region.
4264
4265 2005-09-19  Richard Henderson  <rth@redhat.com>
4266
4267         [BZ #1358]
4268         * sysdeps/unix/alpha/sysdep.h (inline_syscall1): Copy argument(s)
4269         to a temporary first.
4270         (inline_syscall2, inline_syscall3, inline_syscall4): Likewise.
4271         (inline_syscall5, inline_syscall6): Likewise.
4272
4273         * sysdeps/alpha/ldiv.S (lldiv): Add alias.
4274
4275 2005-09-17  Ulrich Drepper  <drepper@redhat.com>
4276
4277         [BZ #1010]
4278         * sysdeps/unix/sockatmark.c (sockatmark): Use SIOCATMARK correctly.
4279
4280         [BZ #1053]
4281         * debug/xtrace.sh: Add missing escape character in -? match.
4282         Patch by Peter Breitenlohner <peb@mppmu.mpg.de>.
4283
4284         [BZ #1051]
4285         * wctype/wctype.h: Remove stray __END_NAMESPACE_C99.
4286         * stdlib/stdlib.h: Use __END_NAMESPACE_STD instead of
4287         __END_NAMESPACE_C99 in one place.
4288         * scripts/begin-end-check.pl: New file.
4289         Patch by Ralph Loader <suckfish@ihug.co.nz>.
4290         * Makefile: Add rules to run scripts/begin-end-check.pl.
4291
4292 2005-09-17  Andreas Jaeger  <aj@suse.de>
4293
4294         * timezone/zdump.c: Include ctype.h.
4295
4296 2005-09-16  Andreas Jaeger  <aj@suse.de>
4297
4298         [BZ #1047]
4299         * sysdeps/unix/sysv/linux/mips/getpagesize.c: New file.
4300
4301 2005-09-16  Maciej W. Rozycki  <macro@linux-mips.org>
4302
4303         [BZ #933]
4304         * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
4305         the syscall immediately before invocation.
4306         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
4307         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.
4308
4309         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
4310         macros to handle GP.
4311         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
4312         Likewise.  Update inaccurate comments.
4313
4314 2005-09-13  Ulrich Drepper  <drepper@redhat.com>
4315
4316         * sysdeps/posix/spawni.c (__spawni): Automatically recognize some
4317         more cases when we can use vfork.
4318
4319 2005-08-29  Thomas Schwinge  <schwinge@nic-nac-project.de>
4320
4321         [BZ #1261]
4322         * manual/memory.texi (Hooks for Malloc): Correct prototype of
4323         my_init_hook and definition of my_free_hook.
4324
4325 2005-09-12  Roland McGrath  <roland@redhat.com>
4326
4327         [BZ #1331]
4328         * malloc/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
4329         macro argument.
4330         Reported by Matej Vela <vela@debian.org>.
4331
4332 2005-09-12  Jakub Jelinek  <jakub@redhat.com>
4333
4334         * malloc/malloc.c (struct malloc_chunk): Fix comment typo.
4335         (public_cALLOc): For mmapped chunks and perturb_byte != 0,
4336         don't clear SIZE_SZ bytes more than should be cleared.
4337
4338 2005-09-09  Jakub Jelinek  <jakub@redhat.com>
4339
4340         * inet/getnetgrent_r.c: Include assert.
4341         (setup): Remove FUNC_NAME and ALL arguments, assume they are always
4342         "setnetgrent" and 1.
4343         (endnetgrent_hook): New function.
4344         (internal_endnetgrent): Use it.
4345         (__internal_setnetgrent_reuse): Use it.  Adjust setup caller.
4346         If status is NSS_STATUS_SUCCESS, yet action is continue, call
4347         endnetgrent hook.
4348         (internal_getnetgrent_r): Use __nss_lookup_function rather than
4349         setup.  Recompute getfct pointer after successful
4350         __internal_setnetgrent_reuse.  Don't use __nss_next.
4351         (innetgr): Use __nss_lookup_function instead of __nss_lookup.
4352         Adjust setup caller.
4353         * nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Always clear
4354         data_size and cursor.  Add libnss_files_hidden_proto and
4355         libnss_files_hidden_def.
4356         (_nss_files_setnetgrent): Call _nss_files_endnetgrent on failure.
4357         * nis/nss_nis/nis-netgrp.c (internal_endnetgrent): Always clear
4358         data_size and cursor.
4359         (_nss_nis_setnetgrent): Don't call internal_endnetgrent.
4360         (_nss_nis_getnetgrent_r): Remove result->cursor == NULL handling.
4361         * nis/nss_nisplus/nisplus-netgrp.c (internal_endnetgrent): Always clear
4362         data_size and position.
4363         (_nss_nisplus_setnetgrent): Don't call internal_endnetgrent.
4364
4365 2005-09-09  Ulrich Drepper  <drepper@redhat.com>
4366
4367         * nss/getent.c (netgroup_keys): Call endnetgrent.
4368         (main): Call mtrace.
4369
4370         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): We don't
4371         need locking for the stream.  Use feof_unlocked.
4372
4373 2005-09-09  Jakub Jelinek  <jakub@redhat.com>
4374
4375         [BZ #1318]
4376         * locale/loadarchive.c (_nl_load_locale_from_archive): Free
4377         normalized_codeset even if p was already normalized.
4378         Reported by Jaroslav Snajdr <jsnajdr@kerio.com>.
4379
4380 2005-09-08  Roland McGrath  <roland@redhat.com>
4381
4382         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
4383         properly, first byte is bit number in mask.  Skip disabled caps.
4384
4385 2005-07-11  Derek R. Price  <derek@ximbiot.com>
4386
4387         [BZ #1061]
4388         * sysdeps/generic/glob.c (glob): Only a 0 return from
4389         getlogin_r means success, according to POSIX 1003.2.
4390
4391 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4392
4393         [BZ #1033]
4394         * time/mktime.c: Import from gnulib.
4395         The following macros are now consistent with other gnulib code.
4396         This does not change mktime's behavior.
4397         (TYPE_IS_INTEGER): New macro.
4398         (time_t_is_integer): Use it.
4399         (TYPE_TWOS_COMPLEMENT): New macro.
4400         (twos_complement_arithmetic): Use it.
4401         (TYPE_ONES_COMPLEMENT): New macro.
4402         (TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
4403         mktime doesn't use this, but the code now matches other gnulib code.
4404         (ranged_convert): Pacify GCC 4.0 in a different way, which
4405         generates a few bytes less code.
4406         (ranged_convert, __mktime_internal): When calling a function via a
4407         pointer P, use P () rather than (*P) (), as we now assume C89 or
4408         better.
4409
4410 2005-09-07  Alexandre Oliva  <aoliva@redhat.com>
4411
4412         * timezone/test-tz.c: Update to match tzdata2005m.
4413         * timezone/tst-timezone.c: Likewise.
4414
4415 2005-09-07  Ulrich Drepper  <drepper@redhat.com>
4416
4417         * posix/regexec.c (find_recover_state): Remove unnecessary
4418         initialization.
4419         (transit_state_bkref): Make DFA a const pointer.
4420         (get_subexp): Likewise.
4421         (check_arrival): Likewise.
4422         (update_cur_sifted_state): Likewise.
4423         (re_search_internal): Likewise.
4424         (prune_impossible_nodes): Likewise.
4425         (acquire_init_state_context): Likewise.
4426         (proceed_next_node): Likewise.
4427         (set_regs): Likewise.
4428         (free_fail_stack_return): Likewise.
4429         (check_arrival_expand_ecl): Mark DFA parameter as const.
4430         (check_arrival_expand_ecl_sub): Likewise.
4431         (check_subexp_limits): Likewise.
4432         (sub_epsilon_src_nodes):  Likewise.
4433         (add_epsilon_src_nodes):  Likewise.
4434         (merge_state_array): Likewise.
4435         (update_regs): Likewise.
4436         (build_trtable): Likewise.
4437         (sift_states_backward): Mark MCTX parameter as const.
4438         (build_sifted_states): Likewise.
4439         (update_cur_sifted_state): Likewise.
4440         (sift_states_mkref): Likewise.
4441         (check_arrival_expand_ecl): Mark eclosure as const.
4442         (check_dst_limits_calc_pos_1): Likewise.
4443         * posix/regex_internal.h (re_match_context_t): Make dfa a const
4444         pointer.
4445
4446 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4447
4448         * timezone/africa: Update from tzdata2005m.
4449         * timezone/asia: Likewise.
4450         * timezone/australasia: Likewise.
4451         * timezone/backward: Likewise.
4452         * timezone/europe: Likewise.
4453         * timezone/northamerica: Likewise.
4454         * timezone/southamerica: Likewise.
4455         * timezone/zone.tab: Likewise.
4456         * timezone/zdump.c: Update from tzcode2005m.
4457
4458         * posix/regexec.c (merge_state_with_log): Define dfa as const pointer.
4459         (transit_state_sb): Likewise.
4460         (transit_state_mb): Likewise.
4461         (sift_states_iter_mb): Likewise.
4462         (check_arrival_add_next_nodes): Likewise.
4463         (check_node_accept_bytes): Change first parameter to pointer-to-const.
4464         [_LIBC] (re_search_2_stub): Use mempcpy.
4465
4466         * posix/regex_internal.c (re_string_reconstruct): Avoid calling
4467         mbrtowc for very simple UTF-8 case.
4468
4469 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4470
4471         * posix/regex_internal.c (build_wcs_upper_buffer): Fix portability
4472         bugs in int versus size_t comparisons.
4473
4474 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4475
4476         * posix/regex_internal.c (re_acquire_state): Make DFA pointer arg
4477         a pointer-to-const.
4478         (re_acquire_state_context): Likewise.
4479         * posix/regex_internal.h: Adjust prototypes.
4480
4481 2005-08-31  Jim Meyering  <jim@meyering.net>
4482
4483         * posix/regcomp.c (search_duplicated_node): Make first pointer arg
4484         a pointer-to-const.
4485         * posix/regex_internal.c (create_ci_newstate, create_cd_newstate,
4486         register_state): Likewise.
4487         * posix/regexec.c (search_cur_bkref_entry, check_dst_limits):
4488         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
4489         (group_nodes_into_DFAstates): Likewise.
4490
4491 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4492
4493         * posix/regexec.c (re_search_internal): Simplify update of
4494         rm_so and rm_eo by replacing "if (A == B) A += C - B;"
4495         with the equivalent of "if (A == B) A = C;".
4496
4497 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4498
4499         * posix/regcomp.c (re_compile_internal): Change third parameter type
4500         to size_t.
4501         (init_dfa): Likewise.  Make sure that arithmetic on pat_len doesn't
4502         overflow.
4503         * posix/regex_internal.h (struct re_dfa_t): Change type of nodes_alloc
4504         and nodes_len to size_t.
4505         * posix/regex_internal.c (re_dfa_add_node): Use size_t as type for
4506         new_nodes_alloc.  Check for overflow.
4507
4508 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4509
4510         * posix/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
4511         (optimize_subexps, lower_subexp):
4512         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
4513         since the signed shift might overflow.  Use 1u<<31 instead.
4514         * posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
4515         Likewise.
4516         * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise.
4517         (check_subexp_matching_top): Likewise.
4518         * posix/regcomp.c (optimize_subexps, lower_subexp):
4519         Use CHAR_BIT rather than 8, for clarity.
4520         * posix/regexec.c (check_dst_limits_calc_pos_1):
4521         (check_subexp_matching_top): Likewise.
4522         * posix/regcomp.c (init_dfa): Make table_size unsigned, so that we
4523         don't have to worry about portability issues when shifting it left.
4524         Remove no-longer-needed test for table_size > 0.
4525         * posix/regcomp.c (parse_sub_exp): Do not shift more bits than there
4526         are in a word, as the resulting behavior is undefined.
4527         * posix/regexec.c (check_dst_limits_calc_pos_1): Likewise;
4528         in one case, a <= should have been an <, and in another case the
4529         whole test was missing.
4530         * posix/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
4531         the standard name CHAR_BIT.
4532
4533         * posix/regex_internal.h (re_sub_match_top_t): Remove unused member
4534         next_last_offset.
4535         (struct re_dfa_t): Remove unused member states_alloc.
4536         * posix/regcomp.c (init_dfa): Don't initialize unused members.
4537
4538 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         * posix/regexec.c (set_regs): Don't alloca with an unbounded size.
4541
4542         alloca modernization/simplification for regex.
4543         * posix/regex.c: Remove portability cruft for alloca.  This no longer
4544         needs to be at the start of the file, and can be moved into
4545         regex_internal.h and simplified.
4546         * posix/regex_internal.h: Include <alloca.h>.
4547         (__libc_use_alloca) [!defined _LIBC]: New macro.
4548         * posix/regexec.c (build_trtable): Remove "#ifdef _LIBC",
4549         since the code now works outside glibc.
4550
4551 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4552
4553         * include/regex.h: Remove use of _RE_ARGS.
4554
4555 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4556
4557         * posix/regexec.c (find_recover_state): Change "err" to "*err".
4558
4559 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4560
4561         * posix/regcomp.c (regerror): Pointer args are 'restrict',
4562         as per POSIX.
4563         * posix/regex.h (regerror): Likewise.
4564         * manual/pattern.texi (POSIX Regexp Compilation): Likewise.
4565         Similarly for regcomp and regexec.  Also, first 2 args of regexec
4566         and 2nd arg of regerror are const.
4567
4568         * posix/regex.c: Do not include <sys/types.h>, as POSIX no longer
4569         requires this.  (The code never needed it.)
4570
4571 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4572
4573         * posix/regexec.c (sift_states_bkref): re_node_set_insert returns
4574         int, not reg_errcode_t.
4575
4576         * posix/regex_internal.c (calc_state_hash): Put 'inline' before type,
4577         since some broken compilers warn about it otherwise.
4578
4579         * posix/regcomp.c (create_initial_state): Remove duplicate decl.
4580
4581 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4582
4583         * posix/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
4584         C89 or better.  All uses removed.
4585
4586 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4587
4588         * posix/regex.c: Prevent using C++ compilers.
4589
4590 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4591
4592         * posix/regcomp.c (duplicate_node): Return new index, not an error
4593         code, and let the caller return REG_ESPACE if out of space.  This
4594         removes an uninitialied-variable warning with GCC 4.0.1, and also
4595         avoids taking the address of a local variable.  All callers
4596         changed.
4597
4598 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4599
4600         * include/time.h (__strptime_internal): Rename parameter to avoid
4601         bogus compiler warning.
4602
4603 2005-08-19  Jim Meyering  <jim@meyering.net>
4604
4605         * posix/regexec.c (proceed_next_node): Redo local variables to
4606         avoid GCC shadowing warnings.
4607
4608 2005-09-06  Ulrich Drepper  <drepper@redhat.com>
4609
4610         * posix/regex_internal.c (re_acquire_state): Minor code rearrangement.
4611         (re_acquire_state_context): Likewise.
4612
4613 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4614
4615         * posix/regex_internal.c (re_string_realloc_buffers):
4616         (re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
4617         Rename local variables to avoid GCC shadowing warnings.
4618
4619 2005-07-08  Eric Blake  <ebb9@byu.net>
4620             Paul Eggert  <eggert@cs.ucla.edu>
4621
4622         * posix/regcomp.c (init_dfa): Store __btowc value in wint_t, not
4623         wchar_t.  Remove now-unnecessary cast.
4624         (build_range_exp): Likewise.
4625
4626 2005-08-31  Bob Wilson  <bob.wilson@acm.org>
4627
4628         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf):  Remove the
4629         exponent bias from the increment value for scaling by 2^60.
4630
4631 2005-09-05  Alexandre Oliva  <aoliva@redhat.com>
4632
4633         * configure.in: Compile source test file with -fPIC for -shared.
4634
4635 2005-09-04  Ulrich Drepper  <drepper@redhat.com>
4636
4637         * iconv/skeleton.c: Eliminate DEFINE_DIRECTION_OBJECTS macro use,
4638         it wasn't used.  Remove use of from_object and to_object variable,
4639         replace with some constants.  Adjust users.
4640
4641         * sysdeps/i386/bits/string.h: Removed.
4642
4643         * stdio-common/Makefile (tests): Add tst-put-error.
4644         * stdio-common/tst-put-error.c: New file.
4645         * libio/fileops.c (_IO_new_file_xsputn): If overflow fails and no more
4646         data would have to be written signal error.
4647         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
4648
4649         * libio/fileops.c (_IO_new_file_overflow): Use NULL not 0.
4650
4651 2005-09-02  Ulrich Drepper  <drepper@redhat.com>
4652
4653         * elf/dl-load.c (_dl_map_object_from_fd): No need to change
4654         protection of memory used for the last segment.
4655
4656 2005-08-22  Robert Millan  <robertmh@gnu.org>
4657
4658         * sysdeps/mach/hurd/nfs/nfs.h: Move to ...
4659         * sysdeps/generic/nfs/nfs.h: ... here.
4660
4661 2005-09-01  Ulrich Drepper  <drepper@redhat.com>
4662
4663         * libio/stdio.h: Remove __wur from ungetc, sscanf, and vsscanf.
4664         Add __wur to feof{,_unlocked}, ferror{,_unlocked},
4665         fileno{,_unlocked}, and popen.
4666
4667 2005-08-30  Ulrich Drepper  <drepper@redhat.com>
4668
4669         * sysdeps/ieee754/flt-32/e_hypotf.c [!__STDC__]: Fix function name.
4670
4671 2005-08-01  Bob Wilson  <bob.wilson@acm.org>
4672             Richard Sandiford  <richard@codesourcery.com>
4673
4674         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Add missing
4675         exponent bias to the value for 2^126.
4676
4677 2005-08-30  Jakub Jelinek  <jakub@redhat.com>
4678             Alan Modra  <amodra@bigpond.net.au>
4679
4680         * elf/dl-addr.c (_dl_addr): Use DL_ADDR_SYM_MATCH macro.
4681         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): Define.
4682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h: New file.
4683
4684 2005-08-23  Ulrich Drepper  <drepper@redhat.com>
4685
4686         * nscd/nscd.c (main): Use error while process isn't running in the
4687         background, not dbg_log.
4688         * nscd/nscd_conf.c (nscd_parse_file): Likewise.
4689         Mark messages with _().  Unify testing for database name.
4690
4691         * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.
4692         (dbs): Initialize max_db_size fields.
4693         (nscd_init): When mapping the database, use max_db_size as the
4694         mapping size even if it is bigger than the file size.
4695         * nscd/mem.c (mempool_alloc): When resizing the file make sure the
4696         limit in max_db_size is not exceeded.  Don't use mremap, just
4697         posix_fallocate is enough (according to Linus).  Use posix_fallocate
4698         correctly.
4699         * nscd/nscd.conf: Add max-db-size parameters.
4700         * nscd/nscd.h (struct database_dyn): Add max_db_size field.
4701         Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET.
4702         Temporarily define TEMP_FAILURE_RETRY_VAL here.
4703         * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter
4704         and add sanity checks for it.
4705
4706         * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to
4707         send reply.
4708         * nscd/connection.c (writeall): Likewise.
4709         (handle_request): Likewise.
4710         * nscd/grpcache.c (cache_addgr): Likewise.
4711         * nscd/hstcache.c (cache_addhst): Likewise.
4712         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4713         * nscd/nscd.c (parse_opt): Likewise.
4714         * nscd/nscd_stat.c (send_stats): Likewise.
4715         (receive_print_stats): Likewise.
4716         * nscd/pwdcache.c (cache_addpw): Likewise.
4717
4718         * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
4719
4720 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
4721
4722         * stdlib/bits/stdlib.h (mbstowcs): Divide __bos (__dst) by
4723         sizeof (wchar_t) rather than multiplying __len by sizeof (wchar_t).
4724         Pass __bos (__dst) / sizeof (wchar_t) to the *_chk routine.
4725         * wcsmbs/bits/wchar2.h (mbsrtowcs, mbsnrtowcs): Likewise.
4726         * debug/mbsnrtowcs_chk.c (__mbsnrtowcs_chk): Don't multiply
4727         len by sizeof (wchar_t).
4728         * debug/mbsrtowcs_chk.c (__mbsrtowcs_chk): Likewise.
4729         * debug/mbstowcs_chk.c (__mbstowcs_chk): Likewise.
4730         Fix type of SRC argument.  Pass &SRC rather than SRC to
4731         __mbsrtowcs.
4732         * debug/wcstombs_chk.c (__wcstombs_chk): Pass &SRC rather than SRC
4733         to __wcsrtombs.
4734         * debug/tst-chk1.c: Include assert.h.
4735         (do_test): Change enough array from VLA into a fixed size array.
4736         Assert that MB_CUR_MAX is <= sizeof (enough).  Use FAIL () macro
4737         instead of print error details.  Add several new tests.
4738         Kill some unused variable warnings.
4739
4740 2005-08-21  Ulrich Drepper  <drepper@redhat.com>
4741
4742         * resolv/res_send.c (Aerror): Fix printing IP address.
4743
4744         * resolv/res_send.c (send_vc): Pass correct sockaddr size to connect.
4745
4746 2005-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4747
4748         * sysdeps/ia64/fpu/libm_error.c (__libm_error_support): Don't abort.
4749
4750 2005-08-17  Robert Love  <rml@novell.com>
4751
4752         * sysdeps/unix/sysv/linux/sys/inotify.h: Add IN_MOVE_SELF event.
4753
4754 2005-08-19  Bruno Haible  <bruno@clisp.org>
4755
4756         * intl/localealias.c (read_alias_file): In case of failure, close the
4757         file descriptor and sort the array before returning.
4758
4759 2005-08-19  Ulrich Drepper  <drepper@redhat.com>
4760
4761         * malloc/Makefile: Link libmemusage.so with ld.so.
4762         * malloc/memusage.c: Use atomic operations for all counter and size
4763          computations.  Handle thread stacks.
4764         * sysdeps/generic/memusage.h: Define memusage_cntr_t and
4765         memusage_size_t.
4766         * sysdeps/i386/i686/memusage.h: New file.
4767         * include/atomic.h: Define atomic_max and atomic_min.
4768
4769         * debug/tst-chk1.c: Add tests for mbstowcs and wcstombs.
4770
4771 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4772
4773         [BZ #1207]
4774         * posix/regex.h: Remove spurious space-before-tab.  From gnulib.
4775
4776 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
4777
4778         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4779         sys/inotify.h.
4780         * sysdeps/unix/sysv/linux/sys/inotify.h: New file.
4781         * sysdeps/unix/sysv/linux/syscalls.list: Add inotify syscalls.
4782
4783         * nscd/cache.c (prune_cache): Add more debug output.  Only for
4784         debug level 3 and higher and very verbose.
4785
4786         * nscd/cache.c (prune_cache): Use stat64 not stat.
4787         * nscd/connections.c (nscd_init): Likewise.
4788
4789 2005-08-10  Sergio Gelato  <Sergio.Gelato@astro.su.se>
4790
4791         [BZ #1188]
4792         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
4793         from (len > 0) to (len >= 0).
4794
4795 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
4796
4797         * nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
4798         Reported by Thomas Schwinge.
4799
4800 2005-08-15  Jakub Jelinek  <jakub@redhat.com>
4801
4802         * nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
4803
4804 2005-08-16  Ulrich Drepper  <drepper@redhat.com>
4805
4806         * nss/getent.c (more_help): Use open_memstream instead of handling
4807         memory allocation ourselves.
4808
4809 2005-08-16  Jay Fenlason  <fenlason@redhat.com>
4810
4811         * nss/getent.c (parse_options): change the -s option to support
4812         {database}:{search} to override /etc/resolv.conf for only the
4813         specified database.
4814
4815 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
4816
4817         * nscd/connections.c (main_loop_epoll): Pass NULL as event
4818         argument for epoll_ctl(EPOLL_CTL_DEL) calls.
4819
4820         * nscd/nscd_stat.c (receive_print_stats): Really print values of
4821         thread number, paranoia, and restart interval the server is using.
4822
4823         * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf.
4824         * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk.
4825         * debug/vfprintf_chk.c: Add libc_hidden_def.
4826
4827 2005-08-08  Roland McGrath  <roland@redhat.com>
4828
4829         * argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
4830         (__argp_failure): Likewise.
4831
4832 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
4833
4834         * nscd/cache.c (cache_add): Commit hash table and header to disk.
4835
4836         * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.
4837         * nscd/connections.c (nscd_init): Likewise.
4838
4839 2005-08-08  Jakub Jelinek  <jakub@redhat.com>
4840
4841         * stdio-common/fxprintf.c: Include libioP.h.
4842
4843         * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,
4844         getdomainname): Add __NTH.
4845         * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs):
4846         Likewise.
4847         (realpath): Likewise.  Use __const instead of const.  Add __restrict
4848         keywords.
4849         * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf.
4850         * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset,
4851         wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb,
4852         mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH.
4853         * string/bits/string3.h (__memset_ichk): Likewise.
4854         (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk,
4855         __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk,
4856         __strncat_ichk): Likewise.  Use __const instead of const.
4857         (__stpncpy_chk): Use __const instead of const.
4858         (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT.
4859
4860 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
4861             Jakub Jelinek  <jakub@redhat.com>
4862
4863         * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move
4864         definitions to...
4865         * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here.
4866         * nscd/connections.c (usekey): New enum.
4867         (check_use, verify_persistent_db): New functions.
4868         (nscd_init): If persistent database is corrupted, unlink it and
4869         recreate rather than falling back to non-persistent database.
4870         Call verify_persistent_db.  Avoid overflows in total computation.
4871
4872 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
4873
4874         * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code
4875         better readable.  Avoid passing var to loop function, it's not
4876         necessary at all.
4877
4878 2005-08-07  Ulrich Drepper  <drepper@redhat.com>
4879
4880         * elf/elf.h (DT_ALPHA_PLTRO): Use symbolic name in DT_ALPHA_PLTRO
4881         definition.
4882
4883 2005-08-05  Ulrich Drepper  <drepper@redhat.com>
4884
4885         * timezone/checktab.awk: Update from tzcode2005k.
4886         * timezone/private.h: Likewise.
4887         * timezone/scheck.c: Likewise.
4888         * timezone/tzselect.ksh: Likewise.
4889         * timezone/zdump.c: Likewise.
4890         * timezone/zic.c: Likewise.
4891         * timezone/africa: Update from tzdata2005k.
4892         * timezone/antarctica: Likewise.
4893         * timezone/asia: Likewise.
4894         * timezone/australasia: Likewise.
4895         * timezone/europe: Likewise.
4896         * timezone/iso3166.tab: Likewise.
4897         * timezone/leapseconds: Likewise.
4898         * timezone/northamerica: Likewise.
4899         * timezone/solar87: Likewise.
4900         * timezone/solar88: Likewise.
4901         * timezone/solar89: Likewise.
4902         * timezone/southamerica: Likewise.
4903         * timezone/zone.tab: Likewise.
4904
4905 2005-08-05  Roland McGrath  <roland@frob.com>
4906
4907         [BZ #1251]
4908         * mach/shortcut.awk: Ignore `weak_alias' lines.
4909         Reported by Alfred M. Szmidt <ams@gnu.org>.
4910
4911         [BZ #1250]
4912         * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
4913         Reported by Alfred M. Szmidt <ams@gnu.org>.
4914
4915 2005-08-03  Dwayne Grant McConnell  <dgm69@us.ibm.com>
4916
4917         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
4918         Use +=, not =, to append.  Remove duplicate flags.
4919         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
4920         Likewise.  Fix comments.
4921
4922 2005-08-01  Ulrich Drepper  <drepper@redhat.com>
4923
4924         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Restart system
4925         call if it returned EINTR.
4926
4927 2005-07-31  Ulrich Drepper  <drepper@redhat.com>
4928
4929         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Move
4930         helper variable into .data.rel.ro.  Simplify the code.  Extend
4931         comment to explain prelinking.
4932
4933 2005-07-31  Andreas Jaeger  <aj@suse.de>
4934
4935         * include/bits/syslog.h: New file.
4936
4937 2005-07-30  Ulrich Drepper  <drepper@redhat.com>
4938
4939         * elf/dl-load.c [__WORDSIZE==64] (FILEBUF_SIZE): Adjust the value
4940         up.  We have more program header entries now and the note section
4941         was normally not loaded.
4942
4943         * nis/nis_subr.c: Some minor code cleanups.
4944
4945 2005-07-29  Ulrich Drepper  <drepper@redhat.com>
4946
4947         * misc/bits/syslog.h: New file.
4948         * misc/sys/syslog.h: Include <bits/syslog.h> for fortification.
4949         * misc/Makefile (headers): Add bits/syslog.h.
4950         * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto.
4951         * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk.
4952         Call __vfprintf_chk if necessary.  Make vsyslog a wrapper.  Add
4953         __syslog_chk.
4954         * misc/Versions: Export __syslog_chk and __vsyslog_chk.
4955
4956 2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>
4957
4958         [BZ #1137]
4959         * misc/error.c [_LIBC]: Include <stdbool.h> and <stdint.h>.
4960
4961 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
4962
4963         * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper
4964         functions.
4965
4966 2005-07-28  Jakub Jelinek  <jakub@redhat.com>
4967
4968         * stdio-common/fxprintf.c (__fxprintf): Add INTUSE to _IO_vfprintf
4969         call.
4970         * gmon/gmon.c (write_gmon): Use __snprintf rather than snprintf.
4971
4972 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
4973
4974         * nis/nis_file.c: Rewrite the two pairs of functions into wrappers
4975         around a pair of new, generalized functions.  22% size reduction.
4976
4977 2005-07-27  Ulrich Drepper  <drepper@redhat.com>
4978
4979         * nis/nis_xdr.c: Remove unnecessary cast which might hide bugs.
4980         Rearrange code.  This reduces the code size 10%.
4981
4982 2005-07-26  Jakub Jelinek  <jakub@redhat.com>
4983
4984         * misc/error.c (error_tail): Fix a comment typo.
4985
4986 2005-07-25  Ulrich Drepper  <drepper@redhat.com>
4987
4988         * po/zh_TW.po: Update from translation team.
4989
4990         * debug/mbstowcs_chk.c: New file.
4991         * debug/wcstombs_chk.c: New file.
4992         * debug/Makefile (routines): Add mbstowcs_chk and wcstombs_chk.
4993         * debug/Versions: Add __mbstowcs_chk and __wcstombs_chk.
4994         * stdlib/bits/stdlib.h: Add definitions for mbstowcs and wcstombs.
4995
4996         * wcsmbs/bits/wchar2.h (mbsrtowcs): Pretty printing.
4997
4998 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
4999
5000         * string/test-memset.c (test_main): Use negative byte value in
5001         test.
5002
5003         * string/test-memset.c (do_one_test): Compare effect of call, not
5004         only return value.
5005         Add a few casts to avoid warnings.
5006
5007 2005-07-24  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
5008
5009         * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
5010
5011 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
5012
5013         [BZ #1125]
5014         * posix/Makefile (tests): Add tst-execvp4.
5015         * posix/tst-execvp4.c: New file.
5016
5017 2005-07-24  Jakub Jelinek  <jakub@redhat.com>
5018
5019         [BZ #1125]
5020         * posix/execvp.c (execvp): Change path_malloc to
5021         char *, free that pointer on failure.
5022
5023 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
5024
5025         * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
5026         * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
5027         * wcsmbs/tst-wchar-h.c: New file.
5028
5029 2005-07-22  Ulrich Drepper  <drepper@redhat.com>
5030
5031         * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
5032
5033 2005-07-22  Jakub Jelinek  <jakub@redhat.com>
5034
5035         * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
5036         __gnuc_va_list rather than _G_va_list.
5037
5038 2005-07-22  Roland McGrath  <roland@redhat.com>
5039
5040         [BZ #869]
5041         * Makerules ($(objpfx)stubs): Fix last change.
5042
5043 2005-07-21  Roland McGrath  <roland@redhat.com>
5044
5045         * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
5046
5047         * stdlib/Makefile (headers): Move bits/wchar.h to ...
5048         * wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.
5049
5050 2005-07-21  Jakub Jelinek  <jakub@redhat.com>
5051
5052         * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
5053         * debug/tst-chk1.c (do_test): Add test for swprintf with format
5054         being the last argument.
5055
5056 2005-07-21  Thorsten Kukuk  <kukuk@suse.de>
5057
5058         * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
5059
5060         * stdio-common/fxprintf.c: Include string.h.
5061
5062 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
5063
5064         [BZ #1138]
5065         * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
5066         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5067         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5068
5069 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
5070             Darin Petkov  <darin@tensilica.com>
5071
5072         [BZ #1138]
5073         * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
5074
5075 2005-07-20  Jakub Jelinek  <jakub@redhat.com>
5076
5077         * include/stdio.h (__fxprintf): Remove wfmt argument.
5078         * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
5079         (__fxprintf): Remove wfmt argument, create wfmt format string on
5080         the fly from fmt.
5081         * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
5082         * argp/argp-help.c: Likewise.
5083         * assert/assert-perr.c: Likewise.
5084         * assert/assert.c: Likewise.
5085         * gmon/gmon.c: Likewise.
5086         * inet/rcmd.c: Likewise.
5087         * malloc/obstack.c: Likewise.
5088         * misc/error.c: Likewise.
5089         * misc/getpass.c: Likewise.
5090         * posix/getopt.c: Likewise.
5091         * resolv/res_hconf.c: Likewise.
5092         * stdio-common/perror.c: Likewise.
5093         * stdio-common/psignal.c: Likewise.
5094         * stdlib/fmtmsg.c: Likewise.
5095         * sunrpc/auth_unix.c: Likewise.
5096         * sunrpc/clnt_perr.c: Likewise.
5097         * sunrpc/clnt_tcp.c: Likewise.
5098         * sunrpc/clnt_udp.c: Likewise.
5099         * sunrpc/clnt_unix.c: Likewise.
5100         * sunrpc/svc_simple.c: Likewise.
5101         * sunrpc/svc_tcp.c: Likewise.
5102         * sunrpc/svc_udp.c: Likewise.
5103         * sunrpc/svc_unix.c: Likewise.
5104         * sunrpc/xdr.c: Likewise.
5105         * sunrpc/xdr_array.c: Likewise.
5106         * sunrpc/xdr_rec.c: Likewise.
5107         * sunrpc/xdr_ref.c: Likewise.
5108         * sysdeps/generic/wordexp.c: Likewise.
5109
5110 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
5111
5112         * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
5113         wcsrtombs, mbsnrtowcs, and wcsnrtombs.
5114         * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
5115         wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
5116         * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
5117         __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
5118         * debug/tst-chk1.c: Add tests for new functions.
5119         * debug/mbsnrtowcs_chk.c: New file.
5120         * debug/mbsrtowcs_chk.c: New file.
5121         * debug/wcrtomb_chk.c: New file.
5122         * debug/wcsnrtombs_chk.c: New file.
5123         * debug/wcsrtombs_chk.c: New file.
5124
5125 2005-07-19  Ulrich Drepper  <drepper@redhat.com>
5126
5127         * stdio-common/Makefile (aux): Add fxprintf.
5128         * stdio-common/fxprintf.c: New file.
5129         * include/stdio.h: Add declaration for __fxprintf.
5130         * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
5131         orientation test and two separate function calls.
5132         * argp/argp-help.c: Likewise.
5133         * assert/assert-perr.c: Likewise.
5134         * assert/assert.c: Likewise.
5135         * gmon/gmon.c: Likewise.
5136         * inet/rcmd.c: Likewise.
5137         * malloc/obstack.c: Likewise.
5138         * misc/error.c: Likewise.
5139         * misc/getpass.c: Likewise.
5140         * posix/getopt.c: Likewise.
5141         * resolv/res_hconf.c: Likewise.
5142         * stdio-common/perror.c: Likewise.
5143         * stdio-common/psignal.c: Likewise.
5144         * stdlib/fmtmsg.c: Likewise.
5145         * sunrpc/auth_unix.c: Likewise.
5146         * sunrpc/clnt_perr.c: Likewise.
5147         * sunrpc/clnt_tcp.c: Likewise.
5148         * sunrpc/clnt_udp.c: Likewise.
5149         * sunrpc/clnt_unix.c: Likewise.
5150         * sunrpc/svc_simple.c: Likewise.
5151         * sunrpc/svc_tcp.c: Likewise.
5152         * sunrpc/svc_udp.c: Likewise.
5153         * sunrpc/svc_unix.c: Likewise.
5154         * sunrpc/xdr.c: Likewise.
5155         * sunrpc/xdr_array.c: Likewise.
5156         * sunrpc/xdr_rec.c: Likewise.
5157         * sunrpc/xdr_ref.c: Likewise.
5158         * sysdeps/generic/wordexp.c: Likewise.
5159
5160         [BZ #1137]
5161         * misc/Makefile: Add rules to build and run tst-error1.
5162         * misc/tst-error1.c: New file.
5163         * misc/error.c: Fix memory leak and possibly endless loop.
5164
5165         * configure.in: Check for -fstack-protector gcc option.
5166         * config.make.in (have-ssp): Add template.
5167         * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
5168
5169         * nscd/nscd.c (main): Don't ignore result of chdir call.
5170
5171 2005-07-18  Roland McGrath  <roland@redhat.com>
5172
5173         [BZ #869]
5174         * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
5175         objdump command line.
5176
5177 2005-07-18  Ulrich Drepper  <drepper@redhat.com>
5178
5179         * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
5180
5181         * nscd/connections.c: Fix a few wur warnings.
5182
5183         [BZ #1113]
5184         * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
5185         length.  Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
5186
5187         * debug/confstr_chk.c: New file.
5188         * debug/getdomainname_chk.c: New file.
5189         * debug/getgroups_chk.c: New file.
5190         * debug/gethostname_chk.c: New file.
5191         * debug/getlogin_r_chk.c: New file.
5192         * debug/ttyname_r_chk.c: New file.
5193         * posix/bits/unistd.h: Add definitions for new debug versions.
5194         * debug/tst-chk1.c: Add tests for new functions.
5195         * debug/Versions: Export new functions.
5196         * debug/Makefile (routines): Add new files.
5197
5198         * stdlib/bits/stdlib.h: Fix typo.
5199
5200 2005-07-13  Thorsten Kukuk  <kukuk@suse.de>
5201
5202         * manual/Makefile (libc/index.html): Depend on dir-add.texi.
5203
5204 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
5205
5206         * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
5207         where necessary.
5208         * wcsmbs/bits/wchar2.h: Likewise.
5209
5210 2005-07-15  Andreas Jaeger  <aj@suse.de>
5211
5212         * debug/Makefile (tst-lfschk3-ENV): New, set locale.
5213         (tst-lfschk2-ENV): New.
5214         (tst-lfschk1-ENV): New.
5215         (tst-chk3-ENV): New.
5216         (tst-chk2-ENV): New.
5217         (tst-chk1-ENV): New.
5218
5219         [BZ #1079]
5220         * include/stdlib.h: Remove malloc attribute from __posix_memalign.
5221         * stdlib/stdlib.h: Likewise.
5222
5223 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
5224
5225         * wcsmbs/bits/wchar2.h: New file.
5226         * include/bits/wchar2.h: New file.
5227         * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
5228         requested.
5229         * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
5230         * string/bits/string3.h: Add fortified stpncpy definitions.
5231         * sysdeps/generic/stpncpy_chk.c: New file.
5232         * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
5233         Export _IO_wstrn_jumps.
5234         * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
5235         * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
5236         * debug/fgetws_chk.c: New file.
5237         * debug/fgetws_u_chk.c: New file.
5238         * debug/fwprintf_chk.c: New file.
5239         * debug/swprintf_chk.c: New file.
5240         * debug/vfwprintf_chk.c: New file.
5241         * debug/vswprintf_chk.c: New file.
5242         * debug/vwprintf_chk.c: New file.
5243         * debug/wcpcpy_chk.c: New file.
5244         * debug/wcpncpy_chk.c: New file.
5245         * debug/wcscat_chk.c: New file.
5246         * debug/wcscpy_chk.c: New file.
5247         * debug/wcsncat_chk.c: New file.
5248         * debug/wcsncpy_chk.c: New file.
5249         * debug/wmemcpy_chk.c: New file.
5250         * debug/wmemmove_chk.c: New file.
5251         * debug/wmempcpy_chk.c: New file.
5252         * debug/wmemset_chk.c: New file.
5253         * debug/wprintf_chk.c: New file.
5254         * debug/tst-chk1.c: Add tests for new functions.
5255         * debug/Versions: Export new functions.
5256         * debug/Makefile (routines): Add new functions.
5257
5258 2005-07-13  Ulrich Drepper  <drepper@redhat.com>
5259
5260         * nscd/nscd_helper.c: Add a few __builtin_expect.
5261
5262         [BZ #1080]
5263         * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
5264         * nscd/nscd_helper.c (wait_on_socket): New function.
5265         (get_mapping): Use wait_on_socket instead of poll.  The former handles
5266         EINTR of poll correctly.
5267         (__nscd_open_socket): Likewise.
5268         (get_mapping): Make sure BUF is aligned correctly.
5269         (get_mapping): Use munmap on correct pointer.
5270
5271 2005-07-12  Ulrich Drepper  <drepper@redhat.com>
5272
5273         * include/libc-symbols.h: Define macros for librt hidden symbols.
5274         * include/time.h: Add librt_hidden_proto definition for clock_gettime.
5275         * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
5276         * sysdeps/unix/clock_gettime.c: Likewise.
5277
5278         * stdlib/bits/stdlib.h: New file.
5279         * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
5280         requested.
5281         * Makefile (headers): Add bits/stdlib.h.
5282         * include/bits/stdlib.h: New file.
5283         * debug/Depend: New file.
5284         * debug/ptsname_r_chk.c: New file.
5285         * debug/realpath_chk.c: New file.
5286         * debug/wctomb_chk.c: New file.
5287         * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
5288         wctomb_chk.
5289         * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
5290         __wctomb_chk.
5291         * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
5292         __wctomb_chk.
5293
5294 2005-07-12  Jakub Jelinek  <jakub@redhat.com>
5295
5296         [BZ #1106]
5297         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
5298         (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
5299         instead of read and close_not_cancel_no_status instead of close.
5300
5301         [BZ #1106]
5302         * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
5303         HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
5304
5305 2005-06-27  Carlos O'Donell  <carlos@systemhalted.org>
5306
5307         * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
5308         after init_dfa.
5309
5310 2005-07-08  Ulrich Drepper  <drepper@redhat.com>
5311
5312         * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret.  Remove
5313         alignment.
5314         * sysdeps/x86_64/fpu/s_sincos.S: New file.
5315
5316         * include/fenv.h: Add libm_hidden_proto for fesetround and
5317         feholdexcept.
5318         * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
5319         * sysdeps/alpha/fpu/fesetround.c: Likewise.
5320         * sysdeps/generic/feholdexcpt.c: Likewise.
5321         * sysdeps/generic/fesetround.c: Likewise.
5322         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
5323         * sysdeps/i386/fpu/fesetround.c: Likewise.
5324         * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
5325         * sysdeps/ia64/fpu/fesetround.c: Likewise.
5326         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
5327         * sysdeps/powerpc/fpu/fesetround.c: Likewise.
5328         * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
5329         * sysdeps/s390/fpu/fesetround.c: Likewise.
5330         * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
5331         * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
5332         * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
5333         * sysdeps/sparc/fpu/fesetround.c: Likewise.
5334         * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
5335         * sysdeps/x86_64/fpu/fesetround.c: Likewise.
5336         * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
5337         ilogb.
5338         * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
5339         not ilogbf.
5340         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
5341         __cos, not sin and cos.
5342
5343 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
5344
5345         * resolv/res_send.c (send_dg): Recognize referral results and
5346         treat them as server errors.
5347         Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
5348
5349 2005-07-08  Carlos O'Donell  <carlos@systemhalted.org>
5350
5351         * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
5352
5353         * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
5354         * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
5355         * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
5356         * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
5357         * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
5358         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
5359
5360 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
5361
5362         * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
5363         * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
5364         * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
5365         * sysdeps/generic/s_ctan.c (__ctan): Likewise.
5366         * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
5367         * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
5368
5369 2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5370
5371         [BZ #974]
5372         * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
5373         (__preinit_array_end): Likewise.
5374         (__init_array_start): Likewise.
5375         (__init_array_end): Likewise.
5376         (__libc_csu_init): Take int argc, char **argv, char **envp.
5377         Call preinit_array and init_array with argc, argv, envp.
5378         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
5379         INIT_MAIN_ARGS.
5380         * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
5381         * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
5382         tst-array5dep.c, and tst-array5.exp.
5383         (tests): Add tst-array5.
5384         (tests-static): Add tst-array5-static.
5385         ($(objpfx)tst-array5): New target.
5386         ($(objpfx)tst-array5.out): Likewise.
5387         ($(objpfx)tst-array5-static.out): Likewise.
5388         * elf/tst-array5-static.c: New file.
5389         * elf/tst-array5-static.exp: Likewise.
5390         * elf/tst-array5.c: Likewise.
5391         * elf/tst-array5.exp: Likewise.
5392         * elf/tst-array5dep.c: Likewise.
5393
5394 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
5395
5396         * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
5397
5398 2005-07-05  Jakub Jelinek  <jakub@redhat.com>
5399
5400         * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
5401         Reported by Ulrich Weigand <uweigand@de.ibm.com>.
5402
5403         * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
5404
5405 2005-07-06  Ulrich Drepper  <drepper@redhat.com>
5406
5407         * elf/dl-error.c (_dl_signal_error): When testing for executable
5408         being relocated, take into account that nothing might even be loaded.
5409
5410         * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
5411         consider_profiling always to zero.  Don't count of compiler to
5412         remove unreached if block.
5413         * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
5414         Don't compile.
5415         * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
5416         * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
5417         * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
5418         Likewise.
5419         * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
5420         Likewise.
5421         * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
5422         (_dl_profile_resolve): Likewise.
5423         * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
5424         (_dl_profile_resolve): Likewise.
5425         * gmon/Makefile: Add rules to build and run tst-profile-static.
5426         * gmon/tst-profile-static.c: New file.
5427         * Makeconfig (+link-static): Allow passing program-specific flags.
5428
5429 2005-07-05  Thorsten Kukuk  <kukuk@suse.de>
5430
5431         [BZ #1111]
5432         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
5433         module provides getgrgid_r.
5434         (getgrnam_plusgroup): Preserve original return value.
5435         * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
5436         original return value.
5437         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
5438
5439 2005-07-05  Ulrich Drepper  <drepper@redhat.com>
5440
5441         [BZ #1101]
5442         * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
5443         MB_CUR_MAX.
5444         (build_wcs_upper_buffer): Likewise.
5445
5446         * csu/elf-init.c (__libc_csu_fini): Pretty printing.
5447
5448 2005-07-02  Roland McGrath  <roland@redhat.com>
5449
5450         * NEWS: Note LinuxThreads removal.
5451         * manual/install.texi (Installation): Don't mention linuxthreads.
5452         (Configuring and compiling): Don't use linuxthreads as example.
5453
5454         * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
5455         not linuxthreads.
5456         * sysdeps/unix/sysv/linux/configure: Regenerated.
5457         * resolv/Depend: Add nptl.
5458         * rt/Depend: Likewise.
5459
5460         * linuxthreads, linuxthreads_db: Directories removed (preserved in
5461         ports repository).
5462
5463 2005-06-27  Jakub Jelinek  <jj@ultra.linux.cz>
5464
5465         [BZ #1037]
5466         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
5467         use -mcpu=v8.
5468
5469 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
5470
5471         [BZ #1016]
5472         * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
5473
5474 2005-06-23  Thorsten Kukuk  <kukuk@suse.de>
5475
5476         [BZ #1109]
5477         * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
5478         with own translation.
5479
5480 2005-06-25  Jakub Jelinek  <jakub@redhat.com>
5481
5482         [BZ #1097]
5483         * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
5484         t2 to uint32_t instead of ulong.
5485         * sunrpc/Makefile (tests): Add tst-xdrmem.
5486         * sunrpc/tst-xdrmem.c: New test.
5487
5488         * Versions.def (ld): Add GLIBC_2.4.
5489         * configure.in: Add --enable-stackguard-randomization option.
5490         (ENABLE_STACKGUARD_RANDOMIZE): New define.
5491         * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
5492         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
5493         (_dl_setup_stack_chk_guard): New inline function.
5494         * sysdeps/generic/dl-osinfo.h: Include stdint.h.
5495         (_dl_setup_stack_chk_guard): New inline function.
5496         * elf/rtld.c (__stack_chk_guard): New variable.
5497         (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
5498         Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
5499         use THREAD_SET_STACK_GUARD if defined.
5500         * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
5501         * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
5502         (__libc_start_main): Set __stack_chk_guard to
5503         _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
5504         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
5505         traces of TLS_INIT_TP_EXPENSIVE.
5506         * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
5507         * debug/Makefile (routines): Add stack_chk_fail.
5508         (static-only-routines): Add stack_chk_fail_local.
5509         * debug/stack_chk_fail_local.c: New file.
5510         * debug/stack_chk_fail.c: New file.
5511         * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
5512         tests.
5513         * elf/tst-stackguard1.c: New file.
5514         * elf/tst-stackguard1-static.c: New file.
5515         * elf/stackguard-macros.h: New file.
5516
5517 2005-06-21  Ulrich Drepper  <drepper@redhat.com>
5518
5519         * resource/Makefile (tests): Add tst-getrlimit.
5520         * resource/tst-getrlimit.c: New file.
5521
5522         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
5523         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5524         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5525
5526 2005-06-20  Ulrich Drepper  <drepper@redhat.com>
5527
5528         * nscd/nscd.init: Get more in line with lsb3.
5529         * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
5530         * nscd/connections.c: Likewise.
5531
5532 2005-06-20  Jakub Jelinek  <jakub@redhat.com>
5533
5534         [BZ #653]
5535         * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
5536         _LINUX_QUOTA_VERSION >= 2.
5537         (_LINUX_QUOTA_VERSION): Define if not yet defined.
5538
5539         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
5540         RLIMIT_RTPRIO): Add.
5541         (RLIMIT_NLIMITS): Adjust.
5542         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
5543         RLIMIT_RTPRIO): Add.
5544         (RLIMIT_NLIMITS): Adjust.
5545         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
5546         RLIMIT_RTPRIO): Add.
5547         (RLIMIT_NLIMITS): Adjust.
5548         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
5549         RLIMIT_RTPRIO): Add.
5550         (RLIMIT_NLIMITS): Adjust.
5551
5552 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
5553
5554         [BZ #1106]
5555         * time/mktime.c: Always include <string.h> for prototype of
5556         implicitly used memcpy.
5557
5558         [BZ #1104]
5559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
5560         (truncate64): Use __truncate, not truncate.
5561         (__have_no_truncate64): Renamed from have_no_truncate64.
5562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
5563         (__have_no_truncate64): Renamed from have_no_truncate64.
5564
5565         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
5566         float functions for gcc 4.
5567
5568 2005-06-10  Jakub Jelinek  <jakub@redhat.com>
5569
5570         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
5571         Handle prelinked libraries and binaries with new style PLT.
5572
5573 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
5574
5575         * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
5576         R_PPC_REL16_HA): Define.
5577
5578 2005-06-14  Alan Modra  <amodra@bigpond.net.au>
5579
5580         * config.h.in (HAVE_ASM_PPC_REL16): Add.
5581         * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
5582         * elf/tls-macros.h (PowerPC32): Include config.h.  Add variants of
5583         TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
5584         * sysdeps/powerpc/powerpc32/configure.in: New file,
5585         * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
5586         * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
5587         (ppc_got): New inline function.
5588         (elf_machine_dynamic): Use ppc_got.  Add attribute const.
5589         (elf_machine_load_address): Add attribute const.  Don't use int vars.
5590         Use bcl rather than bl to save trashing branch target stack.  Use
5591         elf_machine_dynamic rather than duplicating code here.
5592         (elf_machine_runtime_setup): New inline function replacing define.
5593         Handle new PLT.
5594         (elf_machine_fixup_plt): Handle new PLT.
5595         (elf_machine_rela): Likewise.
5596         * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
5597         (CALL_MCOUNT): Don't set up counter vars.
5598         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
5599         * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
5600         define when HAVE_ASM_PPC_REL16.
5601         (_start): Add HAVE_ASM_PPC_REL16 code.
5602         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
5603         into the GOT when HAVE_ASM_PPC_REL16.
5604         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
5605         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
5606         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
5607         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
5608         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
5609         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
5610         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
5611         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
5612         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
5613         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
5614         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
5615         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
5616         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
5617         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
5618         Likewise.
5619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
5620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
5621         (__getcontext): Likewise.
5622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
5623         (__setcontext): Likewise.
5624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
5625         (__swapcontext): Likewise.
5626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
5627         Comment.
5628         (__socket): Bomb if NARGS >= 7.  Invoke CGOTSETUP and CGOTRESTORE.
5629
5630 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
5631
5632         [BZ #1106]
5633         * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
5634         to use __GI_memset.
5635         * sysdeps/posix/signal.c: Likewise.
5636         * sysdeps/posix/sigset.c: Likewise.
5637         * sysdeps/posix/sysv_signal.c: Likewise.
5638         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5639         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5640         * sysdeps/unix/sysv/linux/system.c: Likewise.
5641
5642 2005-06-15  Jakub Jelinek  <jakub@redhat.com>
5643
5644         [BZ #1088]
5645         * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
5646         or both classes equal here.
5647         (parse_config_file): If both classes are equal, clear the second one.
5648
5649 2005-06-08  Karl Kelley  <kekelley@iastate.edu>
5650
5651         [BZ #1088]
5652         * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
5653         * hesiod/hesiod.c (hesiod_init): Initialize classes.  Fail if no
5654         valid classes were given or if both are equal.
5655         (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
5656         and C_HS order.
5657         (parse_config_file): Handle classes keyword.
5658         * hesiod/README.hesiod: Mention addition of the classes keyword.
5659
5660 2005-06-14  Ulrich Drepper  <drepper@redhat.com>
5661
5662         [BZ #1085]
5663         * configure.in: Add test for availability of libaudit.
5664         * config.h.in: Define HAVE_LIBAUDIT.
5665         * config.make.in: Define have-libaudit.
5666         * nscd/Makefile: If libaudit is available, link nscd with it.
5667         * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
5668         Patch by Steve Grubb <sgrubb@redhat.com>.
5669
5670         * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
5671         * sysdeps/posix/posix_fallocate64.c: Likewise.
5672         * include/string.h: Use libc_hidden_proto for strnlen.
5673         * sysdeps/generic/strnlen.c: Add libc_hidden_def.
5674         * include/libintl.h: Use libc_hidden_proto for __dcgettext.
5675         * intl/dcgettext.c: Add libc_hidden_def.
5676         * include/execinfo.h: Add libc_hidden_proto for __backtrace and
5677         __backtrace_symbols_fd.
5678         * sysdeps/generic/backtrace.c: Add libc_hidden_def.
5679         * sysdeps/generic/backtracesymsfd.c: Likewise.
5680         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5681         * sysdeps/i386/backtrace.c: Likewise.
5682         * sysdeps/ia64/backtrace.c: Likewise.
5683         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
5684         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
5685         * sysdeps/s390/s390-32/backtrace.c: Likewise.
5686         * sysdeps/s390/s390-64/backtrace.c: Likewise.
5687
5688 2005-06-13  Ulrich Drepper  <drepper@redhat.com>
5689
5690         * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
5691         where HANDLED_REALTIME is not defined.  [BZ #966]
5692
5693 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
5694
5695         [BZ #1096]
5696         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
5697         __netlink_receive): Remove prototypes.
5698         (__netlink_request): New prototype.
5699         * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
5700         <stdint.h>.
5701         (__netlink_sendreq): Make static.
5702         (__netlink_receive): Rename to...
5703         (__netlink_request): ... this.  Add type argument, call
5704         __netlink_sendreq.  If MSG_TRUNC is set after recvmsg, retry
5705         with a bigger buffer.  Don't record buffers that contain no
5706         messages we are expecting.
5707         (getifaddrs): Use __netlink_request instead of __netlink_sendreq
5708         and __netlink_receive pairs.  Formatting.
5709         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
5710         __netlink_request instead of __netlink_sendreq and __netlink_receive
5711         pair.
5712
5713 2005-06-13  Thorsten Kukuk  <kukuk@suse.de>
5714
5715         * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
5716         headers, instead copy important structs/defines.
5717
5718 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
5719
5720         * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
5721         _dl_debug_state call.
5722
5723 2005-06-12  Ulrich Drepper  <drepper@redhat.com>
5724
5725         * elf/dl-error.c (_dl_signal_error): Store information about use of
5726         real malloc in the catch object.
5727         (_dl_catch_error): Forward information about malloc use to caller
5728         in new parameter.
5729         (_dl_out_of_memory): Make static.
5730         * elf/dl-deps.c: Adjust callers of _dl_catch_error.
5731         * elf/dl-libc.c: Likewise.
5732         * elf/dl-open.c: Likewise.
5733         * elf/rtld.c: Likewise.
5734         Add new --audit option.
5735         * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
5736         (rtld_global_ro._dl_signal_error): Add new parameter.
5737         * include/dlfcn.h (_dl_catch_error): Add new parameter.
5738         * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
5739         _dl_catch_error.  Only free if the returned newly value says so.
5740
5741 2005-06-01  Roland McGrath  <roland@redhat.com>
5742
5743         [BZ #959]
5744         * posix/tst-mmap.c (main): Fill the test file with enough data for the
5745         page size.
5746
5747 2005-05-30  Jakub Jelinek  <jakub@redhat.com>
5748
5749         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
5750         GLRO(dl_osversion) has been already set to a value smaller than
5751         _dl_discover_osversion (), don't overwrite it here.
5752
5753 2005-05-24  Thomas Schwinge  <schwinge@nic-nac-project.de>
5754
5755         * sysdeps/mach/i386/syscall.S (syscall): Call END.
5756
5757 2005-05-28  Richard Henderson  <rth@redhat.com>
5758
5759         * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
5760         * sysdeps/alpha/dl-dtprocnum.h: New file.
5761         * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
5762         (elf_machine_load_address): Simplify to rely on gprel relocations.
5763         (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
5764         Remove thread safety workaround for binutils 2.6.
5765         (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
5766         * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
5767         (_dl_runtime_profile_new): New.
5768         (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
5769         (_dl_runtime_profile_old): Rename from _dl_runtime_profile.  Fix
5770         typo in _dl_call_pltexit argument loading.
5771
5772         * sysdeps/alpha/div_libc.h (funcnoplt): New.
5773         * sysdeps/alpha/divl.S: Use it.
5774         * sysdeps/alpha/divq.S: Likewise
5775         * sysdeps/alpha/divqu.S: Likewise.
5776         * sysdeps/alpha/reml.S: Likewise.
5777         * sysdeps/alpha/remq.S: Likewise.
5778         * sysdeps/alpha/remqu.S: Likewise.
5779
5780 2005-05-26  Andreas Schwab  <schwab@suse.de>
5781
5782         * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
5783
5784 2005-05-26  Ulrich Drepper  <drepper@redhat.com>
5785
5786         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
5787         Reported by Colin Gibbs <colin@gibbsonline.net>.  [BZ #954]
5788
5789 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
5790
5791         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
5792         _dl_hwcap access in PIC && !SHARED case.
5793         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5794
5795 2005-05-25  Dwayne Grant McConnell  <dgm69@us.ibm.com>
5796
5797         * gmon/gmon.c: Add space in weak_alias use.
5798         * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
5799         * sysdeps/alpha/htonl.S: Likewise.
5800         * sysdeps/alpha/htons.S: Likewise.
5801         * sysdeps/alpha/elf/start.S: Likewise.
5802         * sysdeps/i386/i386-mcount.S: Likewise.
5803         * sysdeps/ia64/strchr.S: Likewise.
5804         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
5805         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
5806         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
5807         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
5808         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
5809         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
5810         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
5811         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
5812         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
5813         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
5814         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
5815         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
5816         * sysdeps/mach/hurd/readdir64_r.c: Likewise.
5817         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
5818         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
5819         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
5820         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
5821         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
5822         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
5823         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
5824         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
5825         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
5826         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
5827         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
5828         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
5829         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
5830         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
5831         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
5832         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
5833         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
5834         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
5835         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
5836         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5837         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5838         * sysdeps/sparc/sparc32/memset.S: Likewise.
5839         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
5840         * sysdeps/sparc/sparc32/strchr.S: Likewise.
5841         * sysdeps/sparc/sparc32/strchr.S: Likewise.
5842         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
5843         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5844         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5845         * sysdeps/sparc/sparc64/memset.S: Likewise.
5846         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5847         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5848         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5849         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5850         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
5851         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5852         * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
5853         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
5854         * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
5855         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
5856         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
5857         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
5858         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
5859         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
5860         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
5861         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5862         * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
5863         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5864         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5865         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
5866         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
5867         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
5868         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
5869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5870         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
5871         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
5872         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
5873         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
5874         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
5875         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
5876         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
5877         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
5878         * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
5879         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
5880         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
5881         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
5882         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
5883         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5884         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
5885         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5886         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5887         * sysdeps/x86_64/_mcount.S: Likewise.
5888
5889 2005-05-24  Roland McGrath  <roland@redhat.com>
5890
5891         * sysdeps/unix/sysv/linux/i386/sysdep.h
5892         (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
5893         * sysdeps/i386/sysdep.h [PIC]: ... to here.
5894
5895 2005-05-23  Roland McGrath  <roland@redhat.com>
5896
5897         * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
5898         Subdirectories moved to ports repository.
5899         * configure.in (base_machine): Remove arm* and thumb* patterns.
5900         * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
5901
5902 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
5903
5904         [BZ #1086]
5905         * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
5906         implementations are broken and don't accept ports < 512.
5907
5908 2005-05-22  Dmitry V. Levin  <ldv@altlinux.org>
5909
5910         [BZ #961]
5911         * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
5912         declarations.
5913
5914 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
5915
5916         [BZ #1086]
5917         * sunrpc/pm_getport.c (__get_socket): New function.
5918         (pmap_getport): Use it to open a non-reserved socket to the portmapper
5919         for TCP.
5920         * include/rpc/pmap_clnt.h (__get_socket): Declare.
5921         * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
5922         non-reserved socket for the portmapper.
5923         Based on a patch by Steve Dickson <steved@redhat.com>.
5924
5925         [BZ #1086]
5926         * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
5927         If we tried looking at the usual range without success extend the
5928         range to even lower ports.
5929
5930         * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
5931
5932 2005-05-22  Andreas Schwab  <schwab@suse.de>
5933
5934         * elf/rtld.c: Include <dl-osinfo.h>.
5935
5936 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
5937
5938         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
5939         JUMPTARGET.  Instead append @local to __syscall_error.
5940         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
5941         of JUMPTARGET.  Instead append @local to labels.
5942         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5943         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5944         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
5945         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
5946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
5948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
5949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
5951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
5952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
5953
5954         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
5955         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
5956         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
5957         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5958         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.  Use one GOT
5959         slot to access both constants.
5960         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
5961         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5962
5963         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
5964         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
5965         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
5966         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
5967         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
5968         (NEGZERO.0, POINTFIVE.0): Delete.
5969         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
5970         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
5971         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
5972         (TWO52.0, POINTFIVE.0): Delete.
5973         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
5974         (TWO23.0, POINTFIVE.0): Delete.
5975         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
5976         (TWO52.0): Delete.
5977         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
5978         (TWO23.0): Delete.
5979         * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
5980
5981 2005-05-19  Richard Henderson  <rth@redhat.com>
5982
5983         * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
5984         CLOCK_REALTIME.
5985
5986         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
5987         __arch_compare_and_exchange_bool_64_acq,
5988         __arch_compare_and_exchange_val_32_acq,
5989         __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
5990         Use __sync builtin without _si or _di suffix.
5991
5992 2005-05-19  Jakub Jelinek  <jakub@redhat.com>
5993
5994         [BZ #955]
5995         * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
5996         <UFFFF> and above.
5997
5998 2005-05-17  Andreas Schwab  <schwab@suse.de>
5999
6000         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6001         (clock_getcpuclockid): Always return a defined value.
6002
6003 2005-05-17  Neal H. Walfield  <neal@gnu.org>
6004
6005         [BZ #1350]
6006         * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
6007         instead of [SALEN].
6008         (gaih_inet): Likewise.
6009
6010 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
6011
6012         * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
6013         (Elf64_auxv_t): Likewise.
6014         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
6015         removal of a_ptr element in ElfXX_auxv_t.
6016         * elf/dl-support.c (_dl_aux_init): Likewise.
6017
6018 2005-05-09  Daniel Jacobowitz  <dan@codesourcery.com>
6019
6020         * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
6021         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
6022
6023 2005-05-09  Alan Modra  <amodra@bigpond.net.au>
6024
6025         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
6026         .pushsection/.popsection in place of .section/.previous.
6027
6028 2005-05-08  Ulrich Drepper  <drepper@redhat.com>
6029
6030         * MakeTAGS: Make xgettext not look into test cases.
6031
6032         * MakeTAGS: Make sure translations in error calls are marked with
6033         c-format by xgettext.
6034
6035 2005-05-07  Ulrich Drepper  <drepper@redhat.com>
6036
6037         * intl/libintl.h: Always use __attribute_format_arg__ for gettext
6038         functions since gcc sometimes forgets the attribute for the
6039         standard functions.
6040
6041 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
6042
6043         [BZ #934]
6044         * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
6045         __libc_lock_* macros if not _LIBC.
6046         (struct re_dfa_t): Add lock.
6047         * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
6048         * posix/regexec.c (regexec, re_search_stub): Add locking.
6049
6050 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
6051
6052         * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
6053         as argument to the scripts.
6054         * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
6055         * intl/tst-gettext4.sh: Likewise.  Use run_program_prefix argument.
6056         * intl/tst-gettext5.sh: Likewise.
6057
6058         * intl/tst-translit.sh: Add mkdir -p.
6059
6060         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
6061         .ifndef/.endif to allow use of this macro more than once per .S
6062         file.
6063         (LOAD_PIC_REG): New macro.
6064         * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
6065         information.
6066         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
6067         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
6068         * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro.  Add call frame
6069         information.
6070         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6071         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6072         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6073         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6074         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
6075         * sysdeps/i386/fpu/s_lrint.S: Likewise.
6076         * sysdeps/i386/fpu/s_llrint.S: Likewise.
6077         * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
6078         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6079         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6080         * sysdeps/i386/fpu/e_log.S: Likewise.
6081         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6082         * sysdeps/i386/fpu/s_lrintl.S: Likewise.
6083         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6084         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6085         * sysdeps/i386/fpu/s_log1p.S: Likewise.
6086         * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
6087         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6088         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
6089         * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
6090         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6091         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
6092         * sysdeps/i386/fpu/s_lrintf.S: Likewise.
6093         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6094         * sysdeps/i386/fpu/s_cexp.S: Likewise.
6095         * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
6096         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6097         * sysdeps/i386/fpu/e_powl.S: Likewise.
6098         * sysdeps/i386/fpu/e_powf.S: Likewise.
6099         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6100         * sysdeps/i386/fpu/e_logl.S: Likewise.
6101         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6102         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6103         * sysdeps/i386/fpu/e_pow.S: Likewise.
6104         * sysdeps/i386/fpu/e_logf.S: Likewise.
6105         * sysdeps/i386/fpu/e_log2.S: Likewise.
6106         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6107         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6108         * sysdeps/i386/fpu/s_llrintf.S: Likewise.
6109         * sysdeps/i386/fpu/s_ilogb.S: Likewise.
6110         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6111         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6112         * sysdeps/i386/fpu/e_log10.S: Likewise.
6113         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6114         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6115         * sysdeps/i386/fpu/s_llrintl.S: Likewise.
6116         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6117         * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
6118         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6119         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6120         * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
6121         * sysdeps/i386/mul_1.S: Likewise.
6122         * sysdeps/i386/strtok.S: Likewise.
6123         * sysdeps/i386/sub_n.S: Likewise.
6124         * sysdeps/i386/submul_1.S: Likewise.
6125         * sysdeps/i386/i586/addmul_1.S: Likewise.
6126         * sysdeps/i386/i586/memcpy.S: Likewise.
6127         * sysdeps/i386/i586/mul_1.S: Likewise.
6128         * sysdeps/i386/i586/rshift.S: Likewise.
6129         * sysdeps/i386/i586/sub_n.S: Likewise.
6130         * sysdeps/i386/i586/submul_1.S: Likewise.
6131         * sysdeps/i386/i686/memcmp.S: Likewise.
6132         * sysdeps/i386/i686/memmove.S: Likewise.
6133         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
6134         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6135         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6136         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
6137
6138 2005-05-03  Ulrich Drepper  <drepper@redhat.com>
6139
6140         * sysdeps/i386/add_n.S: Add call frame information.
6141         * sysdeps/i386/addmul_1.S: Likewise.
6142         * sysdeps/i386/bsd-setjmp.S: Likewise.
6143         * sysdeps/i386/lshift.S: Likewise.
6144         * sysdeps/i386/memchr.S: Likewise.
6145         * sysdeps/i386/memcmp.S: Likewise.
6146         * sysdeps/i386/mul_1.S: Likewise.
6147         * sysdeps/i386/rawmemchr.S: Likewise.
6148         * sysdeps/i386/rshift.S: Likewise.
6149         * sysdeps/i386/stpncpy.S: Likewise.
6150         * sysdeps/i386/strchr.S: Likewise.
6151         * sysdeps/i386/strchrnul.S: Likewise.
6152         * sysdeps/i386/strcspn.S: Likewise.
6153         * sysdeps/i386/strpbrk.S: Likewise.
6154         * sysdeps/i386/strrchr.S: Likewise.
6155         * sysdeps/i386/strspn.S: Likewise.
6156         * sysdeps/i386/strtok.S: Likewise.
6157         * sysdeps/i386/sub_n.S: Likewise.
6158         * sysdeps/i386/submul_1.S: Likewise.
6159         * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
6160         * sysdeps/i386/i486/strcat.S: Likewise.
6161         * sysdeps/i386/i586/add_n.S: Likewise.
6162         * sysdeps/i386/i586/addmul_1.S: Likewise.
6163         * sysdeps/i386/i586/lshift.S: Likewise.
6164         * sysdeps/i386/i586/memcpy.S: Likewise.
6165         * sysdeps/i386/i586/memset.S: Likewise.
6166         * sysdeps/i386/i586/mul_1.S: Likewise.
6167         * sysdeps/i386/i586/rshift.S: Likewise.
6168         * sysdeps/i386/i586/strchr.S: Likewise.
6169         * sysdeps/i386/i586/strcpy.S: Likewise.
6170         * sysdeps/i386/i586/sub_n.S: Likewise.
6171         * sysdeps/i386/i586/submul_1.S: Likewise.
6172         * sysdeps/i386/i686/add_n.S: Likewise.
6173         * sysdeps/i386/i686/memcmp.S: Likewise.
6174         * sysdeps/i386/i686/memmove.S: Likewise.
6175         * sysdeps/i386/i686/mempcpy.S: Likewise.
6176         * sysdeps/i386/i686/memset.S: Likewise.
6177         * sysdeps/i386/i686/strtok.S: Likewise.
6178         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
6179         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6180         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6181         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
6182         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
6183         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
6184
6185         * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
6186
6187         * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
6188         on ppc in 2.6.12.
6189
6190 2005-04-29  Jakub Jelinek  <jakub@redhat.com>
6191
6192         [BZ #1083]
6193         * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
6194         call ftruncate if offset is bigger than current size.  Make sure
6195         the file is offset + len bytes long if that is more than current size.
6196         Don't overwrite previous content of the file.
6197         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
6198         Likewise.
6199
6200 2005-05-02  Roland McGrath  <roland@redhat.com>
6201
6202         [BZ #924]
6203         * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
6204
6205 2005-04-29  Roland McGrath  <roland@redhat.com>
6206
6207         * timezone/africa: Update from tzdata2005i.
6208         * timezone/asia: Likewise.
6209         * timezone/northamerica: Likewise.
6210         * timezone/yearistype: Likewise.
6211
6212         * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
6213
6214 2005-04-29  Ulrich Drepper  <drepper@redhat.com>
6215
6216         [BZ #1093]
6217         * nis/nis_table.c: Fix realloc handling.
6218         * nis/nis_removemember.c: Likewise.
6219
6220 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
6221
6222         [BZ #798]
6223         * nscd/Makefile: Help losers who use --with-headers.
6224
6225 2005-04-28  Roland McGrath  <roland@redhat.com>
6226
6227         [BZ #796]
6228         * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
6229         Define NEED_DL_SYSINFO_DSO for all platforms.
6230
6231         * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
6232         * sysdeps/alpha/dl-sysdep.h: Likewise.
6233         Use #include_next instead of duplicating generic file's contents.
6234         * sysdeps/ia64/dl-sysdep.h: Likewise.
6235         * sysdeps/sparc/dl-sysdep.h: Likewise.
6236
6237 2005-03-22  Steven Munroe  <sjmunroe@us.ibm.com>
6238
6239         * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
6240
6241 2005-03-07  Steven Munroe  <sjmunroe@us.ibm.com>
6242
6243         [BZ #781]
6244         * sysdeps/unix/sysv/linux/kernel-features.h
6245         (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
6246         (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
6247         (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
6248         with 2.6.1.
6249         (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
6250
6251 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
6252
6253         * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
6254         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6255         * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
6256         cfi_startproc and cfi_endproc.
6257
6258         * configure.in: Remove ultrasparc names.
6259
6260         * sysdeps/i386/i686/memcmp.S: Move misplaced END.
6261
6262 2005-03-27  Bruno Haible  <bruno@clisp.org>
6263
6264         Make it possible for multiple threads to use gettext() in different
6265         locales.
6266         * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
6267         (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
6268         field.
6269         (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
6270         (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
6271         search and newp.
6272
6273         * intl/tst-gettext4.c: New file.
6274         * intl/tst-gettext4.sh: New file.
6275         * intl/tst-gettext4-de.po: New file.
6276         * intl/tst-gettext4-fr.po: New file.
6277         * intl/tst-gettext5.c: New file.
6278         * intl/tst-gettext5.sh: New file.
6279         * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
6280         tst-gettext4-fr.po, tst-gettext5.sh.
6281         (multithread-test-srcs): New variable.
6282         (test-srcs): Add its contents.
6283         (tests): Depend on tst-gettext4.out, tst-gettext5.out.
6284         (tst-gettext4.out, tst-gettext5.out): New rules.
6285         (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
6286         Add rule for linking the multithread-test-srcs with the appropriate
6287         thread-library.
6288
6289 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
6290
6291         * po/rw.po: New file.  From translation team.
6292
6293         * scripts/config.guess: Update from upstream.
6294         * scripts/config.sub: Likewise.
6295
6296 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
6297
6298         [BZ #1094]
6299         * nscd/connections.c (nscd_run): Use time() value in prune_cache
6300         call, not timeout value, since the latter might be from another clock.
6301
6302 2005-04-27  Roland McGrath  <roland@redhat.com>
6303
6304         [BZ #877]
6305         * posix/unistd.h: Remove __nonnull from acct decl.
6306
6307         * rt/tst-cpuclock1.c: New file.
6308         * rt/tst-cpuclock2.c: New file.
6309         * rt/tst-cputimer1.c: New file.
6310         * rt/tst-cputimer2.c: New file.
6311         * rt/tst-cputimer3.c: New file.
6312         * rt/Makefile (tests): Add them.
6313
6314         * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
6315         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
6316         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
6317         (HAS_CPUCLOCK): New macro.
6318         (clock_getcpuclockid): Function removed.
6319         #include the new linux file to define it instead.
6320         * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
6321         New function, broken out of ...
6322         (clock_gettime) [HP_TIMING_AVAIL]: ... here.  Call it.
6323         (realtime_gettime): New function, broken out of ...
6324         (clock_gettime) [! HANDLED_REALTIME]: ... here.  Call it.
6325         (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
6326         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
6327         (SYSDEP_GETTIME_CPUTIME): New macro.
6328         (SYSDEP_GETTIME): Use both.
6329         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
6330         out of ...
6331         (SYSDEP_GETTIME): ... here.  Use it.
6332         [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
6333         (SYSDEP_GETTIME_CPUTIME): New macro.  Handle CPU timers by trying
6334         kernel support and falling back to hp-timing code.
6335         * sysdeps/posix/clock_getres.c
6336         [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
6337         (clock_getres) [HP_TIMING_AVAIL]: ... here.  Call it.
6338         (realtime_getres): New function, broken out of ...
6339         (clock_getres) [! HANDLED_REALTIME]: ... here.  Call it.
6340         (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
6341         * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
6342         (SYSDEP_GETRES_CPUTIME): New macro.
6343         (SYSDEP_GETRES): Use both.
6344         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
6345         out of ...
6346         (SYSDEP_GETRES): ... here.  Use it.
6347         [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
6348         (SYSDEP_GETRES_CPUTIME): New macro.  Handle CPU timers by trying
6349         kernel support and falling back to hp-timing code.
6350         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
6351         CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
6352         translating to the kernel clockid_t for our own process/thread clock.
6353
6354 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
6355
6356         * stdlib/test-canon.c: Make doesExist a directory and add more tests
6357         for the new error case.
6358
6359 2004-06-02  Dmitry V. Levin  <ldv@altlinux.org>
6360             Ranjani Murthy <ranmur@gmail.com>
6361
6362         * stdlib/canonicalize.c (__realpath): Change realpath(3) to
6363         return NULL and set errno to ENOTDIR for such pathnames like
6364         "/path/to/existing-non-directory/".
6365
6366 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
6367
6368         [BZ #1105]
6369         * time/strptime_l.c (__strptime_internal): Handle 'z' to set
6370         tm_gmtoff.
6371         * time/Makefile (tests): Add tst-strptime2.
6372         * time/tst-strptime2.c: New file.
6373
6374 2005-04-26  Jakub Jelinek  <jakub@redhat.com>
6375
6376         [BZ #1081]
6377         * elf/dl-close.c: Include stddef.h.
6378         (_dl_close): If called recursively, just remember GC needs to be rerun
6379         and decrease l_direct_opencount.  Avoid GC if l_direct_opencount
6380         decreased to 1.  Rerun GC at the end if any destructor unloaded some
6381         additional libraries.
6382         * elf/Makefile: Add rules to build and run unload6 test.
6383         * elf/unload6.c: New test.
6384         * elf/unload6mod1.c: New file.
6385         * elf/unload6mod2.c: New file.
6386         * elf/unload6mod3.c: New file.
6387
6388         * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
6389         if magic_p is not NULL.
6390         (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
6391         (malloc_check): Fail if sz == -1.
6392         (free_check): Adjust mem2chunk_check caller.
6393         (realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
6394         oldmem != NULL, call free_check and return NULL.  If reallocating
6395         and returning NULL, invert magic byte again to make oldmem valid
6396         region for further checking.
6397         (memalign_check): Fail if bytes == -1.
6398         * malloc/Makefile: Add rules to build and run tst-mcheck.
6399         * malloc/tst-mcheck.c: New test.
6400
6401 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
6402
6403         [BZ #1110]
6404         * stdio-common/vfscanf.c: Correctly account for characters of
6405         decimal points right after +-.
6406
6407 2005-04-26  Roland McGrath  <roland@redhat.com>
6408
6409         * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
6410         ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
6411
6412 2005-04-25  Roland McGrath  <roland@redhat.com>
6413
6414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6415         (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
6416
6417         * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
6418
6419         * elf/dl-load.c: Revert last change.
6420
6421 2005-04-24  Ulrich Drepper  <drepper@redhat.com>
6422
6423         [BZ #1110]
6424         * stdio-common/vfscanf.c: Fix parsing of decimal point after +-.
6425         Patch by Hamed Malek <hamed@bamdad.org>.
6426
6427 2005-04-21  Roland McGrath  <roland@redhat.com>
6428
6429         * elf/dl-load.c (_dl_map_object_from_fd): Don't use MAP_DENYWRITE,
6430         since Linux ignores it in user mmap calls.
6431
6432 2005-04-17  David S. Miller  <davem@davemloft.net>
6433
6434         * sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
6435         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6436
6437 2005-04-15  Roland McGrath  <roland@redhat.com>
6438
6439         * timezone/Makefile (zic-deps): New variable.
6440         ($(testdata)/America/New_York): Use it instead of explicit deps.
6441         ($(testdata)/Etc/UTC, $(testdata)/Australia/Melbourne): Likewise.
6442         ($(testdata)/America/Sao_Paulo, $(testdata)/Asia/Tokyo): Likewise.
6443         (%/UTC %/Universal): New pattern rule, replaces ...
6444         ($(testdata)/UTC, $(testdata)/Universal): ... these removed targets.
6445         ($(testdata)/%/Berlin $(testdata)/%/London): New pattern rule.
6446         ($(testdata)/Europe/London, $(testdata)/Europe/Berlin): Removed.
6447
6448 2005-04-14  Roland McGrath  <roland@redhat.com>
6449
6450         * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well.
6451         (extract): Filter-out distinfo file name.
6452
6453         [BZ #253]
6454         * MakeTAGS (text-srcs): Match %.bash.in files too.
6455
6456         [BZ #253]
6457         * nscd/Makefile (all-nscd-modules): New variable, include selinux
6458         module regardless of configuration.
6459         (distribute): Use that instead of $(nscd-modules).
6460
6461 2005-04-13  David S. Miller  <davem@davemloft.net>
6462
6463         Add sparc64 TLS and NPTL support.
6464         * elf/tls-macros.h: Add Sparc64 defines.
6465         * sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
6466         always_inline.
6467         (elf_machine_fixup_plt): Likewise.
6468         (elf_machine_rela): Handle TLS relocations.
6469         (elf_machine_type_cleaa): Likewise.
6470         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6471         (SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
6472         It does not always fit in R_SPARC_GOT13 when building -fPIC.
6473         Also, add TLS handling.
6474         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6475         Increase it to 2.4.21 for sparc64.
6476         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
6477         backtrace by zero'ing out %fp.  Store away flags, func_ptr,
6478         and func_arg in global registers not local registers.
6479         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
6480         and CTID arguments properly.  Add RESET_PID handling.
6481         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
6482         do not invoke __sigprocmask().  We can always assume rt signals
6483         are present on sparc64, so just do an inline syscall.
6484
6485 2005-04-13  Jakub Jelinek  <jakub@redhat.com>
6486
6487         * sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
6488         inclusion guard for the first half of the header.
6489         (elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
6490         ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
6491         elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
6492         #ifndef dl_machine_h guarded part of the header.
6493
6494 2005-04-14  Ulrich Drepper  <drepper@redhat.com>
6495
6496         [BZ #851]
6497         * posix/execvp.c (execvp): Use file name including path when
6498         trying to run it with shell.
6499         * posix/Makefile: Add rules to build and run tst-execvp3.
6500         * posix/tst-execvp3.c: New file.
6501
6502 2005-04-12  Ulrich Drepper  <drepper@redhat.com>
6503
6504         [BZ #1090]
6505         * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
6506         * string/tst-strfry.c: New file.
6507         * string/Makefile (tests): Add tst-strfry.
6508
6509 2005-04-11  James A. Morrison  <ja2morri@uwaterloo.ca>
6510
6511         * manual/string.texi: Fix typo in wmemcpy decl.
6512
6513 2005-04-10  David S. Miller  <davem@davemloft.net>
6514
6515         * sysdeps/sparc/sparc32/dl-trampoline.S: Use std not stx.
6516
6517 2005-04-08  Carlos O'Donell <carlos@baldric.uwo.ca>
6518
6519         * FAQ.in: Explain why `make' might fail running rpcgen.
6520         * FAQ: Regenerated.
6521
6522 2005-04-07  Roland McGrath  <roland@redhat.com>
6523
6524         * po/libc.pot: Regenerated.
6525
6526 2005-04-07  Roland McGrath  <roland@redhat.com>
6527
6528         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion)
6529         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
6530         GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version,
6531         we can skip the uname call if it's there.
6532         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use
6533         DL_SYSDEP_OSCHECK here.
6534         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead.
6535
6536         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro):
6537         Add _dl_sysinfo_map.
6538         * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the
6539         rtld_is_main case.  Call it unconditionally later.
6540         Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call.
6541         Initialize GLRO(dl_sysinfo_map).
6542         * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called.
6543         * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro.
6544         (_dl_important_hwcaps)
6545         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
6546         GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names
6547         and bit values.
6548         * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro.
6549         (hwcap_extra): New static variable.
6550         (is_hwcap_platform): Check hwcap_extra for a matching name.
6551         Remove tls special case.
6552         (path_hwcap): Likewise.
6553         (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits
6554         and their names, stored in hwcap_extra.
6555         (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls".
6556
6557         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for
6558         _dl_hwcap and _dl_hwcap_mask.
6559         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for
6560         AT_HWCAP to unsigned long int.
6561         * elf/dl-support.c (_dl_aux_init): Likewise.
6562         (_dl_hwcap): Update defn.
6563
6564         * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic.
6565         * elf/ldconfig.c (search_dir): Likewise.
6566
6567 2005-04-05  Roland McGrath  <roland@redhat.com>
6568
6569         * NEWS: Copy 2.3.5 section from 2.3 branch.
6570
6571         * intl/tst-codeset.sh: Use mkdir -p.  Put msgfmt output in temporary
6572         file and mv it into place.
6573         * intl/tst-gettext3.sh: Likewise.
6574
6575         * Makefile (glibc-%.tar rule): Use make -q to ensure configure scripts
6576         are up to date in srcdir.  Touch all configure scripts after export.
6577
6578         * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
6579
6580 2005-04-05  H.J. Lu  <hongjiu.lu@intel.com>
6581
6582         [BZ #592]
6583         * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
6584         (comment changes only).
6585         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
6586         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
6587         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
6588         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
6589         * sysdeps/ia64/fpu/e_exp.S: Likewise.
6590         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
6591         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
6592         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6593         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
6594         * sysdeps/ia64/fpu/e_expf.S: Likewise.
6595         * sysdeps/ia64/fpu/e_log.S: Likewise.
6596         * sysdeps/ia64/fpu/e_logf.S: Likewise.
6597         * sysdeps/ia64/fpu/e_pow.S: Likewise.
6598         * sysdeps/ia64/fpu/e_powf.S: Likewise.
6599         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
6600         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
6601         * sysdeps/ia64/fpu/libm_error.c: Likewise.
6602         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
6603         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
6604         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
6605         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
6606         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
6607         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
6608         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
6609         * sysdeps/ia64/fpu/s_cos.S: Likewise.
6610         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
6611         * sysdeps/ia64/fpu/s_erf.S: Likewise.
6612         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
6613         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
6614         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
6615         * sysdeps/ia64/fpu/s_erff.S: Likewise.
6616         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
6617         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
6618         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
6619         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
6620         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
6621         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
6622         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
6623         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
6624         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
6625
6626 2005-04-05  Roland McGrath  <roland@redhat.com>
6627
6628         * scripts/config.guess: Update from master, timestamp='2005-03-24'.
6629         * scripts/config.sub: Update from master, timestamp='2005-02-10'.
6630
6631 2005-04-04  David S. Miller  <davem@davemloft.net>
6632
6633         * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
6634         * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
6635         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
6636         (elf_machine_runtime_setup): Test for dl_profile non-null.
6637         * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
6638         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
6639         * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
6640         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
6641         (elf_machine_runtime_setup): Test for dl_profile non-null.
6642         * sysdeps/sparc/bits/link.h: New file.
6643         * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
6644         La_sparc64_regs, La_sparc64_retval): New.
6645         (struct audit_ifaces): Add sparc entries.
6646         * elf/tst-auditmod1.c: Add sparc entries.
6647
6648 2005-03-27  Bruno Haible  <bruno@clisp.org>
6649
6650         * intl/tst-gettext3.c: New file.
6651         * intl/tst-gettext3.sh: New file.
6652         * intl/Makefile (distribute): Add tst-gettext3.sh.
6653         (test-srcs): Add tst-gettext3.
6654         (tests): Depend on tst-gettext3.out.
6655         (tst-gettext3.out): New rule.
6656         (CFLAGS-tst-gettext3.c): New variable.
6657
6658         Fix bug exposed by tst-gettext3.
6659         * intl/gettextP.h (struct converted_domain): New type.
6660         (struct loaded_domain): Remove the conv, conv_tab fields. Add
6661         conversions, nconversions fields.
6662         (_nl_init_domain_conv): Remove declaration.
6663         (_nl_free_domain_conv): Remove declaration.
6664         (_nl_find_msg): Add convert argument.
6665         * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
6666         (_nl_find_msg): Add convert argument. When a conversion to a different
6667         charset is needed, create a new converted_domain element, instead of
6668         throwing away the old converted translations.
6669         (get_output_charset): New function.
6670         * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
6671         (_nl_free_domain_conv): Remove function.
6672         (_nl_load_domain): Initialize the conversions array to empty. Use
6673         _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
6674         entry.
6675         (_nl_unload_domain): Free the conversions array and its contents.
6676
6677         * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
6678         (struct binding): Likewise.
6679         * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
6680         modifications.
6681
6682 2005-04-04  Jakub Jelinek  <jakub@redhat.com>
6683
6684         [BZ #1082]
6685         * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
6686         of trying to encode uninitialized arglen.
6687
6688 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
6689
6690         [BZ #825]
6691         * timezone/scheck.c: Update from tzcode2005h.
6692         * timezone/tzfile.h: Likewise.
6693         * timezone/zdump.c: Likewise.
6694         * timezone/zic.c: Likewise.
6695
6696         [BZ #825]
6697         * timezone/antarctica: Update from tzdata2005h.
6698         * timezone/asia: Likewise.
6699         * timezone/australasia: Likewise.
6700         * timezone/etcetera: Likewise.
6701         * timezone/europe: Likewise.
6702         * timezone/northamerica: Likewise.
6703         * timezone/southamerica: Likewise.
6704         * timezone/leapseconds: Likewise.
6705         * timezone/iso3166.tab: Likewise.
6706
6707 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
6708
6709         [BZ #592]
6710         * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
6711
6712 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
6713
6714         * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
6715         * wcsmbs/wctob.c (wctob): Likewise.
6716         * wcsmbs/wchar.h (btowc): Add optimized inline function.
6717         (wctob): Likewise.
6718
6719 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
6720
6721         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
6722         equivalent, but shorter instructions.
6723         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6724         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
6725         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
6726         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
6727         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6728         * sysdeps/x86_64/strchr.S: Likewise.
6729         * sysdeps/x86_64/memset.S: Likewise.
6730         * sysdeps/x86_64/strcspn.S: Likewise.
6731         * sysdeps/x86_64/strcmp.S: Likewise.
6732         * sysdeps/x86_64/elf/start.S: Likewise.
6733         * sysdeps/x86_64/strspn.S: Likewise.
6734         * sysdeps/x86_64/dl-machine.h: Likewise.
6735         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
6736         * sysdeps/x86_64/bsd-setjmp.S: Likewise.
6737         * sysdeps/x86_64/strtok.S: Likewise.
6738
6739 2005-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6740
6741         [BZ #592]
6742         * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
6743         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
6744         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
6745         * sysdeps/ia64/fpu/e_acosh.S: Likewise.
6746         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
6747         * sysdeps/ia64/fpu/e_acos.S: Likewise.
6748         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
6749         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
6750         * sysdeps/ia64/fpu/e_asin.S: Likewise.
6751         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
6752         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
6753         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
6754         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
6755         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
6756         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
6757         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
6758         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
6759         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
6760         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
6761         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
6762         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
6763         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
6764         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6765         * sysdeps/ia64/fpu/e_expf.S: Likewise.
6766         * sysdeps/ia64/fpu/e_exp.S: Likewise.
6767         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
6768         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
6769         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
6770         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
6771         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
6772         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
6773         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
6774         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
6775         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
6776         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
6777         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
6778         * sysdeps/ia64/fpu/e_log2.S: Likewise.
6779         * sysdeps/ia64/fpu/e_logf.S: Likewise.
6780         * sysdeps/ia64/fpu/e_logl.S: Likewise.
6781         * sysdeps/ia64/fpu/e_log.S: Likewise.
6782         * sysdeps/ia64/fpu/e_powf.S: Likewise.
6783         * sysdeps/ia64/fpu/e_powl.S: Likewise.
6784         * sysdeps/ia64/fpu/e_pow.S: Likewise.
6785         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
6786         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
6787         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
6788         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
6789         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
6790         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
6791         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
6792         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
6793         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
6794         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
6795         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
6796         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
6797         * sysdeps/ia64/fpu/libm_error.c: Likewise.
6798         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
6799         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
6800         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
6801         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
6802         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
6803         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
6804         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
6805         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
6806         * sysdeps/ia64/fpu/libm_support.h: Likewise.
6807         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
6808         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
6809         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
6810         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
6811         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
6812         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
6813         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
6814         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
6815         * sysdeps/ia64/fpu/s_cos.S: Likewise.
6816         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
6817         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
6818         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
6819         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
6820         * sysdeps/ia64/fpu/s_erf.S: Likewise.
6821         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
6822         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
6823         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
6824         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
6825         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
6826         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
6827         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
6828         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
6829         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
6830         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
6831         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
6832         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
6833         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
6834         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
6835         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
6836         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
6837         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
6838         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
6839         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
6840         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
6841         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
6842         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
6843         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
6844         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
6845         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
6846         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
6847         * sysdeps/ia64/fpu/s_logb.S: Likewise.
6848         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
6849         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
6850         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
6851         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
6852         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
6853         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
6854         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
6855         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
6856         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
6857         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
6858         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
6859         * sysdeps/ia64/fpu/s_round.S: Likewise.
6860         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
6861         * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
6862         * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
6863         * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
6864         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
6865         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
6866         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
6867         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
6868         * sysdeps/ia64/fpu/s_tan.S: Likewise.
6869         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
6870         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
6871         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
6872         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
6873         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
6874         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
6875
6876         [BZ #592]
6877         * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
6878         * sysdeps/ia64/fpu/libm_error_codes.h: New file.
6879
6880         [BZ #592]
6881         * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
6882         2005-03-21.
6883         * sysdeps/ia64/fpu/import_file.awk: Likewise.
6884         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
6885         * sysdeps/ia64/fpu/Makefile: Likewise.
6886
6887 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
6888
6889         [BZ #1087]
6890         * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
6891         avoid calling mbsrtowcs twice.
6892
6893 2005-03-29  Roland McGrath  <roland@redhat.com>
6894
6895         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
6896         function, inline broken out of ...
6897         (DL_SYSDEP_OSCHECK): ... here.  Use that.
6898         Do the discovery and set GLRO(dl_osversion) if successful,
6899         if __LINUX_KERNEL_VERSION <= 0.
6900         * elf/dl-load.c: Don't include dl-osinfo.h here.
6901
6902 2005-03-29  Alfred M. Szmidt  <ams@gnu.org>
6903
6904         * manual/install.texi (Tools for Compilation): GNU binutils 2.15
6905         is now needed.
6906
6907 2005-03-19  Bruno Haible  <bruno@clisp.org>
6908
6909         * intl/dcigettext.c (struct known_translation_t): Change type of
6910         domainname field to 'const char *'.
6911         (DCIGETTEXT): Remove const-cast.
6912
6913 2005-03-29  Thorsten Kukuk  <kukuk@suse.de>
6914
6915         [BZ #661]
6916         * grp/initgroups.c (internal_getgrouplist): Check if we have
6917         enough space before adding the primary group to the list.
6918
6919         * posix/tst-execle1.c (do_test): Fix execle arguments.
6920         * posix/tst-execle2.c (do_test): Likewise.
6921
6922 2005-03-28  Roland McGrath  <roland@redhat.com>
6923
6924         * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
6925         Reported by Mark Mitchell <mark@codesourcery.com>.
6926         * Versions.def (libm): Define GLIBC_2.4 set.
6927         * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
6928         * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
6929         * sysdeps/ia64/Versions: Likewise.
6930         * sysdeps/m68k/Versions: Likewise.
6931         * sysdeps/sparc/sparc64/Versions: Likewise.
6932         * sysdeps/x86_64/Versions: New file.
6933         * sysdeps/mips/mips64/Versions: New file.
6934
6935         * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
6936         [__USE_GNU] (NL_LOCALE_NAME): New macro.
6937         * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
6938         return locale name string for the category.
6939
6940 2005-03-25  Jakub Jelinek  <jakub@redhat.com>
6941
6942         [BZ #721]
6943         * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
6944         <wcstol_l.c>.
6945
6946 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
6947
6948         * sysdeps/mips/atomicity.h: Remove unused file.
6949         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
6950         * sysdeps/mips/dl-tls.h: New file.
6951         * sysdeps/mips/libc-tls.c: New file.
6952         * sysdeps/mips/tls-macros.h: New file.
6953         * sysdeps/mips/bits/atomic.h: New file.
6954         * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
6955         * sysdeps/mips/elf/configure.in: New file.
6956         * sysdeps/mips/elf/configure: Generated.
6957         * sysdeps/mips/sys/asm.h: New file.
6958         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
6959         * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
6960         clone support.
6961         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
6962         (INTERNAL_SYSCALL_NCS): New.
6963         (INTERNAL_SYSCALL): Update for non-constant support.
6964         (internal_syscall0): Likewise.
6965         (internal_syscall1): Likewise.
6966         (internal_syscall2): Likewise.
6967         (internal_syscall3): Likewise.
6968         (internal_syscall4): Likewise.
6969         (internal_syscall5): Likewise.
6970         (internal_syscall6): Likewise.
6971         (internal_syscall7): Likewise.
6972         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
6973         Update to match the kernel.
6974         (SIGEV_CALLBACK): Likewise.
6975         (SIGEV_THREAD_ID): Likewise.
6976
6977 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
6978
6979         [BZ #783]
6980         * elf/tst-auditmod1.c: Add MIPS support.
6981         * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
6982         (La_mips_32_retval): New.
6983         (La_mips_64_regs): New.
6984         (La_mips_64_retval): New.
6985         (struct audit_ifaces): Add MIPS entries.
6986         * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
6987         (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
6988         ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
6989         ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
6990         (RTLD_START): Align the stack before calling _dl_init_internal.
6991         Use .ent for _dl_start_user.
6992         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
6993         (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
6994         (elf_machine_runtime_setup): Use "auto inline".
6995         (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
6996         (elf_machine_got_rel): Likewise.  Use RESOLVE_MAP.
6997         * sysdeps/mips/dl-trampoline.c: New file.
6998         * sysdeps/mips/bits/link.h: New file.
6999         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7000         (internal_syscall5): Use register operands instead of non-lvalue
7001         memory operands.
7002         (internal_syscall6): Likewise.
7003         (internal_syscall7): Likewise.
7004
7005 2005-03-27  Andreas Jaeger  <aj@suse.de>
7006
7007         * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
7008         avoid warnings with older compiler.
7009         (__builtin___memcpy_chk): Likewise.
7010         (__builtin___memmove_chk: Likewise.
7011         (__builtin___mempcpy_chk): Likewise.
7012         (__builtin___memset_chk): Likewise.
7013         (__builtin___stpcpy_chk): Likewise.
7014         (__builtin___strcat_chk): Likewise.
7015         (__builtin___strcpy_chk): Likewise.
7016         (__builtin___strncat_chk): Likewise.
7017         (__builtin___strncpy_chk): Likewise.
7018         (__builtin_object_size): Likewise.
7019
7020 2005-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
7021
7022         * elf/tls-macros.h: Correct typo.
7023
7024 2005-03-23  Jakub Jelinek  <jakub@redhat.com>
7025
7026         [BZ #822]
7027         * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
7028         (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
7029
7030 2005-03-22  Roland McGrath  <roland@redhat.com>
7031
7032         * locale/setlocale.c: Comment typo.
7033
7034         * scripts/versions.awk: No errors for GLIBC_PRIVATE.
7035
7036         * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
7037
7038         * scripts/versions.awk: Print all errors and die at the end.
7039         Use library name in versions array keys.
7040
7041 2005-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
7042
7043         * elf/elf.h (PT_ARM_EXIDX): New macro.
7044
7045 2005-03-21  Thorsten Kukuk  <kukuk@suse.de>
7046
7047         [BZ #1098]
7048         * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
7049         Convert correctly between long/int on 64bit big-endian.
7050
7051 2005-03-21  David Mosberger  <davidm@hpl.hp.com>
7052
7053         * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
7054         with more than 8 output registers.  Fix this by passing original
7055         ar.pfs to _mcount_ret_helper via r3.
7056
7057 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
7058
7059         [BZ #786]
7060         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
7061         GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
7062         * elf/Makefile: Add rules to build and run tst-tls15.
7063         * elf/tst-tls15.c: New test.
7064         * elf/tst-tlsmod15a.c: New file.
7065         * elf/tst-tlsmod15b.c: New file.
7066
7067 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
7068
7069         * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
7070
7071 2005-03-20  Alfred M. Szmidt  <ams@gnu.org>
7072
7073         * elf/dl-open.c (dl_open_worker): Fix typo.
7074
7075 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
7076
7077         * malloc/malloc.c (public_cALLOc): We cannot skip the memory
7078         clearing if perturb_byte != 0.
7079
7080 2005-03-20  Jakub Jelinek  <jakub@redhat.com>
7081
7082         * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
7083         instead of __off_t for last argument.
7084         * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
7085         * debug/tst-lfschk1.c: New test.
7086         * debug/tst-lfschk2.c: New test.
7087         * debug/tst-lfschk3.c: New test.
7088
7089 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
7090
7091         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
7092         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
7093         and __USE_XOPEN guards to match linux/bits/termios.h.
7094         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7095         (CMSPAR): Define.
7096         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7097
7098 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
7099
7100         [BZ #1076]
7101         * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
7102
7103 2005-02-27  Denis Barbier  <barbier@debian.org>
7104
7105         [BZ #549]
7106         * locale/iso-4217.def: Add CSD currency.
7107
7108 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
7109
7110         * inet/test-ifaddrs.c: Use test-skeleton.
7111         * inet/test_ifindex.c: Likewise.
7112
7113         [BZ #821]
7114         * elf/dl-lookup.c (add_dependency): Always search l_initfini if
7115         the list exists.
7116
7117         [BZ #821]
7118         * elf/Makefile: Add rules to build and run order2.
7119         * elf/order2.c: New file.
7120         * elf/order2mod1.c: New file.
7121         * elf/order2mod2.c: New file.
7122         * elf/order2mod3.c: New file.
7123         * elf/order2mod4.c: New file.
7124
7125 2005-03-19  Jakub Jelinek  <jakub@redhat.com>
7126
7127         [BZ #821]
7128         * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
7129         it has been incremented before.
7130
7131 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
7132
7133         [BZ #821]
7134         * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
7135         function _dl_sort_fini.
7136         (_dl_sort_fini): New function.
7137         * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
7138         * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
7139         destructors to call them in the right order.
7140
7141 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
7142
7143         * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
7144         (La_ppc64_retval): Correct size of lrc_fp.
7145         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
7146         Fix up ABI problems and complete function.
7147
7148 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7149
7150         * math/test-misc.c (main): Add some more tests.
7151
7152 2005-03-17  Jakub Jelinek  <jakub@redhat.com>
7153
7154         * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
7155         __wcrtomb.  Check return values of other __wcrtomb calls.
7156         * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
7157         Change mbclen type to size_t.
7158         (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
7159         Handle mb chars whose upper case doesn't have multibyte representation
7160         in locale's charset.
7161
7162 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
7163
7164         * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
7165         public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
7166         #ifndef _LIBC.
7167
7168         [BZ #779]
7169         * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
7170         initialized.
7171
7172 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7173
7174         * misc/sys/cdefs.h (__always_inline): Define.
7175         * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
7176         Use __always_inline instead of __inline.
7177         * socket/bits/socket2.h (recv, recvfrom): Likewise.
7178         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
7179         * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
7180         __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
7181         __strcat_ichk, __strncat_ichk): Use __always_inline instead of
7182         __inline__ __attribute__ ((__always_inline__)).
7183
7184 2005-03-09  Jakub Jelinek  <jakub@redhat.com>
7185
7186         * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
7187         (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
7188         readlink.  Add some more tests for read, pread, pread64, fgets and
7189         fgets_unlocked.
7190
7191         * posix/bits/unistd.h (read, pread, pread64, readlink,
7192         getcwd, getwd): Change macros into extern inline functions.
7193         (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
7194         __getcwd_alias, __getwd_alias): New prototypes.
7195         * socket/bits/socket2.h (recv, recvfrom): Change macros into
7196         extern inline functions.
7197         (__recv_alias, __recvfrom_alias): New prototypes.
7198         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
7199         into extern inline functions.
7200         (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
7201
7202         * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
7203         to __pread.
7204         * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
7205         to __pread64.
7206
7207 2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
7208
7209         * configure.in: Use %function instead of @function.
7210
7211 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
7212
7213         [BZ #821]
7214         * include/link.h (struct link_map): Remove l_opencount.  Add l_removed.
7215         Change type of l_idx to int.
7216         * elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
7217         determine whether a DSO has to be unloaded.  Instead compute this
7218         in this function.
7219         * elf/dl-deps.c: No need to manipulate l_opencount anymore.
7220         * elf/dl-lookup.c: Likewise.
7221         * elf/rtld.c: Likewise
7222         * elf/dl-open.c: Likewise.  Use l_init_called to determine whether
7223         object was just loaded.
7224         * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
7225         * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
7226         is about to be unloaded as a match.
7227         (_dl_map_object): Likewise.
7228         * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
7229         to be unloaded.
7230         * elf/circleload1.c: Don't use l_opencount anymore.
7231         * elf/neededtest.c: Likewise.
7232         * elf/neededtest2.c: Likewise.
7233         * elf/neededtest3.c: Likewise.
7234         * elf/neededtest4.c: Likewise.
7235         * elf/unload.c: Likewise.
7236         * elf/unload2.c: Likewise.
7237         * elf/loadtest.c: Likewise.
7238
7239         [BZ #821]
7240         * elf/rtld.c: Preloading errors are now never fatal.
7241
7242 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
7243
7244         [BZ #821]
7245         * elf/Makefile: Add rules to build and run unload5 test.
7246         * elf/unload5.c: New file.
7247
7248         [BZ #821]
7249         * elf/Makefile: Add rules to build and run unload4 test.
7250         * elf/unload4.c: New file.
7251         * elf/unload4mod1.c: New file.
7252         * elf/unload4mod2.c: New file.
7253         * elf/unload4mod3.c: New file.
7254         * elf/unload4mod4.c: New file.
7255
7256 2005-03-17  Roland McGrath  <roland@redhat.com>
7257
7258         * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
7259
7260 2005-03-16  Richard Henderson  <rth@redhat.com>
7261
7262         [BZ #721]
7263         * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
7264         of internal.
7265         (__hidden_def1, __hidden_dot_def1): Remove.
7266         (__hidden_def2, __hidden_def3): Remove.
7267         (__hidden_ver1): New.
7268         (hidden_ver, hidden_def, hidden_weak): Use it.
7269         (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
7270         version of the macro.
7271
7272         [BZ #721]
7273         * include/wchar.h (__wcscoll): Remove.
7274         * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
7275         * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
7276
7277 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
7278
7279         * elf/elf.h: Define MIPS TLS relocations.
7280
7281 2005-03-16  Ulrich Drepper  <drepper@redhat.com>
7282
7283         * elf/circleload1.c (main): Pretty printing.
7284
7285 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
7286
7287         * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
7288         Patch by Dan Kegel <dank@kegel.com>.
7289
7290         [BZ #721]
7291         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
7292         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
7293         Add inline keyword.
7294         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
7295         elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
7296         attribute.
7297         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
7298         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
7299         static inline into auto inline.
7300         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
7301         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
7302         * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
7303         Likewise.
7304         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
7305         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
7306         Likewise.
7307
7308 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
7309
7310         [BZ #789]
7311         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
7312         Remove memory clobber.
7313
7314         * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
7315         thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.
7316
7317 2005-03-14  Jakub Jelinek  <jakub@redhat.com>
7318
7319         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
7320         asm/types.h.
7321
7322 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
7323
7324         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
7325         MAP_NONBLOCK.
7326         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7327         Correct MAP_GROWSDOWN value.
7328
7329 2005-03-13  Roland McGrath  <roland@redhat.com>
7330
7331         * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
7332         version if there is one.  Only #error if macros are then undefined.
7333         * sysdeps/generic/tls-macros.h: New file.
7334
7335 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
7336
7337         * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
7338         * sysdeps/hppa/configure: Regenerated.
7339
7340 2005-03-08  Roland McGrath  <roland@redhat.com>
7341
7342         * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
7343         array types match exactly in C alias decls.
7344
7345 2005-03-07  Ulrich Drepper  <drepper@redhat.com>
7346
7347         * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
7348         mallopt appropriately.
7349         * malloc/malloc.h: Define M_PERTURB.
7350         * malloc/malloc.c (perturb_byte): New variable.
7351         (alloc_perturb, free_perturb): New macros.
7352         (_int_malloc): Before returning, overwrite the memory if this is
7353         requested.
7354         (_int_free): Overwrite freed memory if requested.
7355         (mALLOPt): Handle M_PERTURB.
7356         * test-skeleton.c: Add call to mallopt with M_PERTURB command.
7357
7358         * elf/dl-close.c (_dl_close): Decrement l_opencount before
7359         printing debug message.
7360         * elf/dl-open.c (dl_open_worker): Always print the new opencount
7361         in debug messages.
7362
7363 2005-03-06  Ulrich Drepper  <drepper@redhat.com>
7364
7365         * elf/dl-close.c (_dl_close): Unify debug message format.
7366
7367         * elf/dl-close.c (_dl_close): Print debug message just before
7368         destroying a link map.
7369
7370         * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
7371         * elf/dl-version.c (match_symbol): Likewise.
7372
7373         * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
7374
7375         * debug/recv_chk.c (__recv_chk): Always fail if request could
7376         overflow the buffer.
7377         * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
7378         * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
7379         we know the call succeeds.
7380         (recvfrom): Likewise.
7381
7382 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
7383
7384         * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
7385         warning.
7386         * posix/regex_internal.c (re_string_reconstruct): Add cast to
7387         avoid warning.
7388         (build_wcs_upper_buffer): Change type of bug to plain char.
7389         * locale/weightwc.h (findidx): Add casts to avoid warnings.
7390         * time/mktime.c (ranged_convert): Initialize tm to make the
7391         compiler happy.
7392         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
7393         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
7394         * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
7395         * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
7396         * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
7397         * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
7398         * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
7399         * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
7400         * libio/iofwide.c: Add casts to avoid warnings.
7401         * stdio-common/printf-prs.c (parse_printf_format): Introduce new
7402         variable f to avoid warnings.
7403         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7404         Fix a few casts to avoid warnings.
7405         * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
7406         to avoid warning.
7407
7408         [BZ #1101]
7409         * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
7410         dynamically sized array.
7411         (build_wcs_upper_buffer): Likewise.
7412
7413 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
7414
7415         * include/bits/unistd.h: New file.
7416         * include/bits/socket2.h: New file.
7417
7418 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
7419
7420         * sunrpc/key_call.c: Remove doors support.
7421         * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
7422         * configure.in: Remove test for doors support which never existed.
7423         * config.make.in: Remove have_doors entry.
7424
7425         * configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
7426         * config.make.in: Undo last change.
7427
7428         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
7429         -mtune.
7430
7431 2005-03-05  Roland McGrath  <roland@redhat.com>
7432
7433         * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
7434         (_dl_out_of_memory): Use rtld_hidden_proto.
7435         * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
7436         (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
7437         * elf/dl-open.c (_dl_open): Likewise.
7438         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7439
7440         * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
7441
7442         * elf/dl-addr.c (_dl_addr): Add a cast.
7443
7444         [BZ #821]
7445         * elf/unload3mod4.c: Declare foo.
7446         * elf/testobj2.c: Include <stdio.h>.
7447
7448         * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
7449         value constant, and use it in the defn.
7450         * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
7451         Use actual size for compat array decls.
7452
7453         * config.make.in (cc-mtune): New substituted variable.
7454         * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
7455         done only if libc_mtune_example is defined.
7456         * sysdeps/i386/configure.in (libc_mtune_example): Set it.
7457         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
7458
7459 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
7460
7461         [BZ #721]
7462         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
7463         unconditionally to (defined RTLD_BOOTSTRAP).
7464         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
7465
7466 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
7467
7468         * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
7469         $(inst_slibdir) in AS_NEEDED directive.
7470
7471 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
7472
7473         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
7474
7475 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
7476
7477         [BZ #776]
7478         * iconv/iconvconfig.c: Fix comment for the output file.
7479         (write_output): Clear padding in header.
7480
7481 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
7482
7483         [BZ #821]
7484         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
7485         loader is closed.  Fixes unload3.
7486         * elf/tst-global1.c: New file.
7487         * elf/Makefile (tests): Add tst-global1.
7488         * elf/testobj2.c (p): New function.
7489
7490 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
7491
7492         [BZ #821]
7493         * elf/Makefile: Add rules to build and run unload3 test.
7494         * elf/unload3.c: New test.
7495         * elf/unload3mod1.c: New file.
7496         * elf/unload3mod2.c: New file.
7497         * elf/unload3mod3.c: New file.
7498         * elf/unload3mod4.c: New file.
7499
7500 2005-02-21  Alan Modra <amodra@bigpond.net.au>
7501
7502         [BZ #1394]
7503         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
7504         use __uint128_t.
7505
7506 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
7507
7508         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
7509         of __bos.
7510         * socket/bits/socket2.h (recv, recvfrom): Likewise.
7511
7512 2005-03-01  Roland McGrath  <roland@redhat.com>
7513
7514         [BZ #721]
7515         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
7516         of [RESOLVE_MAP].
7517
7518 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
7519
7520         [BZ #777]
7521         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
7522         Add missing initializer.
7523
7524         [BZ #777]
7525         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
7526         USE_TLS && !USE___THREAD].
7527
7528 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
7529
7530         * csu/Makefile: Use printf instead of echo for some shells.
7531
7532 2005-02-28  Roland McGrath  <roland@redhat.com>
7533
7534         * debug/warning-nop.c (__nop): Rename to nop, make it static.
7535         (__warndecl): Use alias attribute directly, instead of strong_alias
7536         macro.  Add attribute_hidden.
7537
7538 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
7539
7540         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
7541         determine the call will never trigger a failure.
7542         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
7543         small.
7544         * debug/readlink_chk.c (__readlink_chk): Likewise.
7545         * debug/pread64_chk.c (__pread64_chk): Likewise.
7546         * debug/pread_chk.c (__pread_chk): Likewise.
7547
7548         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
7549         * sysdeps/x86_64/memset_chk.S: Likewise.
7550
7551 2005-02-24  Roland McGrath  <roland@redhat.com>
7552
7553         * debug/Versions (libc: GLIBC_2.4): Remove
7554         __memset_zero_constant_len_parameter.
7555         * sysdeps/generic/memset_chk.c: Remove alias and warning.
7556         * misc/sys/cdefs.h (__warndecl): New macro.
7557         * debug/warning-nop.c: New file.
7558         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
7559         arguments, instead of calling __memset_zero_constant_len_parameter.
7560         Use __warndecl for __warn_memset_zero_len.
7561         * debug/Makefile (routines): Add $(static-only-routines).
7562         (static-only-routines): New variable.
7563
7564 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
7565
7566         * po/tr.po: Update from translation team.
7567
7568 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
7569
7570         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
7571
7572         * dlfcn/dlerror.c (check_free): New function.  Extract common code
7573         from fini and free_key_mem.  Check whether this is libdl in the
7574         base namespace.
7575
7576 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
7577
7578         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
7579         to debug output.
7580
7581 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
7582
7583         [BZ #758]
7584         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
7585         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
7586         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
7587         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
7588         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
7589         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
7590         standard __NR prefix.
7591         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
7592         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
7593         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
7594         Extract separate syscall lists for each ABI.
7595
7596 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
7597
7598         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
7599
7600         [BZ #719]
7601         * elf/Makefile: Run tst-tls9-static again.
7602
7603 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
7604
7605         [BZ #719]
7606         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
7607         slotinfo array.
7608         (__libc_setup_tls): Initialize length of DTV based on array length.
7609         * elf/dl-load.c: Revert last change.
7610         * sysdeps/generic/dl-tls.c: Revert last change.
7611
7612         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
7613         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
7614         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
7615         * posix/tst-execl1.c: New file.
7616         * posix/tst-execl2.c: New file.
7617         * posix/tst-execle1.c: New file.
7618         * posix/tst-execle2.c: New file.
7619         * posix/tst-execlp1.c: New file.
7620         * posix/tst-execlp2.c: New file.
7621         * posix/tst-execv1.c: New file.
7622         * posix/tst-execv2.c: New file.
7623         * posix/tst-execve1.c: New file.
7624         * posix/tst-execve2.c: New file.
7625         * posix/tst-execvp1.c: New file.
7626         * posix/tst-execvp2.c: New file.
7627
7628 2005-02-22  Roland McGrath  <roland@redhat.com>
7629
7630         * include/signal.h: Revert last change.
7631         (__sigemptyset): Use __builtin_memset instead of memset.
7632
7633 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
7634
7635         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
7636         non-cancelable I/O functions.
7637
7638 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
7639
7640         [BZ #769]
7641         * nscd/nscd-client.h: Include sys/uio.h.
7642         (__readall, __readvall, writeall): New prototypes.
7643         * nscd/connections.c (writeall): New function.
7644         (handle_request): Use it.
7645         * nscd/aicache.c (addhstaiX): Likewise.
7646         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7647         * nscd/hstcache.c (cache_addhst): Likewise.
7648         * nscd/grpcache.c (cache_addgr): Likewise.
7649         * nscd/pwdcache.c (cache_addpw): Likewise.
7650         * nscd/nscd_helper.c (__readall, __readvall): New functions.
7651         * nscd/nscd_getai.c (__nscd_getai): Use them.
7652         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
7653         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
7654         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
7655         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7656
7657 2005-02-22  Roland McGrath  <roland@redhat.com>
7658
7659         * include/sys/socket.h: Declare __recv.
7660         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
7661         * sysdeps/mach/hurd/recv.c: Likewise.
7662
7663         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
7664         __backtrace_* decls.
7665
7666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7667         (INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7669
7670         * include/signal.h: Include <string.h> for memset decl.
7671
7672 2005-02-22  Andreas Schwab  <schwab@suse.de>
7673
7674         * posix/execvp.c (execvp): Fix invalid free.
7675
7676 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
7677
7678         [BZ #1095]
7679         * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
7680         * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
7681         librpcsvc.a objects.
7682
7683 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
7684
7685         [BZ #1107]
7686         * iconvdata/ibm930.h: Correct Yen mapping.
7687         * iconvdata/ibm939.h: Likewise.
7688         * iconvdata/testdata/IBM930..UTF8: Adjust test data.
7689         * iconvdata/testdata/IBM939..UTF8: Likewise.
7690         Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
7691
7692         * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
7693         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
7694         (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
7695         ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
7696         ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
7697         ibm1158.c, and ibm1158.h.
7698         * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
7699         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
7700         * iconvdata/gconv-modules: Likewise.
7701         * iconvdata/ibm1025.c: New file.
7702         * iconvdata/ibm1025.h: New file.
7703         * iconvdata/ibm1122.c: New file.
7704         * iconvdata/ibm1122.h: New file.
7705         * iconvdata/ibm1137.c: New file.
7706         * iconvdata/ibm1137.h: New file.
7707         * iconvdata/ibm1153.c: New file.
7708         * iconvdata/ibm1153.h: New file.
7709         * iconvdata/ibm1154.c: New file.
7710         * iconvdata/ibm1154.h: New file.
7711         * iconvdata/ibm1155.c: New file.
7712         * iconvdata/ibm1155.h: New file.
7713         * iconvdata/ibm1156.c: New file.
7714         * iconvdata/ibm1156.h: New file.
7715         * iconvdata/ibm1157.c: New file.
7716         * iconvdata/ibm1157.h: New file.
7717         * iconvdata/ibm1158.c: New file.
7718         * iconvdata/ibm1158.h: New file.
7719         * iconvdata/testdata/IBM1025: New file.
7720         * iconvdata/testdata/IBM1025..UTF8: New file.
7721         * iconvdata/testdata/IBM1122: New file.
7722         * iconvdata/testdata/IBM1122..UTF8: New file.
7723         * iconvdata/testdata/IBM1137: New file.
7724         * iconvdata/testdata/IBM1137..UTF8: New file.
7725         * iconvdata/testdata/IBM1153: New file.
7726         * iconvdata/testdata/IBM1153..UTF8: New file.
7727         * iconvdata/testdata/IBM1154: New file.
7728         * iconvdata/testdata/IBM1154..UTF8: New file.
7729         * iconvdata/testdata/IBM1155: New file.
7730         * iconvdata/testdata/IBM1155..UTF8: New file.
7731         * iconvdata/testdata/IBM1156: New file.
7732         * iconvdata/testdata/IBM1156..UTF8: New file.
7733         * iconvdata/testdata/IBM1157: New file.
7734         * iconvdata/testdata/IBM1157..UTF8: New file.
7735         * iconvdata/testdata/IBM1158: New file.
7736         * iconvdata/testdata/IBM1158..UTF8: New file.
7737         Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
7738
7739 2005-02-10  Paolo Bonzini  <bonzini@gnu.org>
7740
7741         * posix/regcomp.c (lower_subexp): Do not optimize empty
7742         subexpressions even with REG_NOSUB.
7743         * posix/rxspencer/tests: Add a previously failing testcase.
7744
7745 2005-02-21  Alan Modra <amodra@bigpond.net.au>
7746
7747         [BZ #719]
7748         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
7749         array index is within bounds.
7750
7751 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
7752
7753         [BZ #719]
7754         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
7755         linked code.
7756         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
7757         * elf/Makefile: Remove rules to build and run tst-tls9-static.
7758
7759         [BZ #719]
7760         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
7761         THREAD_DTV multiple times, this minimally reduces code size on
7762         some archs.
7763
7764 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
7765
7766         [BZ #768]
7767         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
7768         NETDB_INTERNAL if buffer is too small.
7769
7770         [BZ #768]
7771         * nscd/hstcache.c (INCR): Remove.
7772         (addhstbyX): Double buflen in each iteration rather than add INCR.
7773         * nscd/grpcache.c: Likewise.
7774         * nscd/pwdcache.c: Likewise.
7775
7776 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
7777
7778         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
7779         map if requested.
7780         * debug/chk_fail.c: Request backtrace and memory map dump.
7781
7782         * Versions.def: Add GLIBC_2.4 for libc.
7783         * debug/fgets_chk.c: New file.
7784         * debug/fgets_u_chk.c: New file.
7785         * debug/getcwd_chk.c: New file.
7786         * debug/getwd_chk.c: New file.
7787         * debug/readlink_chk.c: New file.
7788         * debug/read_chk.c: New file.
7789         * debug/pread_chk.c: New file.
7790         * debug/pread64_chk.c: New file.
7791         * debug/recv_chk.c: New file.
7792         * debug/recvfrom_chk.c: New file.
7793         * debug/Versions: Add all new functions with version GLIBC_2.4.
7794         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
7795         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
7796         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
7797         * debug/tst-chk1.c: Add more tests.
7798         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
7799         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
7800         * posix/unistd.h: Include <bits/unistd.h> for fortification.
7801         * posix/bits/unistd.h: New file.
7802         * posix/Makefile (headers): Add bits/unistd.h.
7803         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
7804         * socket/bits/socket2.h: New file.
7805         * socket/Makefile (headers): Add bits/socket2.h.
7806
7807         * string/bits/string3.h: Extend memset macro to check for zero 3rd
7808         parameter and use __memset_zero_constant_len_parameter in that case.
7809         * sysdeps/generic/memset_chk.c: Add
7810         __memset_zero_constant_len_parameter alias and linker warning.
7811         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
7812         with version GLIBC_2.4.
7813
7814         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
7815         in __STD_TYPE definition.
7816
7817 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
7818
7819         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
7820         the error message rather than program name.
7821
7822 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
7823
7824         [BZ #767]
7825         * posix/unistd.h: symlink and readlink are unconditionally
7826         available in the 2001 spec.
7827
7828 2005-02-16  Roland McGrath  <roland@redhat.com>
7829
7830         * intl/dcigettext.c (_nl_find_msg): Add a cast.
7831
7832         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
7833         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
7834         * nis/nis_clone_res.c (nis_clone_result): Likewise.
7835
7836         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
7837         for END_OF_MESSAGE and CP.
7838
7839         * resolv/res_send.c (send_dg): Add else branch for case impossible
7840         unless `poll' is buggy.
7841
7842         * crypt/crypt_util.c (__setkey_r): Add a cast.
7843
7844         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
7845         NBYTES, and unsigned char * for BYTES.
7846
7847         * locale/programs/charmap.c (charmap_new_char): Use size_t and
7848         unsighed char * for NBYTES, BYTES parameters.
7849
7850         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
7851         and cast it.
7852         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
7853
7854         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
7855
7856         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
7857
7858         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
7859         (authdes_marshal): Don't use unsigned int for LEN.
7860         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
7861         (xdr_u_hyper): Likewise.
7862         (xdr_u_short): Don't use u_long for L.
7863         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
7864
7865         * inet/rexec.c (rexec_af): Use socklen_t.
7866         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
7867         * sunrpc/rtime.c (rtime): Likewise.
7868         * resolv/res_send.c (send_vc, send_dg): Likewise.
7869         * nis/nis_callback.c (__nis_create_callback): Likewise.
7870
7871         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
7872
7873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
7874
7875         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
7876
7877         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
7878         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
7879         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
7880         * intl/bindtextdom.c (INTUSE): Macro removed.
7881         (_nl_default_dirname): Use libc_hidden_proto.
7882         (set_binding_values): Don't use INTUSE.
7883         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
7884         (_libc_intl_domainname): Use libc_hidden_proto.
7885         * posix/regex_internal.h (gettext): Remove INTUSE on it.
7886         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
7887         rather than INTDEF.
7888         * include/libintl.h (_): Don't use *_internal name.
7889
7890         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
7891         not uint32_t.
7892         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
7893
7894         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
7895
7896         [BZ #721]
7897         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
7898         of [RESOLVE_MAP].
7899         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
7900         * sysdeps/powerpc/powerpc32/dl-machine.h
7901         (elf_machine_rel, elf_machine_rel_relative): Removed.
7902         * sysdeps/powerpc/powerpc64/dl-machine.h
7903         (elf_machine_rel, elf_machine_rel_relative): Removed.
7904
7905 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
7906
7907         [BZ #721]
7908         * elf/dynamic-link.h: Don't declare nested auto functions that are
7909         not going to be defined.
7910
7911 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
7912
7913         [BZ #284]
7914         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
7915         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
7916
7917 2005-02-16  Roland McGrath  <roland@redhat.com>
7918
7919         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
7920         inside [! SHARED] where it's used.
7921
7922 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
7923
7924         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
7925         functions and macros is unsigned.
7926
7927 2005-02-11  Barry deFrese  <bddebian@comcast.net>
7928
7929         [BZ #722]
7930         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
7931         * sysdeps/mach/hurd/setresuid.c: Likewise.
7932
7933 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
7934
7935         * misc/sys/syslog.h: Fix typo in comment.
7936
7937 2005-02-14  Roland McGrath  <roland@redhat.com>
7938
7939         [BZ #720]
7940         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
7941         if it wasn't originally.
7942
7943 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
7944
7945         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
7946         getpeername entry.
7947         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7948         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7949
7950 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
7951
7952         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
7953         matching line.
7954
7955 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
7956
7957         [BZ #721]
7958         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
7959         with auto inline, and attribute always_inline.
7960         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
7961         (elf_machine_rel, elf_machine_rel_relative): Likewise.
7962         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7963         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
7964         (elf_machine_rel, elf_machine_rel_relative): Likewise.
7965         (elf_machine_tprel): Likewise.
7966
7967 2005-02-14  Andreas Schwab  <schwab@suse.de>
7968
7969         * manual/filesys.texi (Random Access Directory): Fix type of file
7970         position value for telldir and seekdir.
7971         (Attribute Meanings): Fix typo.
7972
7973 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
7974
7975         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
7976         isn't defined.
7977         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
7978         if SHARED isn't defined.
7979         * elf/Makefile (tests-static): Add tst-array1-static.
7980         ($(objpfx)tst-array1-static.out): New target.
7981         * elf/tst-array1-static.c: New file.
7982
7983 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
7984
7985         [BZ #1100]
7986         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
7987         __libc_message to kill GCC warning about noreturn function returning.
7988
7989         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
7990         before relocating ld.so again.
7991
7992         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
7993         for already prelinked ld.so.
7994
7995 2005-02-11  Roland McGrath  <roland@redhat.com>
7996
7997         [BZ #715]
7998         * Makefile (installed-stubs): New variable.
7999         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
8000         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
8001         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
8002         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
8003         rule's target.
8004         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
8005         * include/stubs-biarch.h: New file.
8006
8007         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
8008
8009         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
8010         Emit defn for variable `biarch'.
8011
8012         * include/stub-tag.h: Update comment.
8013
8014         * scripts/soversions.awk: Fix default version set handling.
8015
8016 2005-02-10  Roland McGrath  <roland@redhat.com>
8017
8018         [BZ #157]
8019         * include/libc-symbols.h (stub_warning): Emit a marker section called
8020         .gnu.glibc-stub.NAME.
8021         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
8022         Use objdump to collect those marker section names.
8023         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
8024
8025         * Rules (subdir_objs, subdir_stubs): New phony targets.
8026         * Makefile (+subdir_targets): Add them.
8027
8028         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
8029         soversions.i.
8030
8031         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
8032         Reported by H.J. Lu <hongjiu.lu@intel.com>.
8033
8034         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
8035         doing two.
8036
8037 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
8038
8039         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
8040         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
8041         * sysdeps/powerpc/bits/link.h: ... here.  New file.
8042
8043 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
8044
8045         [BZ #710]
8046         * stdlib/random_r.c (__initstate_r): Save old state.
8047         * stdlib/Makefile (tests): Add tst-random2.
8048         * stdlib/tst-random2.c: New test.
8049         Reported by Peter Bergner <bergner@vnet.ibm.com>.
8050
8051 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
8052
8053         * dlfcn/dlfcn.c (init): Put it in .init_array section.
8054
8055 2005-02-10  Roland McGrath  <roland@redhat.com>
8056
8057         [BZ #632]
8058         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
8059         from command line.
8060         Grok shlib-versions lines with WORDSIZE* in second column.
8061         Add new leading column to output, DEFAULT for existing output lines.
8062         Also emit lines with WORDSIZE* for alternate configurations.
8063         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
8064         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
8065         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
8066         of soversions.mk; replace inline shell script with use of ...
8067         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
8068         emit multiple sets of macros under #if.
8069         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
8070         (s390x-.*-.*): Likewise for s390.
8071         (powerpc64-.*-.*): Likewise for powerpc.
8072         (sparc64-.*-.*): Likewise for sparc.
8073         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
8074         for these mapping back to the above.
8075
8076 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
8077
8078         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
8079
8080 2005-02-08  Andreas Schwab  <schwab@suse.de>
8081
8082         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
8083         RESOLVE.
8084
8085 2005-02-07  Richard Henderson  <rth@redhat.com>
8086
8087         [BZ #721]
8088         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
8089
8090 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8091
8092         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
8093         RESOLVE.
8094
8095 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
8096
8097         * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
8098         set correctly.
8099
8100 2005-01-07  Richard Henderson  <rth@redhat.com>
8101
8102         [BZ #721]
8103         * math/math_private.h (__copysign): Define as builtin for gcc 4.
8104         (__copysignf, __copysignl): Likewise.
8105         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
8106         for gcc 4.0.
8107         (copysignf, copysignl, fabsf, fabs): Likewise.
8108         (__copysign, __copysignf, __copysignl): Remove.
8109         (__fabs, __fabsf): Remove.
8110
8111 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
8112
8113         [BZ #738]
8114         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
8115         avoid writing to it if none of the standard search directories exist.
8116
8117 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
8118
8119         [BZ #700]
8120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
8121         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
8122         Load MSR as a doubleword.
8123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
8124         (__novec_swapcontext, __swapcontext): Likewise.
8125
8126 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
8127
8128         * iconv/iconv_prog.c (main): Provide more help in case on an error.
8129
8130         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
8131
8132 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
8133
8134         [BZ #741]
8135         * nscd/nscd.c (termination_handler): Avoid segfault if some database
8136         is not enabled.
8137
8138         [BZ #741]
8139         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
8140         __nss_not_use_nscd_hosts and return -1.
8141         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
8142         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
8143         Avoid leaking sockets.
8144
8145 2005-01-28  Andreas Schwab  <schwab@suse.de>
8146             H.J. Lu  <hongjiu.lu@intel.com>
8147
8148         [BZ #677]
8149         * elf/dl-runtime.c (fixup): Change return type to
8150         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
8151         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
8152         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
8153         store and retrieve relocation values.
8154         (profile_fixup): Likewise.
8155         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
8156         l_reloc_result.
8157         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
8158         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
8159         (DL_FIXUP_MAKE_VALUE): Likewise.
8160         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
8161         (DL_FIXUP_VALUE_ADDR): Likewise.
8162         (DL_FIXUP_ADDR_VALUE): Likewise.
8163         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
8164         (DL_FIXUP_VALUE_TYPE): New.
8165         (DL_FIXUP_MAKE_VALUE): Likewise.
8166         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
8167         (DL_FIXUP_VALUE_ADDR): Likewise.
8168         (DL_FIXUP_ADDR_VALUE): Likewise.
8169         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
8170         (elf_machine_profile_plt): Removed.
8171         (elf_machine_fixup_plt): Change return type and type of value
8172         parameter to struct fdesc.
8173         (elf_machine_plt_value): Likewise.
8174         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
8175         argument for elf_machine_fixup_plt.
8176
8177 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
8178
8179         [BZ #742]
8180         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
8181         after the status string printed by killproc.
8182
8183 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
8184
8185         * manual/.cvsignore: Add dir-add.texi.
8186
8187 2005-02-06  Richard Henderson  <rth@redhat.com>
8188
8189         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
8190         all the time.
8191
8192 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
8193
8194         * configure.in (sysnames): Append sysdeps/generic for each add-on.
8195         * configure: Regenerated.
8196
8197 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
8198
8199         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
8200         (dtv_t): Change pointer type to be a struct which also contains
8201         information whether the memory pointed to is static TLS or not.
8202
8203         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
8204
8205         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
8206         (FALSEP): ... this.  Updated all references.
8207
8208         [BZ #765]
8209         * libio/fmemopen.c: Include <stdint.h>.
8210
8211 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
8212
8213         [BZ #1103]
8214         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
8215         * nscd/connections.c (send_ro_fd): Likewise.
8216
8217 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         * elf/tst-auditmod1.c: Add ia64 entries.
8220         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
8221         (La_ia64_retval): New.
8222         (audit_ifaces): Add ia64 entries.
8223         * sysdeps/ia64/bits/link.h: New file.
8224         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
8225         for dl_profile non-null.
8226         (ARCH_LA_PLTENTER): New.
8227         (ARCH_LA_PLTEXIT): New.
8228         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
8229         only 2 output registers. Allocate stack to save/restore
8230         8 incoming fp registers. Call _dl_fixup instead of fixup.
8231         (_dl_runtime_profile): Rewrite.
8232
8233 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8234
8235         * sysdeps/s390/bits/link.h: New file.
8236         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
8237         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
8238         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
8239         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
8240         relocation code.
8241         (elf_machine_runtime_setup): Test for dl_profile non-null.
8242         (elf_machine_rela): Remove code using RESOLVE.
8243         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
8244         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8245         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
8246         La_s390_64_regs, La_s390_64_retval): New.
8247         * elf/tst-auditmod1.c: Add s390 entries.
8248
8249         [BZ #743]
8250         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
8251         strncat, memchr, strcmp): Add missing memory clobber.
8252
8253 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
8254
8255         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
8256         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
8257
8258 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
8259
8260         [BZ #558]
8261         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
8262         Initialize the node sets in dfa->inveclosures.
8263         (analyze): Initialize inveclosures only if it is needed.
8264         Check errors from calc_inveclosure.
8265         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
8266         the inveclosure node set.
8267         * posix/regexec.c (re_search_internal): If nmatch includes unused
8268         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
8269
8270         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
8271         Do build a SIMPLE_BRACKET token.
8272
8273         * posix/regexec.c (transit_state_mb): Do not examine nodes
8274         where ACCEPT_MB is not set.
8275
8276 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
8277
8278         * stdlib/tst-fmtmsg.c: Include stdlib.h.
8279         * stdio-common/tst-fmemopen2.c: Include string.h.
8280         * posix/execvp.c: Include stdbool.h.
8281
8282 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
8283
8284         Separate parsing and creation of the NFA.  Avoided recursion on
8285         the (very unbalanced) parse tree.
8286         [BZ #611]
8287         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
8288         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
8289         (optimize_subexps, duplicate_tree, calc_first, calc_next,
8290         mark_opt_subexp): Rewritten.
8291         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
8292         create_token_tree, free_tree, free_token): New.
8293         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
8294         postorder generic visitors.  Do not initialize the fields in the
8295         re_dfa_t that represent the transitions.
8296         (free_dfa_content): Use free_token.
8297         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
8298         include optimization of subexpressions.
8299         (create_initial_state): Fetch the DFA node index from the first node's
8300         bin_tree_t *.
8301         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
8302         Return on COMPLEX_BRACKET.
8303         (duplicate_node_closure): Fix comment.
8304         (duplicate_node): Do not initialize the fields in the
8305         re_dfa_t that represent the transitions.
8306         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
8307         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
8308         to use create_token_tree.
8309         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
8310         build_charclass_op): Use create_tree or create_token_tree instead
8311         of re_dfa_add_tree_node.
8312         (parse_dup_op): Likewise.  Also free the tree using free_tree for
8313         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
8314         to "a|".  Adjust invocation of mark_opt_subexp.
8315         (parse_sub_exp): Create a single SUBEXP node.
8316         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
8317         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
8318         DUPLICATED, and initialize the DFA fields representing the transitions.
8319         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
8320         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
8321         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
8322         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
8323         NEXT into pointers to trees.  Remove ECLOSURE.
8324
8325 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
8326
8327         [BZ #605]
8328         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
8329         that were already created.
8330         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
8331         in the token if needed.
8332         (create_ci_newstate, create_cd_newstate): Set accept_mb field
8333         from the tokens' field.
8334         * posix/regex_internal.h (re_token_t): Add accept_mb field.
8335         (ACCEPT_MB_NODE): Removed.
8336         * posix/regexec.c (proceed_next_node, transit_states_mb,
8337         build_sifted_states, check_arrival_add_next_nodes): Use
8338         accept_mb instead of ACCEPT_MB_NODE.
8339
8340 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
8341
8342         [BZ #1100]
8343         * debug/chk_fail.c (__chk_fail): Print program name in final message.
8344
8345         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
8346         MSG_NOSIGNAL being in 2.2 kernels.
8347
8348 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
8349
8350         * sysdeps/unix/sysv/linux/i386/sysdep.h
8351         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
8352
8353         [BZ #693]
8354         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
8355         (WORD_DELIM_CONSTRAINT): ...this.
8356         (NOT_WORD_DELIM_CONSTRAINT): Define.
8357         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
8358         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
8359         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
8360         anchor instead of INSIDE_WORD.
8361         (parse_expression): Handle NOT_WORD_DELIM constraint.
8362         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
8363         being inside word instead of not word delim.
8364         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
8365         characters.
8366         * posix/rxspencer/tests: Add some new tests.
8367
8368 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
8369
8370         [BZ #1108]
8371         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
8372         irrespective of Cflag.
8373
8374         * manual/memory.texi (sbrk): Fix definition.
8375         * manual/string.texi (strcasestr): Fix example typo.
8376
8377 2005-01-25  Roland McGrath  <roland@redhat.com>
8378
8379         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
8380
8381 2005-01-23  Roland McGrath  <roland@redhat.com>
8382
8383         [BZ #737]
8384         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
8385         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
8386         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
8387         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
8388         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
8389         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
8390
8391 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
8392
8393         [BZ #731]
8394         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
8395         (free_mem): Don't free string.
8396         * stdlib/tst-fmtmsg.c: Include string.h.
8397         (main): Add some more tests.
8398
8399 2005-01-25  Andreas Schwab  <schwab@suse.de>
8400
8401         [BZ #736]
8402         * timezone/asia: Update from tzdata2005c.
8403         * timezone/backward: Likewise.
8404         * timezone/europe: Likewise.
8405         * timezone/leapseconds: Likewise.
8406         * timezone/northamerica: Likewise.
8407         * timezone/southamerica: Likewise.
8408
8409         [BZ #736]
8410         * timezone/private.h: Update from tzcode2005c.
8411         * timezone/tzfile.h: Likewise.
8412         * timezone/zdump.c: Likewise.
8413         * timezone/zic.c: Likewise.
8414
8415 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
8416
8417         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
8418         RESOLVE.
8419         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
8420         using RESOLVE.
8421         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
8422
8423 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
8424
8425         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
8426         sym_map, not sym, against zero.
8427
8428 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
8429
8430         [BZ #671]
8431         * misc/syslog.c: Moved to...
8432         * sysdeps/generic/syslog.c: ...here.
8433         [NO_SIGIPE]: Don't install SIGPIPE handler.
8434         * sysdeps/unix/sysv/linux/syslog.c: New file.
8435         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8436         __ASSUME_MSG_NOSIGNAL.
8437
8438 2005-01-22  Richard Henderson  <rth@redhat.com>
8439
8440         * sysdeps/alpha/dl-trampoline.S: New file.
8441         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
8442         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
8443         (elf_machine_runtime_setup): Test for dl_profile non-null.
8444         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
8445         * sysdeps/alpha/bits/link.h: New file.
8446         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
8447         (struct audit_ifaces): Add alpha entries.
8448         * elf/tst-auditmod1.c: Add alpha entries.
8449
8450 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
8451
8452         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
8453         * sysdeps/ia64/dl-trampoline.S: New file.
8454
8455         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
8456         La_x86_64_xmm definition.
8457
8458         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
8459         pointer option.
8460         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
8461         CFLAGS-system.c for frame pointer option.
8462
8463 2005-01-21  Roland McGrath  <roland@redhat.com>
8464
8465         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
8466         * sysdeps/i386/dl-machine.h: Update decl.
8467
8468 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
8469
8470         [BZ #735]
8471         * elf/Makefile: Add rules to build and run tst-align2.
8472         * elf/tst-align2.c: New test.
8473         * elf/tst-alignmod2.c: New file.
8474         * sysdeps/powerpc/tst-stack-align.h: New file.
8475         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
8476         pointer before calling _dl_init.
8477         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
8478
8479 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
8480
8481         * posix/execl.c: Do not allocate potentially large buffers on the
8482         stack.
8483         * posix/execle.c: Likewise.
8484         * posix/execlp.c: Likewise.
8485         * posix/execvp.c: Likewise.
8486         (script_execute): Removed.
8487         (allocate_scripts_argv): New function.  Called at most once to
8488         allocate memory, not every time a script is run.  Adjust caller.
8489
8490         * sysdeps/generic/wordexp.c (exec_comm): Add a few
8491         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
8492         exec_comm_child.
8493         (exec_comm_child): Can now be inlined.
8494
8495         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
8496         * stdlib/Makefile: Likewise.
8497
8498 2005-01-19  Roland McGrath  <roland@redhat.com>
8499
8500         [BZ #681]
8501         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
8502         argument to execlp.
8503         Reported by Marcus Meissner <meissner@suse.de>.
8504
8505 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
8506
8507         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
8508         in assert.
8509         * iconv/strtab.c (strtabfinalize): Likewise.
8510
8511         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
8512
8513 2005-01-17  Roland McGrath  <roland@redhat.com>
8514
8515         [BZ #745]
8516         * nscd/Makefile (LDLIBS-nscd): New variable.
8517         ($(objpfx)nscd): Use that instead of selinux-LIBS.
8518
8519         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
8520         (link-extra-libs-static): Define to $(link-extra-libs).
8521         (link-extra-libs-bounded): Likewise.
8522
8523 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
8524
8525         * include/link.h: Remove stray definition of pltenter.
8526
8527 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
8528
8529         [BZ #734]
8530         * sysdeps/unix/rewinddir.c: Reset filepos.
8531         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
8532
8533 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
8534
8535         * elf/tst-auditmod1.c: Reduce duplication.
8536
8537 2005-01-16  Andreas Schwab  <schwab@suse.de>
8538
8539         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
8540         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
8541         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
8542         GLRO(dl_profile) != NULL.
8543         * sysdeps/m68k/dl-trampoline.S: New file.
8544         * sysdeps/m68k/bits/link.h: New file.
8545         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
8546         variants.
8547         * elf/tst-auditmod1.c: Add m68k support.
8548
8549 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
8550
8551         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
8552         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
8553
8554         [BZ #731]
8555         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
8556         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
8557
8558 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
8559
8560         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
8561         callers from libc anymore.
8562
8563         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
8564         to _dl_map_object_deps.
8565         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
8566         protections when loading auditing modules.
8567
8568         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
8569
8570         * posix/getconf.c: Update copyright year.
8571         * nss/getent.c: Likewise.
8572         * nscd/nscd_nischeck.c: Likewise.
8573         * iconv/iconvconfig.c: Likewise.
8574         * iconv/iconv_prog.c: Likewise.
8575         * elf/ldconfig.c: Likewise.
8576         * catgets/gencat.c: Likewise.
8577         * csu/version.c: Likewise.
8578         * elf/ldd.bash.in: Likewise.
8579         * elf/sprof.c (print_version): Likewise.
8580         * locale/programs/locale.c: Likewise.
8581         * locale/programs/localedef.c: Likewise.
8582         * nscd/nscd.c (print_version): Likewise.
8583         * debug/xtrace.sh: Likewise.
8584         * malloc/memusage.sh: Likewise.
8585         * malloc/mtrace.pl: Likewise.
8586         * debug/catchsegv.sh: Likewise.
8587
8588 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
8589
8590         [BZ #733]
8591         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
8592         as backlog.
8593         * sunrpc/svc_unix.c (svcunix_create): Likewise.
8594
8595         [BZ #1099]
8596         * grp/putgrent.c (putgrent): Don't write 0 as group
8597         ID if groupname starts with + or -.
8598         * pwd/putpwent.c (putpwent): Don't write 0 as user or
8599         group ID if user name starts with + or -.
8600
8601 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8602
8603         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
8604         * sysdeps/elf/tst-auditmod1.c: Add sh support.
8605         * sysdeps/sh/bits/link.h: New.
8606         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
8607         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
8608         (RTLD_START): Define __fpscr_values.
8609         * sysdeps/sh/dl-trampoline.S: New file.
8610         * sysdeps/sh/sh4/dl-trampoline.S: New file.
8611         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
8612         * sysdeps/sh/sh4/dl-machine.h: Remove.
8613
8614 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
8615
8616         [BZ #732]
8617         * time/tst-strptime.c (day_tests): Add 2 new tests.
8618         (test_tm, main): Issue an error instead of segfaulting if
8619         strptime returns NULL.
8620
8621 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
8622
8623         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
8624         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
8625
8626 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
8627
8628         * malloc/malloc.h: Remove no-glibc support.
8629
8630 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
8631
8632         [BZ #650]
8633         * malloc/malloc.h: Always include features.h.
8634
8635 2005-01-10  Roland McGrath  <roland@redhat.com>
8636
8637         * sysdeps/ia64/fpu/e_logl.c: File removed.
8638
8639         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
8640
8641 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
8642
8643         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
8644         recognition of last entry.
8645
8646 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
8647
8648         * elf/dl-runtime.c: Include <sys/param.h>.
8649
8650         * elf/Makefile (headers): Add bits/link.h.
8651
8652 2005-01-09  Andreas Schwab  <schwab@suse.de>
8653
8654         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
8655
8656 2005-01-09  Andreas Jaeger  <aj@suse.de>
8657
8658         [BZ #732]
8659         * time/strptime_l.c (__strptime_internal): Add braces to avoid
8660         warning.
8661
8662         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
8663
8664         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
8665
8666 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
8667
8668         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
8669
8670 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
8671
8672         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
8673         those of all the regular objects.
8674
8675         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
8676         use it to select the r_debug structure for that namespace.
8677         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
8678         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8679         * elf/dl-open.c (_dl_open): Likewise.
8680         * elf/rtld.c (dl_main): Likewise.
8681         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
8682         member.
8683         (_dl_debug_initialize): Add new parameter in declaration.
8684
8685         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
8686         called for the auditing objects themselves.
8687         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
8688
8689 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
8690
8691         * sysdeps/powerpc/powerpc64/dl-machine.h
8692         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
8693         GLRO(dl_profile) != NULL.
8694         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
8695         padding.
8696         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
8697         Extend _dl_prof_resolve to add pass extra parameters to
8698         _dl_profile_fixup and set up structure with register content.
8699
8700         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
8701         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
8702         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
8703         Extend _dl_prof_resolve to add pass extra parameters to
8704         _dl_profile_fixup and set up structure with register content.
8705         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
8706         the register and result structures.
8707         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
8708         in the 32-bit register and result structures.
8709
8710         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
8711
8712         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
8713         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
8714         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
8715         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
8716         * elf/tst-auditmod1.c: Add ppc32 support.
8717         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
8718         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
8719
8720         * malloc/malloc.c (malloc_printerr): Print program name as part of
8721         error message.
8722
8723         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
8724         * stdlib/stdlib.h: Make realloc with
8725         __attribute_warn_unused_result__ instead of __wur.
8726         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
8727         markers as in <stdlib.h>.
8728
8729         * libio/stdio.h: Remove __wur from rename and remove.
8730         * posix/unistd.h: Remove __wur from dup2.
8731
8732 2005-01-03  Andreas Jaeger  <aj@suse.de>
8733
8734         * elf/Makefile (tests): Revert patch from 2005-01-03.
8735
8736 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
8737
8738         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
8739         make __libc_init_first hidden.
8740
8741         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
8742         l_relocated of rtld map.
8743         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
8744         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
8745         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
8746         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
8747         * elf/tst-auditmod1.c: Add ppc64 support.
8748         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
8749
8750 2005-01-06  Roland McGrath  <roland@redhat.com>
8751
8752         [BZ #633]
8753         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
8754         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
8755
8756 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
8757
8758         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
8759         * sysdeps/generic/libc-start.c: Don't register program destructor here.
8760
8761         * dlfcn/Makefile: Add rules to build dlfcn.c.
8762         (LDFLAGS-dl.so): Removed.
8763         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
8764         table.
8765         * dlfcn/dlmopen.c: Likewise for _dl_open.
8766         * dlfcn/dlopen.c: Likewise.
8767         * dlfcn/dlopenold.c: Likewise.
8768         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
8769         * elf/Makefile (routines): Remove dl-open and dl-close.
8770         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
8771         Add rules to build and run tst-audit1.
8772         * elf/tst-audit1.c: New file.
8773         * elf/tst-auditmod1.c: New file.
8774         * elf/Versions [libc]: Remove _dl_open and _dl_close.
8775         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
8776         * elf/dl-open.c: Likewise.
8777         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
8778         signaled by nonzero parameter.
8779         * elf/dl-init.c: Fix use of r_state.
8780         * elf/dl-load.c: Likewise.
8781
8782         * elf/dl-close.c: Add auditing checkpoints.
8783         * elf/dl-open.c: Likewise.
8784         * elf/dl-fini.c: Likewise.
8785         * elf/dl-load.c: Likewise.
8786         * elf/dl-sym.c: Likewise.
8787         * sysdeps/generic/libc-start.c: Likewise.
8788         * elf/dl-object.c: Allocate memory for auditing information.
8789         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
8790         Correctly initialize slotinfo.
8791         * elf/dynamic-link.h: Adjust after removal of RESOLV.
8792         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
8793         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
8794         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
8795         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
8796         (_dl_profile_fixup): New parameters to point to register struct and
8797         variable for frame size.
8798         Add auditing checkpoints.
8799         (_dl_call_pltexit): New function.
8800         Don't define trampoline code here.
8801         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
8802         Remove all the functions from _rtld_global_ro which only _dl_open
8803         and _dl_close needed.
8804         Add auditing checkpoints.
8805         * elf/link.h: Define symbols for auditing interfaces.
8806         * include/link.h: Likewise.
8807         * include/dlfcn.h: Define __RTLD_AUDIT.
8808         Remove prototypes for _dl_open and _dl_close.
8809         Adjust access to argc and argv in libdl.
8810         * dlfcn/dlfcn.c: New file.
8811         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
8812         is gone.
8813         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
8814         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
8815         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
8816         Adjust for removal of RESOLVE.
8817         * sysdeps/x86_64/dl-machine.h: Likewise.
8818         * sysdeps/generic/dl-trampoline.c: New file.
8819         * sysdeps/i386/dl-trampoline.c: New file.
8820         * sysdeps/x86_64/dl-trampoline.c: New file.
8821
8822         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
8823         Fix updating of DTV.
8824         * sysdeps/generic/libc-tls.c: Likewise.
8825
8826         * sysdeps/arm/bits/link.h: Renamed to ...
8827         * sysdeps/arm/bits/linkmap.h: ...this.
8828         * sysdeps/generic/bits/link.h: Renamed to...
8829         * sysdeps/generic/bits/linkmap.h: ...this.
8830         * sysdeps/hppa/bits/link.h: Renamed to...
8831         * sysdeps/hppa/bits/linkmap.h: ...this.
8832         * sysdeps/i386/bits/link.h: Renamed to...
8833         * sysdeps/i386/bits/linkmap.h: ...this.
8834         * sysdeps/ia64/bits/link.h: Renamed to...
8835         * sysdeps/ia64/bits/linkmap.h: ...this.
8836         * sysdeps/s390/bits/link.h: Renamed to...
8837         * sysdeps/s390/bits/linkmap.h: ...this.
8838         * sysdeps/sh/bits/link.h: Renamed to...
8839         * sysdeps/sh/bits/linkmap.h: ...this.
8840         * sysdeps/x86_64/bits/link.h: Renamed to...
8841         * sysdeps/x86_64/bits/linkmap.h: ...this.
8842
8843         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
8844
8845 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
8846
8847         [BZ #602]
8848         * math/libm-test.inc (rint_test_tonearest): New test.
8849         (rint_test_towardzero): New test.
8850         (rint_test_downward): New test.
8851         (rint_test_upward): New test.
8852         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
8853         Remove redundant const values.
8854         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
8855         Remove redundant const values.  Use float const.
8856         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
8857         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
8858         Use float const.
8859         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
8860         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
8861         Use float const.
8862         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
8863         Remove redundant const values.
8864         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
8865         Remove redundant const values.  Use float const.
8866         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
8867         Remove redundant const values.
8868         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
8869         Remove redundant const values.  Use float const.
8870         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
8871         alignment.  Fix -0.0 case.  Remove redundant const values.
8872         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
8873         alignment.  Fix -0.0 case.  Remove redundant const values.
8874         Use float const.
8875         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
8876         alignment.  Fix -0.0 case.
8877         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
8878         alignment.  Fix -0.0 case.  Use float const.
8879         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
8880         alignment.  Fix -0.0 case.
8881         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
8882         alignment.  Fix -0.0 case.  Use float const.
8883         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
8884         alignment.  Fix -0.0 case.  Remove redundant const values.
8885         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
8886         alignment.  Fix -0.0 case.  Remove redundant const values.
8887         Use float const.
8888         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
8889         alignment.  Fix -0.0 case.
8890         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
8891         alignment.  Fix -0.0 case.  Remove redundant const values.
8892         Use float const.
8893
8894 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
8895
8896         * misc/sys/cdefs.h: Define __wur.
8897         * libio/stdio.h: Use __wur for a number of interfaces.
8898         * posix/unistd.h: Likewise.
8899         * stdlib/stdlib.h: Likewise.
8900
8901 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
8902
8903         [BZ #592]
8904         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
8905         libc_hidden_proto instead of HIDDEN_PROTO.
8906         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
8907         (__libm_error_support): If ASSEMBLER and in libc, define to
8908         HIDDEN_JUMPTARGET(__libm_error_support).
8909
8910 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
8911
8912         [BZ #592]
8913         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
8914         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
8915         with $(duplicated-routines).
8916         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
8917         "m_" prefix.
8918
8919 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
8920
8921         [BZ #592]
8922         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
8923         undefine "ret" macro.  Add __libm_error_support hidden definitions.
8924
8925         [BZ #592]
8926         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
8927         missing portion of copyright statement.
8928         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
8929         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
8930
8931         [BZ #592]
8932         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
8933         missing portion of copyright statement.
8934         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
8935         (__ieee754_gamma): Likewise.
8936         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
8937         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
8938
8939 2004-12-09  H.J. Lu <hjl@lucon.org>
8940
8941         [BZ #592]
8942         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
8943         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
8944         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
8945         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
8946         * sysdeps/ia64/fpu/e_expl.S: Likewise.
8947         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
8948
8949 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
8950
8951         [BZ #592]
8952         * sysdeps/ia64/fpu/README: New file.
8953         * sysdeps/ia64/fpu/gen_import_file_list: New file.
8954         * sysdeps/ia64/fpu/import_check: Likewise.
8955         * sysdeps/ia64/fpu/import_diffs: Likewise.
8956         * sysdeps/ia64/fpu/import_file.awk: Likewise.
8957         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
8958         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
8959
8960         [BZ #592]
8961         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
8962         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
8963         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
8964         * sysdeps/ia64/fpu/e_asin.S: Likewise.
8965         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
8966         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
8967         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
8968         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
8969         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
8970         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
8971         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
8972         * sysdeps/ia64/fpu/e_exp.S: Likewise.
8973         * sysdeps/ia64/fpu/e_expf.S: Likewise.
8974         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
8975         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
8976         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
8977         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
8978         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
8979         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
8980         * sysdeps/ia64/fpu/e_log.S: Likewise.
8981         * sysdeps/ia64/fpu/e_log2.S: Likewise.
8982         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
8983         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
8984         * sysdeps/ia64/fpu/e_logf.S: Likewise.
8985         * sysdeps/ia64/fpu/e_pow.S: Likewise.
8986         * sysdeps/ia64/fpu/e_powf.S: Likewise.
8987         * sysdeps/ia64/fpu/e_powl.S: Likewise.
8988         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
8989         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
8990         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
8991         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
8992         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
8993         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
8994         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
8995         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
8996         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
8997         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
8998         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
8999         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
9000         * sysdeps/ia64/fpu/libm_error.c: Likewise.
9001         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
9002         * sysdeps/ia64/fpu/libm_support.h: Likewise.
9003         * sysdeps/ia64/fpu/s_atan.S: Likewise.
9004         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
9005         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
9006         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
9007         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
9008         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
9009         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
9010         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
9011         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
9012         * sysdeps/ia64/fpu/s_cos.S: Likewise.
9013         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
9014         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
9015         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
9016         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
9017         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
9018         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
9019         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
9020         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
9021         * sysdeps/ia64/fpu/s_floor.S: Likewise.
9022         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
9023         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
9024         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
9025         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
9026         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
9027         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
9028         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
9029         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
9030         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
9031         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
9032         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
9033         * sysdeps/ia64/fpu/s_logb.S: Likewise.
9034         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
9035         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
9036         * sysdeps/ia64/fpu/s_modf.S: Likewise.
9037         * sysdeps/ia64/fpu/s_modff.S: Likewise.
9038         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
9039         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
9040         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
9041         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
9042         * sysdeps/ia64/fpu/s_rint.S: Likewise.
9043         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
9044         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
9045         * sysdeps/ia64/fpu/s_round.S: Likewise.
9046         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
9047         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
9048         * sysdeps/ia64/fpu/s_significand.S: Likewise.
9049         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
9050         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
9051         * sysdeps/ia64/fpu/s_tan.S: Likewise.
9052         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
9053         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
9054         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
9055         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
9056         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
9057
9058         [BZ #592]
9059         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
9060         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
9061         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
9062         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
9063         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
9064         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
9065         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
9066         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
9067         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
9068         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
9069         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
9070         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
9071         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
9072         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
9073         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
9074         * sysdeps/ia64/fpu/e_logl.S: Likewise.
9075         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
9076         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
9077         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
9078         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
9079         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
9080         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
9081         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
9082         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
9083         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
9084         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
9085         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
9086         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
9087         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
9088         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
9089         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
9090         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
9091         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
9092         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
9093         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
9094         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
9095         * sysdeps/ia64/fpu/s_erf.S: Likewise.
9096         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
9097         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
9098         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
9099         * sysdeps/ia64/fpu/s_erff.S: Likewise.
9100         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
9101         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
9102         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
9103         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
9104         * sysdeps/ia64/fpu/s_fma.S: Likewise.
9105         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
9106         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
9107         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
9108         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
9109         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
9110         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
9111         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
9112         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
9113         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
9114         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
9115         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
9116         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
9117         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
9118         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
9119         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
9120         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
9121         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
9122         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
9123         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
9124         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
9125         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
9126         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
9127         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
9128         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
9129
9130         [BZ #592]
9131         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
9132         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
9133         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
9134         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
9135         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
9136         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
9137         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
9138         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
9139         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
9140         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
9141         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
9142         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
9143         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
9144         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
9145         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
9146         * sysdeps/ia64/fpu/w_expl.c: Likewise.
9147         * sysdeps/ia64/fpu/e_expl.S: Likewise.
9148         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
9149         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
9150         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
9151         * sysdeps/ia64/fpu/w_log2.c: Likewise.
9152         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
9153         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
9154         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
9155         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
9156         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
9157
9158         [BZ #592]
9159         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
9160         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
9161         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
9162         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
9163         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
9164         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
9165         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
9166
9167         [BZ #592]
9168         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
9169         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
9170         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
9171
9172         [BZ #592]
9173         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
9174
9175         [BZ #592]
9176         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
9177         alias for use by libm_error.c
9178
9179         [BZ #592]
9180         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
9181         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
9182         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
9183         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
9184         libm_scalbn{,f,l}, libm_scalblnf.
9185         (sysdep_routines): Remove libm_frexp4{,f,l}.
9186         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
9187         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
9188         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
9189         -DSIZE_LONG_LONG_INT_64.
9190
9191 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9192
9193         [BZ #729]
9194         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
9195         l_text_end are set for a VDSO with a single PT_LOAD entry.
9196
9197 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
9198
9199         [BZ #730]
9200         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
9201         invalid to disable optimizations in fileops which won't work here.
9202         (_IO_cookie_jumps): Use it.
9203         (_IO_old_cookie_jumps): Likewise.
9204         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
9205         not the return value.
9206         * stdio-common/Makefile (tests): Add tst-fmemopen2.
9207         * stdio-common/tst-fmemopen2.c: New file.
9208
9209         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
9210
9211 2005-01-05  Roland McGrath  <roland@redhat.com>
9212
9213         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
9214         * sysdeps/i386/configure.in: ... here.  New file.
9215
9216 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
9217
9218         [BZ #727]
9219         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
9220         initialize __environ again.
9221         * stdlib/Makefile: Add rules to build and run tst-putenv.
9222         * stdlib/tst-putenv.c: New file.
9223         * stdlib/tst-putenvmod.c: New file.
9224
9225         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
9226         define unnecessary wrappers or aliases of static functions.
9227
9228 2005-01-03  Andreas Jaeger  <aj@suse.de>
9229
9230         * csu/Makefile (generated): Add start.os and start.ob.
9231
9232         * elf/Makefile (tests): Change rule for tst-pie1 so that make
9233         clean works.
9234
9235 2004-12-29  Roland McGrath  <roland@redhat.com>
9236
9237         [BZ #626]
9238         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
9239         than always up; when nearest is zero, round up to one.
9240
9241 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
9242
9243         * po/es.po: Update from translation team.
9244
9245         [BZ #726]
9246         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
9247
9248 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
9249
9250         [BZ #744]
9251         * include/signal.h: Define __sigemptyset.
9252
9253 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
9254
9255         * posix/regex_internal.h (struct re_dfastate_t): Make
9256         word_trtable a pointer to the 512-item transition table.
9257         * posix/regexec.c (build_trtable): Fill in either state->trtable
9258         or state->word_trtable.  Return a boolean indicating success.
9259         (transit_state): Expect state->trtable to be a 256-item
9260         transition table.  Reorganize code to have less tests in
9261         the common case, and to save an indentation level.
9262         * posix/regex_internal.c (free_state): Free word_trtable.
9263
9264 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
9265
9266         [BZ #723]
9267         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
9268         calling fn is 16 byte aligned.
9269         * sysdeps/i386/tst-stack-align.h: New file.
9270
9271         [BZ #725]
9272         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
9273         (ecvt_r): Special case denormals.
9274         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
9275         * misc/tst-efgcvt.c: Include float.h.
9276         (ecvt_tests): Add 2 new tests.
9277
9278 2004-12-20  Roland McGrath  <roland@frob.com>
9279
9280         * version.h (RELEASE, VERSION): development, 2.3.90
9281         * include/features.h (__GLIBC_MINOR__): Now 4.
9282
9283
9284 See ChangeLog.15 for earlier changes.