Update.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
2
3         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
4         (CFLAGS-argp-fmtstream.c): Likewise.
5         * argp/argp.h: Remove a number of __THROW.
6
7         * misc/sys/syslog.h (vsyslog): Remove __THROW.
8
9         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
10         * misc/getpass.c (getpass): Add cleanup handler to ensure the
11         stream is closed even if the thread is canceled.
12         (call_fclose): New function.
13         * posix/unistd.h: Remove __THROW from getpass prototype.
14
15         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
16
17         * signal/signal.h (psignal): Remove __THROW.
18         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
19
20         * misc/Makefile (CFLAGS-error.c): Define.
21         * misc/error.c (error): Disable cancellation handling around the
22         actual output.  The message should in any case be printed.
23         (error_at_line): Likewise.
24
25         * misc/error.h: Protect parameter names with leading __.
26
27 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
28
29         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
30
31 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
32
33         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
34         end.
35
36 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
37
38         * libio/stdio.h: Remove a few more __THROW.
39
40 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
41
42         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
43         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
44         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
45         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
46         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
47         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
48         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
49         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
50         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
51         putwchar.c and rewind.c with exceptions.
52         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
53         _IO_release_lock): Define.
54         * libio/fileops.c (_IO_new_file_underflow): Use it.
55         * libio/fputc.c (fputc): Likewise.
56         * libio/fputwc.c (fputwc): Likewise.
57         * libio/freopen64.c (freopen64):
58         * libio/freopen.c (freopen): Likewise.
59         * libio/fseek.c (fseek): Likewise.
60         * libio/fseeko64.c (fseeko64): Likewise.
61         * libio/fseeko.c (fseeko): Likewise.
62         * libio/ftello64.c (ftello64): Likewise.
63         * libio/ftello.c (ftello): Likewise.
64         * libio/fwide.c (fwide): Likewise.
65         * libio/getc.c (_IO_getc): Likewise.
66         * libio/getchar.c (getchar): Likewise.
67         * libio/getwc.c (_IO_getwc): Likewise.
68         * libio/getwchar.c (getwchar): Likewise.
69         * libio/iofclose.c (_IO_new_fclose):
70         * libio/iofflush.c (_IO_fflush): Likewise.
71         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
72         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
73         * libio/iofgets.c (_IO_fgets): Likewise.
74         * libio/iofgetws.c (fgetws): Likewise.
75         * libio/iofputs.c (_IO_fputs): Likewise.
76         * libio/iofputws.c (fputws): Likewise.
77         * libio/iofread.c (_IO_fread): Likewise.
78         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
79         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
80         * libio/ioftell.c (_IO_ftell): Likewise.
81         * libio/iofwrite.c (_IO_fwrite): Likewise.
82         * libio/iogetdelim.c (_IO_getdelim): Likewise.
83         * libio/iogets.c (_IO_gets): Likewise.
84         * libio/ioputs.c (_IO_puts): Likewise.
85         * libio/ioseekoff.c (_IO_seekoff): Likewise.
86         * libio/ioseekpos.c (_IO_seekpos): Likewise.
87         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
88         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
89         * libio/ioungetc.c (_IO_ungetc): Likewise.
90         * libio/ioungetwc.c (ungetwc): Likewise.
91         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
92         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
93         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
94         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
95         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
96         * libio/peekc.c (_IO_peekc_locked): Likewise.
97         * libio/putc.c (_IO_putc): Likewise.
98         * libio/putchar.c (putchar): Likewise.
99         * libio/putwc.c (putwc): Likewise.
100         * libio/putwchar.c (putwchar): Likewise.
101         * libio/rewind.c (rewind): Likewise.
102         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
103
104 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
105
106         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
107         available in XPG4.2.
108
109 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
110             Jakub Jelinek  <jakub@redhat.com>
111
112         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
113         big endian arches.  Don't read beyond end of fds_bits array.
114
115 2003-04-27  Bruno Haible  <bruno@clisp.org>
116
117         * manual/message.texi (Advanced gettext functions): Add information
118         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
119         Add section about Lithuanian, reported by Ricardas Cepas
120         <rch@richard.eu.org>.
121         Add information about Croatian.
122         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
123         Remove remark about continuation lines that is not true for PO files.
124         Fix formula for Slovenian, reported by Roman Maurer
125         <roman.maurer@amis.net>.
126
127 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
128
129         * math/math_private.h: Declare __copysignf.
130         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
131         copysignf.
132
133         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
134         __signbit, and __signbitl inline functions.
135
136         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
137         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
138
139         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
140         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
141
142 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
143
144         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
145
146 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
147
148         * include/stdio.h: Add declarations for __builtin_fwrite and
149         __builtin_fwrite_unlocked.
150
151 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
152
153         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
154         fits into allocation.  Add padding on 32-bit arches so that
155         dirp->data is enough aligned for struct dirent64.
156         Avoid clearing of the buffer, just clear DIR structure.
157
158 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
159
160         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
161         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
162
163 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
164
165         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
166
167 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
168
169         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
170         to match format string.
171         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
172         __old_buf.
173         (__new_semctl): Shut up warning.
174         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
175         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
176
177 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
178
179         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
180         link file use the real file name, not the resolved name we got by
181         following the symlinks.
182
183 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
184
185         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
186         if the object size is large enough.
187
188 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
189
190         * elf/ldconfig.c (search_dir): Treat symlink as regular file
191         if it won't point to itself unless it is .so symlink for the linker.
192
193 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
194
195         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
196         use _mode if _IO_fwide_maybe_incompatible.
197         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
198         the compatibility test.
199
200 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
201
202         * elf/cache.c (save_cache): Don't write beyond end of file_entries
203         buffer.
204         Duplicate last old cache entry if the count would be odd.
205
206 2003-08-25  Andreas Jaeger  <aj@suse.de>
207
208         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
209         __LONG_LONG_PAIR to long.
210
211 2003-08-25  Philip Blundell  <philb@gnu.org>
212
213         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
214         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
215
216 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
217
218         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
219         and use __libc_cleanup_region_end instead.
220
221 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
222
223         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
224
225 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
226
227         * io/fcntl.h (posix_fallocate): Change type of third parameter to
228         off_t.
229         (posix_fallocate64): Change type of third parameter to off64_t.
230         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
231         * sysdeps/posix/posix_fallocate.c: Likewise.
232         * sysdeps/generic/posix_fallocate64.c: Likewise.
233         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
234         code for 32-bit platforms.
235         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
236         posix_fallocate64.
237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
238         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
239         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
240
241 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
242
243         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
244         the type, not to name.
245
246         * stdio-common/test-vfprintf.c (main): Don't write temporary file
247         into source directory.
248
249         * malloc/malloc.c (_int_free): Add cheap test for some invalid
250         block sizes.
251
252         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
253         syscall name.
254
255 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
256
257         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
258         into EINVAL.
259
260 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
261
262         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
263         (elf_machine_lazy_rel): Likewise.
264
265 2003-08-18  Art Haas  <ahaas@airmail.net>
266
267         * malloc/malloc.h: Remove unneeded ';' where closing the C++
268         extern block.
269
270 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
271
272         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
273         loading big binaries where @gprel(sym) cannot be handled in 'add'
274         but instead has to be used with 'movl'.
275
276 2003-08-17  Juergen Kreileder <jk@blackdown.de>
277             Andreas Jaeger  <aj@suse.de>
278
279         * sysdeps/x86_64/bits/byteswap.h: New file.
280
281 2003-08-17  Andreas Jaeger  <aj@suse.de>
282
283         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
284
285 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
286
287         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
288         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
289         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
290         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
291         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
292         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
293         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
294         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
295         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
296         ret_ERRVAL): Define.
297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
298         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
299         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
300         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
301         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
302         Define.
303         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
304         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
305         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
306
307         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
308         posix_fadvise64_64): Remove.
309         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
310         V flag.
311         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
312         Likewise.
313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
314         (posix_fadvise64): Likewise.
315         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
316         (posix_fadvise64): Likewise.
317         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
318         (posix_fadvise64): Likewise.
319         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
320         Likewise.
321         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
322         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
323         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
324         (__posix_fadvise64_l32): New function.
325         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
327         posix_fadvise64@@GLIBC_2.3.3.
328         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
329         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
330         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
331         error value.
332         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
333
334         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
335         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
336
337 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
338
339         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
340         (elf_machine_matches_host): Remove weak extern stuff.
341         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
342         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
343         stuff.  Use GL(dl_hwcap) unconditionally.
344
345 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
346
347         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
348         __libc_start_main branch.
349
350 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
351             Andreas Jaeger  <aj@suse.de>
352
353         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
354         instead of setting errno.
355         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
356
357 2003-08-16  Andreas Jaeger  <aj@suse.de>
358
359         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
360         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
361
362 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
363
364         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
365         off_t.
366         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
367         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
368         description indicating the error value is returned, not -1.
369         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
370         __ASSUME_FADVISE64_64_SYSCALL.
371         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
372         posix_madvise in one file.  Have posix_madvise defined with error
373         value returned.
374         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
375         entry.
376         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
377         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
378         PSEUDO_END_ERRVAL, and ret_ERRVAL.
379         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
380         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
381         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
382         posix_fadvise64.
383
384         * posix/Makefile (routines): Add posix_madvise.
385         * sysdeps/generic/madvise.c: Don't define posix_madvise.
386         * sysdeps/generic/posix_madvise.c: New file.
387         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
388         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
389         Add posix_fadvise64_64.
390
391 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
392
393         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
394         3.0, not for !gcc or gcc < 3.0.
395
396 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
397
398         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
399         Address passed to test_in_mod1 and test_in_mod2 without casting.
400         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
401         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
402         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
403         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
404
405 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
406
407         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
408         Change quotes before using [].
409
410         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
411
412         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
413         Renamed to...
414         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
415         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
416         argument.  Select one of 64 locks from address bits.
417         (atomic_compare_and_exchange_val_acq,
418         atomic_compare_and_exchange_bool_acq): Pass memory address to
419         __sparc32_atomic_do_{,un}lock.
420
421 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
422
423         * assert/assert.h (assert): Use !! in front of expression to allow
424         use of pointers.
425
426         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
427         Changed conversion of JIS X 0201 from using a table to calculating.
428         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
429         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
430         EUC-JP-MS.
431         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
432         * iconvdata/CP932.irreversible: New file.
433         * iconvdata/EUC-JP-MS.irreversible: New file.
434         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
435
436 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
437
438         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
439
440         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
441         text processing tools.
442
443         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
444         element unless BROKEN_THREAD_SIGNALS is defined.
445         (struct requestlist): Likewise.
446         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
447         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
448         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
449         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
450         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
451         Pass current PID to __aio_sigqueue.
452         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
453         call.  Don't initialize caller_pid field of waitlist element.
454
455 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
456
457         * libio/libioP.h (_IO_vtable_offset): Define.
458         * libio/freopen.c (freopen): Use it.
459         * libio/ioputs.c (_IO_puts): Likewise.
460         * libio/freopen64.c (freopen64): Likewise.
461         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
462         Likewise.
463         * libio/iofclose.c (_IO_new_fclose): Likewise.
464         * libio/iofputs.c (_IO_fputs): Likewise.
465         * libio/ioftell.c (_IO_ftell): Likewise.
466         * libio/iofwrite.c (_IO_fwrite): Likewise.
467         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
468         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
469         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
470         * stdio-common/vfscanf.c (ORIENT): Likewise.
471
472 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
473
474         * assert/assert.h: Use __builtin_expect in assert and
475         assert_perror definitions if possible.
476
477 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
478
479         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
480         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
481         * elf/rtld.c (rtld_lock_default_lock_recursive,
482         rtld_lock_default_unlock_recursive): New functions.
483         (dl_main): Initialize _dl_rtld_lock_recursive and
484         _dl_rtld_unlock_recursive.
485
486 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
487
488         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
489         config_file directories instead of prepending.
490
491 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
492
493         * sysdeps/unix/sysv/linux/kernel-features.h: Define
494         __ASSUME_CLONE_STOPPED.
495
496 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
497
498         * sysdeps/generic/bits/libc-lock.h
499         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
500
501 2003-08-01  Roland McGrath  <roland@frob.com>
502
503         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
504
505 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
506
507         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
508         instead of __SWORD_TYPE.
509         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
510         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
511         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
512         Define.
513         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
514         Define.
515         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
516         Define.
517         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
518
519         * dlfcn/dlerror.c (once): New.
520         (dlerror): Call __libc_once.
521         (_dlerror_run): Remove once.
522
523         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
524         Sync with 2.5.7 and 2.5.73 kernel changes.
525
526         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
527         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
528         formats to size_t.
529         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
530         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
531         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
532         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
533         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
534         difference argument.
535         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
536         format to wint_t.
537         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
538         %d format and cast expected value to int.
539         * sysdeps/generic/libc-start.c (STATIC): Add
540         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
541         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
542         to ieee_float_shape_type.
543         (__sqrt): Avoid type punning.
544         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
545         to ieee_float_shape_type.
546         (__sqrtf): Avoid type punning.
547         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
548         refsym if in dl-conflict.c.
549         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
550         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
551         (__new_semctl): Shut up warning.
552         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
553         (__new_semctl): Shut up warning.
554         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
555         Change old into union of __old_shmid_ds and __old_shminfo structs.
556         Adjust all users.
557         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
558
559         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
560         modtime computation.
561         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
562         * sysdeps/posix/utimes.c (__utimes): Likewise.
563
564 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
565
566         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
567         call dl_signal_error directly.  If already relocated, call
568         GL(dl_init_static_tls) directly, otherwise queue it for later.
569         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
570         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
571         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
572         for all static TLS initializations delayed in _dl_allocate_static_tls.
573         * elf/dl-support.c (_dl_init_static_tls): New variable.
574         * include/link.h (struct link_map): Add l_need_tls_init.
575         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
576         (_dl_nothread_init_static_tls): New prototype.
577         (_dl_allocate_static_tls): Adjust prototype.
578
579         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
580
581 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
582
583         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
584         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
585         reloc_addr is aligned.
586         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
587         elf_machine_rela_relative): Adjust.
588         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
589         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
590         * sysdeps/cris/dl-machine.h (elf_machine_rela,
591         elf_machine_rela_relative): Adjust.
592         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
593         elf_machine_rela_relative): Adjust.
594         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
595         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
596         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
597         elf_machine_rela_relative): Adjust.
598         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
599         elf_machine_rela_relative): Adjust.
600         * sysdeps/mips/dl-machine.h (elf_machine_rela,
601         elf_machine_rela_relative): Adjust.
602         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
603         elf_machine_rela_relative): Adjust.
604         * sysdeps/powerpc/powerpc64/dl-machine.h
605         (elf_machine_rela_relative, elf_machine_rela): Adjust.
606         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
607         elf_machine_rela_relative): Adjust.
608         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
609         elf_machine_rela_relative): Adjust.
610         * sysdeps/sh/dl-machine.h (elf_machine_rela,
611         elf_machine_rela_relative): Adjust.
612         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
613         elf_machine_rela_relative): Adjust.
614         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
615         elf_machine_rela_relative): Adjust.
616         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
617         elf_machine_rela_relative): Adjust.
618
619 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
620
621         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
622         alignment of TCB used before the last change so that it matches
623         ld's output for IE code.
624
625 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
626
627         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
628         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
629         break strict-aliasing rules" warnings.
630
631 2003-07-29  Roland McGrath  <roland@redhat.com>
632
633         * elf/Makefile: Revert accidental changes in last commit.
634         * elf/dl-support.c: Likewise.
635
636         * rt/tst-timer2.c: New file.
637         * rt/Makefile (tests): Add it.
638
639 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
640
641         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
642
643 2003-07-29  Roland McGrath  <roland@redhat.com>
644
645         * elf/Makefile (tests) [$(build-shared) = yes]:
646         Depend on $(test-modules).
647         * dlfcn/Makefile: Likewise.
648
649 2003-07-28  Roland McGrath  <roland@redhat.com>
650
651         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
652         Use that instead of `typedef' when using __*_TYPE macros in rhs.
653
654         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
655         * elf/tst-tlsmod14a.c: Likewise.
656
657         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
658         before <linux/sysctl.h>.
659
660 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
661
662         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
663         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
664         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
665         * sysdeps/unix/syscalls.list: umask syscall never fails.
666
667 2003-07-27  Andreas Jaeger  <aj@suse.de>
668
669         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
670
671 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
672
673         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
674         Include bits/a.out.h.
675         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
676         bits/a.out.h.
677         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
678         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
679         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
680         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
681         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
682         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
683         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
684         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
685
686 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
687
688         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
689         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
690         aiocbp->aio_fildes does not match fildes.
691
692 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
693
694         * timezone/zic.c (rpytime): Replace cheap overflow check with a
695         functioning one.
696
697         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
698         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
699         Fix calculation of offsets to take misalignment of first byte in
700         file into account.
701         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
702         l_tls_firstbyte_offset field.
703         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
704         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
705         Take l_tls_firstbyte_offset information into account.
706         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
707         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
708         * elf/Makefile: Add rules to build and run tst-tls14.
709         * elf/tst-tls14.c: New file.
710         * elf/tst-tlsmod14a.c: New file.
711         * elf/tst-tlsmod14b.c: New file.
712
713 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
714
715         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
716         (lio_listio): Use it.
717         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
718         after few defines to avoid duplication.
719
720 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
721
722         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
723         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
724         Likewise.
725         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
726         Add libc_hidden_def.
727         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
728         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
729         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
730         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
731         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
732         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
733         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
734         change.
735         * sysdeps/generic/unwind.inc: Removed.
736
737         * include/resolv.h (__resp): Declare.  Define to __libc_resp
738         if in libc.so.
739         (_res): If USE___THREAD, define to (*__resp).
740         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
741         even if USE___THREAD.
742         (__resp): New __thread variable.
743         (__libc_resp): New alias.
744         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
745         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
746         * sysdeps/generic/res-state.c (__res_state): Return __resp
747         if USE___THREAD.
748
749 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * elf/dl-support.c (_dl_hwcap): New variable.
752         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
753
754         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
755         and <dl-procinfo.h>.
756         (__feclearexcept): Clear MXCSR if needed.
757         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
758
759         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
760         that newer hardware needs more than these macros.
761
762         * sysdeps/i386/setfpucw.c: New file.
763
764 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
765
766         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
767         * elf/ldconfig.c: Include dl-procinfo.c.
768         (PROCINFO_CLASS): Define.
769         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
770         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
771         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
772         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
773         Define if not yet defined.  Use it instead of EXTERN.  Undefine
774         at the end of the file.
775         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
776         Likewise.
777         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
778         (PROCINFO_CLASS): Likewise.
779         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
780         (PROCINFO_CLASS): Likewise.
781
782 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
783
784         * elf/ldconfig.c (main): Issue a fatal error if relative path
785         is used to build cache.
786
787 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
788
789         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
790
791 2003-07-21  Art Haas  <ahaas@airmail.net>
792
793         * manual/charset.texi (Converting a Character): Fix example code so a
794         valid pointer is returned.
795
796 2003-07-22  Andreas Jaeger  <aj@suse.de>
797
798         * elf/readlib.c (process_file): Check that file is a shared
799         object.
800
801         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
802         will not optimize it away.
803         (__DTOR_END__): Likewise.
804         (__CTOR_END__): Likewise.
805
806         * include/libc-symbols.h (_elf_set_element): Use attribute used so
807         that gcc will not optimize it away.
808         (link_warning): Likewise.
809
810 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
811
812         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
813         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
814         * wcsmbs/tst-wcpncpy.c: New file.
815
816 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
817
818         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
819
820         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
821         stmxcsr and ldmxcsr.
822
823         * Makerules (build-module-helper): Add -z defs unless explicitly said
824         not to do it.
825         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
826         which has undefined symbols.
827         * elf/Makefile: Likewise.
828
829         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
830         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
831         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
832         * sysdeps/i386/fpu/fesetround.c: Likewise.
833         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
834
835 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
836
837         * elf/ldconfig.c (search_dir): Treat symlink as regular file
838         if it won't point to itself.
839
840 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
841
842         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
843
844 2003-07-20  Andreas Jaeger  <aj@suse.de>
845
846         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
847         STANDARD_TO_LOOP_ERR_HANDLER.
848         * iconvdata/euc-jp-ms.c (BODY): Likewise.
849
850 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
851
852         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
853
854         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
855
856 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
857             Andreas Jaeger  <aj@suse.de>
858
859         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
860         256K, remove unneeded declaration of __getpagesize.
861
862 2003-07-16  Andreas Schwab  <schwab@suse.de>
863
864         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
865
866 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
867
868         * io/test-utime.c (main): Make test yet more robust.
869
870 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
871
872         More cancellation handling fixups.
873         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
874         * sysdeps/generic/not-cancel.h: Likewise.
875         * catgets/open_catalog.c: Use not-cancelable syscalls.
876         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
877         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
878         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
879         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
880         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
881         * libio/fileops.c: Use not-cancelable syscalls for fclose.
882         * libio/iopopen.c: Use no-cancelable syscalls.
883         * libio/stdio.h: Mark popen and pclose with __THROW again.
884         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
885         * misc/syslog.c: Fix locking and cancellation cleanup handling.
886         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
887         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
888         CFLAGS-tempname.c): Add -fexceptions.
889         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
890         * string/string.h: Mark strerror and strerror_r with _THROW again.
891         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
892         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
893         #ifs since we now need all the code compiled.
894         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
895         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
896         * sysdeps/unix/opendir.c: Likewise.
897
898         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
899         Add rule for EUC-JP-MS dependency.
900         * iconvdata/cp932.c: New file.
901         * iconvdata/eucjp-ms.c: New file.
902         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
903         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
904
905 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
906
907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
908         cfi directives.
909
910 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
911
912         * sysdeps/unix/sysv/linux/kernel-features.h
913         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
915
916         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
917
918 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
919
920         * sysdeps/unix/sysv/linux/kernel-features.h: Define
921         __ASSUME_TGKILL for Alpha appropriately.
922
923 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
924
925         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
926         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
927         Likewise.
928         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
929         Likewise.
930
931         * sysdeps/unix/sysv/linux/kernel-features.h: Define
932         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
933
934         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
935         second parameter == NULL.
936         * sysdeps/unix/sysv/linux/utimes.c: New file.
937
938 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
939
940         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
941         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
942         a typo.
943
944 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
945
946         * time/sys/time.h: Namespace cleanup.
947         * sysdeps/unix/sysv/linux/kernel-features.h: Define
948         __ASSUME_UTIMES for the architectures which always had the syscall.
949         * sysdeps/unix/sysv/linux/futimes.c: New file.
950
951 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
952
953         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
954         register across CENABLE and CDISABLE.
955
956 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
957
958         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
959         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
960         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
961         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
962         int before assigning to max to avoid warnings.
963
964 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
965
966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
967         cfi directives.
968         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
969         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
970
971 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
972
973         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
974         .data.rel.ro.local to "aw".
975
976 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
977
978         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
979         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
980         (PIC-ccflag): Define.
981
982 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
983
984         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
985         if PIC.
986         * sysdeps/s390/s390-64/elf/start.S: Likewise.
987
988 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
989
990         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
991         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
992
993 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
994
995         * sysdeps/unix/sysv/linux/kernel-features.h: Version
996         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
997
998         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
999         compilation with HAVE_AUX_SECURE defined.
1000
1001 2003-07-05  Richard Henderson  <rth@redhat.com>
1002
1003         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1004
1005 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1006
1007         * configure.in: Also check for .cfi_rel_offset pseudo-op.
1008
1009 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
1010
1011         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1012         typo.
1013
1014 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1015
1016         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1017         Define.
1018         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1019
1020 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
1021
1022         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1023         decl and use with #ifdef NEED_DL_SYSINFO.
1024
1025 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
1026
1027         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1028         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1029         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1030         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1031         vsyscall DSO was added.
1032
1033         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1034         depending on selected standard.
1035         (NGROUPS_MAX): Define to 8 if not defined.
1036
1037 2003-07-02  Andreas Jaeger  <aj@suse.de>
1038
1039         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1040
1041 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1042
1043         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
1044         * malloc/thread-m.h: Include <atomic.h>.
1045         (atomic_full_barrier): Provide default.
1046         (atomic_read_barrier): Likewise.
1047         (atomic_write_barrier): Likewise.
1048         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
1049
1050 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
1051
1052         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
1053
1054 2003-06-30  Richard Henderson  <rth@redhat.com>
1055
1056         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
1057         Invert the sense of the return value.
1058         (__arch_exchange_16_int): Fix paste-o.
1059         (__arch_exchange_{32,64}_int): Fix think-o.
1060
1061         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
1062
1063 2003-06-30  Richard Henderson  <rth@redhat.com>
1064
1065         * include/sys/resource.h (__getrusage): Mark hidden.
1066         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
1067         * include/sys/wait.h (__wait4): Likewise.
1068
1069 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
1070
1071         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
1072         case.
1073         (xstat_conv): Rename to __xstat_conv and remove static inline.
1074         (xstat64_conv): Likewise.
1075
1076 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
1077
1078         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
1079         values which cannot be handled in one nanosleep call.
1080
1081 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
1082
1083         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
1084         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
1085
1086         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
1087
1088 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
1089
1090         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
1091         fix typo.
1092
1093 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
1094
1095         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
1096         Conditionalize function definitions that use struct kernel_stat.
1097         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
1098         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
1099         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
1100
1101 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
1102
1103         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
1104         implementation.
1105
1106 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
1107
1108         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
1109         (getgrent_next_file): Don't store group name to early in blacklist.
1110
1111         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
1112         and use memcpy instead of strcpy.
1113
1114 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
1117         stream unlocked.
1118         * nis/nss_compat/compat-initgroups.c: Likewise.
1119         * nis/nss_compat/compat-pwd.c: Likewise.
1120         * nis/nss_compat/compat-spwd.c: Likewise.
1121
1122 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
1123
1124         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
1125         functions, dlopen corresponding NSS module instead.
1126
1127 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
1128
1129         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
1130         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1131         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1132         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1133
1134 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
1135
1136         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
1137
1138 2003-06-26  Roland McGrath  <roland@frob.com>
1139
1140         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
1141         * sysdeps/mach/configure: Regenerated.
1142         * sysdeps/mach/hurd/times.c (times_init): Function removed.
1143         (__times): Assume `creation_time' field is available.
1144         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
1145         Don't append set-init.
1146         * sysdeps/mach/hurd/set-init.c: File removed.
1147
1148 2003-06-26  Roland McGrath  <roland@redhat.com>
1149
1150         * elf/elf.h (AT_SECURE): New macro.
1151         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
1152         set __libc_enable_secure.
1153         (_dl_show_auxv): Add AT_SECURE to name table.
1154         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
1155         __libc_enable_secure and __libc_enable_secure_decided.
1156         * sysdeps/unix/sysv/linux/ldsodefs.h
1157         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
1158         * sysdeps/unix/sysv/linux/kernel-features.h
1159         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
1160
1161 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
1162
1163         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
1164         boundary test to take rounding of nanoseconds into account.
1165
1166         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
1167         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1168         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
1169         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1170         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1171         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1172         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1173
1174 2003-06-26  Andreas Schwab  <schwab@suse.de>
1175
1176         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
1177         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
1178         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
1179
1180 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
1181
1182         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
1183         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
1184         dlopen corresponding NSS module instead.
1185         * nis/nss_compat/compat-pwd.c: Likewise.
1186         * nis/nss_compat/compat-spwd.c: Likewise.
1187         * nis/nss_compat/compat-initgroups.c: Disabled for now.
1188         * nss/Versions: Export __nss_lookup_function.
1189
1190 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1191
1192         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
1193         for the SH architecture.
1194
1195 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
1196
1197         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
1198
1199 2003-06-25  Andreas Jaeger  <aj@suse.de>
1200
1201         * stdlib/tst-strtod.c (main): Declare constant long double as
1202         suggested by Jakub Jelinek and Andreas Schwab.
1203
1204         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
1205         declaration.
1206
1207         * stdio-common/tst-fphex.c: Fix format string.
1208
1209         * posix/transbug.c: Include <string.h> for memset and strlen
1210         declarations.
1211
1212         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
1213
1214         * stdlib/tst-strtod.c (main): Pass long double value.
1215
1216         * test-skeleton.c: Include <time.h> for nanosleep declaration.
1217
1218 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
1219
1220         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
1221         defined.
1222
1223 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
1224
1225         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
1226         * elf/dl-libc.c (struct dl_open_hook): New.
1227         (_dl_open_hook): New variable.
1228         (do_dlsym_private): New function.
1229         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
1230         and initialize it if found.
1231         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
1232         call dlopen_mode hook.
1233         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
1234         call dlsym hook.
1235         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
1236         call dlclose hook.
1237
1238 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
1239
1240         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
1241         result to long int so that extensions to long long int work.
1242         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1243
1244 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
1245
1246         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
1247         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
1248         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
1249         dl-cache.h.
1250         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
1251         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
1252         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
1253         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
1254
1255 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
1256
1257         * test-skeleton.c (timeout_handler): If waitpid returned 0,
1258         retry once after a second.  If killed == 0, assume
1259         WTERMSIG (status) == SIGKILL.
1260
1261 2003-06-18  Roland McGrath  <roland@redhat.com>
1262
1263         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
1264         elements in the table instead of printing an empty name string.
1265
1266 2003-06-05  Roland McGrath  <roland@redhat.com>
1267
1268         * elf/elf.h (PT_GNU_STACK): New macro.
1269
1270 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
1271
1272         * include/time.h: Define CLOCK_IDFIELD_SIZE.
1273         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
1274         * sysdeps/unix/clock_gettime.c: Likewise.
1275         * sysdeps/unix/clock_settime.c: Likewise.
1276         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
1277         clock id for thread CPU clocks.
1278
1279         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
1280         for the fstatfs64 syscall.
1281         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
1282         the statfs64 syscall.
1283
1284         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1285         __ASSUME_STATFS64 appropriately.
1286
1287         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
1288         from statfs structure if it has been filled in.
1289
1290         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
1291         field.
1292         (struct statfs64): Likewise.
1293         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
1294         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
1295
1296 2003-06-24  Richard Henderson  <rth@redhat.com>
1297
1298         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
1299         the 64-bit syscall name.
1300
1301         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
1302
1303         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
1304         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
1305
1306         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
1307         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
1308         libc_hidden_def.
1309         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1310         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
1311         on them.
1312
1313         * sysdeps/alpha/bits/atomic.h: New file.
1314
1315 2003-06-24  Andreas Schwab  <schwab@suse.de>
1316
1317         * sysdeps/m68k/fpu/libm-test-ulps: Update.
1318
1319 2003-06-24  Andreas Jaeger  <aj@suse.de>
1320
1321         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
1322         redeclaration with 32-bit code.
1323
1324 2003-05-19  Ed Connell  <ed.connell@sas.com>
1325
1326         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
1327         floating point mask.
1328         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
1329
1330 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
1331
1332         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
1333         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
1334         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
1335
1336         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
1337         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
1338         instead of __libc_cleanup_region_*.
1339
1340 2003-06-20  Richard Henderson  <rth@redhat.com>
1341
1342         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
1343         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
1344
1345 2003-06-20  Richard Henderson  <rth@redhat.com>
1346
1347         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
1348         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
1349         Unset for alpha.
1350         (__ASSUME_TIMEVAL64): Set for alpha.
1351         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1352         adjtimex, osf_sigprocmask, old_adjtimex.
1353         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
1354         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
1355         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
1356         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1357         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1358         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1359         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1360         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1361         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1362         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1363         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
1364         PIC code sequence.
1365         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1366         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
1367         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
1368         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
1369         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1370         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
1371         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
1372         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
1373         defer to __syscall_name; error for rt_sigaction.
1374         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
1375
1376 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
1377
1378         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
1379         hasn't happened yet.
1380
1381         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
1382         Fix completely broken implementation.  The second parameter is of
1383         type struct ucontext*.
1384
1385         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
1386         inline.
1387
1388         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
1389         * sysdeps/generic/dl-hash.h: Likewise.
1390
1391         * sysdeps/generic/memcmp.c: Remove inline from
1392         memcmp_common_alignment and memcmp_not_common_alignment definition.
1393
1394         * intl/localealias.c (read_alias_file): Determine whether line is
1395         read incompletely early, before we modify the line.
1396
1397 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
1398
1399         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
1400         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
1401
1402 2003-06-17  Paul Mackerras  <paulus@samba.org>
1403
1404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
1406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
1407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
1408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
1409         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
1410
1411 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
1412
1413         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
1414
1415 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
1418         takes care of enabling cancellation.
1419
1420         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
1421         cancelable.  It's not correct to disable cancellation.  Instead of
1422         a cleanup handler.
1423
1424         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
1425         and part of the incoming set, create a temporary set without this
1426         signal.
1427         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1428         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1429
1430         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
1431         returning because seconds==0.  Add __builtin_expect.
1432
1433 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
1436
1437         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
1438         variable.
1439
1440 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
1441
1442         * include/libc-symbols.h: Add static_link_warning macro.
1443         * grp/initgroups.c: Print linker warning if this function
1444         is called in a static linked binary.
1445         * nss/getXXbyYY.c: Likewise.
1446         * nss/getXXbyYY_r.c: Likewise.
1447         * nss/getXXent.c: Likewise.
1448         * nss/getXXent_r.c: Likewise.
1449         * sysdeps/posix/getaddrinfo.c: Likewise.
1450
1451 2003-06-16  Bruno Haible  <bruno@clisp.org>
1452
1453         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
1454         LATIN-9.
1455         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
1456         (IBM1047): Add alias IBM-1047.
1457         (GBK): Add aliases MS936, WINDOWS-936.
1458
1459 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
1460
1461         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
1462         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
1463         (__xstat64_conv): Change xstat_conv to __xstat_conv.
1464
1465 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
1466
1467         * locale/iso-639.def: Update from current official ISO 639.
1468
1469         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
1470
1471 2003-06-15  Andreas Jaeger  <aj@suse.de>
1472
1473         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
1474         of MXCSR.
1475         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1476         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
1477         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
1478
1479         * math/tgmath.h (carg): Handle real arguments.
1480         (conj): Likewise.
1481         (cproj): Likewise.
1482         (cimag): Likewise.
1483         (creal): Likewise.
1484
1485         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
1486         (tests): Add test-tgmath-ret.
1487         * math/test-tgmath-ret.c: New file.
1488
1489         * math/tgmath.h (ilogb): Return always an int.
1490
1491 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
1492
1493         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
1494         computation so that prelinking works.
1495
1496 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
1499         linker's map.
1500         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
1501         dynamic linker's map.
1502
1503         Fix cancellation point handling wrt exception based cleanup.
1504         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
1505         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
1506         with exceptions.
1507         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
1508         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
1509         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
1510         exceptions.
1511         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
1512         sigwait.c, and sigwaitinfo.c with exceptions.
1513         * stdlib/Makefile: Compile system.c with exceptions.
1514         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
1515         * termios/Makefile: Compile tcdrain.c with exceptions.
1516         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
1517         situation.
1518         * sysdeps/generic/pselect.c: Likewise.
1519         * sysdeps/posix/sigpause.c: Likewise.
1520         * sysdeps/posix/system.c: Likewise.
1521         * sysdeps/posix/waitid.c: Likewise.
1522         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1523         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1524         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
1525         INTERNAL_SYSCALL to not use push inside asm statement so that
1526         unwind info is correct around the syscall.
1527         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
1528         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1529
1530 2003-06-15  Andreas Jaeger  <aj@suse.de>
1531
1532         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1533         Add CFI directives.
1534
1535 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
1536
1537         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
1538         create $(objpfx).
1539
1540 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
1541
1542         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
1543         not close.
1544
1545         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
1546         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
1547         definition.
1548
1549         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
1550         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
1551         * inet/Makefile (routines): Add inet6_option.
1552         * inet/inet6_option.c: New file.
1553         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
1554         inet6_option_init, inet6_option_append, inet6_option_alloc,
1555         inet6_option_next, and inet6_option_find.
1556
1557 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
1558
1559         * inet/netinet/ip6.h (struct ip6_ext): Define.
1560
1561         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
1562
1563         Fixing gcc 3.3 warnings, part II.
1564         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
1565         * elf/dl-load.c (cache_rpath): Don't inline.
1566         * iconvdata/cns11642l2.h: Always inline all functions.
1567         * iconvdata/iso-ir-165.h: Likewise.
1568         * locale/Makefile (aux): Add coll-lookup.
1569         * locale/coll-lookup.c: New file.
1570         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
1571         (collseq_table_lookup): Likewise.
1572         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
1573         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
1574         change.
1575         * posix/regcomp.c: Likewise.
1576         * posix/regexec.c: Likewise.
1577         * locale/programs/3level.h (*_get): Always inline.
1578         * locale/programs/locfile.h: Move definition of handle_copy to...
1579         * locale/programs/locfile.c: ...here.
1580         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
1581         (obstack_int32_grow_fast): Likewise.
1582         (utf8_encode): Likewise.
1583         (find_element): Avoid aliasing problems.
1584         (insert_value): Likewise.
1585         (collate_read): Likewise.
1586         * nss/getent.c (print_hosts): Don't inline
1587         (print_networks): Likewise.
1588         (print_shadow): Likewise.
1589         (build_doc): Likewise.
1590         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
1591         inline.
1592         * posix/regcomp.c (re_set_fastmap): Always inline.
1593         (seek_collating_symbol_entry): Likewise.
1594         (lookup_collation_sequence_value): Likewise.
1595         (build_range_exp): Likewise.
1596         (build_collating_symbol): Likewise.
1597         * posix/regexec.c (acquire_init_state_context): Don't inline.
1598         (clean_state_log_if_need): Likewise.
1599         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
1600         adjust all callers.
1601         (evConsTime): Likewise.
1602         (evAddTime): Likewise.
1603         (evSubTime): Likewise.
1604         (evNowTime): Likewise.
1605         (evTimeSpec): Removed.
1606         (__libc_res_nsend): Avoid aliasing problem.
1607         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
1608         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
1609         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
1610         Always inline.
1611         (_dl_string_platform): Likewise.
1612         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
1613         (wcwidth_table_lookup): Likewise.
1614         (wctrans_table_lookup): Likewise.
1615
1616         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
1617
1618 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
1619
1620         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
1621
1622 2003-05-29  Jim Meyering  <jim@meyering.net>
1623
1624         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
1625         && HAVE_STRFTIME]: Use underlying_strftime for %r.
1626         Suggested by Daniel Yacob <locales@geez.org>.
1627
1628 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
1629
1630         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
1631         @got notation with @toc.
1632         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
1633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
1634
1635 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
1636
1637         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
1638         if only PF_INET address is needed.
1639
1640         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
1641         case of an error.
1642
1643         * scripts/config.guess: Update from upstream version.
1644         * scripts/config.sub: Likewise.
1645
1646 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
1647
1648         * locale/programs/ld-time.c (time_output): Also copy the era format,
1649         not only the name.
1650
1651 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
1652
1653         * posix/transbug.c (run_test): Return 1 for failure.
1654         (do_test): Compare only if run_test is successful.
1655
1656 2003-06-12  Simon Josefsson  <jas@extundo.com>
1657
1658         * argp/argp.h [!__THROW]: Define if undefined.
1659
1660 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
1661
1662         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
1663         more than four parameters.
1664         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
1665
1666 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
1667
1668         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
1669         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
1670         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
1671
1672         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
1673
1674 2003-06-12  Roland McGrath  <roland@redhat.com>
1675
1676         * Makerules ($(objpfx)stubs): Rewrite sed magic.
1677
1678 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
1679
1680         * posix/regcomp.c (parse_expression): Deliver translation to
1681         build_word_op, and build_charclass.
1682         (build_charclass): Apply translation for character classes too.
1683         (build_word_op): Deliver translation to build_charclass.
1684         * posix/transbug.c: New file.
1685         * posix/Makefile (tests): Add transbug.
1686
1687 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
1688
1689         * posix/regexec.c (group_nodes_into_DFAstates): Check for
1690         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
1691         'continue' before the others.
1692
1693 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
1694
1695         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
1696         function [PR libc/5045].
1697
1698         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
1699         also for P4.
1700
1701         * time/tzfile.c: Add a couple of __builtin_expect.
1702
1703         Remove warnings gcc 3.3 shows.
1704         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
1705         * elf/dl-load.c (fillin_rpath): Likewise.
1706         (add_path): Likewise.
1707         * elf/dl-version.c (find_needed): Always inline.
1708         * elf/do-lookup.c (FCT): Don't inline.
1709         * iconv/Makefile: Extend vpath to intl subdir.
1710         (iconvconfig-modules): Add hash-string.
1711         * iconv/gconv_charset.h (strip): Don't inline.
1712         (upstr): Always inline.
1713         Move __gconv_compare_alias prototype to...
1714         * iconv/gconv_int.h: ...here.
1715         * iconv/gconv_db.c: Don't include gconv_charset.h.
1716         * iconv/gconv_conf.c (add_alias): Don't inline.
1717         (insert_module): Likewise.
1718         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
1719         (internal_ucs4_loop_unaligned): Likewise.
1720         (internal_ucs4_loop_single): Likewise.
1721         (ucs4_internal_loop): Likewise.
1722         (ucs4_internal_loop_unaligned): Likewise.
1723         (ucs4_internal_loop_single): Likewise.
1724         (internal_ucs4le_loop): Always inline.
1725         (internal_ucs4le_loop_unaligned): Likewise.
1726         (internal_ucs4le_loop_single): Likewise.
1727         (ucs4le_internal_loop): Likewise.
1728         (ucs4le_internal_loop_unaligned): Likewise.
1729         (ucs4le_internal_loop_single): Likewise.
1730         * iconv/loop.c: Always inline the defined functions.
1731         * iconvdata/cns11642.h: Likewise.
1732         * iconvdata/cns11642l1.h: Likewise.
1733         * iconvdata/euc-kr.c: Likewise.
1734         * iconvdata/gb2312.h: Likewise.
1735         * iconvdata/jis0201.h: Likewise.
1736         * iconvdata/jis0208.h: Likewise.
1737         * iconvdata/jis0212.h: Likewise.
1738         * iconvdata/jisx0213.h: Likewise.
1739         * iconvdata/ksc5601.h: Likewise.
1740         * iconvdata/utf-7.c (base64): Don't inline.
1741         * include/libc-symbols.h (symbol_set_first_element): Add cast
1742         (symbol_set_end_p): Likewise.
1743         * include/set-hooks (RUN_HOOK): Likewise.
1744         * inet/Makefile (aux): Add ifreq.
1745         * intl/Makefile (aux): Add some entries from routines.  Add
1746         hash-string.
1747         * intl/hash-string.c: New file.
1748         * intl/hash-string.h: Remove hash_string definition.  Declare
1749         __hash_string.
1750         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
1751         * iconv/iconvconfig.c (new_name): Likewise.
1752         * intl/dcigettext.c (_nl_find_msg): Likewise.
1753         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
1754         * io/ftw.c (open_dir_stream): Always inline.
1755         (process_entry): Don't inline.
1756         * locale/findlocale.c: Include gconv_int.h.
1757         * locale/setlocale.c (new_composite_name): Don't inline.
1758         * locale/weight.h (findidx): Always inline.
1759         * locale/weightwc.h (findidx): Likewise.
1760         * locale/programs/linereader.c (lr_ignore_rest): Define here.
1761         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
1762         just declare it.
1763         (lr_getc): Always inline.
1764         (lr_ungetc): Likewise.
1765         * nss/nss_files/files-parse.c (parse_list): Likewise.
1766         * stdio-common/Makefile (aux): Add printf-parsemb and
1767         printf-parsewc.
1768         * stdio-common/_itoa.h (_itoa_word): Always inline.
1769         (_fitoa_word, _fitoa): Don't define here, only declare.
1770         * stdio-common/_itoa.c (_iftoa_word): Add here.
1771         (_fitoa): Likewise.
1772         * stdio-common/_itowa.h (_itowa_word): Always inline.
1773         * stdio-common/printf-parse.h (read_int): Don't inline.
1774         (find_spec): Don't define.
1775         Declare __find_specmb and __find_specwc.
1776         (parse_one_spec): Don't define.
1777         Declare __parse_one_specmb and __parse_one_specwc.
1778         * stdio-common/printf-parsemb.c: New file.
1779         * stdio-common/printf-parsewc.c: New file.
1780         * stdio-common/vfprintf.c: Update calls to find_spec and
1781         parse_one_spec for new names.
1782         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
1783         * stdlib/Makefile (aux): Add grouping and groupingwc.
1784         * stdlib/grouping.c: New file.
1785         * stdlib/groupingwc.c: New file.
1786         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
1787         Just prototype.
1788         * stdlib/rpmatch.c (try): Don't inline.
1789         * stdlib/strtod.c (round_and_return): Don't line.
1790         (str_to_mpn): Likewise.
1791         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
1792         Adjust for name change of correctly_grouped_prefix.
1793         * sysdeps/generic/strtol.c: Adjust for name change of
1794         correctly_grouped_prefix.
1795         * string/strxfrm.c (utf8_encode): Don't inline.
1796         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
1797         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
1798         * sysdeps/generic/ifreq.c: New file.
1799         * sysdeps/unix/sysv/linux/ifreq.c: New file.
1800         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
1801         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
1802         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
1803         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
1804         (fde_split): Likewise.
1805         (fde_merge): Likewise.
1806         (end_fde_sort): Likewise.
1807         (init_object): Likewise.
1808         (binary_search_unencoded_fdes): Likewise.
1809         (binary_search_single_encoding_fdes): Likewise.
1810         (binary_search_mixed_encoding_fdes): Likewise.
1811         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
1812         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
1813         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
1814         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1815         Add xstatconv.
1816         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
1817         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
1818         Export them.  Prepend __ to name.
1819         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
1820         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
1821         conversion functions.
1822         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1823         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
1824         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1825         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
1826         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1827         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1828         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1829         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1830         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
1831         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
1832         to name.  Change callers.
1833         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
1834         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
1835         declare.
1836         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
1837         * time/tzfile.c (decode): Always inline.
1838         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
1839         Remove cast in tomb function call.
1840         * wcsmbs/wcsrtombs.c Likewise.
1841         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
1842         tomb function call.
1843
1844 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
1845
1846         * po/zh_CN.po: Update from translation team.
1847
1848 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
1849
1850         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
1851         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
1852
1853 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
1854
1855         * inet/Makefile (aux): Add check_pf.
1856         * include/ifaddrs.h: Add prototype for __check_pf.
1857         * sysdeps/generic/check_pf.c: New file.
1858         * sysdeps/unix/sysv/linux/check_pf.c: New file.
1859         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
1860         from no_netlink_support.  Export.
1861         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
1862         call __check_pf.
1863
1864         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
1865
1866         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
1867         from getifaddr calls.
1868
1869 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
1870
1871         * sysdeps/unix/sysv/linux/kernel-features.h
1872         (__ASSUME_SETRESGID_SYSCALL): Define.
1873         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
1874         instead of __ASSUME_SETRESUID_SYSCALL.
1875         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
1876         defined.
1877         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
1878         inline syscall if __NR_setresuid32 is defined.
1879         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1880         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
1881         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
1882         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1883         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
1884         code handling non-existant setresgid32 syscall with
1885         #if __ASSUME_SETRESGID_SYSCALL == 0.
1886
1887 2003-06-09  Andreas Schwab  <schwab@suse.de>
1888
1889         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
1890         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
1891         $(objpfx)rpc-proto.d.
1892         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
1893         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
1894         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
1895
1896 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
1897
1898         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
1899         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
1900         defined drop compatibility code.
1901         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
1902         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
1903         defined drop compatibility code.
1904         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
1905         setresuid32 syscall directly if possible.
1906         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
1907         setresgid32 syscall directly if possible.
1908         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
1909         compliant.  Don't change sgid.
1910         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
1911         compliant.  Don't change suid.
1912
1913         * config.h.in: Add have-forced-unwind.
1914         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
1915
1916 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
1917
1918         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
1919         returned status from child matches.
1920
1921         * Makeconfig (gnulib): Add -lgcc_eh once again.
1922
1923 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
1924
1925         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
1926
1927         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
1928         %edx for first parameter.  This means no pushl and therefore the
1929         unwind info isn't screwed up.
1930
1931 2003-06-04  Richard Henderson  <rth@redhat.com>
1932
1933         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
1934         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1935         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
1936         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
1937         entry sequence and explicit relocs.  Add unwind info for sigreturn
1938         and rt_sigreturn.
1939         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
1940
1941         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
1942         Annotate some parameters.
1943         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
1944
1945         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
1946
1947         * include/libc-symbols.h (symbol_set_declare): Use arrays
1948         of unspecified size.
1949
1950 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1951
1952         * config.make.in (ASFLAGS-config): New.
1953         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
1954         * configure.in (libc_cv_as_noexecstack): New check.
1955         (ASFLAGS_config): Substitute.
1956
1957 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1958
1959         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
1960         hypot, logb): Protect with #ifdef __FAST_MATH__.
1961
1962 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
1963
1964         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
1965         #ifdef __FAST_MATH__.
1966
1967 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
1968
1969         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
1970         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
1971         * posix/globtest.sh: Adjust for this change.
1972
1973         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
1974         to get the actual PID value used in the records passed up.
1975         (getifaddrs): Don't initialize nh.pid here.
1976
1977 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
1978
1979         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
1980         optimization.
1981
1982         * po/zh_CN.po: Update from translation team.
1983
1984         * posix/getconf.c (main): Also recognize names without the
1985         _POSIX_ prefix.
1986
1987         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
1988
1989 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
1990
1991         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
1992         ldexpf, ldexpl): Only define if __FAST_MATH__.
1993
1994 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
1995
1996         Replace hard-coded offsets into struct sigcontext with generated file.
1997         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
1998         * sysdeps/unix/sysv/linux/ia64/Makefile
1999         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2000         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2001         defining SC_* macros here.
2002
2003 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
2004
2005         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2006
2007 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
2008
2009         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2010
2011 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
2012
2013         * test-skeleton.c (main): Request getopt to not reorder the
2014         command line.
2015
2016         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2017
2018         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2019         stpncpy.
2020
2021 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2022
2023         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2024
2025 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
2026
2027         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2028         New function.
2029         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2030         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
2031         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2032
2033 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2036         CFI directives.
2037
2038         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2039
2040         * libio/fileops.c (_IO_file_open): Don't mark as inline.
2041
2042         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
2043         attribute used.
2044
2045 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
2046
2047         * scripts/config.guess: Update from master copy.
2048         * scripts/config.sub: Likewise.
2049
2050 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
2051
2052         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
2053         SETUP_GP64 and friends.
2054         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
2055         names in internal_syscall{6,7}.
2056         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2057         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
2058         number of syscall arguments.
2059         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2060         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2061         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2062
2063 2003-05-30  Andreas Jaeger  <aj@suse.de>
2064
2065         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2066         Add CFI directives.
2067
2068         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
2069         directives.
2070
2071         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
2072
2073         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2074         Add CFI directives.
2075
2076 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
2077
2078         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
2079         SHARED.
2080
2081 2003-05-11  Andreas Schwab  <schwab@suse.de>
2082
2083         * Makerules: Always use -MP together with -MD.
2084         (sed-remove-dotot): Substitute $(..) also at start of line.
2085         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
2086         Generated defines with a single compiler call.
2087         Use $(sed-remove-dotdot).
2088         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
2089         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
2090         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2091         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
2092         * sysdeps/unix/sysv/linux/mips/Makefile
2093         ($(objpfx)syscall-%.h): Likewise.
2094
2095 2003-05-28  Roland McGrath  <roland@redhat.com>
2096
2097         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
2098
2099 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
2100
2101         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
2102
2103 2003-05-28  Roland McGrath  <roland@redhat.com>
2104
2105         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
2106         rt_sigprocmask system call.
2107         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
2108         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
2109
2110 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
2111
2112         * include/libc-symbols.h: Define hidden attribute for real also if
2113         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
2114
2115         * csu/Makefile: Add rules to build Scrt1.o.
2116         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
2117         * sysdeps/x86_64/elf/start.S: Likewise.
2118
2119 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
2120
2121         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
2122         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
2123         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
2124         pa_short_int, pa_u_short_int and pa_float.
2125
2126 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
2127
2128         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
2129         _IO_str_init_static_internal.
2130         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
2131         change size argument to _IO_size_t, don't limit sprintf to 64M.
2132         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
2133         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
2134         _IO_size_t, don't limit swprintf to 256M.
2135         (_IO_wstr_init_readonly): Remove.
2136         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
2137         Adjust prototypes.
2138         (_IO_wstr_init_readonly): Remove prototype.
2139         * libio/iovsprintf.c (_IO_vsprintf): Use
2140         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
2141         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
2142         * libio/memstream.c (open_memstream): Likewise.
2143         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
2144         * libio/vasprintf.c (_IO_vasprintf): Likewise.
2145         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2146         * stdio-common/tst-sprintf.c (main): Add new test.
2147
2148 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
2149
2150         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
2151         other implementation in respect of multiple uses of parameter with
2152         different types.
2153
2154 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
2155
2156         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2157         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
2158
2159 2003-05-22  Andreas Jaeger  <aj@suse.de>
2160
2161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
2162         directives.
2163         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
2164         * sysdeps/x86_64/strtok.S: Likewise.
2165
2166 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
2167
2168         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
2169         to -60 and define SI_TKILL.
2170
2171 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2172
2173         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
2174         (feexcp_mask_test): Likewise.
2175
2176 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
2177
2178         * locale/programs/locale.c (main): Fix typo in last patch.
2179
2180         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
2181         __init_array_start, __init_array_end, __fini_array_start, and
2182         __fini_array_end as hidden.
2183
2184 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
2185
2186         * locale/programs/locale.c (main): Report an error if setlocale()
2187         fails [PR libc/2254].
2188
2189 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
2190
2191         * sysdeps/unix/sysv/linux/s390/system.c: New file.
2192
2193 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
2194
2195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
2196         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2197         LOADARGS_6): Don't error if syscall argument is a string literal.
2198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
2199         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
2200         LOADARGS_6): Likewise.
2201
2202 2003-05-21  Andreas Jaeger  <aj@suse.de>
2203
2204         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
2205         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
2206         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
2207
2208         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
2209         (ENTRY): Likewise.
2210         (END): Likewise.
2211
2212         * configure.in: Test for asm cfi directives.
2213
2214         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
2215
2216 2003-05-17  Andreas Jaeger  <aj@suse.de>
2217
2218         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
2219
2220         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
2221
2222 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
2223
2224         * rt/Makefile (tests): Add tst-clock_nanosleep.
2225         * rt/tst-clock_nanosleep.c: New file.
2226         * posix/Makefile (tests): Add tst-nanosleep.
2227         * posix/tst-nanosleep.c: New file.
2228
2229         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
2230
2231         * include/features.h (__USE_XOPEN2K): Define also for
2232         _POSIX_C_SOURCE>=200112L.
2233
2234         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
2235         SI_TKILL code into SI_USER.
2236         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2237
2238         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
2239
2240 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
2241
2242         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
2243         Remove sym argument, always use refsym.
2244         (__process_machine_rela): Adjust callers.
2245         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
2246         Likewise.
2247         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
2248         Adjust prototype.
2249         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2250
2251 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
2252
2253         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
2254         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
2255         print numeric values.
2256
2257 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
2258
2259         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
2260
2261 2003-05-14  Andreas Schwab  <schwab@suse.de>
2262
2263         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
2264
2265 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
2266
2267         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
2268         even if no DT_NEEDED is present.
2269
2270 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
2271
2272         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
2273         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
2274         __sigjmp_save) so we can't keep the saved unat value in a scratch
2275         register (r16).  Use loc2 instead.
2276
2277 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
2278
2279         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
2280         binaries it has to be relocatable.
2281
2282         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
2283
2284 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2285
2286         * sysdeps/powerpc/bits/atomic.h
2287         (__arch_compare_and_exchange_bool_8_rel): Define.
2288         (__arch_compare_and_exchange_bool_16_rel): Define.
2289         (__ARCH_REL_INSTR): Define if not already defined.
2290         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
2291         (__arch_atomic_decrement_if_positive_32):
2292         Add "memory" to clobber list.
2293         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
2294         (__arch_compare_and_exchange_val_32_rel): Define.
2295         (__arch_atomic_exchange_32): Remove.
2296         (__arch_atomic_exchange_32_acq): Define.
2297         (__arch_atomic_exchange_32_rel): Define.
2298         (atomic_compare_and_exchange_val_rel): Define.
2299         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
2300         (atomic_exchange_rel): Define.
2301         * sysdeps/powerpc/powerpc32/bits/atomic.h
2302         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
2303         (__arch_compare_and_exchange_bool_32_rel): Define.
2304         (__arch_compare_and_exchange_bool_64_rel): Define.
2305         (__arch_compare_and_exchange_val_64_rel): Define.
2306         (__arch_atomic_exchange_64): Remove.
2307         (__arch_atomic_exchange_64_acq): Define.
2308         (__arch_atomic_exchange_64_rel): Define.
2309         * sysdeps/powerpc/powerpc64/bits/atomic.h
2310         (__arch_compare_and_exchange_bool_32_rel): Define.
2311         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
2312         (__arch_compare_and_exchange_bool_64_rel): Define.
2313         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
2314         (__arch_compare_and_exchange_val_64_rel): Define.
2315         (__arch_atomic_exchange_64): Remove.
2316         (__arch_atomic_exchange_64_acq): Define.
2317         (__arch_atomic_exchange_64_rel): Define.
2318         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
2319         (__arch_atomic_decrement_if_positive_64):
2320         Add "memory" to clobber list.
2321         [!UP](__ARCH_REL_INSTR): Define as lwsync.
2322
2323 2003-05-11  Andreas Schwab  <schwab@suse.de>
2324
2325         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
2326
2327 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
2328
2329         * time/tst-strftime.c (do_test): Add tests for - flag.
2330
2331 2003-05-11  Jim Meyering  <jim@meyering.net>
2332
2333         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
2334         the space-padded-by-default conversion specifiers, %e, %k, %l.
2335
2336 2003-05-11  Andreas Schwab  <schwab@suse.de>
2337
2338         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
2339
2340 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2341
2342         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
2343         already defined and when really needed.
2344         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2345
2346 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
2347
2348         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
2349         headers, add defines from kernel header, move it from here...
2350         * inet/netinet/igmp.h: ... to here.
2351         * inet/Makefile (headers): Add netinet/igmp.h.
2352         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
2353         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
2354
2355 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2356
2357         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
2358         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
2359
2360 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
2361
2362         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
2363         (remove __THROW from possible cancellation points).
2364
2365 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
2366
2367         * posix/sched.h (CPU_SETSIZE): Define.
2368
2369 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
2370
2371         * Makeconfig (gnulib): Remove -lgcc_eh again.
2372
2373         * posix/sched.h: Change prototypes of sched_getaffinity and
2374         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
2375         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
2376         * sysdeps/generic/sched_setaffinity.c: Likewise.
2377         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
2378         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
2379         __CPU_CLR, and __CPU_ISSET.
2380         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2381         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
2382         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
2383
2384         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
2385         (atomic_exchange_rel): New #define.
2386         * sysdeps/ia64/bits/atomic.h: Likewise.
2387         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
2388         atomic_exchange.
2389         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
2390         * sysdeps/powerpc/bits/atomic.h: Likewise.
2391         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
2392         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
2393         * sysdeps/x86_64/bits/atomic.h: Likewise.
2394         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
2395
2396         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
2397
2398 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
2399
2400         * malloc/thread-m.h: Remove special handling of thread_atfork if
2401         HAVE_register_atfork_malloc is defined.
2402
2403 2003-05-07  Andreas Jaeger  <aj@suse.de>
2404
2405         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
2406         information.
2407
2408 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
2409
2410         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
2411         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
2412         * libio/libioP.h: Declare _IO_old_init.
2413         * libio/genops.c (_IO_no_init): Split in two.  New function
2414         _IO_old_init.
2415
2416 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
2417
2418         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
2419         variable.
2420         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
2421         is nonzero.
2422         * include/unistd.h: Declare __libc_enable_secure_decided.
2423         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
2424         and AT_EGID.  If all found, set __libc_enable_secure and
2425         __libc_enable_secure_decided.
2426
2427         * sysdeps/generic/libc-start.c [!SHARED]: Call
2428         __libc_check_standard_fds after __libc_init_first.
2429
2430 2003-05-05  Roland McGrath  <roland@redhat.com>
2431
2432         * Makerules (common-before-compile): New variable.
2433         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
2434         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
2435         to after all setting of before-compile.
2436
2437 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
2438
2439         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2440         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
2441         * sysdeps/powerpc/powerpc32/bits/atomic.h
2442         (__arch_compare_and_exchange_val_64_acq): Likewise.
2443         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2444         (__arch_compare_and_exchange_val_8_acq,
2445         __arch_compare_and_exchange_val_16_acq,
2446         __arch_compare_and_exchange_val_64_acq): Likewise.
2447         * sysdeps/sparc/sparc64/bits/atomic.h
2448         (__arch_compare_and_exchange_val_8_acq,
2449         __arch_compare_and_exchange_val_16_acq): Likewise.
2450         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
2451         __arch_compare_and_exchange_val_16_acq,
2452         __arch_compare_and_exchange_val_64_acq): Likewise.
2453         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2454         (__arch_compare_and_exchange_val_64_acq): Likewise.
2455         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
2456         up warning.
2457         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
2458
2459         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2460         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
2461         Return long instead of int.
2462         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
2463         0xfffff001u with -4095UL.
2464
2465 2003-05-05  Andreas Jaeger  <aj@suse.de>
2466
2467         * sysdeps/x86_64/fpu_control.h: New from i386.
2468
2469         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
2470         Define if not defined.
2471
2472         * sunrpc/Makefile (generated-dirs): New variable.
2473         * resolv/Makefile (generated): New variable.
2474
2475 2003-05-04  Roland McGrath  <roland@redhat.com>
2476
2477         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
2478         Depend on $(before-compile).
2479
2480         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
2481         pattern rule.  The implicit rule could be ruled out when $(objpfx)
2482         didn't exist at the time of its consideration (ugh!).
2483
2484         * Makerules (+make-deps): Fix target matching.
2485         Use $(sed-remove-dotdot).
2486
2487 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
2488
2489         * nscd/nscd.c (main): Parse config file right after parsing
2490         parameters.  Then, if get_stats is true, call receive_print_stats.
2491         Drop parameter from nscd_init call.
2492         (get_stats): New variable.
2493         (parse_opt): Set get_stats, don't call receive_print_stats here.
2494         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
2495         prototype.
2496         * nscd/connections.c (stat_user, stat_uid): New variables.
2497         (dbs): Make global.
2498         (nscd_init): Don't read configuration file here.  Drop parameter.
2499         (handle_request): Cleanup handling of non-database lookup requests.
2500         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
2501         Get UID of the specified user.  Use xstrdup instead of strdup.
2502         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
2503         check stat_user.
2504         * nscd/Makefile (nscd-modules): Add xstrdup.
2505         * nscd/nscd.conf: Document stat-user entry.
2506
2507 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
2510         if not defined.
2511
2512 2003-04-22  Roland McGrath  <roland@redhat.com>
2513
2514         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
2515         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2516         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
2517         * elf/dl-support.c: Update defn.
2518         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
2519         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2520         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
2521         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
2522         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
2523         set, set up a link_map for the preloaded, prelinked object.
2524
2525 2003-05-03  Roland McGrath  <roland@redhat.com>
2526
2527         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
2528         * stdio-common/Makefile: ... not here.
2529
2530         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
2531         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
2532
2533 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
2534
2535         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
2536
2537         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
2538
2539         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
2540         comparing ftab elements.
2541         (_dl_unmap): Fix typo in test.
2542         (_dl_make_fptr): Fix typos introduced in last change.
2543
2544         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
2545         original patch.  Use non-exported symbols.  Mark translatable
2546         strings.  Pretty printing.
2547
2548 2003-05-02  Roland McGrath  <roland@redhat.com>
2549
2550         * Makerules (do-stamp): Do $(make-target-directory).
2551
2552 2003-04-07  H.J. Lu  <hjl@gnu.org>
2553
2554         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
2555
2556 2003-04-03  H.J. Lu  <hjl@gnu.org>
2557
2558         * sysdeps/ia64/dl-fptr.c: Moved to ...
2559         * sysdeps/generic/dl-fptr.c: Here.
2560
2561         * sysdeps/generic/dl-fptr.h: New.
2562         * sysdeps/ia64/dl-fptr.h: New.
2563
2564         * sysdeps/ia64/dl-symaddr.c: Moved to ...
2565         * sysdeps/generic/dl-symaddr.c: here.
2566
2567         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
2568         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
2569         (ia64_fdesc): Likewise.
2570         (ia64_fdesc_table): Likewise.
2571         (__ia64_make_fptr): Likewise.
2572         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
2573         with _dl_boot_fptr_table.
2574         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
2575         `struct fdesc'.
2576         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
2577
2578 2003-05-01  Roland McGrath  <roland@redhat.com>
2579
2580         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
2581         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2582
2583         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
2584         Use $(make-target-directory).
2585         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2586
2587         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
2588         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
2589         (compile-command.s, compile-command.c): Likewise.
2590         ($(objpfx)%.d): All such pattern rules removed.
2591         ($(+sysdir_pfx)sysd-rules): Don't generate them.
2592         ($(common-objpfx)dummy.d): Target removed.
2593         (make-dummy-dep): Variable removed.
2594         (generate-md5): Likewise.
2595         (%.d: %.dt): New pattern rule.
2596         (+depfiles): Use $(wildcard) function to get just existing *.d files
2597         and .d files for existing *.dt files.
2598         (common-clean): Remove all *.d and *.dt files.
2599         (before-compile): Add $(objpfx). when it doesn't exist,
2600         regardless of $(no_deps).
2601         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
2602         (rtld-depfiles): Use .os.d instead of .d names.
2603         Include existing *.d files and .d files for existing *.dt files.
2604
2605         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
2606         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
2607
2608         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
2609         Do s-*.d includes only if we have some syscall routines in this subdir.
2610
2611         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
2612         @nobits.  The former is accepted by gas on any ELF platform.
2613
2614 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
2615
2616         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
2617
2618         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
2619
2620 2003-04-29  Andreas Schwab  <schwab@suse.de>
2621
2622         * string/test-strcat.c (do_one_test): Fix attribute name.
2623
2624 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
2625
2626         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
2627         uc_flags long for all ABIs.
2628
2629 2003-04-30  Andreas Jaeger  <aj@suse.de>
2630
2631         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
2632         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
2633         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
2634         Add bi-arch support.
2635
2636 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
2637
2638         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
2639         (__posix_memalign): Use __memalign_internal instead of memalign.
2640
2641 2003-04-29  Roland McGrath  <roland@redhat.com>
2642
2643         * configure.in: Search for AUTOCONF unconditionally.
2644         Just don't complain about missing it under --without-cvs.
2645
2646         * include/libc-symbols.h (__symbol_set_attribute): New macro,
2647         give hidden for [SHARED] and weak for [! SHARED].
2648         (symbol_set_declare): Use that.  Never need weak_extern these days.
2649         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
2650         Depend on $(..)Makerules.
2651
2652 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
2653
2654         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
2655         variants of socket, bind, recvmsg, and sendto.
2656
2657         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
2658
2659         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
2660         * signal/sigaddset.c: Add libc_hidden_def.
2661         * signal/sigdelset.c: Likewise.
2662
2663 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
2664
2665         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
2666         to the end of the file.
2667
2668         * configure.in: Change __oline__ to $LINENO.
2669         (HAVE_BUILTIN_REDIRECTION): New check.
2670         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
2671         * include/libc-symbols.h (libc_hidden_builtin_proto,
2672         libc_hidden_builtin_def, libc_hidden_builtin_weak,
2673         libc_hidden_builtin_ver): Define.
2674         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
2675         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
2676         strspn, strstr): Add libc_hidden_builtin_proto.
2677         * intl/plural.y: Include string.h.
2678         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
2679         libc_hidden_builtin_def.
2680         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
2681         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
2682         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
2683         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
2684         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
2685         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
2686         * sysdeps/alpha/memchr.S (memchr): Likewise.
2687         * sysdeps/alpha/memset.S (memset): Likewise.
2688         * sysdeps/alpha/strcat.S (strcat): Likewise.
2689         * sysdeps/alpha/strchr.S (strchr): Likewise.
2690         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
2691         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
2692         * sysdeps/alpha/strlen.S (strlen): Likewise.
2693         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
2694         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
2695         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
2696         * sysdeps/arm/memset.S (memset): Likewise.
2697         * sysdeps/arm/strlen.S (strlen): Likewise.
2698         * sysdeps/generic/memchr.c (memchr): Likewise.
2699         * sysdeps/generic/memcpy.c (memcpy): Likewise.
2700         * sysdeps/generic/memmove.c (memmove): Likewise.
2701         * sysdeps/generic/memset.c (memset): Likewise.
2702         * sysdeps/generic/strcat.c (strcat): Likewise.
2703         * sysdeps/generic/strchr.c (strchr): Likewise.
2704         * sysdeps/generic/strcmp.c (strcmp): Likewise.
2705         * sysdeps/generic/strcpy.c (strcpy): Likewise.
2706         * sysdeps/generic/strcspn.c (strcspn): Likewise.
2707         * sysdeps/generic/strlen.c (strlen): Likewise.
2708         * sysdeps/generic/strncmp.c (strncmp): Likewise.
2709         * sysdeps/generic/strncpy.c (strncpy): Likewise.
2710         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
2711         * sysdeps/generic/strrchr.c (strrchr): Likewise.
2712         * sysdeps/generic/strspn.c (strspn): Likewise.
2713         * sysdeps/generic/strstr.c (strstr): Likewise.
2714         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2715         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2716         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
2717         * sysdeps/i386/i586/memset.S (memset): Likewise.
2718         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
2719         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
2720         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2721         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
2722         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2723         * sysdeps/i386/i686/memset.S (memset): Likewise.
2724         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2725         * sysdeps/i386/memchr.S (memchr): Likewise.
2726         * sysdeps/i386/memset.c (memset): Likewise.
2727         * sysdeps/i386/strchr.S (strchr): Likewise.
2728         * sysdeps/i386/strcspn.S (strcspn): Likewise.
2729         * sysdeps/i386/strlen.c (strlen): Likewise.
2730         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2731         * sysdeps/i386/strrchr.S (strrchr): Likewise.
2732         * sysdeps/i386/strspn.S (strspn): Likewise.
2733         * sysdeps/ia64/memchr.S (memchr): Likewise.
2734         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
2735         * sysdeps/ia64/memmove.S (memmove): Likewise.
2736         * sysdeps/ia64/memset.S (memset): Likewise.
2737         * sysdeps/ia64/strcat.S (strcat): Likewise.
2738         * sysdeps/ia64/strchr.S (strchr): Likewise.
2739         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
2740         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
2741         * sysdeps/ia64/strlen.S (strlen): Likewise.
2742         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
2743         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
2744         * sysdeps/m68k/memchr.S (memchr): Likewise.
2745         * sysdeps/m68k/strchr.S (strchr): Likewise.
2746         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
2747         * sysdeps/mips/mips64/memset.S (memset): Likewise.
2748         * sysdeps/mips/memcpy.S (memcpy): Likewise.
2749         * sysdeps/mips/memset.S (memset): Likewise.
2750         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2751         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
2752         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
2753         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
2754         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
2755         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2756         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2757         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
2758         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
2759         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
2760         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
2761         * sysdeps/powerpc/strcat.c (strcat): Likewise.
2762         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
2763         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
2764         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
2765         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
2766         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
2767         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
2768         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
2769         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
2770         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
2771         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
2772         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
2773         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
2774         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
2775         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
2776         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
2777         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
2778         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
2779         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
2780         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
2781         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
2782         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
2783         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
2784         * sysdeps/sh/memcpy.S (memcpy): Likewise.
2785         * sysdeps/sh/memset.S (memset): Likewise.
2786         * sysdeps/sh/strlen.S (strlen): Likewise.
2787         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
2788         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
2789         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
2790         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
2791         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
2792         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
2793         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
2794         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
2795         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
2796         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
2797         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
2798         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
2799         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2800         * sysdeps/x86_64/memset.S (memset): Likewise.
2801         * sysdeps/x86_64/strcat.S (strcat): Likewise.
2802         * sysdeps/x86_64/strchr.S (strchr): Likewise.
2803         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
2804         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
2805         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
2806         * sysdeps/x86_64/strlen.S (strlen): Likewise.
2807         * sysdeps/x86_64/strspn.S (strspn): Likewise.
2808         * string/string-inlines.c: Move...
2809         * sysdeps/generic/string-inlines.c: ...here.
2810         (__memcpy_g, __strchr_g): Remove.
2811         (__NO_INLINE__): Define before including <string.h>,
2812         undefine after.  Include bits/string.h and bits/string2.h.
2813         * sysdeps/i386/i486/string-inlines.c: New file.
2814         * sysdeps/i386/string-inlines.c: New file.
2815         * sysdeps/i386/i486/Versions: Remove.
2816         All GLIBC_2.1.1 symbols moved...
2817         * sysdeps/i386/Versions (libc): ...here.
2818
2819 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
2820
2821         * sysdeps/i386/fpu/Makefile: New file.
2822         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
2823         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
2824         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
2825         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
2826         [PR libc/4987].
2827
2828 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
2829
2830         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
2831         * nscd/nscd_getpw_r.c: Likewise.
2832         * nscd/nscd_gethst_r.c: Likewise.
2833
2834 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
2835
2836         * nscd/pwdcache.c: Initialize .version element in result.
2837         * nscd/grpcache.c: Likewise.
2838         * nscd/pwdcache.c: Likewise.
2839
2840 2003-04-27  Andreas Schwab  <schwab@suse.de>
2841
2842         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
2843         subdirectory.
2844
2845 2003-04-27  Andreas Schwab  <schwab@suse.de>
2846
2847         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
2848
2849 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
2850
2851         * nscd/connections.c (client_queued): New variable.
2852         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
2853         threads.  Keep track of the number of delays caused because of busy
2854         worker threads.
2855         * nscd/nscd.h: Declare client_queued.
2856         * nscd/nscd_stat.c: Transmit and print client_queued information.
2857
2858         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
2859
2860         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
2861         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
2862
2863 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
2864
2865         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
2866         tracking of freed memory in static TLS block.
2867         * elf/Makefile: Add rules to build and run tst-tls13.
2868         * elf/tst-tls13.c: New file.
2869         * elf/tst-tlsmod13.c: New file.
2870         * elf/tst-tlsmod13a.c: New file.
2871
2872         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
2873
2874         * elf/dl-reloc.c: Pretty printing.
2875
2876 2003-04-26  Roland McGrath  <roland@redhat.com>
2877
2878         * Makerules ($(common-objpfx)shlib.lds): New target.
2879         (common-generated): Add it.
2880         (build-shlib, build-module): Use that instead of generating every time.
2881         ($(common-objpfx)libc.so): Depend on it.
2882         (lib%.so rule): Likewise.
2883         (build-module-helper-objlist): Remove %.lds.
2884         (LDSEDCMD-c.so): Variable removed.
2885         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
2886         Depend on $(common-objpfx)shlib.lds.
2887         * dlfcn/Makefile ($(test-modules)): Likewise.
2888
2889 2003-04-26  Roland McGrath  <roland@frob.com>
2890
2891         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
2892
2893 2003-04-26  Andreas Schwab  <schwab@suse.de>
2894
2895         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
2896
2897 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
2898
2899         * nscd/cache.c (cache_search): Keep track of how many chain links
2900         we searched and update table statistics.
2901         (cache_add): Keep track of how many values are in the table.
2902         (prune_cache): Likewise.  Keep track of locking success.
2903         Print messages about removed entries in separate pass.
2904         * nscd/connections.c (handle_request): Don't print debug message here.
2905         The caller will do it.  Keep track of locking success.
2906         (nscd_run): Print debug message.  Also print PID of the client process.
2907         * nscd/nscd.c (start_time): New variable.
2908         (main): Remember start time.
2909         * nscd/nscd.h: Declare start_time.
2910         (struct database): Add more members for new statistics.
2911         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
2912         of new statistics.
2913
2914         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
2915
2916 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
2917
2918         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
2919         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
2920         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
2921         NO_TLS_OFFSET.
2922         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
2923         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
2924         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
2925         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
2926         TLS_TCB_SIZE.
2927
2928 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
2929
2930         * nss/getent.c: Implement alternative host database lookup via
2931         getaddrinfo.
2932
2933         * include/ifaddrs.h: New file.
2934         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
2935         AI_ADDRCONFIG...
2936         * resolv/netdb.h: ...here.
2937         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
2938         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2939         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
2940         AI_ADDRCONFIG.
2941
2942 2003-04-24  Roland McGrath  <roland@redhat.com>
2943
2944         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
2945
2946 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
2947
2948         * elf/dl-reloc.c (allocate_static_tls): Rename to...
2949         (_dl_allocate_static_tls): ... this function.  No longer static.
2950         (CHECK_STATIC_TLS): Adjust.
2951         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
2952         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
2953         Add SYM_MAP argument.
2954         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
2955         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
2956         TLS relocs here.  #ifdef out relocs which never appear in
2957         .gnu.conflict section from dl-conflict.c processing.
2958         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2959         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
2960
2961         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
2962         out relocs which never appear in .gnu.conflict section from
2963         dl-conflict.c processing.
2964         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
2965         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2966         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2967         Use r_type in RESOLVE macro.
2968
2969 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
2970
2971         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
2972         NULL.  Remove code made redundant by this assumption.
2973         (__yp_unbind): Add call to free.  Adjust all callers.
2974
2975         * nis/ypclnt.c (yp_all): Free the dom_binding object after
2976         unbinding it.
2977
2978         * grp/initgroups.c (getgrouplist): Don't copy too much into the
2979         user buffer if more groups are found than fit into it.
2980
2981         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
2982         extend_alloca.
2983
2984 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
2985
2986         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
2987         not rc == errno.  Use extend_alloca.
2988
2989         * elf/tst-tls12.c (main): Fix declaration.
2990         * elf/tst-tls10.c (dummy): Make hidden instead of static.
2991         * elf/tst-tlsmod7.c (dummy): Likewise.
2992         * elf/tst-tlsmod8.c (dummy): Likewise.
2993         * elf/tst-tlsmod9.c (dummy): Likewise.
2994
2995 2003-04-22  Roland McGrath  <roland@redhat.com>
2996
2997         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
2998         (open_not_cancel): Make last argument non-optional.
2999         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
3000         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3001         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3002
3003         * include/tls.h: Protect against multiple inclusion.
3004
3005 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
3006
3007         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
3008         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
3009         open_socket.  Not static anymore.
3010         (nscd_gethst_r): Use __nscd_open_socket.
3011         * nscd/nscd_getgr_r.c (open_socket): Removed.
3012         (nscd_getgr_r): Use __nscd_open_socket.
3013         * nscd/nscd_getpw_r.c (open_socket): Removed.
3014         (nscd_getpw_r): Use __nscd_open_socket.
3015
3016         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
3017         * nscd/connections.c (handle_request): Add cast to avoid warning.
3018
3019 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
3020
3021         * signal/sigfillset.c: Moved to...
3022         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
3023         do not set the corresponding bit.
3024
3025         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
3026         SIGCANCEL.
3027         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
3028         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
3029         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
3030         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
3031         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
3032
3033 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
3034
3035         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
3036         first syscall parameter to const char*.
3037
3038 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
3039
3040         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
3041
3042         * configure.in: Add AC_PROG_CXX.
3043         * config.make.in (CXX): Define.
3044
3045         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
3046         __len to size_t to avoid warnings.
3047
3048 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
3049
3050         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
3051         2.5.67.
3052         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3053
3054 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
3055
3056         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
3057         UNREGISTER_ATFORK if d == NULL.
3058
3059         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
3060         * dirent/dirent.h: Likewise.
3061         * dlfcn/dlfcn.h: Likewise.
3062         * grp/grp.h: Likewise.
3063         * iconv/iconv.h: Likewise.
3064         * io/fcntl.h: Likewise.
3065         * io/ftw.h: Likewise.
3066         * libio/stdio.h: Likewise.
3067         * misc/sys/mman.h: Likewise.
3068         * misc/sys/select.h: Likewise.
3069         * misc/sys/syslog.h: Likewise.
3070         * misc/sys/uio.h: Likewise.
3071         * posix/spawn.h: Likewise.
3072         * posix/unistd.h: Likewise.
3073         * posix/sys/wait.h: Likewise.
3074         * pwd/pwd.h: Likewise.
3075         * resolv/netdb.h: Likewise.
3076         * rt/aio.h: Likewise.
3077         * shadow/shadow.h: Likewise.
3078         * signal/signal.h: Likewise.
3079         * socket/sys/socket.h: Likewise.
3080         * stdlib/stdlib.h: Likewise.
3081         * streams/stropts.h: Likewise.
3082         * string/string.h: Likewise.
3083         * sysdeps/gnu/utmpx.h: Likewise.
3084         * sysvipc/sys/msg.h: Likewise.
3085         * termios/termios.h: Likewise.
3086         * time/time.h: Likewise.
3087         * wcsmbs/wchar.h: Likewise.
3088         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
3089         functions.
3090         * misc/daemon.c: Likewise.
3091         * sysdeps/generic/backtracesymsfd.c: Likewise.
3092         * sysdeps/generic/check_fds.c: Likewise.
3093         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3094         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
3095         * sysdeps/generic/not-cancel.h: New file.
3096         * csu/Makefile (distribute): Add not-cancel.h.
3097         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
3098         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
3099         for assert.c and assert-perr.c to include <fatal-prepare.h>.
3100         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
3101
3102         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
3103         errno and unlink first.
3104
3105         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
3106
3107 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
3108
3109         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
3110         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
3111
3112 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
3113
3114         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
3115
3116         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
3117         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
3118         replace.
3119
3120         * signal/Makefile (tests): Add tst-sigsimple.
3121         * signal/tst-sigsimple.c: New file.
3122
3123 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
3124
3125         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
3126         tst-tls10.h.
3127         (tests): Add tst-tls1[0-2].
3128         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
3129         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
3130         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
3131         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
3132         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
3133         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
3134         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
3135         * elf/tst-tls10.c: New test.
3136         * elf/tst-tls11.c: New test.
3137         * elf/tst-tls12.c: New test.
3138         * elf/tst-tls10.h: New file.
3139         * elf/tst-tlsmod7.c: New file.
3140         * elf/tst-tlsmod8.c: New file.
3141         * elf/tst-tlsmod9.c: New file.
3142         * elf/tst-tlsmod10.c: New file.
3143         * elf/tst-tlsmod11.c: New file.
3144         * elf/tst-tlsmod12.c: New file.
3145
3146 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
3147
3148         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
3149         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
3150         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
3151
3152 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
3153
3154         * posix/regex.h: Include <sys/types.h>.
3155
3156         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
3157         The signal number must be checked.
3158         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
3159         The signal number must be checked [PR libc/5004].
3160
3161         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
3162         don't do anything fancy.
3163
3164         * sysdeps/generic/bits/libc-lock.h: Define
3165         __rtld_lock_define_initialized_recursive.
3166
3167         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
3168         contacting nscd if NOT_USENSCD_NAME > 0.
3169         * nss/nsswitch.c (__nss_disable_nscd): New function.
3170         * nss/nsswitch.h: Declare it.
3171         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
3172         * nscd/nscd.c (main): Call __nss_disable_nscd.
3173
3174 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
3175
3176         * stdio-common/perror.c (perror): We don't need to set the offset
3177         to _IO_pos_bad, this is how streams are initialized.
3178
3179         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
3180         (time_output): If necessary, allocate new buffer for .name string if
3181         padding is required.
3182
3183         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
3184         before copying.  This might leave holes in the list.  Adjust
3185         pointers if necessary.
3186         (netlink_receive): Allocate only one block.
3187         (free_netlink_handle): Adjust appropriately.
3188         (getifaddrs): Lots of cleanups.
3189
3190         * string/test-strncpy.c (do_one_test): Mark start and stop as
3191         possibly unused.
3192         * string/test-memchr.c: Likewise.
3193         * string/test-memcmp.c: Likewise.
3194         * string/test-memcpy.c: Likewise.
3195         * string/test-memmove.c: Likewise.
3196         * string/test-memset.c: Likewise.
3197         * string/test-strcat.c: Likewise.
3198         * string/test-strchr.c: Likewise.
3199         * string/test-strcmp.c: Likewise.
3200         * string/test-strcpy.c: Likewise.
3201         * string/test-strlen.c: Likewise.
3202         * string/test-strncmp.c: Likewise.
3203         * string/test-strpbrk.c: Likewise.
3204         * string/test-strrchr.c: Likewise.
3205         * string/test-strspn.c: Likewise.
3206
3207 2003-04-15  Roland McGrath  <roland@redhat.com>
3208
3209         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
3210
3211         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
3212         INTUSE(__register_frame_info_bases).
3213
3214 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
3215
3216         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
3217         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
3218         AT_SYSINFO_EH_FRAME.  Adjust string width.
3219         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
3220         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
3221         Add _dl_sysinfo_eh_frame field.
3222         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
3223         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
3224         variable.
3225         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
3226         if _dl_sysinfo_eh_frame is non-NULL.
3227
3228         * Makeconfig (gnulib): Add -lgcc_eh.
3229
3230         * config.h.in: Define HAVE_FORCED_UNWIND.
3231
3232 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
3233
3234         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
3235         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3236
3237 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
3238
3239         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
3240         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
3241         against local symbol in conflict processing.
3242
3243 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
3244
3245         * sysdeps/powerpc/bits/atomic.h
3246         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
3247         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
3248         as abort stub.
3249         (__arch_compare_and_exchange_val_32_acq): Define.
3250         (atomic_compare_and_exchange_val_acq): Define.
3251
3252 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
3253
3254         * include/atomic.h: Pretty printing.
3255
3256 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
3257
3258         * stdio-common/vfscanf.c: Add casts to avoid warnings.
3259
3260 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
3261
3262         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
3263         * sysdeps/x86_64/bits/atomic.h: Likewise.
3264
3265 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
3266
3267         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
3268         POPARGS_1 to emit labels for the mov instructions.
3269
3270 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
3271
3272         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
3273
3274 2003-04-14  Roland McGrath  <roland@redhat.com>
3275
3276         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
3277         compiler warning.
3278
3279         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
3280
3281 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
3284         position.  Reported by jreiser@BitWagon.com.
3285
3286 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
3287
3288         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
3289         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3290         * sysdeps/generic/unwind-dw2.c: Likewise.
3291         * sysdeps/generic/unwind-pe.h: Likewise.
3292
3293 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
3294
3295         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
3296         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
3297         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
3298         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
3299         (mcontext_t): Make it match the 32-bit mips kernel in o32.
3300         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
3301         the mips and mips64 headers.
3302         (struct user): Port to n32/n64.
3303
3304 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
3305
3306         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
3307         avoid warning.
3308
3309         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
3310         __ASSUME_VSYSCALL is defined don't add restorer.
3311         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3312         __ASSUME_VSYSCALL for 2.5.53.
3313
3314 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
3315
3316         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
3317         Remove HAVE_CANCELBUF code.  Replace with code using the new
3318         initializers for unwind-based cleanup handling.
3319         * sysdeps/generic/unwind.h: Update from latest gcc version.
3320         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
3321         places to allow unwind data generation.
3322         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
3323         * sysdeps/x86_64/bits/setjmp.h: Likewise.
3324         * sysdeps/sh/bits/setjmp.h: Likewise.
3325         * sysdeps/powerpc/bits/setjmp.h: Likewise.
3326         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
3327         * sysdeps/alpha/bits/setjmp.h: Likewise.
3328
3329 2003-04-11  Roland McGrath  <roland@redhat.com>
3330
3331         * csu/tst-empty.c: New file.
3332         * csu/Makefile (tests, tests-static): Add it.
3333
3334 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
3335
3336         * string/test-strcmp.c (do_random_tests): Test whether return value
3337         has been promoted to wordsize if the ABI requires caller to do so.
3338         * string/test-strncmp.c (do_random_tests): Likewise.
3339         * string/test-memcmp.c (do_random_tests): Likewise.
3340
3341         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
3342         before returning.
3343
3344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3345         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
3346         is not defined, but the prctl constants are.
3347
3348         * string/tester.c (test_strcmp): Fix a typo.
3349
3350 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
3351
3352         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
3353         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
3354
3355 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
3356
3357         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
3358         NewABI.
3359         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
3360         NewABI.
3361         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
3362         conventions.
3363         * sysdeps/mips/mips64/memset.S: Likewise.
3364         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
3365         Use t0 instead of t4 as temporary.
3366
3367 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
3368
3369         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
3370         feof_unlocked instead of feof.
3371         (add_dir): Ignore trailing whitespace.
3372
3373 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
3374
3375         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
3376         sum of SIZE1 and SIZE2 arguments.
3377
3378 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
3379
3380         * iconv/iconv_prog.c (process_block): Don't print message about
3381         invalid input if the -c option is used.
3382         (main): Correctly append IGNORE string for -c option.
3383
3384 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3385
3386         * sysdeps/sh/bits/atomic.h: Moved to ...
3387         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
3388         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
3389         arguments.
3390         (atomic_bit_set, atomic_bit_test_set): Likewise.
3391         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
3392         twice.
3393         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
3394
3395 2003-04-06  Roland McGrath  <roland@redhat.com>
3396
3397         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
3398         restoration as done for setcontext yesterday.
3399
3400 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
3401
3402         * elf/rtld.c: Revert 2003-03-14 change.
3403         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
3404         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
3405
3406 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
3407
3408         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
3409
3410         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3411         Always initialize *signgamp before returning an error.
3412
3413 2003-04-05  Roland McGrath  <roland@redhat.com>
3414
3415         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
3416         below the stack pointer even if switching to the same context we are
3417         running right now.
3418
3419 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
3420
3421         * catgets/gencat.c (read_input_file): Make sure that \n is not
3422         alone on the line before testing for continuation.
3423
3424         * math/test-tgmath.c (compile_test): Initialize c.
3425
3426 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
3427
3428         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
3429         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
3430         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
3431         on mips n32.
3432         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
3433         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
3434         structure on n32 as well.
3435         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
3436         data types on n32 and n64.
3437
3438 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
3439
3440         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
3441         after getting them.
3442
3443         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
3444         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
3445         instead of __register_atfork.
3446
3447 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
3448
3449         * stdio-common/reg-printf.c (__register_printf_function): Calloc
3450         instead of malloc __printf_arginfo_table and __printf_function_table.
3451         Reported by John Reiser <jreiser@BitWagon.com>.
3452
3453 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
3454
3455         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
3456         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
3457
3458         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
3459         defining.
3460
3461 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
3462
3463         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
3464         for n64 abi.
3465
3466 2003-04-03  Roland McGrath  <roland@redhat.com>
3467
3468         * configure.in: Fix up use of compilation flags to match the build:
3469         For .s files, $ASFLAGS;
3470         For .S files, $CPPFLAGS $ASFLAGS;
3471         For .c files, $CFLAGS $CPPFLAGS;
3472         when linking, add $LDFLAGS.
3473         * configure: Regenerated.
3474
3475 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
3476
3477         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
3478         for atomic_compare_and_exchange_bool_acq failure.
3479
3480 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
3481
3482         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
3483         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
3484         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
3485         Remove declaration of pthread_atfork.
3486
3487 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
3488
3489         * locale/iso-639.def: Add many more languages from the current ISO 639.
3490
3491         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
3492         * sysdeps/generic/semtimedop.c: New file.
3493         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
3494         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
3495         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3496         * sysvipc/Makefile (routines): Add semtimedop.
3497         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
3498         * sysvipc/sys/sem.h: Declare semtimedop.
3499
3500 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
3501
3502         * configure.in: Check for __register_frame_info in both
3503         -lgcc and -lgcc_eh.
3504         * configure: Regenerated.
3505
3506 2003-04-01  Roland McGrath  <roland@redhat.com>
3507
3508         * scripts/abilist.awk: Allow dots in soname suffix.
3509
3510         * scripts/abilist.awk (emit): Fix bailout condition.
3511
3512 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
3513
3514         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
3515         IA-64 version.
3516
3517         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
3518         register as input to asm.
3519
3520 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
3521
3522         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
3523
3524 2003-04-01  Andreas Jaeger  <aj@suse.de>
3525
3526         * configure.in: Output as/ld as name if version is too old.
3527
3528 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
3529
3530         * configure.in: Don't require an installed C library in the test
3531         for ".set" assembler support.
3532
3533 2003-03-31  Roland McGrath  <roland@redhat.com>
3534
3535         * signal/tst-sigset.c: New file.
3536         * signal/Makefile (tests): Add it.
3537
3538 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
3539
3540         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
3541         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
3542         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
3543         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
3544         (__SIGRTMAX): Adjust accordingly.
3545         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
3546         second compatibility symbol set.