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